1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-26 07:00:35 -08:00
Commit graph

6421 commits

Author SHA1 Message Date
Chong Yidong
c36e15db97 * minibuf.c (Fassoc_string): Tweak docstring. 2008-04-05 21:03:40 +00:00
Eli Zaretskii
aa08d1ff92 (init_user_info): Don't restrict UID and GID to 0-60000 range. 2008-04-05 15:26:10 +00:00
Eli Zaretskii
40beb14781 New file. 2008-04-05 14:34:28 +00:00
Stefan Monnier
d4417eb006 (struct frame): Give one more bit to `visible' since we use
values larger than 1 to indicate obscured frames on ttys.
2008-04-04 17:56:23 +00:00
Stefan Monnier
00f7c5edc6 * subr.el (keymap-canonicalize): New function.
* mouse.el (mouse-menu-non-singleton): Use it.
(mouse-major-mode-menu): Remove hack made unnecessary.
* keymap.c (Qkeymap_canonicalize): New var.
(Fmap_keymap_internal): New fun.
(describe_map): Use keymap-canonicalize.
2008-04-04 17:31:20 +00:00
Stefan Monnier
4591d6cbef (last_boundary_buffer, last_boundary_position): New vars.
(Fundo_boundary): Set them.
(syms_of_undo): Initialize them.
(record_point): Use them instead of last_point_position*.
(last_undo_buffer): Change type.
2008-04-04 16:59:52 +00:00
Jason Rumney
d0bfec76e4 (uniscribe_check_otf): Rearrange loop for counting features. 2008-04-04 12:08:14 +00:00
Jason Rumney
3187540eff (uniscribe_check_otf): Fix last change. 2008-04-04 07:59:20 +00:00
Stefan Monnier
f1a6b2163c (insert_from_buffer_1): Don't compare bytes in destination
buffer with byte-size of source buffer.
2008-04-03 20:01:31 +00:00
Chong Yidong
1d8dcf63aa * callint.c (Fcall_interactively): Handle temporary region even
when shift-select-mode is off.
2008-04-03 16:36:29 +00:00
Jason Rumney
6b8aa22a8a (uniscribe_check_otf): Sanity check otf_spec. 2008-04-03 15:38:29 +00:00
Jason Rumney
0c1b4ae237 (CONFIG_H): New variable. Use it to clean up
dependencies.
(w32uniscribe.$(O)): New file to build.
(FONT_OBJ): Include w32uniscribe.$(O).
(LIBS): Add uniscribe libraries.
2008-04-03 13:16:13 +00:00
Kenichi Handa
2f3cbb326b (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
(CATEGORY_MASK_UTF_16): Likewise.
(detect_coding_utf_16): Add heuristics to reject utf-16 for a
binary file.
(detect_coding): Add null-byte detection for a binary file.
(detect_coding_system): Likewise.
2008-04-03 12:31:27 +00:00
Jason Rumney
43f4f91cef (ftfont_get_open_type_spec): Check spec->script, not val. 2008-04-03 08:17:15 +00:00
Chong Yidong
d6b4106c61 Undo previous change:
* keyboard.c (command_loop_1): Don't change the value of
transient-mark-mode; this is now handled by handle-shift-selection.
2008-04-02 20:21:45 +00:00
Chong Yidong
75043a7d35 * callint.c (Vshift_select_mode): New var.
(Finteractive): Document new ^ spec.
(Fcall_interactively): Call handle-shift-selection if the ^ spec
is present.

* keyboard.c (Vthis_command_keys_shift_translated): New var.
(command_loop_1): Avoid running the direct display versions of
forward-char and backward-char if shift-selection may occur.
Don't change the value of transient-mark-mode; this is now handled
by handle-shift-selection.
(read_key_sequence): Set Vthis_command_keys_shift_translated if
shift-translation takes place.

* buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
avoid clobbering by define-minor-mode.

* cmds.c (Fforward_char, Fbackward_char, Fforward_line)
(Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.

* syntax.c (Fforward_word): Add ^ interactive spec.

* window.c (Fscroll_up, Fscroll_down, Fscroll_left)
(Fscroll_right): Add ^ interactive spec.
2008-04-02 20:14:17 +00:00
Stefan Monnier
a432c0a64b (try_window_id): Don't forget to reset delta_bytes. 2008-04-01 21:27:07 +00:00
Stefan Monnier
994b75e0f4 (casify_object): Fix up int/EMACS_INT mixup. 2008-04-01 06:02:20 +00:00
Glenn Morris
bf380f53ba More fixing of what multi-tty called a ChangeLog. 2008-04-01 02:56:18 +00:00
Stefan Monnier
b2b7f29e5e (Funibyte_charset, Fset_unibyte_charset): Remove. 2008-04-01 00:54:03 +00:00
Juri Linkov
e99c780691 (Fdisplay_buffer): Reinitialize tem to nil. 2008-03-31 00:36:32 +00:00
Jan Djärv
1c9c12709b (xg_set_geometry): Fix indentation.
(xg_resize_outer_widget): Removed
(x_wm_size_hint_off): Fix indentation.
(xg_frame_set_char_size): Call flush_and_sync after
gtk_window_resize.
(x_wm_set_size_hint): Pass NULL as geometry window to
gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
Add menu bar and tool bar height to base height.
(xg_update_frame_menubar, free_frame_menubar)
(xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
(update_frame_tool_bar, free_frame_tool_bar): Change
xg_resize_outer_widget to xg_frame_set_char_size.
2008-03-30 17:38:09 +00:00
Michael Albinus
90b3fc8415 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
(Fdbus_call_method): New parameter TIMEOUT.
(dbus-send-signal): Optimize UNGCPRO call.
2008-03-30 12:38:49 +00:00
Juri Linkov
7ae6d1d10e (Fdisplay_buffer): Move call to
Vsplit_window_preferred_function out of conditions that check
if window is eligible for vertical splitting.
When Vsplit_window_preferred_function is non-nil, call it and use
its non-nil return value as window.  Otherwise, continue doing
vertical splitting using Fsplit_window with arg horflag=nil.
(syms_of_window) <Vsplit_window_preferred_function>: Change the
default value from `split-window' to nil.
2008-03-29 23:05:26 +00:00
Juri Linkov
f03f8f2cb6 (Fcall_interactively): Revert 2008-03-16 change
for interactive code letters 'b' and 'B'.
2008-03-29 22:58:43 +00:00
Eli Zaretskii
6d5577783e (Fexpand_file_name): Convert the value of $HOME to a multibyte string. 2008-03-29 13:53:02 +00:00
Stefan Monnier
58555d8187 * keyboard.c (pending_funcalls): New var.
(timer_check): Run it.
(syms_of_keyboard): Initialize it.
* terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
(Vdelete_terminal_functions): New vars.
(syms_of_terminal): Initialize them.
(Fdelete_terminal): Run delete-terminal-functions.
* xdisp.c (safe_eval): Rewrite.
(safe_call2): New fun.
* frame.c (Qdelete_frame_functions): New var.
(syms_of_frame): Initialize it.
(Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
* lisp.h (safe_call2, pending_funcalls): Declare.
2008-03-29 01:46:10 +00:00
Andreas Schwab
4c92f4298e (Fmove_to_column): Move declaration before statements. 2008-03-28 17:24:51 +00:00
Stefan Monnier
2806a18346 (enum fullscreen_type): Give it a name. Move it before use.
(struct frame): Use bit fields for boolean vars.
2008-03-27 21:15:21 +00:00
Stefan Monnier
eef6030820 (server_accept_connection): Simplify naming.
(emacs_get_tty_pgrp): Use SDATA.
2008-03-27 20:52:24 +00:00
Stefan Monnier
a1567c4544 (decode_coding_object): Fix last change. 2008-03-27 20:04:37 +00:00
Jason Rumney
30076589d3 (start_hourglass): Suppress hourglass on tty frames. 2008-03-27 17:11:40 +00:00
Kenichi Handa
880820fe87 (Fdefine_charset_internal): Change the way of
registering charsets in Vcharset_order_list.
(syms_of_charset): Make the charset `eight-bit' supplementary.
2008-03-27 11:36:43 +00:00
Chong Yidong
3cf8cdfbc6 * regex.c (EXTEND_BUFFER): Change order of pointer addition
operations, to avoid having the difference between pointers
overflow.
2008-03-26 22:53:47 +00:00
Stefan Monnier
80e3db569f (check_display_width): New fun.
(scan_for_column): Use it.
2008-03-26 20:46:47 +00:00
Stefan Monnier
c397dc7a0d (syms_of_data): Mark most-positive-fixnum and
most-negative-fixnum as constants.
2008-03-26 18:14:02 +00:00
Stefan Monnier
bf6b4d583b (redisplay_internal): Reset selected_frame earlier. 2008-03-26 18:11:47 +00:00
Stefan Monnier
ef6f5c0eef (scan_for_column): Extract from current_column_1.
Merge with the same code from Fmove_to_column.
(current_column_1, Fmove_to_column): Use it.
2008-03-26 18:10:51 +00:00
Juanma Barranquero
ff9bf0719a Remove duplicate entries. 2008-03-26 17:04:38 +00:00
Stefan Monnier
12270607de (map_keymap_internal): New fun.
(map_keymap): Use it.
(Fmap_keymap_internal): New fun.
(Fmap_keymap): Remove left-out test from before make_save_value.
2008-03-25 20:12:54 +00:00
Stefan Monnier
a10cca6c90 * subr.el (map-keymap-sorted): Rename from map-keymap-internal.
Remove `sort-first' argument.
* keymap.c (Fmap_keymap): Use `map-keymap-sorted.
2008-03-25 19:42:34 +00:00
Stefan Monnier
d7b10f4c2e (Fmodify_frame_parameters, x_set_frame_parameters): Use XCAR/XCDR. 2008-03-25 18:31:36 +00:00
Stefan Monnier
5431bd6a78 * process.h (struct Lisp_Process): Remove filter_multibyte.
* process.c (QCfilter_multibyte): Remove.
(setup_process_coding_systems): Don't use filter_multibyte.
(Fstart_process, Fmake_network_process): Don't set filter_multibyte.
(read_process_output): Don't adjust multibyteness to filter_multibyte.
(Fset_process_filter_multibyte): Change the coding-system to
approximate the previous behavior.
(Fprocess_filter_multibyte_p): Get the multibyteness straight from the
coding-system.
2008-03-25 17:35:48 +00:00
Stefan Monnier
72d5003de7 (decode_coding_object): When not decoding into a buffer,
obey the coding system's preference of (uni|multi)byte.
2008-03-25 16:02:32 +00:00
Stefan Monnier
438eba3c1e (casify_object): Avoid pathological N^2 worst case if
every char is changed and has a different byte-length.
(Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
Fix int -> EMACS_INT.
2008-03-24 19:42:12 +00:00
Michael Albinus
a8e72f4f9b * dbusbind.c (xd_read_message): Removed extra copying of message
strings.  Check for NULL `interface' or `member'.
2008-03-23 16:46:08 +00:00
Eli Zaretskii
b07103dc2b (readdir): If FindFirstFile/FindNextFile return in cFileName a file name that
includes `?' characters, use the 8+3 alias in cAlternateFileName instead.
2008-03-22 11:53:40 +00:00
Stefan Monnier
5371d722ec (enlarge_buffer_text): Fix int -> EMACS_INT. 2008-03-21 01:49:18 +00:00
Stefan Monnier
6ba7f443e9 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
(set_point, set_point_both): Use EMACS_INT.  Remove `buffer' arg,
work on current_buffer only instead (that was already the case
for some of the code anyway).
* buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
(temp_set_point, temp_set_point_both): Use EMACS_INT.
(SET_PT, SET_PT_BOTH): Adjust.
* intervals.h (set_point, temp_set_point, set_point_both)
(temp_set_point_both): Remove redundant declarations.
2008-03-20 18:38:34 +00:00
Stefan Monnier
bf1c0f2730 * fileio.c (Finsert_file_contents):
* lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
* buffer.h (BUF_SET_PT): Remove.  set_point_both doesn't work right
when buffer != current_buffer anyway.
2008-03-20 18:13:12 +00:00