GNU bug report logs - #29529
next-line-add-newlines shouldn't be respected in next-line-or-history-element

Previous Next

Package: emacs;

Reported by: "E. Choroba" <choroba <at> matfyz.cz>

Date: Fri, 1 Dec 2017 22:51:01 UTC

Severity: minor

Merged with 27941

Found in version 25.2

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29529 in the body.
You can then email your comments to 29529 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#29529; Package emacs. (Fri, 01 Dec 2017 22:51:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "E. Choroba" <choroba <at> matfyz.cz>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 01 Dec 2017 22:51:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "E. Choroba" <choroba <at> matfyz.cz>
To: bug-gnu-emacs <at> gnu.org
Subject: next-line-add-newlines shouldn't be respected in
 next-line-or-history-element
Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET)
Hi,

I don't like the "end of buffer" errors, so I have switched 
next-line-add-newlines to t. In recent Emacs versions, though, this makes it 
impossible to browse the minibuffer history with cursor arrows: <down> adds a 
newline into the minibufer instead of showing the next history element. M-n 
works correctly, though.

Steps to reproduce (tested in 25.3.1):

emacs -Q
(setq next-line-add-newlines t) C-x C-e
C-x C-f <down>

Solution:

Set the variable to nil locally in next-line-or-history-element.

Patch:

diff -u <(zcat /usr/local/share/emacs/25.3/lisp/simple.el.gz) ~/simple.el
--- /dev/fd/63  2017-12-01 23:45:06.338468797 +0100
+++ /home/choroba/simple.el     2017-12-01 23:45:04.166450109 +0100
@@ -2038,6 +2038,7 @@
   (interactive "^p")
   (or arg (setq arg 1))
   (let* ((old-point (point))
+         (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))


Cheers,

Ch.




Merged 27941 29529. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 01 Dec 2017 23:36:02 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 03 Dec 2017 16:02:02 GMT) Full text and rfc822 format available.

Notification sent to "E. Choroba" <choroba <at> matfyz.cz>:
bug acknowledged by developer. (Sun, 03 Dec 2017 16:02:03 GMT) Full text and rfc822 format available.

Message #12 received at 29529-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "E. Choroba" <choroba <at> matfyz.cz>
Cc: 29529-done <at> debbugs.gnu.org
Subject: Re: bug#29529: next-line-add-newlines shouldn't be respected in
 next-line-or-history-element
Date: Sun, 03 Dec 2017 18:00:36 +0200
> Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET)
> From: "E. Choroba" <choroba <at> matfyz.cz>
> 
> I don't like the "end of buffer" errors, so I have switched 
> next-line-add-newlines to t. In recent Emacs versions, though, this makes it 
> impossible to browse the minibuffer history with cursor arrows: <down> adds a 
> newline into the minibufer instead of showing the next history element. M-n 
> works correctly, though.
> 
> Steps to reproduce (tested in 25.3.1):
> 
> emacs -Q
> (setq next-line-add-newlines t) C-x C-e
> C-x C-f <down>
> 
> Solution:
> 
> Set the variable to nil locally in next-line-or-history-element.
> 
> Patch:

Thanks, I installed your patch.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sun, 03 Dec 2017 16:02:03 GMT) Full text and rfc822 format available.

Notification sent to Daniel Gildea <gildea <at> cs.rochester.edu>:
bug acknowledged by developer. (Sun, 03 Dec 2017 16:02:05 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 01 Jan 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 168 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.