• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/emacs-92/emacs/src/

Lines Matching +refs:minibuffer +refs:window

34 #include "window.h"
42 The first element of the list is used for the outermost minibuffer
43 invocation, the next element is used for a recursive minibuffer
45 minibuffer recursions are encountered. */
49 /* Data to remember during recursive minibuffer invocations */
53 /* Depth in minibuffer invocations. */
61 /* The maximum length of a minibuffer history. */
77 /* Nonzero means let functions called when within a minibuffer
87 /* help-form is bound to this while in the minibuffer. */
91 /* Variable which is the history list to add minibuffer values to. */
99 /* Text properties that are added to minibuffer prompts.
109 /* Normal hooks for entry to and exit from minibuffer. */
125 /* Nonzero means raise the minibuffer frame when the minibuffer
160 /* Put minibuf on currently selected frame's minibuffer.
161 We do this whenever the user starts a new minibuffer
162 or when a minibuffer exits. */
174 /* I don't think that any frames may validly have a null minibuffer
175 window anymore. */
180 minibuffer window of the unused termcap window created in
181 init_window_once. That window doesn't have a buffer. */
188 /* Make sure no other frame has a minibuffer as its selected window,
191 and that only if the minibuffer is active. */
211 DEFUN ("set-minibuffer-window", Fset_minibuffer_window,
213 doc: /* Specify which minibuffer window to use for the minibuffer.
214 This affects where the minibuffer is displayed if you put text in it
215 without invoking the usual minibuffer commands. */)
216 (window)
217 Lisp_Object window;
219 CHECK_WINDOW (window);
220 if (! MINI_WINDOW_P (XWINDOW (window)))
221 error ("Window is not a minibuffer window");
223 minibuf_window = window;
225 return window;
230 /* Actual minibuffer invocation. */
348 doc: /* Return t if BUFFER is a minibuffer.
367 DEFUN ("minibuffer-prompt-end", Fminibuffer_prompt_end,
369 doc: /* Return the buffer position of the end of the minibuffer prompt.
370 Return (point-min) if current buffer is not a minibuffer. */)
389 DEFUN ("minibuffer-contents", Fminibuffer_contents,
391 doc: /* Return the user input in a minibuffer as a string.
392 If the current buffer is not a minibuffer, return its entire contents. */)
399 DEFUN ("minibuffer-contents-no-properties", Fminibuffer_contents_no_properties,
401 doc: /* Return the user input in a minibuffer as a string, without text-properties.
402 If the current buffer is not a minibuffer, return its entire contents. */)
409 DEFUN ("minibuffer-completion-contents", Fminibuffer_completion_contents,
411 doc: /* Return the user input in a minibuffer before point as a string.
413 If the current buffer is not a minibuffer, return its entire contents. */)
422 DEFUN ("delete-minibuffer-contents", Fdelete_minibuffer_contents,
424 doc: /* Delete all user input in a minibuffer.
425 If the current buffer is not a minibuffer, erase its entire contents. */)
436 /* Read from the minibuffer using keymap MAP and initial contents INITIAL,
456 if INHERIT_INPUT_METHOD is nonzero, the minibuffer inherits the
475 Lisp_Object mini_frame, ambient_dir, minibuffer, input_method;
491 in previous recursive minibuffer, but was not set explicitly
492 to t for this invocation, so set it to nil in this minibuffer.
494 specbind (intern ("minibuffer-completing-file-name"), Vminibuffer_completing_file_name);
542 error ("Command attempted to use minibuffer while in minibuffer");
544 /* If we're in another window, cancel the minibuffer that's active. */
546 build_string ("Command attempted to use minibuffer while in minibuffer"));
559 /* Choose the minibuffer window and frame, and take action on them. */
568 /* If the minibuffer window is on a different frame, save that
575 /* If the minibuffer is on an iconified or invisible frame,
582 /* We have to do this after saving the window configuration
585 /* Arrange to restore a number of minibuffer-related variables.
603 /* We are exiting the minibuffer one way or the other, so run the hook.
606 read_minibuf_unwind is fully executed even if exit-minibuffer-hook
617 /* If this minibuffer is reading a file name, that doesn't mean
619 completion code still need to know the minibuffer is completing a
621 "t" in this minibuffer, but "nil" in next minibuffer. */
633 /* Switch to the minibuffer. */
635 minibuffer = get_minibuffer (minibuf_level);
636 Fset_buffer (minibuffer);
638 /* If appropriate, copy enable-multibyte-characters into the minibuffer. */
643 for our minibuffer here. However, if you're typing a command at
644 a minibuffer-only frame when minibuf_level is zero, then buf IS
693 /* Display this minibuffer in the proper window. */
756 /* If cursor is on the minibuffer line,
769 /* Make minibuffer contents into a string. */
770 Fset_buffer (minibuffer);
776 /* VAL is the string of minibuffer text. */
840 in set-window-configuration. */
845 /* Return a buffer to be used as the minibuffer at depth `depth'.
847 used for nonrecursive minibuffer invocations */
905 /* This function is called on exiting minibuffer, whether normally or
906 not, and it restores the current window, buffer, etc. */
913 Lisp_Object window;
915 /* If this was a recursive minibuffer,
916 tie the minibuffer window back to the outer level minibuffer buffer. */
919 window = minibuf_window;
921 minibuffer when we reset the relevant variables. */
922 Fset_buffer (XWINDOW (window)->buffer);
924 /* Restore prompt, etc, from outer minibuffer level. */
946 /* Erase the minibuffer we were using at this level. */
959 mini-window back to its normal size. */
961 resize_mini_window (XWINDOW (window), 0);
963 /* Make sure minibuffer window is erased, not ignored. */
965 XSETFASTINT (XWINDOW (window)->last_modified, 0);
966 XSETFASTINT (XWINDOW (window)->last_overlay_modified, 0);
972 DEFUN ("read-from-minibuffer", Fread_from_minibuffer, Sread_from_minibuffer, 1, 7, 0,
973 doc: /* Read a string from the minibuffer, prompting with string PROMPT.
978 if omitted or nil, the default is `minibuffer-local-map'.
986 to use, and HISTPOS is the initial position for use by the minibuffer
991 for history commands; but, unless READ is non-nil, `read-from-minibuffer'
994 Seventh arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
996 If the variable `minibuffer-allow-text-properties' is non-nil,
998 were present in the minibuffer. Otherwise the value has no text properties.
1003 INITIAL-CONTENTS is a string to be inserted into the minibuffer before
1007 POSITION in the minibuffer. Any integer value less than or equal to
1049 DEFUN ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0,
1050 doc: /* Return a Lisp object read using the minibuffer, unevaluated.
1052 is a string to insert in the minibuffer before reading.
1054 arguments are used as in `read-from-minibuffer'.) */)
1064 DEFUN ("eval-minibuffer", Feval_minibuffer, Seval_minibuffer, 1, 2, 0,
1065 doc: /* Return value of Lisp expression read using the minibuffer.
1067 is a string to insert in the minibuffer before reading.
1069 arguments are used as in `read-from-minibuffer'.) */)
1078 /* Functions that use the minibuffer to read various things. */
1081 doc: /* Read a string from the minibuffer, prompting with string PROMPT.
1084 be nil in new code. It behaves as in `read-from-minibuffer'. See the
1088 See `read-from-minibuffer' for details of HISTORY argument.
1092 Fifth arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
1113 Such values are treated as in `read-from-minibuffer', but are normally
1115 Third arg INHERIT-INPUT-METHOD, if non-nil, means the minibuffer inherits
1720 doc: /* Read a string in the minibuffer, with completion.
1734 If INITIAL-INPUT is non-nil, insert it in the minibuffer initially,
1738 that this is different from `read-from-minibuffer' and related
1742 the minibuffer easily using \\[next-history-element].
1749 minibuffer history commands). For consistency, you should also
1758 If INHERIT-INPUT-METHOD is non-nil, the minibuffer inherits
2123 DEFUN ("minibuffer-complete", Fminibuffer_complete, Sminibuffer_complete, 0, 0, "",
2124 doc: /* Complete the minibuffer contents as far as possible.
2128 scroll the window of possible completions. */)
2132 Lisp_Object window, tem;
2139 window = Vminibuf_scroll_window;
2140 /* If there's a fresh completion window with a live buffer,
2141 and this command is repeated, scroll that window. */
2142 if (! NILP (window) && ! NILP (XWINDOW (window)->buffer)
2143 && !NILP (XBUFFER (XWINDOW (window)->buffer)->name))
2147 Fset_buffer (XWINDOW (window)->buffer);
2148 tem = Fpos_visible_in_window_p (make_number (ZV), window, Qnil);
2151 Fset_window_start (window, make_number (BEGV), Qnil);
2205 DEFUN ("minibuffer-complete-and-exit", Fminibuffer_complete_and_exit,
2207 doc: /* If the minibuffer contents is a valid completion then exit.
2272 DEFUN ("minibuffer-complete-word", Fminibuffer_complete_word, Sminibuffer_complete_word,
2274 doc: /* Complete the minibuffer contents at most a single word.
2436 /* Otherwise insert in minibuffer the chars we got */
2470 and the current buffer is not the minibuffer, the faces are not put.
2529 Sadly, the window it will appear in is not known
2664 DEFUN ("minibuffer-completion-help", Fminibuffer_completion_help, Sminibuffer_completion_help,
2666 doc: /* Display a list of possible completions of the current minibuffer contents. */)
2704 doc: /* Terminate minibuffer input. */)
2715 DEFUN ("exit-minibuffer", Fexit_minibuffer, Sexit_minibuffer, 0, 0, "",
2716 doc: /* Terminate this minibuffer argument. */)
2719 /* If the command that uses this has made modifications in the minibuffer,
2729 DEFUN ("minibuffer-depth", Fminibuffer_depth, Sminibuffer_depth, 0, 0, 0,
2730 doc: /* Return current depth of activations of minibuffer, a nonnegative integer. */)
2736 DEFUN ("minibuffer-prompt", Fminibuffer_prompt, Sminibuffer_prompt, 0, 0, 0,
2737 doc: /* Return the prompt string of the currently-active minibuffer.
2738 If no minibuffer is active, return nil. */)
2747 minibuffer contents. This is used to display things like
2788 DEFUN ("minibuffer-message", Fminibuffer_message, Sminibuffer_message,
2790 doc: /* Temporarily display STRING at the end of the minibuffer.
2791 The text is displayed for a period controlled by `minibuffer-message-timeout',
2822 Qminibuffer_default = intern ("minibuffer-default");
2826 Qminibuffer_completion_table = intern ("minibuffer-completion-table");
2829 Qminibuffer_completion_confirm = intern ("minibuffer-completion-confirm");
2832 Qminibuffer_completion_predicate = intern ("minibuffer-completion-predicate");
2844 Qminibuffer_history = intern ("minibuffer-history");
2851 Qminibuffer_setup_hook = intern ("minibuffer-setup-hook");
2854 Qminibuffer_exit_hook = intern ("minibuffer-exit-hook");
2876 DEFVAR_LISP ("minibuffer-setup-hook", &Vminibuffer_setup_hook,
2877 doc: /* Normal hook run just after entry to minibuffer. */);
2880 DEFVAR_LISP ("minibuffer-exit-hook", &Vminibuffer_exit_hook,
2881 doc: /* Normal hook run just after exit from minibuffer. */);
2899 If set to nil, minibuffer reading functions don't add new elements to the
2918 doc: /* *Non-nil means to allow minibuffer commands while in the minibuffer.
2919 This variable makes a difference whenever the minibuffer window is active. */);
2922 DEFVAR_LISP ("minibuffer-completion-table", &Vminibuffer_completion_table,
2923 doc: /* Alist or obarray used for completion in the minibuffer.
2937 DEFVAR_LISP ("minibuffer-completion-predicate", &Vminibuffer_completion_predicate,
2941 DEFVAR_LISP ("minibuffer-completion-confirm", &Vminibuffer_completion_confirm,
2942 doc: /* Non-nil means to demand confirmation of completion before exiting minibuffer. */);
2945 DEFVAR_LISP ("minibuffer-completing-file-name",
2950 DEFVAR_LISP ("minibuffer-help-form", &Vminibuffer_help_form,
2951 doc: /* Value that `help-form' takes on inside the minibuffer. */);
2954 DEFVAR_LISP ("minibuffer-history-variable", &Vminibuffer_history_variable,
2955 doc: /* History list symbol to add minibuffer values to.
2956 Each string of minibuffer input, as it appears on exit from the minibuffer,
2958 (set minibuffer-history-variable
2959 (cons STRING (symbol-value minibuffer-history-variable))) */);
2962 DEFVAR_LISP ("minibuffer-history-position", &Vminibuffer_history_position,
2966 DEFVAR_BOOL ("minibuffer-auto-raise", &minibuffer_auto_raise,
2967 doc: /* *Non-nil means entering the minibuffer raises the minibuffer's frame.
2980 DEFVAR_BOOL ("minibuffer-allow-text-properties",
2982 doc: /* Non-nil means `read-from-minibuffer' should not discard text properties.
2983 This also affects `read-string', but it does not affect `read-minibuffer',
2984 `read-no-blanks-input', or any of the functions that do minibuffer input
2988 DEFVAR_LISP ("minibuffer-prompt-properties", &Vminibuffer_prompt_properties,
2989 doc: /* Text properties that are added to minibuffer prompts.
3044 "exit-minibuffer");
3046 "exit-minibuffer");
3049 "exit-minibuffer");
3051 "exit-minibuffer");
3056 "minibuffer-complete");
3058 "minibuffer-complete-word");
3060 "minibuffer-completion-help");
3066 "minibuffer-complete-and-exit");
3068 "minibuffer-complete-and-exit");