summaryrefslogtreecommitdiff
path: root/doc/emacs/mini.texi
Commit message (Collapse)AuthorAge
* Add `yes-or-no-prompt' user optionRobert Pluim2023-01-23
| | | | | | | | | | | | | This implements Bug#60312 * src/fns.c (syms_of_fns): Define `yes-or-no-prompt' Lisp variable. (Fyes_or_no_p): Use `yes-or-no-prompt' instead of a hard-coded string. * lisp/cus-start.el (standard): Add custom specification for it. * doc/emacs/mini.texi (Yes or No Prompts): Document `yes-or-no-prompt' * doc/lispref/minibuf.texi (Yes-or-No Queries): And here. * etc/NEWS: Announce the new option.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-01
|
* Make minibuffer-eldef-shorten-default obsoleteStefan Kangas2022-09-02
| | | | | | | * lisp/minibuf-eldef.el (minibuffer-eldef-shorten-default): Make variable obsolete in favor of 'minibuffer-default-prompt-format'. * doc/emacs/mini.texi (Basic Minibuffer): Delete above obsolete variable (bug#50935).
* Merge from origin/emacs-28Stefan Kangas2022-08-15
|\ | | | | | | | | 9d0dba44da ; * doc/lispintro/emacs-lisp-intro.texi: Fix typo. 0e336fa51f ; Improve documentation of minibuffer history wrt completion
| * ; Improve documentation of minibuffer history wrt completionEli Zaretskii2022-08-14
| | | | | | | | | | | | * doc/emacs/mini.texi (Minibuffer History): Mention explicitly that minibuffer history is related also to completion candidates. Improve indexing. (Bug#57163)
* | ; Fix documentation of completion optionsEli Zaretskii2022-05-09
| | | | | | | | | | * doc/emacs/mini.texi (Completion Commands, Completion Options): Improve and clarify the wording.
* | Minor documentation improvements for completions commands and optionsJuri Linkov2022-05-08
| | | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Mention prefix argument of choose-completion. (Completion Options): Improve documentation of completions-format and completions-sort.
* | ; * doc/emacs/mini.texi (Completion Commands): Remove duplicate @findex.Juri Linkov2022-04-18
| |
* | ; * doc/emacs/mini.texi (Completion Commands): Fix markup.Eli Zaretskii2022-04-16
| |
* | Document completions-sortLars Ingebrigtsen2022-04-16
| | | | | | | | * doc/emacs/mini.texi (Completion Options): Document completions-sort.
* | Mention completion-wrap-movement in relevant commandsLars Ingebrigtsen2022-04-16
| | | | | | | | | | * lisp/simple.el (previous-completion, next-completion): Mention `completion-wrap-movement'.
* | Document minibuffer-completion-auto-choose/M-up/M-downLars Ingebrigtsen2022-04-16
| | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Document minibuffer-completion-auto-choose/M-up/M-down.
* | Improve documentation of 'completion-auto-select'Eli Zaretskii2022-03-25
| | | | | | | | | | | | * lisp/simple.el (completion-auto-select): * doc/emacs/mini.texi (Completion Options): Improve documentation and description of customization options of 'completion-auto-select'.
* | Small fixes for the new feature 'second-tab' of 'completion-auto-select'Juri Linkov2022-03-24
| | | | | | | | * lisp/simple.el (completion-auto-select): Extend the docstring.
* | Add documentation entries for completion-auto-select user option.Jimmy Aguilar Mena2022-03-24
| |
* | Fix Completion Options typoLars Ingebrigtsen2022-03-22
| | | | | | | | * doc/emacs/mini.texi (Completion Options): Fix typo.
* | Fix documentation of the new completion-related featuresEli Zaretskii2022-03-22
| | | | | | | | | | | | | | | | * etc/NEWS: * lisp/minibuffer.el (completion-auto-help): * doc/lispref/text.texi (Special Properties): * doc/emacs/mini.texi (Completion Options): Fix wording of recently added documentation and customization options.
* | Small fixes for new completions featuresJuri Linkov2022-03-21
| | | | | | | | | | | | | | * lisp/minibuffer.el (completions-header-format): Rename from completion-header-format. (completions-highlight, completions-highlight-face): Move up before first use.
* | Make the completion-header-format info more precise.Jimmy Aguilar Mena2022-03-13
| |
* | Use the new cursor-face feature to highlight completions.Jimmy Aguilar Mena2022-03-13
| | | | | | | | | | * lisp/minibuffer.el (completions-highlight-face) : New custom. (completions-highlight-mode) : Removed
* | Rename completion-header-string to completion-header-formatJimmy Aguilar Mena2022-03-13
| | | | | | | | And use a propertized default value.
* | Add completion-header-string.Jimmy Aguilar Mena2022-03-13
| | | | | | | | | | | | * doc/emacs/mini.texi (completion-header-string): Remove completion-header-text-property-list and completion-lazy-count. (completion-header-string): Substitutes the removed variable.
* | Add two new options for completions.Jimmy Aguilar Mena2022-03-12
| | | | | | | | | | | | | | * doc/emacs/mini.texi (completion-lazy-count): (completion-header-text-property-list) : New customs Updated NEWS and manual.
* | Fix new option completions-max-height and new values for completion-auto-helpJuri Linkov2022-03-10
| | | | | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Options): Fix pxref for "Buffer Display Action Alists". * lisp/minibuffer.el (completion-auto-help): Explain new values in docstring. (completions-max-height): Use choice to allow nil.
* | Add new mode completions-highlight-mode.Jimmy Aguilar Mena2022-03-10
| |
* | completions-max-height new custom variable.Jimmy Aguilar Mena2022-03-10
| |
* | completion-auto-help new values.Jimmy Aguilar Mena2022-03-10
| | | | | | | | Added also entries to news and manual
* | Simplify Minibuffer Edit exampleLars Ingebrigtsen2022-02-20
| | | | | | | | | | * doc/emacs/mini.texi (Minibuffer Edit): Say how to disable SPC and ? completion (bug#36745).
* | Add instructions on disabling SPC completion to Minibuffer EditLars Ingebrigtsen2022-02-20
|/ | | | | * doc/emacs/mini.texi (Minibuffer Edit): Say how to disable SPC and ? completion (bug#36745).
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-01
|
* Minor improvement in user documentation of completion styleEli Zaretskii2021-12-30
| | | | | * doc/emacs/mini.texi (Completion Styles): Add reference to "Completion Variables" in the ELisp manual. (Bug#52901)
* Document minibuffer-default-prompt-format in manualStefan Kangas2021-10-05
| | | | | * doc/emacs/mini.texi (Basic Minibuffer): Mention minibuffer-default-prompt-format. (Bug#50935)
* Document `completions-format'Lars Ingebrigtsen2021-06-15
| | | | | | | * doc/emacs/mini.texi (Completion Options): Document `completions-format'. * lisp/simple.el (completion-list-mode): Mention in (bug#49003).
* Further improvements to completion-list-mode-mapGregory Heytings2021-05-25
| | | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Mention the change, and mention the 'n' and 'p' keys bound to 'next-completion' and 'previous-completion'. (bug#47699). * lisp/minibuffer.el (minibuffer-local-completion-map): Change the M-g key to M-g M-c. * lisp/simple.el (completion-list-mode-map): Change the M-g key to M-g M-c. (read-expression-map): Bind M-g M-c to read-expression-switch-to-completions. (read-expression-switch-to-completions): New function.
* Improve completion-list-mode-mapGregory Heytings2021-05-25
| | | | | | | | | | | | | * doc/emacs/mini.texi (Completion Commands): Mention it. * lisp/minibuffer.el (minibuffer-local-completion-map): Add the M-g key for switch-to-completion (bug#47699). * lisp/simple.el (completion-list-mode-map): Make special-mode-map its parent, unbind the 'g' revert key, add the 'n' and 'p' keys for next-completion and previous-completion, and the M-g key for switch-to-minibuffer. (switch-to-minibuffer): New function.
* Introduce and use minibuffer-mode. This fixes bug #47150Alan Mackenzie2021-04-20
| | | | | | | | | | | | | | | | | | | * lisp/minibuffer.el (minibuffer-mode): New derived mode. * src/minibuf.c (syms_of_minibuf): New DEFSYMs Qminibuffer_mode, Qminibuffer_inactive_mode, Qminibuffer_completing_file_name, Qselect_frame_set_input_focus, Qadd_to_history. (read_minibuf, set_minibuffer_mode, read_minibuf_unwind): Use the new DEFSYMs in place of continual interning. (set_minibuffer_mode): Put an active minibuffer into minibuffer-mode rather than fundamental-mode. * doc/emacs/mini.texi (Minibuffer Edit): Mention minibuffer-mode. * doc/lispref/minibuf.texi (Intro to Minibuffers): Add a paragraph about minibuffer-mode. * etc/NEWS (Incompatible Lisp Changes in Emacs 28.1): Add an entry.
* Merge from origin/emacs-27Glenn Morris2021-04-16
|\ | | | | | | | | eedad01b4b (origin/emacs-27) Fix typos in manuals 24d214652e Fix description of momentary message display
| * Fix description of momentary message displayEli Zaretskii2021-04-10
| | | | | | | | | | | | * doc/emacs/mini.texi (Basic Minibuffer): Update the description of momentary message display while minibuffer is active. (Bug#47689)
* | Prevent open minibuffers getting lost when their frame gets deletedAlan Mackenzie2021-03-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This happened with minibuffer-follows-selected-frame set to t. * doc/emacs/mini.texi (Basic Minibuffer): State where a command's action takes place when a minibuffer's frame has been deleted. * lisp/window.el (window--before-delete-windows, record-window-buffer): Take into account that minibuffers are now recorded on w->prev_buffers field. * src/fns.c (merge_c): New version of `merge' taking a C function, rather than a Lisp function as the comparison function. * src/frame.c (do_switch_frame): Pass arguments sf and for_deletion to move_minibuffers_onnto_frame. * src/lisp.h (top level): Declare merge_c and move_minibuffers_onto_selected_frame. * src/minibuf.c (MB_frame): New Lisp_Object recording the minibuffer's frame. (choose_minibuf_frame): Remove all code except that which sets minibuf_window to the current frame's minibuffer. (minibuffer_ent_greater): New comparison function, passed to merge_c. (zip_minibuffer_stacks): New function. (move_minibuffers_onto_frame): Renamed from `move_minibuffer_onto_frame' given two arguments, the old frame and for_deletion, and simplified. Minibuffers are now stacked in the mini-window's ->prev_buffers field. (read_minibuf): Several detailed amendments. (exp_MB_frame): New Lisp_Object, the expired minibuffer's frame. (read_minibuf_unwind): Search for the expired minibuffer's frame, rather than taking it from (unreliable) variables. Switch temporarily to this frame for tidying up operations. (minibuffer_unwind): New function which pops a stacked minibuffer. (syms_of_minibuf): Call staticpro for the two new Lisp variables. * src/window.c (Fset_window_configuration): Don't record minibuffers with record-window-buffer. * src/xdisp.c (gui_consider_frame_title): Remove redundant Fselect_window, which caused an unwanted frame switch. Amend the arguments to format_mode_line_unwind_data to match.
* | Merge from origin/emacs-27Glenn Morris2021-03-12
|\| | | | | | | | | fc83f37951 Fix initialization of 'while-no-input-ignore-events' 8f603da44c Update documentation of reading passwords
| * Update documentation of reading passwordsEli Zaretskii2021-03-04
| | | | | | | | | | * doc/emacs/mini.texi (Passwords): Update to match the modified implementation. (Bug#46902) Add indexing.
| * Update copyright year to 2021Paul Eggert2021-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* | Fix incompleteness in the implementation of minibuffer-follows-selected-frameAlan Mackenzie2021-01-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, add a new value to the variable, and fix several bugs apparent with the implementation up till now. * doc/emacs/mini.texi (Basic Minibuffer): Add a description of the new non-nil, non-t value of minibuffer-follows-selected-frame. * doc/emacs/trouble.texi (Quitting): Add a description of how C-g handles recursive minibuffers when typed in one which isn't the most nested. * doc/lispref/minibuf.texi (Intro to Minibuffers): Add an @dfn for "active minibuffer". (Minibuffer Commands): Document that exit-minibuffer throws an error when not invoked from the innermost Minibuffer. (Recursive Mini): Amend the description of the visibility of outer level minibuffers. (Minibuffer Misc): In the description of the minibuffer hooks, replace "the minibuffer" with "a minibuffer". * etc/NEWS (Entry announcing minibuffer-follows-selected-frame): Add a description of the new non-nil, non-t value. * lisp/cus-start.el (top level): make the customize entry for minibuffer-follows-selected-frame a choice between three entries. * lisp/minibuffer.el (exit-minibuffer): throw an error when we're not in the most nested minibuffer. (top level): Bind C-g to abort-minibuffers in minibuffer-local-map. * lisp/window.el (window-deletable-p): return the symbol `frame' when (amongst other things) minibuffer-follows-selected-frame is t. * src/eval.c (internal_catch): Add a mechanism to (throw 'exit t) repeatedly when the throw currently being processed doesn't terminate the current minibuffer. * src/lisp.h (this_minibuffer_depth): New extern declaration (minibuf_level): extern declaration moved here from window.h. * src/minibuf.c (minibuffer_follows_frame, minibuf_stays_put) (minibuf_moves_frame_when_opened): New and amended functions to query the value of minibuffer-follows-selected-frame. (choose_minibuf_frame): check (minibuf > 1) in place of (minibufer > 0) at a particular place. At another place, check that an alleged frame is so and is live. Before selecting a non-miniwindow on a different frame, ensure it really is a different frame. (move_minibuffer_onto_frame): Stack up all recursive minibuffers on the target frame. Check the minibuf_window isn't in the old frame before setting that frame's miniwindow to an inactive minibuffer. (Finnermost_minibuffer_p, Fabort_minibuffers): New primitives. (this_minibuffer_depth): New function. (read_minibuf): Record the calling frame in a variable, and switch back to it after the recursive edit has terminated normally, using select-frame-set-input-focus. Stack up all the recursive minibuffers on the miniwindow where a new minibuffer is being opened. After the recursive edit, switch the selected window away from the expired minibuffer's window. (nth_minibuffer): New function. (minibuffer-follows-selected-frame): Change from a DEFVAR_BOOL to a DEFVAR_LISP. * src/window.c (decode_next_window_args): Set *minibuf to w's mini-window's content when that content is a minibuffer. * src/window.h (minibuf_level) Declaration moved from here to lisp.h.
* | Update copyright year to 2021Paul Eggert2021-01-01
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Allow minibuffer to stay in its original frame. Tidy up this area.Alan Mackenzie2020-11-05
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/mini.texi (Basic Minibuffer): Add an entry for minibuffer-follows-selected-frame. * doc/lispref/minibuf.texi (Minibuffer Misc): Describe the new parameter to minibufferp, LIVE. * etc/NEWS: Add an entry describing the new minibuffer strategy. * lisp/cus-start.el (minibuffer-prompt-properties--setter): Add an entry for minibuffer-follows-selected-frame. * lisp/minibuffer.el (minibuffer-message): Check for the current buffer being an _active_ minibuffer rather than merely a minibuffer. * src/frame.c (do_switch_frame): Call move_minibuffer_onto_frame. * src/lisp.h (Top level): Add prototypes for move_minibuffer_onto_frame and is_minibuffer. * src/minibuf.c (minibuf_follows_frame): New function which ignores local and let-bound values of minibuffer-follows-selected-frame. (choose_minibuf_frame): Reformulate this function to reuse a minibuffer window where possible, and to ensure no other frame has its minibuffer current, but only when `minibuffer-follows-selected-frame'. (move_minibuffer_onto_frame): New function. (live_minibuffer_p): New function. (Fminibufferp): Add a new &optional parameter LIVE. Reformulate, possibly calling live_minibuffer_p. (read_minibuf): move the incrementation of minibuf_level to before the call of choose_minibuf_frame. Empty the miniwindows of frames without an active minibuffer, rather than of all but the current frame. (is_minibuffer): New function. (read_minibuf_unwind): Note the miniwindow being restored and resize all other miniwindows to zero size. (minibuffer-follows-selected-frame): New configuration variable. * src/window.c (candidate_window_p): In some scenarios, check the miniwindow holds an active minibuffer. * src/xdisp.c (get_window_cursor_type): Suppress the cursor for non-active miniwindows, regardless of minibuf_level.
* Document the 'flex' completion styleEli Zaretskii2020-08-15
| | | | | * doc/emacs/mini.texi (Completion Styles): Document the 'flex' completion style. (Bug#42763)
* ; * doc/emacs/mini.texi (Yes or No Prompts): Fix last change.Eli Zaretskii2020-03-03
|
* * doc/emacs/mini.texi (Yes or No Prompts): 'y-or-n-p' now uses the minibuffer.Juri Linkov2020-03-03
|
* Update copyright year to 2020Paul Eggert2020-01-01
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* * doc/emacs/mini.texi (Minibuffer Edit): Add minibuffer-depth-indicate-mode.Juri Linkov2019-12-09
| | | | | | | | | | * doc/emacs/search.texi (Regexp Backslash): Change xref from "(elisp) Syntax Tables" to "(elisp) Syntax Class Table". * doc/lispref/display.texi (Other Display Specs): Change xref from "Images" to "Image Descriptors". (bug#38519)