aboutsummaryrefslogtreecommitdiffstats
path: root/src/minibuf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fcompleting_read): Rename arg INIT to INITIAL_INPUT.Richard M. Stallman1999-12-191-3/+5
|
* (Fall_completions): Doc fix.Richard M. Stallman1999-12-131-1/+1
|
* (do_completion, Fminibuffer_complete_word): UseGerd Moellmann1999-11-041-3/+3
| | | | Ferase_field instead of Fdelete_field.
* (string_to_object): New.Gerd Moellmann1999-11-031-24/+112
| | | | | | (read_minibuf_noninteractive): New. (read_minibuf): Call read_minibuf_noninteractive if noninteractive. Use string_to_object.
* more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engineKen Raeburn1999-10-251-7/+7
|
* (Fminibuffer_complete_and_exit): Supply value for newGerd Moellmann1999-10-171-52/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (Fminibuffer_complete_word): Calculate string byteKenichi Handa1999-09-301-2/+2
| | | | size correctly.
* (toplevel): Move include of stdio.h to other includes.Gerd Moellmann1999-09-201-2/+1
|
* (read_minibuf): Remove unused variables.Gerd Moellmann1999-09-161-7/+4
| | | | | | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. (do_completion): Move assignment out of conditional context. (Fdisplay_completion_list): Add parentheses to conditional expression.
* (choose_minibuf_frame): Don't try to set theGerd Moellmann1999-09-131-11/+19
| | | | | | | mini-buffer window's buffer, if the buffer is invalid. (choose_minibuf_frame): Change for Lisp_Object selected_frame. (read_minibuf): Ditto.
* (read_minibuf_unwind): Call resize_mini_window withGerd Moellmann1999-09-121-20/+17
| | | | | | | | | | | | | | | 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.
* (read_minibuf): Put all three properties on the same range--the whole prompt.Richard M. Stallman1999-09-081-4/+5
|
* (read_minibuf_unwind): Resize mini-window whenGerd Moellmann1999-09-031-0/+5
| | | | reaching minibuf_level 0.
* (read_minibuf): Flush display after setting cursor toGerd Moellmann1999-09-011-0/+2
| | | | column 0.
* Remove conditional compilation onGerd Moellmann1999-08-211-53/+23
| | | | | | | | | | | | 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.
* (read_minibuf): Reset echo message strings to nil.Gerd Moellmann1999-07-211-15/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (read_minibuf): Set the multibyteness of theRichard M. Stallman1999-07-021-4/+4
| | | | minibuffer before inserting `initial' string.
* Fix previous change.Richard M. Stallman1998-10-131-6/+21
|
* (Fdisplay_completion_list): Put on mouse-face properties.Richard M. Stallman1998-10-131-6/+27
|
* (Fminibuffer_complete): this_command renamed to Vthis_command.Richard M. Stallman1998-08-091-3/+3
|
* (Vminibuffer_completing_file_name): New var.Richard M. Stallman1998-07-021-2/+8
| | | | | | | (syms_of_minibuf): Set up Lisp variable. (Fminibuffer_complete_word): Test it, instead of checking specifically for Qread_file_name_internal. (Fcompleting_read): Likewise.
* (syms_of_minibuf): Initialize buffer-name-history.Karl Heuer1998-06-191-0/+1
|
* (Fcompleting_read): Escape bare newline in doc string.Erik Naggum1998-06-141-1/+1
|
* (syms_of_minibuf): Doc fix.Richard M. Stallman1998-05-201-1/+1
|
* (read_minibuf): If history list var is void, make it nil.Richard M. Stallman1998-05-191-2/+6
|
* (Fminibuffer_complete_word): Fix the string-comparison loop.Richard M. Stallman1998-05-131-3/+3
|
* (Fall_completions, Ftry_completion): Compare char sizes, not STRING_BYTES.Richard M. Stallman1998-05-121-2/+2
|
* (assoc_for_completion): Use Fcompare_strings.Richard M. Stallman1998-05-121-14/+27
| | | | | | | (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.
* (Qbuffer_name_history): New variable.Richard M. Stallman1998-05-091-2/+6
| | | | | (syms_of_minibuf): Initialize it. (Fread_buffer): Use that history list.
* (minibuf_conform_representation): New function.Richard M. Stallman1998-04-301-8/+28
| | | | | | | (Ftry_completion): Use it to return multibyte string if and only if the completion table has a multibyte string. (Fdisplay_completion_list): Convert string to unibyte before displaying it, if default is unibyte.
* (Ftry_completion): Use Fcompare_strings.Richard M. Stallman1998-04-201-43/+82
| | | | (Fall_completions, Fminibuffer_complete_word): Likewise.
* (Fself_insert_and_exit): Fix mixing of Lisp_Object andAndreas Schwab1998-04-141-1/+1
| | | | int.
* Use STRING_BYTES and SET_STRING_BYTES.Richard M. Stallman1998-03-211-22/+22
|
* Reorder args of del_range_both.Karl Heuer1998-02-251-1/+1
|
* (read_minibuf): Do use DEFALT in place of empty inputRichard M. Stallman1998-02-171-7/+11
| | | | | when when expflag is nonzero. (Fread_no_blanks_input): Arg INIT renamed to INITIAL.
* (read_minibuf): If input is empty, return empty string.Richard M. Stallman1998-02-081-9/+14
| | | | | (Fread_string): Return DEFAULT_VALUE here, if input is empty. (Fcompleting_read): Likewise.
* (Fread-string): Doc fix.Stephen Eglen1998-01-221-2/+5
| | | | (Fread-from-minibuffer): Doc fix.
* Update copyright year.Richard M. Stallman1998-01-211-1/+1
|
* (Fminibuffer_complete_word): Fix a bug of referingKenichi Handa1998-01-121-1/+1
| | | | `i'. We must refer `i_byte' instead.
* (read_minibuf): Handle bytes vs charsRichard M. Stallman1998-01-051-4/+14
| | | | when checking for junk at end of expression.
* (test_completion): Pass both kinds of size to oblookup.Richard M. Stallman1998-01-051-40/+56
| | | | | | | (Fminibuffer_complete_word): Scan string bytes and chars. Pass new args to insert_from_string. (Ftry_completion): Use size_byte while comparing. (Fall_completions): Use size_byte while comparing.
* (Fcompleting_read): Doc fix.Richard M. Stallman1998-01-021-1/+1
|
* (Fminibuffer_complete_word): Handle bytes vs charactersRichard M. Stallman1997-12-311-19/+20
| | | | | | | when comparing buffer against string. (temp_echo_area_glyphs): Save, update, delete text using byte and char positions. (read_minibuf): BACKUP_N counts bytes.
* (Fread_command, Fread_variable): Fix previous change.Richard M. Stallman1997-12-271-2/+2
|
* (Fread_variable): If DEFAULT_VALUE is symbol, use its name.Richard M. Stallman1997-12-211-7/+29
| | | | (Fread_command): Likewise.
* (Vread_buffer_function): New var.Karl Heuer1997-12-191-7/+27
| | | | | (syms_of_minibuf): Set up Lisp var. (Fread_buffer): Use Vread_buffer_function.
* (read_minibuf_unwind): Fix return type and return nil.Andreas Schwab1997-11-211-2/+8
| | | | | | | (temp_echo_area_glyphs): Define as returning nothing. (init_minibuf_once): Likewise. (syms_of_minibuf): Likewise. (keys_of_minibuf): Likewise.
* (read_minibuf): Return DEFALT here, if minibuffer is empty.Karl Heuer1997-10-161-4/+4
| | | | (Fread_from_minibuffer, Fcompleting_read): Don't do that here.
* (syms_of_minibuf): Doc fix.Richard M. Stallman1997-09-131-3/+1
|
* (read_minibuf): Fix use of Ffboundp.Richard M. Stallman1997-09-031-2/+3
|