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
This commit is contained in:
parent
de68f337e3
commit
1fdac2d65c
1 changed files with 2 additions and 0 deletions
|
@ -2109,6 +2109,8 @@ next element of the minibuffer history in the minibuffer."
|
||||||
(interactive "^p")
|
(interactive "^p")
|
||||||
(or arg (setq arg 1))
|
(or arg (setq arg 1))
|
||||||
(let* ((old-point (point))
|
(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
|
;; Remember the original goal column of possibly multi-line input
|
||||||
;; excluding the length of the prompt on the first line.
|
;; excluding the length of the prompt on the first line.
|
||||||
(prompt-end (minibuffer-prompt-end))
|
(prompt-end (minibuffer-prompt-end))
|
||||||
|
|
Loading…
Add table
Reference in a new issue