]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't add newlines in minibuffer history
authorE. Choroba <choroba@matfyz.cz>
Sun, 3 Dec 2017 15:59:03 +0000 (17:59 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 3 Dec 2017 15:59:03 +0000 (17:59 +0200)
* lisp/simple.el (next-line-or-history-element): Bind
next-line-add-newlines to nil.  (Bug#29529)

Copyright-paperwork-exempt: yes

lisp/simple.el

index e51c9ac043ce1a8eba6be3504a0ce06a9152bca2..300d9772e9e1a62a591aac439ab1d3c2b9357da8 100644 (file)
@@ -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))