From unknown Fri Jun 20 07:23:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#29529: next-line-add-newlines shouldn't be respected in next-line-or-history-element Resent-From: "E. Choroba" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2017 22:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29529 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 29529@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.151216862028144 (code B ref -1); Fri, 01 Dec 2017 22:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 1 Dec 2017 22:50:20 +0000 Received: from localhost ([127.0.0.1]:40692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKu8R-0007Js-Kn for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKu8Q-0007Jg-Qy for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKu8K-00058t-Qq for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKu8K-00058n-NZ for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKu8J-0004AS-Dg for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKu8E-000536-Hu for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:11 -0500 Received: from smtp1.ms.mff.cuni.cz ([2001:718:1e03:801::4]:17911) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKu8E-00051U-7J for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:06 -0500 Received: from ufal-mail.mff.cuni.cz (ufal-mail.mff.cuni.cz [195.113.20.158]) by smtp1.ms.mff.cuni.cz (8.15.2/8.15.2) with ESMTP id vB1Mo1td067543 for ; Fri, 1 Dec 2017 23:50:02 +0100 (CET) (envelope-from choroba@matfyz.cz) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 5D1BA16C0A4C for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) X-Virus-Scanned: amavisd-new at ufal.mff.cuni.cz Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VgJvOFPpKZbY for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) Received: from [192.168.0.100] (unknown [217.30.64.210]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTPSA id 4685916C00CD for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET) From: "E. Choroba" X-X-Sender: choroba@still.ms.mff.cuni.cz Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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: 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 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 01 18:35:52 2017 Received: (at control) by debbugs.gnu.org; 1 Dec 2017 23:35:52 +0000 Received: from localhost ([127.0.0.1]:40719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKuqW-0008Lj-HE for submit@debbugs.gnu.org; Fri, 01 Dec 2017 18:35:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKuqV-0008LW-2s for control@debbugs.gnu.org; Fri, 01 Dec 2017 18:35:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKuqP-0005oZ-ET for control@debbugs.gnu.org; Fri, 01 Dec 2017 18:35:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39073) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKuqP-0005oJ-B2 for control@debbugs.gnu.org; Fri, 01 Dec 2017 18:35:45 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eKuqP-0007b6-1r for control@debbugs.gnu.org; Fri, 01 Dec 2017 18:35:45 -0500 Subject: control message for bug 29529 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 01 Dec 2017 18:35:45 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) merge 27941 29529 From unknown Fri Jun 20 07:23:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "E. Choroba" Subject: bug#29529: closed (Re: bug#29529: next-line-add-newlines shouldn't be respected in next-line-or-history-element) Message-ID: References: <83lgijztqz.fsf@gnu.org> X-Gnu-PR-Message: they-closed 29529 X-Gnu-PR-Package: emacs Reply-To: 29529@debbugs.gnu.org Date: Sun, 03 Dec 2017 16:02:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1512316923-30562-1" This is a multi-part message in MIME format... ------------=_1512316923-30562-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29529: next-line-add-newlines shouldn't be respected in next-line-or-histo= ry-element which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 29529@debbugs.gnu.org. --=20 29529: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29529 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1512316923-30562-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29529-done) by debbugs.gnu.org; 3 Dec 2017 16:01:04 +0000 Received: from localhost ([127.0.0.1]:43578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWhU-000781-2w for submit@debbugs.gnu.org; Sun, 03 Dec 2017 11:01:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWhR-0006zj-Vy for 29529-done@debbugs.gnu.org; Sun, 03 Dec 2017 11:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLWhH-00087y-Uf for 29529-done@debbugs.gnu.org; Sun, 03 Dec 2017 11:00:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLWhH-00087s-R3; Sun, 03 Dec 2017 11:00:51 -0500 Received: from [176.228.60.248] (port=3255 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eLWhH-0001z7-8w; Sun, 03 Dec 2017 11:00:51 -0500 Date: Sun, 03 Dec 2017 18:00:36 +0200 Message-Id: <83lgijztqz.fsf@gnu.org> From: Eli Zaretskii To: "E. Choroba" In-reply-to: (choroba@matfyz.cz) Subject: Re: bug#29529: next-line-add-newlines shouldn't be respected in next-line-or-history-element References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29529-done Cc: 29529-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET) > From: "E. Choroba" > > 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: 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 > > Solution: > > Set the variable to nil locally in next-line-or-history-element. > > Patch: Thanks, I installed your patch. ------------=_1512316923-30562-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Dec 2017 22:50:20 +0000 Received: from localhost ([127.0.0.1]:40692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKu8R-0007Js-Kn for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:19 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKu8Q-0007Jg-Qy for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKu8K-00058t-Qq for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKu8K-00058n-NZ for submit@debbugs.gnu.org; Fri, 01 Dec 2017 17:50:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKu8J-0004AS-Dg for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKu8E-000536-Hu for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:11 -0500 Received: from smtp1.ms.mff.cuni.cz ([2001:718:1e03:801::4]:17911) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKu8E-00051U-7J for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2017 17:50:06 -0500 Received: from ufal-mail.mff.cuni.cz (ufal-mail.mff.cuni.cz [195.113.20.158]) by smtp1.ms.mff.cuni.cz (8.15.2/8.15.2) with ESMTP id vB1Mo1td067543 for ; Fri, 1 Dec 2017 23:50:02 +0100 (CET) (envelope-from choroba@matfyz.cz) Received: from localhost (localhost.localdomain [127.0.0.1]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTP id 5D1BA16C0A4C for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) X-Virus-Scanned: amavisd-new at ufal.mff.cuni.cz Received: from ufal-mail.mff.cuni.cz ([127.0.0.1]) by localhost (ufal-mail.mff.cuni.cz [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id VgJvOFPpKZbY for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) Received: from [192.168.0.100] (unknown [217.30.64.210]) by ufal-mail.mff.cuni.cz (Postfix) with ESMTPSA id 4685916C00CD for ; Fri, 1 Dec 2017 23:50:01 +0100 (CET) Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET) From: "E. Choroba" X-X-Sender: choroba@still.ms.mff.cuni.cz To: bug-gnu-emacs@gnu.org Subject: next-line-add-newlines shouldn't be respected in next-line-or-history-element Message-ID: User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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: 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 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. ------------=_1512316923-30562-1-- From unknown Fri Jun 20 07:23:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Gildea Subject: bug#27941: closed (Re: bug#29529: next-line-add-newlines shouldn't be respected in next-line-or-history-element) Message-ID: References: <83lgijztqz.fsf@gnu.org> <147eyj507r.fsf@g07.cs.rochester.edu> X-Gnu-PR-Message: they-closed 27941 X-Gnu-PR-Package: emacs Reply-To: 27941@debbugs.gnu.org Date: Sun, 03 Dec 2017 16:02:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1512316925-30562-3" This is a multi-part message in MIME format... ------------=_1512316925-30562-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #29529: 25.2; next-line-add-newlines and minibuffer which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 27941@debbugs.gnu.org. --=20 29529: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D29529 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1512316925-30562-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 29529-done) by debbugs.gnu.org; 3 Dec 2017 16:01:04 +0000 Received: from localhost ([127.0.0.1]:43578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWhU-000781-2w for submit@debbugs.gnu.org; Sun, 03 Dec 2017 11:01:04 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLWhR-0006zj-Vy for 29529-done@debbugs.gnu.org; Sun, 03 Dec 2017 11:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLWhH-00087y-Uf for 29529-done@debbugs.gnu.org; Sun, 03 Dec 2017 11:00:56 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_RP_MATCHES_RCVD, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLWhH-00087s-R3; Sun, 03 Dec 2017 11:00:51 -0500 Received: from [176.228.60.248] (port=3255 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eLWhH-0001z7-8w; Sun, 03 Dec 2017 11:00:51 -0500 Date: Sun, 03 Dec 2017 18:00:36 +0200 Message-Id: <83lgijztqz.fsf@gnu.org> From: Eli Zaretskii To: "E. Choroba" In-reply-to: (choroba@matfyz.cz) Subject: Re: bug#29529: next-line-add-newlines shouldn't be respected in next-line-or-history-element References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 29529-done Cc: 29529-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Fri, 1 Dec 2017 23:49:56 +0100 (CET) > From: "E. Choroba" > > 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: 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 > > Solution: > > Set the variable to nil locally in next-line-or-history-element. > > Patch: Thanks, I installed your patch. ------------=_1512316925-30562-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Aug 2017 06:14:18 +0000 Received: from localhost ([127.0.0.1]:40708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddVsI-0005U9-DU for submit@debbugs.gnu.org; Fri, 04 Aug 2017 02:14:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddVsG-0005Tw-Cc for submit@debbugs.gnu.org; Fri, 04 Aug 2017 02:14:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddVsA-0000aw-4k for submit@debbugs.gnu.org; Fri, 04 Aug 2017 02:14:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54309) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddVsA-0000ar-1X for submit@debbugs.gnu.org; Fri, 04 Aug 2017 02:14:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddVs8-00015R-Tm for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddVs4-0000TU-Mt for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:14:08 -0400 Received: from slate.cs.rochester.edu ([192.5.53.101]:42914) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddVs4-0000Ov-I1 for bug-gnu-emacs@gnu.org; Fri, 04 Aug 2017 02:14:04 -0400 Received: from g07.cs.rochester.edu (g07.cs.rochester.edu [128.151.67.77]) by slate.cs.rochester.edu (8.14.7/8.14.7) with SMTP id v746E1Hv004254 for ; Fri, 4 Aug 2017 02:14:01 -0400 Received: from g07.cs.rochester.edu (localhost [127.0.0.1]) by g07.cs.rochester.edu (8.15.2/8.15.1) with ESMTP id v746E0PR002111 for ; Fri, 4 Aug 2017 02:14:01 -0400 From: Daniel Gildea To: bug-gnu-emacs@gnu.org Subject: 25.2; next-line-add-newlines and minibuffer Date: Fri, 04 Aug 2017 02:14:00 -0400 Message-ID: <147eyj507r.fsf@g07.cs.rochester.edu> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) If you (setq next-line-add-newlines t) then pressing in the minibuffer always adds a newline, rather than moving to the next history item. ------------=_1512316925-30562-3--