From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: Andreas Roehler , 3416@debbugs.gnu.org Resent-From: Andreas Roehler Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 13:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124360270322199 (code B ref -1); Fri, 29 May 2009 13:20:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 29 May 2009 13:11:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.1 required=4.0 tests=AWL,FOURLA,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TDBb6n022192 for ; Fri, 29 May 2009 06:11:39 -0700 Received: from mail.gnu.org ([199.232.76.166]:52396 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1MA1s0-0006C3-Ui for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 09:11:37 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1MA1rx-0008B3-0e for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 09:11:36 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:54649) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MA1rw-0008Af-El for emacs-pretest-bug@gnu.org; Fri, 29 May 2009 09:11:32 -0400 Received: from [192.168.178.27] (p54BEA10C.dip0.t-ipconnect.de [84.190.161.12]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MKt2u-1MA1ru2yM3-00061Q; Fri, 29 May 2009 15:11:31 +0200 Message-ID: <4A1FDF6B.3040208@online.de> Date: Fri, 29 May 2009 15:13:15 +0200 From: Andreas Roehler User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX18yHNXCsAYGxZpZ8fS1ND54rr/kMtWjVjvBYYB EQTMhu8P/7utaTvlR5iACaarRzjv4qCEw6Q0XFDBoo0o6rLnfu GUc9ocQVLJDIW+dHzZ2W/LEdxdNYlWUnNkKpP5REdY= X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: 23.0.94; down-list With python-modes ['ggle', ['upriv.html', 'search',]] ___|________________________ Cursor at second `g'. M-x down-list fails with message: down-list: Scan error: "Unbalanced parentheses", 440, 443 down-list: Scan error: "Unbalanced parentheses", 81, 87 Cause seems a bug in `scan-list' IMHO, does not occur with XEmacs, where lisp-code is identic. The following inserted line makes it gone (while (/= arg 0) +++ (when (not (looking-at "\\s("))(skip-syntax-forward "^\\s(")) +++ (goto-char (or (scan-lists (point) inc -1) (buffer-end arg))) Thanks Andreas Röhler In GNU Emacs 23.0.94.1 (i686-pc-linux-gnu, GTK+ Version 2.12.0) of 2009-05-25 Windowing system distributor `The X.Org Foundation', version 11.0.70200000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Python Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-M-d C-M-s C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-M-d C-x C-f e m M-> C-h f d o w n - l i s t C-x p C-x o C-x C-w C-g M-+ C-x C-f e l . i l . e l C-M-d C-M-d C-M-d C-x C-f p y t h o e p y - p . p y y e s C-M-d C-M-d C-a C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-k C-M-d M-x r e p o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. down-list: Scan error: "Unbalanced parentheses", 238, 243 [6 times] down-list: Scan error: "Containing expression ends prematurely", 240, 241 Mark set Type C-x 1 to delete the help window. help-follow: No cross-reference here uncompressing lisp.el.gz...done Quit down-list: Scan error: "Unbalanced parentheses", 440, 443 down-list: Scan error: "Unbalanced parentheses", 81, 87 From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: martin rudalics , 3416@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 14:55:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.12436085655249 (code B ref 3416); Fri, 29 May 2009 14:55:10 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 14:49:25 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4TEnKoG005242 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 07:49:21 -0700 Received: (qmail invoked by alias); 29 May 2009 14:49:14 -0000 Received: from 62-47-37-185.adsl.highway.telekom.at (EHLO [62.47.37.185]) [62.47.37.185] by mail.gmx.net (mp038) with SMTP; 29 May 2009 16:49:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19261sYUd52m1AJM0kqjXNwCL4TvSkOyGSi39VMp/ qBSl2v+Z1/u9Ok Message-ID: <4A1FF5E7.3080709@gmx.at> Date: Fri, 29 May 2009 16:49:11 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Andreas Roehler , 3416@debbugs.gnu.org References: <4A1FDF6B.3040208@online.de> In-Reply-To: <4A1FDF6B.3040208@online.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.00 > With python-modes > > ['ggle', ['upriv.html', 'search',]] > ___|________________________ > > Cursor at second `g'. > M-x down-list fails with message: > > down-list: Scan error: "Unbalanced parentheses", 440, 443 > down-list: Scan error: "Unbalanced parentheses", 81, 87 From the doc-string of `down-list': This command assumes point is not in a string or comment. martin From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: Andreas =?UTF-8?Q?R=C3=B6hler?= , 3416@debbugs.gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 16:55:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.124361573626023 (code B ref 3416); Fri, 29 May 2009 16:55:06 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 16:48:56 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TGmoNw026009 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 09:48:51 -0700 Received: from [192.168.178.27] (p54BE8FED.dip0.t-ipconnect.de [84.190.143.237]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1MA5G73NNW-000jBI; Fri, 29 May 2009 18:48:44 +0200 Message-ID: <4A201255.2050204@easy-emacs.de> Date: Fri, 29 May 2009 18:50:29 +0200 From: Andreas =?UTF-8?Q?R=C3=B6hler?= User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: martin rudalics CC: 3416@debbugs.gnu.org References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> In-Reply-To: <4A1FF5E7.3080709@gmx.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX1+1+3t65j5B2C60Uuz95tvQDJj9EeD3EnzWkip w+4n8WBlWuoxniuX2SNpemnrGOCZCl5QG6Dbb2rjbHrPlhBftT y5+nybZ+PICyogC4dO2u3FVQ27HHydVPcvuDT3/xC4= martin rudalics wrote: > > With python-modes > > > > ['ggle', ['upriv.html', 'search',]] > > ___|________________________ > > > > Cursor at second `g'. > > M-x down-list fails with message: > > > > down-list: Scan error: "Unbalanced parentheses", 440, 443 > > down-list: Scan error: "Unbalanced parentheses", 81, 87 > > From the doc-string of `down-list': > > This command assumes point is not in a string or comment. > > martin > > > > Hi, you are right. Nonetheless, as strings are common elements of lists, not just in Python, its such an inconvenience, it qualifies as bug in my eyes. If you don't want to dig into scan-list, that trivial line I've sent is enough to cure it. Regards Andreas Röhler From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: martin rudalics , 3416@debbugs.gnu.org Resent-From: martin rudalics Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 17:15:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.124361705330450 (code B ref 3416); Fri, 29 May 2009 17:15:03 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 17:10:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.6 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with SMTP id n4THAmid030437 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 10:10:50 -0700 Received: (qmail invoked by alias); 29 May 2009 17:10:43 -0000 Received: from 62-47-37-185.adsl.highway.telekom.at (EHLO [62.47.37.185]) [62.47.37.185] by mail.gmx.net (mp039) with SMTP; 29 May 2009 19:10:43 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/tsDMmTmztZL+vkIZK2o+9Ew1JCUgrxzWH20zSYd NDDPmYAyqdqDjt Message-ID: <4A20170F.5030909@gmx.at> Date: Fri, 29 May 2009 19:10:39 +0200 From: martin rudalics User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Andreas =?UTF-8?Q?R=C3=B6hler?= CC: 3416@debbugs.gnu.org References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> <4A201255.2050204@easy-emacs.de> In-Reply-To: <4A201255.2050204@easy-emacs.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.77 > you are right. Nonetheless, as strings are common > elements of lists, not just in Python, its such an > inconvenience, it qualifies as bug in my eyes. > > If you don't want to dig into scan-list, that trivial > line I've sent is enough to cure it. IIUC you want to skip anything but a left paren before starting the scan. This means you might skip the start of a comment or string and end up before the first left paren within that comment or string. The only right way to do that is to parse the syntax until point first and handle the case where you are in a comment or string appropriately. That approach has been suggested a number of times but so far no one has implemented it. martin From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: Andreas =?UTF-8?Q?R=C3=B6hler?= , 3416@debbugs.gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 18:10:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.12436201936480 (code B ref 3416); Fri, 29 May 2009 18:10:04 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 18:03:13 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TI38uH006468 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 11:03:10 -0700 Received: from [192.168.178.27] (p54BEAB89.dip0.t-ipconnect.de [84.190.171.137]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MKsym-1MA6Q71EuP-000dok; Fri, 29 May 2009 20:03:08 +0200 Message-ID: <4A2023C0.4050700@easy-emacs.de> Date: Fri, 29 May 2009 20:04:48 +0200 From: Andreas =?UTF-8?Q?R=C3=B6hler?= User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: martin rudalics CC: 3416@debbugs.gnu.org References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> <4A201255.2050204@easy-emacs.de> <4A20170F.5030909@gmx.at> In-Reply-To: <4A20170F.5030909@gmx.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Provags-ID: V01U2FsdGVkX18ysJtgGlTgf4neAdgxBTd+ztLpLxsQ9XoC+g8 pKiRV652UyAZoQIhYtBLRl+OOItQiGDwt6e2EgANjQLKuckRIq 3PEA3oRwUaqrwtowv/A0b3RLn/ePERPWkdNw0RVm0g= martin rudalics wrote: > > you are right. Nonetheless, as strings are common > > elements of lists, not just in Python, its such an > > inconvenience, it qualifies as bug in my eyes. > > > > If you don't want to dig into scan-list, that trivial > > line I've sent is enough to cure it. > > IIUC you want to skip anything but a left paren before starting the > scan. This means you might skip the start of a comment or string and > end up before the first left paren within that comment or string. > > The only right way to do that is to parse the syntax until point first > and handle the case where you are in a comment or string OK, but checking for string seems enough, as we are inside a list. > appropriately. > That approach has been suggested a number of times but so far no one has > implemented it. > > martin > Very bad, as going down a list is a very basic task for any editor. This should work: (defun down-list (&optional arg) "Move forward down one level of parentheses. With ARG, do this that many times. A negative argument means move backward but still go down a level. This command assumes point is not in a string or comment." (interactive "^p") (or arg (setq arg 1)) (let ((inc (if (> arg 0) 1 -1))) (while (/= arg 0) ;; 2009-05-29 a.roehler@web.de changed section start (while (or (not (looking-at "\\s(")) (and (looking-at "\\s(")(in-string-p))) (forward-char 1) (skip-syntax-forward "^\\s(")) ;; 2009-05-29 a.roehler@web.de changed section end (goto-char (or (scan-lists (point) inc -1) (buffer-end arg))) (setq arg (- arg inc))))) (defun in-string-p (&optional pos) (let ((orig (or pos (point)))) (save-excursion (save-restriction (widen) (beginning-of-defun) (numberp (nth 3 (parse-partial-sexp (point) orig))))))) Grüße Andreas From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: Stefan Monnier , 3416@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 18:20:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.12436208348857 (code B ref 3416); Fri, 29 May 2009 18:20:04 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 18:13:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.4 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from pruche.dit.umontreal.ca (pruche.dit.umontreal.ca [132.204.246.22]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TIDmBo008850 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 11:13:50 -0700 Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id n4TIDmM3026420; Fri, 29 May 2009 14:13:48 -0400 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id B41093A170; Fri, 29 May 2009 14:13:45 -0400 (EDT) From: Stefan Monnier To: Andreas =?UTF-8?Q?R=C3=B6hler?= Cc: 3416@debbugs.gnu.org, martin rudalics Message-ID: References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> <4A201255.2050204@easy-emacs.de> Date: Fri, 29 May 2009 14:13:45 -0400 In-Reply-To: <4A201255.2050204@easy-emacs.de> ("Andreas =?UTF-8?Q?R=C3=B6hler"'s?= message of "Fri, 29 May 2009 18:50:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3286=0 > you are right. Nonetheless, as strings are common > elements of lists, not just in Python, its such an > inconvenience, it qualifies as bug in my eyes. Agreed. As it stands `down-list' does what it is documented to do, but it is not always the best thing to do. Same holds for `forward-sexp' and several other friends. I think these need to be split into functions (that keep the current name and behavior) and commands (with new names), where the commands can then be modified to be more clever about guessing the start state (presumably using syntax-ppss) and doing something useful with it. Stefan From unknown Sun Jun 15 13:03:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#3416: down-list Reply-To: Andreas =?UTF-8?Q?R=C3=B6hler?= , 3416@debbugs.gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 20:25:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.124362835930396 (code B ref 3416); Fri, 29 May 2009 20:25:05 +0000 Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 20:19:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, SPF_HELO_PASS autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4TKJD40030387 for <3416@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 13:19:15 -0700 Received: from [192.168.178.27] (p54BEB7B4.dip0.t-ipconnect.de [84.190.183.180]) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis) id 0ML21M-1MA8Xg2Hwl-0001uB; Fri, 29 May 2009 22:19:07 +0200 Message-ID: <4A2043A2.7030603@easy-emacs.de> Date: Fri, 29 May 2009 22:20:50 +0200 From: Andreas =?UTF-8?Q?R=C3=B6hler?= User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Stefan Monnier CC: 3416@debbugs.gnu.org, martin rudalics References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> <4A201255.2050204@easy-emacs.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1+vn9qkz4GaSyTaYMNOxQl+x/wEIssUnLFMMff aJu+zx544pkOntgCR2JpQfYfbBzYuSdwgNFXCzHg5TuRgzC6oh LVOzl3oazmUcKJccYHa/eKd5VhBk7o47K5s3a1763Y= Stefan Monnier wrote: >> you are right. Nonetheless, as strings are common >> elements of lists, not just in Python, its such an >> inconvenience, it qualifies as bug in my eyes. >> > > Agreed. As it stands `down-list' does what it is documented to do, but > it is not always the best thing to do. Same holds for `forward-sexp' > and several other friends. > > I think these need to be split into functions (that keep the current > name and behavior) and commands (with new names), where the commands can > then be modified to be more clever about guessing the start state > (presumably using syntax-ppss) and doing something useful with it. > > > Stefan > > IMHO `down-list' it simply may work as the name says. Limitation mentioned in doku may be removed. Behavior of `forward-sexp' is erratic for me, so I didn't use it. Probably it pays to reflect what it should do. Thanks all Andreas From rgm@gnu.org Fri Jun 19 11:44:51 2009 Received: (at control) by emacsbugs.donarmstrong.com; 19 Jun 2009 18:44:51 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-4.8 required=4.0 tests=AWL,ONEWORD,VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n5JIilRM028306 for ; Fri, 19 Jun 2009 11:44:48 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MHj4v-0003nG-Kn; Fri, 19 Jun 2009 14:44:45 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19003.56477.556929.810844@fencepost.gnu.org> Date: Fri, 19 Jun 2009 14:44:45 -0400 From: Glenn Morris To: control Subject: control severity 3416 wishlist merge 3605 3606 reassign 3605 emacs,ns tags 3455 notabug reassign 3620 emacs,ns tags 2377 = merge 2377 3620 retitle 2626 color-theme crash close 3607 tags 3112 moreinfo unreproducible severity 3614 minor From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 19:44:53 2010 Received: (at control) by debbugs.gnu.org; 18 Feb 2010 00:44:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhuVg-0003JZ-V5 for submit@debbugs.gnu.org; Wed, 17 Feb 2010 19:44:53 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhuVc-0003JF-QP; Wed, 17 Feb 2010 19:44:49 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NhuVY-0002QE-L7; Wed, 17 Feb 2010 19:44:44 -0500 To: "Tobias C. Rittweiler" Subject: Re: bug#5588: 23.1.50; C-M-d inside string in Lisp mode gets me out of string into unrelated sexp References: <877hqcp6f3.fsf@freebits.de> From: Glenn Morris X-Spook: Adriatic Ortega BCCI undercover Mossad constitution 9705 X-Ran: v}d>&p9|lv|Qm6EC9iL9~,X=sX?iR(~6k5(jX?!Xof;=PengztL*W8%L!%b)fci3Jgg{;v X-Hue: cyan X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 17 Feb 2010 19:44:44 -0500 In-Reply-To: <877hqcp6f3.fsf@freebits.de> (Tobias C. Rittweiler's message of "Wed\, 17 Feb 2010 10\:17\:52 +0100") 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.0 (------) X-Debbugs-Envelope-To: control Cc: 5588@debbugs.gnu.org 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.0 (------) forcemerge 3416 5588 stop "Tobias C. Rittweiler" wrote: > Move point inside the string "foo", and press C-M-d. As pointed out in http://debbugs.gnu.org/3416#10, C-h f down-list says: This command assumes point is not in a string or comment. From debbugs-submit-bounces@debbugs.gnu.org Fri May 06 15:13:14 2022 Received: (at control) by debbugs.gnu.org; 6 May 2022 19:13:14 +0000 Received: from localhost ([127.0.0.1]:49846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn3O5-0007i1-Ro for submit@debbugs.gnu.org; Fri, 06 May 2022 15:13:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nn3O4-0007hc-RA for control@debbugs.gnu.org; Fri, 06 May 2022 15:13:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZrlqiTFalsDnOlYBsKP+zk/WC+6tOYQWBVMAqkiZMmE=; b=LNOlErJhkV2eh4ObrGTSxpNAoW 6My7HCq+TJD8dmT8ZueNlH6b3QiL5xzLX3x9C2RnX2wZbEk424VZIAlH6TeW6ABTYwaYCB6mMkYUR XcolSZBQafUdoZJSmqtjG8vvSvIT6SARQqHEboMs5LTce1AZAGHYYLbl109caoHQTT5k=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nn3Nx-0001wv-4j for control@debbugs.gnu.org; Fri, 06 May 2022 21:13:07 +0200 Date: Fri, 06 May 2022 21:13:01 +0200 Message-Id: <87sfpmfpaa.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #5588 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 5588 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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: -3.3 (---) close 5588 29.1 quit