emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 1fdac2d: Don't add newlines in minibuffer history


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 1fdac2d: Don't add newlines in minibuffer history
Date: Sun, 3 Dec 2017 11:00:22 -0500 (EST)

branch: emacs-26
commit 1fdac2d65c7134a2e1261bf7ad32d275f37da0dc
Author: E. Choroba <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Don't add newlines in minibuffer history
    
    * lisp/simple.el (next-line-or-history-element): Bind
    next-line-add-newlines to nil.  (Bug#29529)
    
    Copyright-paperwork-exempt: yes
---
 lisp/simple.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/simple.el b/lisp/simple.el
index e51c9ac..300d977 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -2109,6 +2109,8 @@ next element of the minibuffer history in the minibuffer."
   (interactive "^p")
   (or arg (setq arg 1))
   (let* ((old-point (point))
+         ;; Don't add newlines if they have the mode enabled globally.
+         (next-line-add-newlines nil)
         ;; Remember the original goal column of possibly multi-line input
         ;; excluding the length of the prompt on the first line.
         (prompt-end (minibuffer-prompt-end))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]