1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 15:21:51 -08:00
Commit graph

212 commits

Author SHA1 Message Date
Ken Raeburn
0c21eeeb5e * minibuf.c: Include intervals.h. 2000-12-05 20:36:44 +00:00
Miles Bader
cc64f5c9e6 (Vminibuffer_prompt_properties): New variable.
(syms_of_minibuf): Initialize it.
(read_minibuf): Add properties from Vminibuffer_prompt_properties
to prompt, don't make read-only.
2000-11-21 15:57:34 +00:00
Miles Bader
4e6b720485 (read_minibuf): Reset the undo history just before starting the recursive-edit. 2000-10-31 06:37:58 +00:00
Stefan Monnier
020676925c * lisp.h (KEYMAPP): New macro.
(get_keymap): Remove.
(get_keymap_1): Rename get_keymap.
* keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
* xterm.c (note_mode_line_highlight): Use KEYMAPP.
* xmenu.c (single_submenu): Use KEYMAPP.
(Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
Use KEYMAPP rather than Fkeymapp.
* w32term.c (note_mode_line_highlight): Use KEYMAPP.
* w32menu.c (True, False): Remove (use TRUE and FALSE instead).
(Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
Use KEYMAPP rather than Fkeymapp.
(single_submenu): Use KEYMAPP.
(w32_menu_show, w32_dialog_show): Use TRUE.
* minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
* keymap.c (KEYMAPP): Remove (moved to lisp.h).
(Fkeymapp): Use KEYMAPP.
(get_keymap): Rename from get_keymap_1.  Remove old def.
Return t when autoload=0 and error=0 and the keymap needs autoloading.
(Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
(Fminor_mode_key_binding): Don't raise an error if the binding
is not a keymap.
(Fuse_global_map, Fuse_local_map): Allow autoloading.
(Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
* keyboard.c (read_char): get_keymap_1 -> get_keymap.
Allow Vspecial_event_map to be autoloaded.
(menu_bar_items): Fetch the keymap rather than using keymapp.
(menu_bar_one_keymap): No need to follow func-indirect any more.
(parse_menu_item): get_keymap_1 -> get_keymap.
(tool_bar_items): Fetch the keymap rather than using keymapp.
(read_key_sequence): Use KEYMAPP.
* intervals.c (get_local_map): Use get_keymap rather than following
function-indirections explicitly.
* doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
2000-10-27 22:20:19 +00:00
Miles Bader
7d7c38618c (Fminibuffer_complete): Pass nil for FULLY argument to
Fpos_visible_in_window_p to maintain old behavior.
2000-10-23 13:46:41 +00:00
Eli Zaretskii
18ad482131 (Fminibuffer_complete): Call Fpos_visible_in_window_p
with an additional argument of Qt.
2000-10-21 08:57:18 +00:00
Gerd Moellmann
6bbd7a2959 Avoid some more compiler warnings. 2000-09-21 20:54:57 +00:00
Kenichi Handa
7892a68b98 (do_completion): Always use compare-string, not string-equal because
the latter doesn't pay attention to multibyteness of strings.
2000-08-24 03:24:13 +00:00
Stefan Monnier
739cc39175 (Vcompletion_auto_help): Renamed from `auto_help'.
(do_completion, Fminibuffer_complete_word): Use it.
(syms_of_minibuf): Turn completion-auto-help into a proper Lisp
var so it can take non-boolean values.
2000-08-22 22:49:22 +00:00
Andrew Innes
2538fae4f8 Include keyboard.h before frame.h. 2000-08-22 22:41:00 +00:00
Miles Bader
6e69ab8c7b (do_completion): Try again if we rewrite the input string, but no
completion was done, so that any completion message will be correct.
2000-08-20 17:12:03 +00:00
Gerd Moellmann
01cce3e757 (do_completion): Use EQ instead of != to compare
Lisp_Objects.
2000-08-18 04:55:28 +00:00
Miles Bader
0c80756e77 (do_completion): Don't consider a simple change of case as `completion'. 2000-08-08 16:30:54 +00:00
Ken Raeburn
7c752c8099 make_number/XINT/XUINT conversions; EQ/== fixes; ==Qnil -> NILP 2000-04-05 17:29:31 +00:00
Gerd Moellmann
a1c5aa96e2 (Fminibuffer_complete): Set point to ZV if finding
a sole completion.
2000-03-15 19:58:19 +00:00
Gerd Moellmann
9994cc693b (Fminibuffer_complete): Move point to ZV when input is
complete but not unique.
2000-03-07 10:31:12 +00:00
Gerd Moellmann
e5baa1a7d2 (read_minibuf): Cancel busy-cursor. 2000-02-25 13:31:28 +00:00
Stefan Monnier
b9b84fd34d (Ftry_completion, Fall_completions): Add a reference to
`completion-regexp-list' in the docstring.
2000-02-14 23:36:15 +00:00
Dave Love
be95a9b666 (read_minibuf_noninteractive): Remove undeclared gcpro1, gcpro2.
(read_minibuf): Deal with allow_props correctly.
2000-02-04 17:31:33 +00:00
Richard M. Stallman
7e4639db61 (Ftry_completion): Doc fix. 2000-01-11 17:35:53 +00:00
Gerd Moellmann
834938d20f (Fcompleting_read): Doc fix. 2000-01-07 13:56:00 +00:00
Richard M. Stallman
d43f85c277 (Fcompleting_read): Rename arg INIT to INITIAL_INPUT. 1999-12-19 19:13:08 +00:00
Richard M. Stallman
d3887e33a9 (Fall_completions): Doc fix. 1999-12-13 03:50:00 +00:00
Gerd Moellmann
98cbb9a3dd (do_completion, Fminibuffer_complete_word): Use
Ferase_field instead of Fdelete_field.
1999-11-04 20:30:49 +00:00
Gerd Moellmann
edfef19957 (string_to_object): New.
(read_minibuf_noninteractive): New.
(read_minibuf): Call read_minibuf_noninteractive if
noninteractive.  Use string_to_object.
1999-11-03 12:41:38 +00:00
Ken Raeburn
7539e11fca more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engine 1999-10-25 04:58:18 +00:00
Gerd Moellmann
8e9968c634 (Fminibuffer_complete_and_exit): Supply value for new
ESCAPE_FROM_EDGE parameter to Ffield_beginning.
(Fminibuffer_complete_word): Use
Ffield_beginning to find the prompt end.
(Fminibuffer_complete_and_exit): Test for an empty
input string by seeing where the field begins, instead of
looking at text-properties.
(read_minibuf): Don't save minibuffer prompt length on
minibuf_save_list.
Don't initialize minibuffer prompt length.
Wrap prompt text-properties around the entire prompt.
Add 'prompt text-property to prompt.
Get final value with Ffield_string instead of make_buffer_string.
(read_minibuf_unwind): Don't restore minibuffer prompt length from
minibuf_save_list.
(do_completion): Get minibuffer input with Ffield_string
instead of Fbuffer_string.
Erase minibuffer input with Ferase_field instead of erase_buffer.
(Fminibuffer_complete_and_exit): Likewise.
Test whether buffer is empty by looking for the 'prompt text
property at the end.
Set prompt length by looking for the end of the prompt text property,
and save prompt length for later use (since there is no longer a
buffer variable to get it from).
(Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
(syms_of_minibuf): Remove initializations of
Sminibuffer_prompt_width and Sminibuffer_prompt_end.
1999-10-17 12:55:49 +00:00
Kenichi Handa
54643b2c49 (Fminibuffer_complete_word): Calculate string byte
size correctly.
1999-09-30 04:19:45 +00:00
Gerd Moellmann
3f708f4c75 (toplevel): Move include of stdio.h to other includes. 1999-09-20 23:18:49 +00:00
Gerd Moellmann
13c67cc645 (read_minibuf): Remove unused variables.
(read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
(do_completion): Move assignment out of conditional context.
(Fdisplay_completion_list): Add parentheses to conditional expression.
1999-09-16 12:52:20 +00:00
Gerd Moellmann
a4aafc5404 (choose_minibuf_frame): Don't try to set the
mini-buffer window's buffer, if the buffer is invalid.
(choose_minibuf_frame): Change for Lisp_Object
selected_frame.
(read_minibuf): Ditto.
1999-09-13 11:13:47 +00:00
Gerd Moellmann
1e3f16d5eb (read_minibuf_unwind): Call resize_mini_window with
new parameter.
(read_minibuf): Use prompt_end_charpos instead
of minibuffer_prompt_length.
(read_minibuf_unwind): Ditto.
(Fminibuffer_complete_and_exit): Ditto.
(Fminibuffer_complete_word): Ditto.
(Fminibuffer_prompt_end): Ditto.
(read_minibuf): Return mini-buffer contents
without the prompt.
(read_minibuf): Set minibuf_prompt_width to the
current column after inserting prompt.
(Fminibuffer_prompt_width): Return minibuf_prompt_width.
1999-09-12 20:21:55 +00:00
Richard M. Stallman
fbd1209a4a (read_minibuf): Put all three properties on the same range--the whole prompt. 1999-09-08 21:14:25 +00:00
Gerd Moellmann
544e358dca (read_minibuf_unwind): Resize mini-window when
reaching minibuf_level 0.
1999-09-03 15:52:10 +00:00
Gerd Moellmann
337aaf1fda (read_minibuf): Flush display after setting cursor to
column 0.
1999-09-01 13:37:07 +00:00
Gerd Moellmann
39e98b382b Remove conditional compilation on
NO_PROMPT_IN_BUFFER.
(Fminibuffer_prompt_end): New.
(syms_of_minibuf): Defsubr it.  Remove
minibuffer-prompt-in-buffer.
(Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
Extend documentation.
(read_minibuf): Use clear_message instead of
setting echo_area_glyphs.
(Fminibuffer_completion_help): Ditto.
1999-08-21 19:30:16 +00:00
Gerd Moellmann
279cf52c7f (read_minibuf): Reset echo message strings to nil.
(Fminibuffer_completion_help): Ditto.
(Fminibuffer_complete_word): Fix computation of
i_byte when prompts are inserted into minibuffers.
(read_minibuf): Use minibuf_prompt instead of prompt.
(read_minibuf): Add front-sticky text property for prompt.
(read_minibuf_unwind): Return Lisp_Object.
(read_minibuf): Put access to minibuffer_prompt_length
in #if PROMPT_IN_BUFFER.
(minibuffer-prompt-in-buffer): Bound if
PROMPT_IN_BUFFER.
(read_minibuf): Save the value of
minibuffer_prompt_length in minibuf_save_list.
(read_minibuf_unwind): Restore minibuffer_prompt_length.
(Fminibuffer_prompt_width): Return value from
current_buffer if PROMPT_IN_BUFFER.
(read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
mini-buffer and make it read-only.
(Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
minibuffer_prompt_length instead of BEGV.
(Fminibuffer_complete_word): Ditto.
(Fminibuffer_complete_word): Ditto.
(read_minibuf): Conditionally insert prompt into
buffer instead of handling prompts specially.  Change other
functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
(read_minibuf): Set MUST_BE_UPDATED_P instead of
building frame matrix.
(read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
(read_minibuf): Build frame matrix.
1999-07-21 21:43:52 +00:00
Richard M. Stallman
094d978996 (read_minibuf): Set the multibyteness of the
minibuffer before inserting `initial' string.
1999-07-02 12:15:14 +00:00
Richard M. Stallman
4b37311e13 Fix previous change. 1998-10-13 23:54:54 +00:00
Richard M. Stallman
5744fa7c02 (Fdisplay_completion_list): Put on mouse-face properties. 1998-10-13 21:10:10 +00:00
Richard M. Stallman
df902b62cd (Fminibuffer_complete): this_command renamed to Vthis_command. 1998-08-09 21:56:16 +00:00
Richard M. Stallman
ccf330a66b (Vminibuffer_completing_file_name): New var.
(syms_of_minibuf): Set up Lisp variable.
(Fminibuffer_complete_word): Test it, instead of checking
specifically for Qread_file_name_internal.
(Fcompleting_read): Likewise.
1998-07-02 07:01:21 +00:00
Karl Heuer
33d0a17f04 (syms_of_minibuf): Initialize buffer-name-history. 1998-06-19 16:53:40 +00:00
Erik Naggum
60e6659c30 (Fcompleting_read): Escape bare newline in doc string. 1998-06-14 08:37:52 +00:00
Richard M. Stallman
e9cccb7183 (syms_of_minibuf): Doc fix. 1998-05-20 03:01:19 +00:00
Richard M. Stallman
c6d6572475 (read_minibuf): If history list var is void, make it nil. 1998-05-19 03:41:25 +00:00
Richard M. Stallman
669c6673fc (Fminibuffer_complete_word): Fix the string-comparison loop. 1998-05-13 00:30:55 +00:00
Richard M. Stallman
7d3159862c (Fall_completions, Ftry_completion): Compare char sizes, not STRING_BYTES. 1998-05-12 20:15:27 +00:00
Richard M. Stallman
9404446f1e (assoc_for_completion): Use Fcompare_strings.
(test_completion): In obarray, try both unibyte and multibyte strings.
(read_minibuf): Convert unibyte prompt to multi if minibuffer is multi.
(Fdisplay_completion_list): Convert unibyte to strings to multibyte
to conform to the buffer.
1998-05-12 02:48:51 +00:00
Richard M. Stallman
406e55df20 (Qbuffer_name_history): New variable.
(syms_of_minibuf): Initialize it.
(Fread_buffer): Use that history list.
1998-05-09 23:55:27 +00:00