diff options
author | Michael Albinus <michael.albinus@gmx.de> | 2020-10-23 16:26:47 +0200 |
---|---|---|
committer | Michael Albinus <michael.albinus@gmx.de> | 2020-10-23 16:26:47 +0200 |
commit | c847d5998f588dbf3eca5ea1ec573a2d64a97607 (patch) | |
tree | 385256d979f91ea233f084f8ebe21cb963ac84ff /lisp | |
parent | 8101083c7ab885281cbe1ede717957c8080f7111 (diff) | |
parent | 8b87ea6844036c168c9ec67dd318ee3ba8dab5ae (diff) | |
download | emacs-c847d5998f588dbf3eca5ea1ec573a2d64a97607.tar.gz |
Merge branch 'emacs-27' of git.sv.gnu.org:/srv/git/emacs into emacs-27
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/Makefile.in | 6 | ||||
-rw-r--r-- | lisp/emacs-lisp/seq.el | 8 | ||||
-rw-r--r-- | lisp/info.el | 9 | ||||
-rw-r--r-- | lisp/minibuffer.el | 83 |
4 files changed, 60 insertions, 46 deletions
diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 57527bb5afc..dac62cedec2 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -525,4 +525,10 @@ $(lisp)/progmodes/cc-mode.elc: $(lisp)/progmodes/cc-langs.elc \ $(lisp)/progmodes/cc-styles.elc: $(lisp)/progmodes/cc-vars.elc \ $(lisp)/progmodes/cc-align.elc +# https://debbugs.gnu.org/43037 +# js.elc (like all modes using CC Mode's compile time macros) needs to +# be compiled under the same version of CC Mode it will run with. +$(lisp)/progmodes/js.elc: $(lisp)/progmodes/cc-defs.elc \ + $(lisp)/progmodes/cc-engine.elc $(lisp)/progmodes/cc-mode.elc + # Makefile ends here. diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index e3037a71901..42b145da2fd 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -336,9 +336,11 @@ list." "Reduce the function FUNCTION across SEQUENCE, starting with INITIAL-VALUE. Return the result of calling FUNCTION with INITIAL-VALUE and the -first element of SEQUENCE, then calling FUNCTION with that result and -the second element of SEQUENCE, then with that result and the third -element of SEQUENCE, etc. +first element of SEQUENCE, then calling FUNCTION with that result +and the second element of SEQUENCE, then with that result and the +third element of SEQUENCE, etc. FUNCTION will be called with +INITIAL-VALUE (and then the accumulated value) as the first +argument, and the elements from SEQUENCE as the second argument. If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called." (if (seq-empty-p sequence) diff --git a/lisp/info.el b/lisp/info.el index 033a7a5cbb5..13c57bdcd13 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -305,10 +305,11 @@ when you hit the end of the current node." (defcustom Info-hide-note-references t "If non-nil, hide the tag and section reference in *note and * menu items. -If value is non-nil but not `hide', also replaces the \"*note\" with \"see\". -If value is non-nil but not t or `hide', the reference section is still shown. -nil completely disables this feature. If this is non-nil, you might -want to set `Info-refill-paragraphs'." +If the value is t, the default, replace \"*note\" with \"see\". +If the value is `hide', remove \"*note\" without replacing it with anything. +If value is non-nil, but not t or `hide', the reference section is still shown. +nil completely disables this feature, leaving the original \"*note\" visible. +If this is non-nil, you may wish setting `Info-refill-paragraphs' non-nil." :version "22.1" :type '(choice (const :tag "No hiding" nil) (const :tag "Replace tag and hide reference" t) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 10cfca8d587..942fb019fe2 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -783,45 +783,50 @@ The text is displayed for `minibuffer-message-clear-timeout' seconds whichever comes first. Unlike `minibuffer-message', this function is called automatically via `set-message-function'." - (when (and (not noninteractive) - (window-live-p (active-minibuffer-window)) - (eq (window-frame) (window-frame (active-minibuffer-window)))) - (with-current-buffer (window-buffer (active-minibuffer-window)) - (setq message (if (string-match-p "\\` *\\[.+\\]\\'" message) - ;; Make sure we can put-text-property. - (copy-sequence message) - (concat " [" message "]"))) - (unless (or (null minibuffer-message-properties) - ;; Don't overwrite the face properties the caller has set - (text-properties-at 0 message)) - (setq message (apply #'propertize message minibuffer-message-properties))) - - (clear-minibuffer-message) - - (let ((ovpos (minibuffer--message-overlay-pos))) - (setq minibuffer-message-overlay - (make-overlay ovpos ovpos nil t t))) - (unless (zerop (length message)) - ;; The current C cursor code doesn't know to use the overlay's - ;; marker's stickiness to figure out whether to place the cursor - ;; before or after the string, so let's spoon-feed it the pos. - (put-text-property 0 1 'cursor 1 message)) - (overlay-put minibuffer-message-overlay 'after-string message) - ;; Make sure the overlay with the message is displayed before - ;; any other overlays in that position, in case they have - ;; resize-mini-windows set to nil and the other overlay strings - ;; are too long for the mini-window width. This makes sure the - ;; temporary message will always be visible. - (overlay-put minibuffer-message-overlay 'priority 1100) - - (when (numberp minibuffer-message-clear-timeout) - (setq minibuffer-message-timer - (run-with-timer minibuffer-message-clear-timeout nil - #'clear-minibuffer-message))) - - ;; Return `t' telling the caller that the message - ;; was handled specially by this function. - t))) + (let* ((minibuf-window (active-minibuffer-window)) + (minibuf-frame (and (window-live-p minibuf-window) + (window-frame minibuf-window)))) + (when (and (not noninteractive) + (window-live-p minibuf-window) + (or (eq (window-frame) minibuf-frame) + (eq (frame-parameter minibuf-frame 'minibuffer) 'only))) + (with-current-buffer (window-buffer minibuf-window) + (setq message (if (string-match-p "\\` *\\[.+\\]\\'" message) + ;; Make sure we can put-text-property. + (copy-sequence message) + (concat " [" message "]"))) + (unless (or (null minibuffer-message-properties) + ;; Don't overwrite the face properties the caller has set + (text-properties-at 0 message)) + (setq message + (apply #'propertize message minibuffer-message-properties))) + + (clear-minibuffer-message) + + (let ((ovpos (minibuffer--message-overlay-pos))) + (setq minibuffer-message-overlay + (make-overlay ovpos ovpos nil t t))) + (unless (zerop (length message)) + ;; The current C cursor code doesn't know to use the overlay's + ;; marker's stickiness to figure out whether to place the cursor + ;; before or after the string, so let's spoon-feed it the pos. + (put-text-property 0 1 'cursor 1 message)) + (overlay-put minibuffer-message-overlay 'after-string message) + ;; Make sure the overlay with the message is displayed before + ;; any other overlays in that position, in case they have + ;; resize-mini-windows set to nil and the other overlay strings + ;; are too long for the mini-window width. This makes sure the + ;; temporary message will always be visible. + (overlay-put minibuffer-message-overlay 'priority 1100) + + (when (numberp minibuffer-message-clear-timeout) + (setq minibuffer-message-timer + (run-with-timer minibuffer-message-clear-timeout nil + #'clear-minibuffer-message))) + + ;; Return `t' telling the caller that the message + ;; was handled specially by this function. + t)))) (setq set-message-function 'set-minibuffer-message) |