Commit graph

27862 commits

Author SHA1 Message Date
Stefan Monnier
29edae16f0 (delete_frame): Work around compiler bug. 2009-03-28 04:52:12 +00:00
Stefan Monnier
ae19ba7cfc * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
(adjust_markers_gap_motion, adjust_markers_for_delete)
(adjust_markers_for_insert, adjust_point)
(adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
(make_gap, copy_text, count_size_as_multibyte, insert)
(insert_and_inherit, insert_before_markers)
(insert_before_markers_and_inherit, insert_1)
(count_combining_before, count_combining_after, insert_1_both)
(insert_from_string, insert_from_string_before_markers)
(insert_from_string_1, insert_from_gap, insert_from_buffer)
(insert_from_buffer_1, adjust_after_replace)
(adjust_after_replace_noundo, adjust_after_insert, replace_range)
(replace_range_2, del_range, del_range_1, del_range_byte)
(del_range_both, del_range_2, modify_region)
(prepare_to_modify_buffer, signal_before_change)
(signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
for buffer positions and sizes.
* lisp.h: Adjust prototypes accordingly.
* fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
(non_regular_inserted, non_regular_nbytes, read_non_regular)
(Finsert_file_contents): Use EMACS_INT for buffer positions.
2009-03-28 02:24:22 +00:00
Stefan Monnier
ab226c5075 (Finsert_file_contents): Don't limit size to INT_MAX/4. 2009-03-28 02:06:06 +00:00
Jan Djärv
46dfb8fbad (handle_one_xevent): Call x_handle_net_wm_state if
the property _NET_WM_STATE has changed.
updated.
(x_handle_net_wm_state): New function to update frame parameter
fullscreen.
(x_term_init): Initialize atoms for _NET_WM_STATE.
2009-03-27 18:40:04 +00:00
Jan Djärv
fc82c45286 (struct x_display_info): Add atoms for _NET_WM_STATE. 2009-03-27 18:37:41 +00:00
Jan Djärv
5a9aae2ec9 (x_set_font): If the fullscreen property is non-nil, adjust
lines and columns so we keep the same pixel height and width.
2009-03-27 18:30:55 +00:00
Stefan Monnier
d347e4943a * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
Gpm_GetEvent as an error that justifies closing the filedescriptor.
* term.c (close_gpm): Get the filedescriptor as a (new) parameter.
(Fgpm_mouse_stop): Pass that new parameter.
* termhooks.h (close_gpm): Adjust prototype.
2009-03-27 16:14:23 +00:00
Kenichi Handa
67ceab9df4 (Fdetect_coding_string): Improve the docstrings. 2009-03-27 07:26:37 +00:00
Kenichi Handa
b811c52b91 (Fdetect_coding_region, Fcoding_system_priority_list): Improve the
docstrings.
2009-03-27 07:25:44 +00:00
Stefan Monnier
c95a500868 (Fx_focus_frame): Declare. 2009-03-26 22:15:13 +00:00
Stefan Monnier
84db11d602 * callint.c (Fcall_interactively): For '^' just delegate the work to
handle-shift-selection.
(syms_of_callint): Move declaration of shift-select-mode to simple.el.
* simple.el (shift-select-mode): Move declaration from callint.c.
(handle-shift-selection): Remove `deactivate' arg and check
shift-select-mode instead.
2009-03-26 17:07:54 +00:00
Juanma Barranquero
087e2ea955 Fix typo in comment. 2009-03-25 11:58:43 +00:00
Chong Yidong
c6493cdde3 (Ffloat_time): Doc fix (Bug#2768). 2009-03-24 17:37:58 +00:00
Chong Yidong
0bfdff239c * editfns.c (Ffloat_time): Doc fix (Bug#2768). 2009-03-24 17:37:32 +00:00
Chong Yidong
2b9aa051bc (Fcommandp): Use Qinteractive_form. 2009-03-24 16:37:25 +00:00
Chong Yidong
3860280a57 (Qinteractive_form): New variable.
(Finteractive_form): Use it.
2009-03-24 16:35:52 +00:00
Chong Yidong
0a1958d6be * data.c (Qinteractive_form): New variable.
(Finteractive_form): Use it.

* eval.c (Fcommandp): Use Qinteractive_form.
2009-03-24 16:35:27 +00:00
Jason Rumney
58aec0d679 (Fsubstitute_in_file_name): Always work on a copy.
Calculate total size precisely.  Decode environment variables
before substituting.  (Bug#38)
2009-03-24 14:14:53 +00:00
Kenichi Handa
639239cf99 *** empty log message *** 2009-03-24 01:42:12 +00:00
Kenichi Handa
553dd618a3 *** empty log message *** 2009-03-24 01:07:21 +00:00
Kenichi Handa
182ba28cff (find_font_encoding): Return Qnil for unsupported encoding. 2009-03-24 00:56:34 +00:00
Jan Djärv
c39ea606e9 gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
that gdpy is set.
2009-03-23 17:09:17 +00:00
Alan Mackenzie
f9257eedc9 (Finteractive): Clarify the doc string - even promptless elements need \n
separators.
2009-03-22 15:09:48 +00:00
Alan Mackenzie
bc9b2b5ea6 *** empty log message *** 2009-03-22 15:05:25 +00:00
Jason Rumney
9f995a76b8 (x-use-underline-position-properties): Doc fix. 2009-03-22 02:43:37 +00:00
Eli Zaretskii
22749e9acb inc/sys/stat.h (struct stat): Change the types of st_uid and st_gid to unsigned.
inc/pwd.h (struct passwd): Change the types of pw_uid and pw_gid to unsigned.
	  (getpwuid): Argument is now unsigned.
	  uid_t is now unsigned.

ntlib.c (setuid): Argument is now unsigned.
	(getuid): Return value is now unsigned.
	(getpwuid): Argument is now unsigned.
	(fchown): UID and GID arguments are now unsigned.

ntlib.h (fchown): UID and GID arguments are now unsigned.
	(getuid): Return value is now unsigned.
	(setuid): Argument is now unsigned.
	(getpwuid): Remove prototype (it's declared in nt/inc/pwd.h).

w32.c   (getpwuid): Change argument type to unsigned.
	(struct w32_id): Change type of `rid' member to unsigned.
	(w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
	argument ID to unsigned.  All callers changed.
	(getuid, geteuid, getgid, getegid): Change return type to unsigned.
2009-03-21 11:31:50 +00:00
Eli Zaretskii
e00553bf16 (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is negative, produce
a float value.
2009-03-20 17:59:38 +00:00
Eli Zaretskii
51105b1324 (make_uid, make_gid): New functions.
(Ffile_attributes): Use them to avoid negative UID and GID.
2009-03-20 17:58:10 +00:00
Juanma Barranquero
f761d6b6a7 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
(syms_of_keyboard) <command-hook-internal, input-method-function>:
  Fix typos in docstrings.
2009-03-20 09:41:19 +00:00
Kenichi Handa
d507f8d743 (x_set_font): Handle the case that ARG is a cons. 2009-03-19 06:51:07 +00:00
Kenichi Handa
0875632e00 (Fset_fontset_font): When a spec of ASCII font is
changed, use font_load_for_lface to get a new font object.  Call
free_realized_fontset after handling ASCII font change.
2009-03-19 06:50:41 +00:00
Glenn Morris
c68845e058 (Fsubstitute_in_file_name): Doc fix. 2009-03-19 06:26:04 +00:00
Chong Yidong
11fb10def4 (Fvertical_motion): Undo 2005-01-19 change (Bug#2694). 2009-03-19 02:58:21 +00:00
Chong Yidong
bfa49dd1ad * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694). 2009-03-19 02:58:13 +00:00
Kenichi Handa
8458d4c169 (load_charset_map_from_file): When a mapfile can't be loaded, signal
an error.
2009-03-19 00:46:35 +00:00
Eli Zaretskii
78e7d1fe15 (Ffile_attributes): Make sure UID and GID are always positive, even
if the value is too large for a positive EMACS_INT.  Doc fix.
2009-03-18 20:38:41 +00:00
Eli Zaretskii
7b1c38a4f2 (Fuser_login_name): Support float arguments. Doc fix. 2009-03-18 20:37:06 +00:00
YAMAMOTO Mitsuharu
5da9fdfa16 (xdialog_show): Move Fredisplay call ...
(Fx_popup_dialog): ... here.
2009-03-18 08:37:56 +00:00
Stefan Monnier
7519c40d29 (file_name_completion): Disable the first optimization just
installed, since it is not implemented correctly.
2009-03-18 02:26:29 +00:00
Stefan Monnier
2cd298e2db (file_name_completion): Check completion-ignored-extensions
only if the entry can't affect bestmatch anyway.
Stop the search early, as Ftry_completion already does.
2009-03-17 19:05:40 +00:00
Juanma Barranquero
6fe45af317 Move comment to make clearer it's talking about buffer Vprin1_to_string_buffer. 2009-03-17 10:26:25 +00:00
Chong Yidong
e10c9c93df Fix last changelog entry. 2009-03-17 04:38:03 +00:00
Chong Yidong
1b79e22467 (Vminibuffer_completion_confirm): Doc fix. 2009-03-17 04:37:41 +00:00
Chong Yidong
48d37adfdc * minibuf.c (syms_of_minibuf): Doc fix. 2009-03-17 04:37:17 +00:00
Chong Yidong
224fc3d108 (parse_menu_item): Don't display remappings as menu equivalent bindings (Bug#788). 2009-03-15 17:56:30 +00:00
Chong Yidong
9286b16a25 * keyboard.c (parse_menu_item): Don't display remappings as menu
equivalent bindings (Bug#788).
2009-03-15 17:56:14 +00:00
Jason Rumney
f7b146dc3b * w32term.h (WM_EMACS_PAINT): New message.
* w32term.c (w32_read_socket): Use it instead of WM_PAINT.
* w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
before passing to lisp thread.  (Bug#950)
2009-03-15 14:53:53 +00:00
Chong Yidong
d93f95758a Fix last change. 2009-03-15 01:21:39 +00:00
David Reitter
c6c62e780c Unify shutdown handling under NS, via ns-power-off key event (where appropriate) and save-buffers-kill-emacs.
remove  NS-specific preferences window that used to show NS-specific preferences.
Integrate preferences in Lisp accessible customization system where possible.
Remove ns-expand-space, because it can be set only during fontloading (i.e. not at runtime),
and because of redundancy with line-spacing frame parameter.

Remove loading of most and saving of all NS resources (from org.gnu.Emacs.plist).

nsterm.m (ns_shutdown_properly, -terminate): remove global state variable as it was never reset
(ns_term_init): remove initialization of Lisp-settable defaults and ns_expand_space
(-setPanelFromDefaultValues): remove ns_expand_space.
(-showPreferencesWindow): send new KEY_NS_SHOW_PREFS key.

nsfont.m (nsfont_open): remove ns_expand_space, assume -0.5 i.e. no additional spacing, similar to Carbon port.

nsterm.h: define KEY_NS_SHOW_PREFS key.
nsfns.m (ns-popup-prefs-panel): remove.

term/ns-win.el (ns-expand-space): remove.
(ns-show-prefs event): run `customize'.
(ns-power-off): run `save-buffers-kill-emacs', but ask user whether to save files (as is standard)
(clipboard-yank, clipboard-kill-ring-save, clipboard-kill-region)
(menu-bar-enable-clipboard): do not undefine these.
(ns-save-preferences,ns-save-options,ns-show-preferences-help): remove.
2009-03-14 21:19:56 +00:00
Jan Djärv
305018ecb2 (alsa_configure): Remove call do deprecated
_pcm_sw_params_set_xfer_align.
2009-03-14 15:19:04 +00:00