diff options
| author | Juri Linkov | 2019-12-16 01:58:14 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-12-16 01:58:14 +0200 |
| commit | 7254b6346229a7b71b69f71e2d8eee113f02585a (patch) | |
| tree | cdf52783a50d34acd37a235ba7fae7644c7b1564 /src | |
| parent | 1d52883047f0dd9a52d41060e164237923864265 (diff) | |
| download | emacs-7254b6346229a7b71b69f71e2d8eee113f02585a.tar.gz emacs-7254b6346229a7b71b69f71e2d8eee113f02585a.zip | |
Revert aa89c84e00d8dc85100e6fedab7631c415e6364d (bug#38457)
* src/editfns.c (Fmessage): Don't use minibuffer-message.
(Fmessage_in_echo_area): Remove function message-in-echo-area.
(syms_of_editfns): Remove variable message-in-echo-area.
* lisp/isearch.el (isearch--momentary-message): Remove message-in-echo-area.
* lisp/minibuffer.el (minibuffer-message): Don't record message
in the *Messages* buffer.
(minibuffer-completion-help): Remove message-in-echo-area.
* lisp/subr.el (do-after-load-evaluation): Remove discard-input (bug#38560)
Diffstat (limited to 'src')
| -rw-r--r-- | src/editfns.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/editfns.c b/src/editfns.c index 72a9cdba7af..8fc866d391f 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -2875,59 +2875,9 @@ If the first argument is nil or the empty string, the function clears | |||
| 2875 | any existing message; this lets the minibuffer contents show. See | 2875 | any existing message; this lets the minibuffer contents show. See |
| 2876 | also `current-message'. | 2876 | also `current-message'. |
| 2877 | 2877 | ||
| 2878 | When the variable `message-in-echo-area' is non-nil, use the function | ||
| 2879 | `message-in-echo-area' to display the message in the echo area. | ||
| 2880 | Otherwise, when the minibuffer is active, use `minibuffer-message' | ||
| 2881 | to temporarily display the message at the end of the minibuffer. | ||
| 2882 | |||
| 2883 | usage: (message FORMAT-STRING &rest ARGS) */) | 2878 | usage: (message FORMAT-STRING &rest ARGS) */) |
| 2884 | (ptrdiff_t nargs, Lisp_Object *args) | 2879 | (ptrdiff_t nargs, Lisp_Object *args) |
| 2885 | { | 2880 | { |
| 2886 | if (NILP (Vmessage_in_echo_area) | ||
| 2887 | && !inhibit_message | ||
| 2888 | && !(NILP (args[0]) || (STRINGP (args[0]) && SBYTES (args[0]) == 0)) | ||
| 2889 | && WINDOW_LIVE_P (Factive_minibuffer_window ()) | ||
| 2890 | && WINDOW_LIVE_P (Fold_selected_window ()) | ||
| 2891 | && BUFFERP (Fwindow_buffer (Fold_selected_window ())) | ||
| 2892 | && !NILP (Fminibufferp (Fwindow_buffer (Fold_selected_window ())))) | ||
| 2893 | { | ||
| 2894 | ptrdiff_t count = SPECPDL_INDEX (); | ||
| 2895 | |||
| 2896 | /* Avoid possible recursion. */ | ||
| 2897 | specbind (Qmessage_in_echo_area, Qt); | ||
| 2898 | |||
| 2899 | record_unwind_current_buffer (); | ||
| 2900 | Fset_buffer (Fwindow_buffer (Fold_selected_window ())); | ||
| 2901 | |||
| 2902 | return unbind_to (count, CALLN (Fapply, intern ("minibuffer-message"), | ||
| 2903 | Flist (nargs, args))); | ||
| 2904 | } | ||
| 2905 | else | ||
| 2906 | return Fmessage_in_echo_area (nargs, args); | ||
| 2907 | } | ||
| 2908 | |||
| 2909 | DEFUN ("message-in-echo-area", Fmessage_in_echo_area, Smessage_in_echo_area, 1, MANY, 0, | ||
| 2910 | doc: /* Display a message at the bottom of the screen. | ||
| 2911 | The message also goes into the `*Messages*' buffer, if `message-log-max' | ||
| 2912 | is non-nil. (In keyboard macros, that's all it does.) | ||
| 2913 | Return the message. | ||
| 2914 | |||
| 2915 | In batch mode, the message is printed to the standard error stream, | ||
| 2916 | followed by a newline. | ||
| 2917 | |||
| 2918 | The first argument is a format control string, and the rest are data | ||
| 2919 | to be formatted under control of the string. Percent sign (%), grave | ||
| 2920 | accent (\\=`) and apostrophe (\\=') are special in the format; see | ||
| 2921 | `format-message' for details. To display STRING without special | ||
| 2922 | treatment, use (message-in-echo-area "%s" STRING). | ||
| 2923 | |||
| 2924 | If the first argument is nil or the empty string, the function clears | ||
| 2925 | any existing message; this lets the minibuffer contents show. See | ||
| 2926 | also `current-message'. | ||
| 2927 | |||
| 2928 | usage: (message-in-echo-area FORMAT-STRING &rest ARGS) */) | ||
| 2929 | (ptrdiff_t nargs, Lisp_Object *args) | ||
| 2930 | { | ||
| 2931 | if (NILP (args[0]) | 2881 | if (NILP (args[0]) |
| 2932 | || (STRINGP (args[0]) | 2882 | || (STRINGP (args[0]) |
| 2933 | && SBYTES (args[0]) == 0)) | 2883 | && SBYTES (args[0]) == 0)) |
| @@ -4570,11 +4520,6 @@ This variable is experimental; email 32252@debbugs.gnu.org if you need | |||
| 4570 | it to be non-nil. */); | 4520 | it to be non-nil. */); |
| 4571 | binary_as_unsigned = false; | 4521 | binary_as_unsigned = false; |
| 4572 | 4522 | ||
| 4573 | DEFVAR_LISP ("message-in-echo-area", Vmessage_in_echo_area, | ||
| 4574 | doc: /* Non-nil means overwrite the minibuffer with a message in the echo area. */); | ||
| 4575 | Vmessage_in_echo_area = Qnil; | ||
| 4576 | DEFSYM (Qmessage_in_echo_area, "message-in-echo-area"); | ||
| 4577 | |||
| 4578 | defsubr (&Spropertize); | 4523 | defsubr (&Spropertize); |
| 4579 | defsubr (&Schar_equal); | 4524 | defsubr (&Schar_equal); |
| 4580 | defsubr (&Sgoto_char); | 4525 | defsubr (&Sgoto_char); |
| @@ -4649,7 +4594,6 @@ it to be non-nil. */); | |||
| 4649 | defsubr (&Semacs_pid); | 4594 | defsubr (&Semacs_pid); |
| 4650 | defsubr (&Ssystem_name); | 4595 | defsubr (&Ssystem_name); |
| 4651 | defsubr (&Smessage); | 4596 | defsubr (&Smessage); |
| 4652 | defsubr (&Smessage_in_echo_area); | ||
| 4653 | defsubr (&Smessage_box); | 4597 | defsubr (&Smessage_box); |
| 4654 | defsubr (&Smessage_or_box); | 4598 | defsubr (&Smessage_or_box); |
| 4655 | defsubr (&Scurrent_message); | 4599 | defsubr (&Scurrent_message); |