From unknown Thu Aug 14 21:54:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6875: Strange behaviour when moving cursor between lines Resent-From: James Battat Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Aug 2010 21:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6875@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12820800246621 (code B ref -1); Tue, 17 Aug 2010 21:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2010 21:20:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTa3-0001ik-M3 for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:20:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTYB-0001ha-Af for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:18:28 -0400 Received: from lists.gnu.org ([199.232.76.165]:57979) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OlTZC-0005ru-1I for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:19:30 -0400 Received: from [140.186.70.92] (port=53936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlTZA-0000MN-IX for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlTZ9-0000W8-CK for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:28 -0400 Received: from dmz-mailsec-scanner-4.mit.edu ([18.9.25.15]:46636) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTZ9-0000W0-Am for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:27 -0400 X-AuditID: 1209190f-b7b0aae000000a7d-70-4c6afce2996e Received: from mailhub-auth-3.mit.edu (MAILHUB-AUTH-3.MIT.EDU [18.9.21.43]) by dmz-mailsec-scanner-4.mit.edu (Symantec Brightmail Gateway) with SMTP id BD.D0.02685.2ECFA6C4; Tue, 17 Aug 2010 17:19:30 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id o7HLJQQs006328 for ; Tue, 17 Aug 2010 17:19:26 -0400 Received: from [10.77.0.215] ([18.4.2.1]) (authenticated bits=0) (User authenticated as jbattat@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o7HLJPvO014151 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 17 Aug 2010 17:19:26 -0400 (EDT) From: James Battat Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Aug 2010 17:19:20 -0400 Message-Id: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Brightmail-Tracker: AAAAARWWM9w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Mailman-Approved-At: Tue, 17 Aug 2010 17:20:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) Hi, I am a longtime user of emacs on linux platforms. I recently installed = emacs23 on my macbook pro (fink install emacs23) and see unexpected = behaviour when moving the cursor forward one line via CTRL-n. I'm not = sure if this is a bug, but at a minimum, CTRL-n does a different thing = on a linux GNU Emacs 21.4.1 install than on my mac installation. On my mac, when I open a file in emacs and navigate to the next line = using CTRL-n, the cursor does not go to the next line of text, instead, = it goes to the next row of text as displayed on the screen. For lines = of text that do not wrap, there is no difference between these two = behaviours, but for wrapped lines, there is. For example, if a single line of text has wrapped on the screen, and my = cursor is currently at the first character of the line, then CTRL-n = takes me to the first displayed character on the second row of the same = line of text (the first wrapped row), but not to the next line as = specified by a newline character. While this may seem rather minor, it wreaks havoc when using rectangle = cut and insert (CTRL-r k and CTRL-r y). Is this a selectable setting? A bug? A known difference between emacs = 21 and emacs 23? Something else? I see the same symptom whether I start emacs in a new X window (emacs = file.txt &) or within the terminal window (emacs -nw file.txt). Details of emacs on my macbook pro: GNU Emacs 23.1.1 = (i386-apple-darwin10.4.0, GTK+ Version 2.16.6 of 2010-07-23 Details of emacs on linux machine: GNU Emacs 21.4.1 = (i686-redhad-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-01-04 on = norob.fnal.gov Thank you, James From unknown Thu Aug 14 21:54:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6875: Strange behaviour when moving cursor between lines In-Reply-To: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Aug 2010 02:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: James Battat Cc: 6875@debbugs.gnu.org Received: via spool by 6875-submit@debbugs.gnu.org id=B6875.128209960815246 (code B ref 6875); Wed, 18 Aug 2010 02:47:02 +0000 Received: (at 6875) by debbugs.gnu.org; 18 Aug 2010 02:46:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlYfv-0003xr-Vi for submit@debbugs.gnu.org; Tue, 17 Aug 2010 22:46:48 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlYfu-0003xk-8h for 6875@debbugs.gnu.org; Tue, 17 Aug 2010 22:46:46 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlYgv-0005Ev-MC; Tue, 17 Aug 2010 22:47:49 -0400 References: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> From: Glenn Morris X-Spook: Croatian INSCOM $400 million in gold bullion smuggle X-Ran: Mu!s-~Laj/%U0"mcdM;)OxV.nwVq&oH0/q}q$IFzr+A2p;WF)15TnqUKarRI)\0F<@Zhr^ X-Hue: blue X-Attribution: GM Date: Tue, 17 Aug 2010 22:47:49 -0400 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) James Battat wrote: > I am a longtime user of emacs on linux platforms. I recently > installed emacs23 on my macbook pro (fink install emacs23) It's a good idea to browse the NEWS file when you upgrade to a new version of Emacs. C-h n. > and see unexpected behaviour when moving the cursor forward one line > via CTRL-n. Specifically: * Editing Changes in Emacs 23.1 ** The C-n and C-p line-motion commands now move by screen lines, taking continued lines and variable-width characters into account. Setting `line-move-visual' to nil reverts this to the previous behavior (i.e., motion by logical lines based on buffer contents alone). > Is this a selectable setting? A bug? A known difference between > emacs 21 and emacs 23? Something else? Yes. No. Yes. No. From unknown Thu Aug 14 21:54:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: James Battat Subject: bug#6875: closed (Re: bug#6875: Strange behaviour when moving cursor between lines) Message-ID: References: <83r5hwr5c9.fsf@gnu.org> <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> X-Gnu-PR-Message: they-closed 6875 X-Gnu-PR-Package: emacs Reply-To: 6875@debbugs.gnu.org Date: Wed, 18 Aug 2010 03:04:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1282100641-16191-1" This is a multi-part message in MIME format... ------------=_1282100641-16191-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6875: Strange behaviour when moving cursor between lines 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 6875@debbugs.gnu.org. --=20 6875: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6875 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1282100641-16191-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6875-done) by debbugs.gnu.org; 18 Aug 2010 03:03:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlYvz-0004Cf-LC for submit@debbugs.gnu.org; Tue, 17 Aug 2010 23:03:23 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlYvw-0004CW-TH for 6875-done@debbugs.gnu.org; Tue, 17 Aug 2010 23:03:22 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L7B00H00V34VM00@a-mtaout22.012.net.il> for 6875-done@debbugs.gnu.org; Wed, 18 Aug 2010 06:04:14 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.220.100]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L7B00HM9V7091E0@a-mtaout22.012.net.il>; Wed, 18 Aug 2010 06:04:14 +0300 (IDT) Date: Wed, 18 Aug 2010 06:02:14 +0300 From: Eli Zaretskii Subject: Re: bug#6875: Strange behaviour when moving cursor between lines In-reply-to: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> X-012-Sender: halo1@inter.net.il To: James Battat Message-id: <83r5hwr5c9.fsf@gnu.org> References: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6875-done Cc: 6875-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: James Battat > Date: Tue, 17 Aug 2010 17:19:20 -0400 > Cc: > > On my mac, when I open a file in emacs and navigate to the next line using CTRL-n, the cursor does not go to the next line of text, instead, it goes to the next row of text as displayed on the screen. For lines of text that do not wrap, there is no difference between these two behaviours, but for wrapped lines, there is. This is a feature. See this entry in NEWS: ** The C-n and C-p line-motion commands now move by screen lines, taking continued lines and variable-width characters into account. Setting `line-move-visual' to nil reverts this to the previous behavior (i.e., motion by logical lines based on buffer contents alone). I'm closing this bug report. ------------=_1282100641-16191-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Aug 2010 21:20:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTa3-0001ik-M3 for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:20:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTYB-0001ha-Af for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:18:28 -0400 Received: from lists.gnu.org ([199.232.76.165]:57979) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OlTZC-0005ru-1I for submit@debbugs.gnu.org; Tue, 17 Aug 2010 17:19:30 -0400 Received: from [140.186.70.92] (port=53936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlTZA-0000MN-IX for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlTZ9-0000W8-CK for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:28 -0400 Received: from dmz-mailsec-scanner-4.mit.edu ([18.9.25.15]:46636) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTZ9-0000W0-Am for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 17:19:27 -0400 X-AuditID: 1209190f-b7b0aae000000a7d-70-4c6afce2996e Received: from mailhub-auth-3.mit.edu (MAILHUB-AUTH-3.MIT.EDU [18.9.21.43]) by dmz-mailsec-scanner-4.mit.edu (Symantec Brightmail Gateway) with SMTP id BD.D0.02685.2ECFA6C4; Tue, 17 Aug 2010 17:19:30 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id o7HLJQQs006328 for ; Tue, 17 Aug 2010 17:19:26 -0400 Received: from [10.77.0.215] ([18.4.2.1]) (authenticated bits=0) (User authenticated as jbattat@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o7HLJPvO014151 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 17 Aug 2010 17:19:26 -0400 (EDT) From: James Battat Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Strange behaviour when moving cursor between lines Date: Tue, 17 Aug 2010 17:19:20 -0400 Message-Id: <1B1185B5-6179-457B-B8BB-3F4D0A7B2F96@mit.edu> To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) X-Brightmail-Tracker: AAAAARWWM9w= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 17 Aug 2010 17:20:22 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) Hi, I am a longtime user of emacs on linux platforms. I recently installed = emacs23 on my macbook pro (fink install emacs23) and see unexpected = behaviour when moving the cursor forward one line via CTRL-n. I'm not = sure if this is a bug, but at a minimum, CTRL-n does a different thing = on a linux GNU Emacs 21.4.1 install than on my mac installation. On my mac, when I open a file in emacs and navigate to the next line = using CTRL-n, the cursor does not go to the next line of text, instead, = it goes to the next row of text as displayed on the screen. For lines = of text that do not wrap, there is no difference between these two = behaviours, but for wrapped lines, there is. For example, if a single line of text has wrapped on the screen, and my = cursor is currently at the first character of the line, then CTRL-n = takes me to the first displayed character on the second row of the same = line of text (the first wrapped row), but not to the next line as = specified by a newline character. While this may seem rather minor, it wreaks havoc when using rectangle = cut and insert (CTRL-r k and CTRL-r y). Is this a selectable setting? A bug? A known difference between emacs = 21 and emacs 23? Something else? I see the same symptom whether I start emacs in a new X window (emacs = file.txt &) or within the terminal window (emacs -nw file.txt). Details of emacs on my macbook pro: GNU Emacs 23.1.1 = (i386-apple-darwin10.4.0, GTK+ Version 2.16.6 of 2010-07-23 Details of emacs on linux machine: GNU Emacs 21.4.1 = (i686-redhad-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-01-04 on = norob.fnal.gov Thank you, James ------------=_1282100641-16191-1--