From unknown Fri Jun 20 05:28:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15061 <15061@debbugs.gnu.org> To: bug#15061 <15061@debbugs.gnu.org> Subject: Status: 24.3; forward-sexp behaves inaccurately when the cursor is at the end of a string Reply-To: bug#15061 <15061@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:28:10 +0000 retitle 15061 24.3; forward-sexp behaves inaccurately when the cursor is at= the end of a string reassign 15061 emacs submitter 15061 Alex Coventry severity 15061 minor tag 15061 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 09 11:38:08 2013 Received: (at submit) by debbugs.gnu.org; 9 Aug 2013 15:38:08 +0000 Received: from localhost ([127.0.0.1]:49920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7olT-0008M3-BN for submit@debbugs.gnu.org; Fri, 09 Aug 2013 11:38:08 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42458) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7eYA-0001HJ-MS for submit@debbugs.gnu.org; Fri, 09 Aug 2013 00:43:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7eXy-0006UK-Ow for submit@debbugs.gnu.org; Fri, 09 Aug 2013 00:43:37 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.2 required=5.0 tests=BAYES_50,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7eXy-0006UG-M4 for submit@debbugs.gnu.org; Fri, 09 Aug 2013 00:43:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7eXs-0000Q8-JB for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 00:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7eXm-0006Bh-A8 for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 00:43:24 -0400 Received: from dmz-mailsec-scanner-5.mit.edu ([18.7.68.34]:51866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7eXm-00069u-6V for bug-gnu-emacs@gnu.org; Fri, 09 Aug 2013 00:43:18 -0400 X-AuditID: 12074422-b7ef78e000000935-a4-52047365a3b4 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) by dmz-mailsec-scanner-5.mit.edu (Symantec Messaging Gateway) with SMTP id 2C.4A.02357.56374025; Fri, 9 Aug 2013 00:43:17 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id r794hGtt015741 for ; Fri, 9 Aug 2013 00:43:16 -0400 Received: from [192.168.1.133] (cpe-74-78-222-234.twcny.res.rr.com [74.78.222.234]) (authenticated bits=0) (User authenticated as alex_c@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id r794h8Lc012035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 9 Aug 2013 00:43:15 -0400 Message-ID: <5204734E.9060204@mit.edu> Date: Fri, 09 Aug 2013 00:42:54 -0400 From: Alex Coventry User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.3; forward-sexp behaves inaccurately when the cursor is at the end of a string Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsUixG6nrptazBJk8OEWi8X3A1UOjB5t08wC GKO4bFJSczLLUov07RK4Mr7vuMBYsEupYsHxY8wNjB9kuhg5OSQETCTa7uxjh7DFJC7cW88G YgsJ7GOUWLiEs4uRC8g+wyjxq28zE4Tzikni8o2/LCBVvAJqEl/mHQezWQRUJfb8PcwMYrMJ qEjM/bsAyObgEBUIk7jyWxWiXFDi5MwnYOUiApISX++0soKUCAvESKzd6QFiMgtYS3zbXQRS wSwgL7H97RzmCYx8s5A0z0KomoWkagEj8ypG2ZTcKt3cxMyc4tRk3eLkxLy81CJdU73czBK9 1JTSTYzgwHJR2sH486DSIUYBDkYlHl6F7cxBQqyJZcWVuYcYJTmYlER5XxWyBAnxJeWnVGYk FmfEF5XmpBYfYpTgYFYS4X2RBVTOm5JYWZValA+TkuZgURLnffb0bKCQQHpiSWp2ampBahFM VoaDQ0mCd1ER0FDBotT01Iq0zJwShDQTByfIcB6g4adBaniLCxJzizPTIfKnGI057nyb/4mR Y86bBZ8YhVjy8vNSpcR514CUCoCUZpTmwU2DJYdXjOJAzwlDDOQBJha4ea+AVjEBrfI4yQCy qiQRISXVwNi1x3PBv+Cd+u0KkfdbXpl+zs251HtjBe/H3SyHZ6+I8OhZ21SxMPsbw9k+T1/J rR/qEzi/z1nEmbRrRsEuHZEtx22OJr7fXZyl6HLg5Bpxvslh7n9MVi+4cKJ5T7aB2EfBDe5C xwzTzS5MurZj/X23yMuSUxn9xcw7qu6FSqqKzVYI7frD06zEUpyRaKjFXFScCAALYGV/6QIA AA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 09 Aug 2013 11:38:03 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -2.4 (--) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': ######################################################################## Start with 'emacs -Q'. In *scratch*, type the following (("foo" baz) quux "bar") Move the cursor to the second quote character. In the pipe notation used in the paredit documentation[1], that corresponds to (("foo|" baz) quux "bar") Type C-M-f ("forward-sexp"). Cursor will now be on the "b" in "bar": (("foo" baz) quux "|bar") I would expect it to be just after the quote it was initially on, i.e. (("foo"| baz) quux "bar") I suppose fixing this might require parsing of the entire buffer, font-lock style, but it is a bug. Best regards, Alex [1] http://www.emacswiki.org/emacs/PareditCheatsheet ######################################################################## If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-14 on chindi10, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11103000 System Description: Ubuntu 12.04.2 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o t r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 09 14:48:08 2013 Received: (at 15061) by debbugs.gnu.org; 9 Aug 2013 18:48:08 +0000 Received: from localhost ([127.0.0.1]:50252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7rjM-00089k-5C for submit@debbugs.gnu.org; Fri, 09 Aug 2013 14:48:08 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:44172 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7rjK-00089c-Rw for 15061@debbugs.gnu.org; Fri, 09 Aug 2013 14:48:07 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V7rjJ-00025y-Ja; Fri, 09 Aug 2013 14:48:05 -0400 From: Glenn Morris To: Alex Coventry Subject: Re: bug#15061: 24.3; forward-sexp behaves inaccurately when the cursor is at the end of a string References: <5204734E.9060204@mit.edu> X-Spook: ISEC Rubin nitrate Mena Capricorn red noise FBI M-14 X-Ran: DW4j@<2KWNkSpti2!]j< X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Fri, 09 Aug 2013 14:48:05 -0400 In-Reply-To: <5204734E.9060204@mit.edu> (Alex Coventry's message of "Fri, 09 Aug 2013 00:42:54 -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: -5.0 (-----) X-Debbugs-Envelope-To: 15061 Cc: 15061@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) Alex Coventry wrote: > (("foo" baz) quux "bar") > > Move the cursor to the second quote character. In the pipe notation > used in the paredit documentation[1], that corresponds to > > (("foo|" baz) quux "bar") > > Type C-M-f ("forward-sexp"). Cursor will now be on the "b" in "bar": > > (("foo" baz) quux "|bar") C-h f forward-sexp: This command assumes point is not in a string or comment. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 09 15:30:40 2013 Received: (at control) by debbugs.gnu.org; 9 Aug 2013 19:30:40 +0000 Received: from localhost ([127.0.0.1]:50307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7sOV-00021I-ND for submit@debbugs.gnu.org; Fri, 09 Aug 2013 15:30:40 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45047 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V7sOT-000218-Qq for control@debbugs.gnu.org; Fri, 09 Aug 2013 15:30:38 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V7sOT-0002qm-KA for control@debbugs.gnu.org; Fri, 09 Aug 2013 15:30:37 -0400 Date: Fri, 09 Aug 2013 15:30:37 -0400 Message-Id: Subject: control message for bug 15061 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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 (-----) close 15061 From unknown Fri Jun 20 05:28:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 07 Sep 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator