1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-02 11:50:48 -08:00
Commit graph

6462 commits

Author SHA1 Message Date
Stefan Monnier
5b5a2ea177 (Fexpand_file_name): Tighten the scope of p' and o' vars.
Relocate `nm' after calling DECODE_FILE, in case the GC was run.
2008-04-12 05:12:18 +00:00
Stefan Monnier
492d9fd6bc * keymap.h (map_keymap_canonical): Declare.
* xmenu.c (single_keymap_panes): Use it.
2008-04-11 15:35:41 +00:00
Glenn Morris
dd60787c17 (Fdefvaralias): If the alias is bound and the target is not, set the
target's value to that of the alias.
2008-04-11 03:41:34 +00:00
Stefan Monnier
c23b5410c5 (set_tty_color_mode): Left over typo. 2008-04-11 01:40:41 +00:00
Michael Albinus
e89b536d4b * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
only after check for file name handler functions. Signal, when
native functionality is not supported.
(syms_of_fileio): Declare it unconditionally.
2008-04-10 20:35:54 +00:00
Jason Rumney
31403b2446 (is_simple_dialog, simple_dialog_show): New functions.
(Fx_popup_dialog): Handle simple yes/no questions as dialogs.
2008-04-10 15:20:07 +00:00
Jason Rumney
40a339c881 (logon_network_drive): Also logon to remote drives that
are mapped to drive letters.
2008-04-10 11:38:15 +00:00
Glenn Morris
96a7394f29 (truncate-partial-width-windows): Doc fix. 2008-04-10 07:49:07 +00:00
Stefan Monnier
34b67b0f6b * minibuffer.el (minibuffer--double-dollars, read-file-name-internal):
New functions.
* fileio.c (read_file_name_cleanup, Fread_file_name_internal):
Move functions to minibuffer.el.
(syms_of_fileio): Don't declare them.
2008-04-10 03:12:49 +00:00
Stefan Monnier
ba5ff07b2a * minibuffer.el (minibuffer): Move group from cus-edit.el.
(completion-auto-help): Move from C code.
(minibuffer--maybe-completion-help): Remove.
(minibuffer--bitset): New function.
(minibuffer--do-completion): Rename from minibuffer-do-completion.
Renumber a bit.  Really complete on string *before* point.
Add argument used for word-completion.
Join trailing / in completion with following text, as done in
minibuffer-complete-word.
Handle new value `lazy' for completion-auto-help.
(minibuffer-try-word-completion): New function extracted from
minibuffer-complete-word.
(minibuffer-complete-word): Use minibuffer--do-completion.
(minibuffer--insert-strings): Rename from
minibuffer-complete-insert-strings.
(exit-minibuffer): Fix typo.
* cus-edit.el (minibuffer): Move group to minibuffer.el.
* cus-start.el: Remove completion-auto-help.
* minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
(syms_of_minibuf): Remove its initialization.
2008-04-09 19:33:56 +00:00
Stefan Monnier
c025fb0a25 (temp_echo_area_glyphs): Remove unused function. 2008-04-09 18:02:08 +00:00
Jason Rumney
3dc94c3075 (LOADDEFS): Add mh-loaddefs.el.
($(lisp)/mh-e/mh-loaddefs.el): Simplify rule.
(pre-mh-loaddefs.el-CMD, pre-mh-loaddefs.el-SH): Remove.
(AUTOGENEL): New variable.
(distclean, maintainer-clean): New targets.
2008-04-09 16:26:54 +00:00
Juanma Barranquero
7a6a86adef (Ffield_string_no_properties): Fix typo in docstring. 2008-04-09 15:57:40 +00:00
Jason Rumney
8d28646bf8 (redisplay_internal) [!WINDOWSNT]: Conditionalize last change. 2008-04-09 13:33:56 +00:00
Jason Rumney
cf907d69dd (w32_compute_glyph_string_overhangs): Compute overhangs
for new font backend and composite cases.
2008-04-09 12:14:52 +00:00
Jan Djärv
ef5eb9256f (wait_reading_process_output): If SYNC_INPUT and pending_atimers, run atimers. 2008-04-09 06:47:19 +00:00
Stefan Monnier
32bae13cf7 * lisp/minibuffer.el: New file.
* src/minibuf.c (last_exact_completion): Remove variable.
(Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
(complete_and_exit_1, complete_and_exit_2)
(Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
(Fdisplay_completion_list, display_completion_list_1)
(Fminibuffer_completion_help, Fself_insert_and_exit)
(Fexit_minibuffer, Fminibuffer_message): Move functions to minibuffer.el.
(syms_of_minibuf): Remove corresponding initializations.
2008-04-09 03:34:19 +00:00
Stefan Monnier
5c4cc82aeb (Qdeactivate_mark): New var.
(command_loop_1): Use it to call `deactivate-mark'.
(syms_of_keyboard): Initialize it.
2008-04-09 03:29:46 +00:00
Stefan Monnier
9b2cd40320 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
to another frame.
* frame.c (do_switch_frame): Refine the top_frame/async_visible code.
Don't call set_tty_color_mode.
(store_frame_param): Reset previous_frame rather than call
set_tty_color_mode.
* term.c (set_tty_color_mode): Rewrite.
* dispextern.h (set_tty_color_mode): New type.
* termchar.h (struct tty_display_info): Add `previous_color_mode'.
2008-04-09 03:25:14 +00:00
Stefan Monnier
84cb7b4562 (access_keymap): Remove the value 2 for t_ok which was used
for generic chars, which do not exist any more in emacs-unicode.
2008-04-08 22:13:13 +00:00
Michael Albinus
3ed051d450 * coding.c (detect_coding_emacs_mule)
(Ffind_operation_coding_system): Fix typo.
2008-04-08 20:18:14 +00:00
Jason Rumney
3bf8d23048 (SNAME): Extract only symbol name. 2008-04-08 14:46:49 +00:00
Jason Rumney
56a70cca39 (struct w32_metric_cache): New struct.
(w32font_info): Use it.
(W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
(CACHE_BLOCKSIZE): New constants.
2008-04-08 14:29:39 +00:00
Jason Rumney
58c3ea4277 *** empty log message *** 2008-04-08 13:58:29 +00:00
Juanma Barranquero
fbf57abbfe *** empty log message *** 2008-04-07 11:11:28 +00:00
Jason Rumney
b7655e0cb4 (uniscribe_shape): Map char at FROM to current glyph. 2008-04-06 14:29:29 +00:00
Jason Rumney
0ce24b2d12 (uniscribe_shape): Increase items buffer size.
Give up if glyph indices not supported.  Use uniscribe obtained
ABC widths for individual metrics.  Map glyph clusters back to
characters using fClusterStart flag.  Return number of glyphs
produced, not chars processed.
2008-04-06 01:08:19 +00:00
Miles Bader
5bc6ddff00 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1107
2008-04-05 23:01:26 +00:00
Chong Yidong
6ffb36c380 * search.c (compile_pattern_1): Treat non-nil and non-string of
search-spaces-regexp as nil.
2008-04-05 21:42:01 +00:00
Chong Yidong
9605d5675e * search.c (compile_pattern_1): Treat non-nil and non-string of
search-spaces-regexp as nil.
2008-04-05 21:40:04 +00:00
Juanma Barranquero
c5ad7a3d92 *** empty log message *** 2008-04-05 21:08:50 +00:00
Chong Yidong
c36e15db97 * minibuf.c (Fassoc_string): Tweak docstring. 2008-04-05 21:03:40 +00:00
Eli Zaretskii
f3a3640be8 (Ffile_attributes) [WINDOWSNT]: Force inode be positive. 2008-04-05 19:10:08 +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