GNU bug report logs - #3416
down-list

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Andreas Roehler <andreas.roehler@HIDDEN>; merged with #5588; dated Fri, 29 May 2009 13:20:04 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 3416 5588. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to `wishlist' from `normal' Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 20:19:19 +0000
From andreas.roehler@HIDDEN Fri May 29 13:19:18 2009
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@HIDDEN>; 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@HIDDEN>
Date: Fri, 29 May 2009 22:20:50 +0200
From: =?ISO-8859-1?Q?Andreas_R=F6hler?= <andreas.roehler@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20081227)
MIME-Version: 1.0
To: Stefan Monnier <monnier@HIDDEN>
CC: 3416 <at> debbugs.gnu.org, martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#3416: down-list
References: <4A1FDF6B.3040208@HIDDEN> <4A1FF5E7.3080709@HIDDEN>	<4A201255.2050204@HIDDEN> <jwv7hzzn5jq.fsf-monnier+emacsbugreports@HIDDEN>
In-Reply-To: <jwv7hzzn5jq.fsf-monnier+emacsbugreports@HIDDEN>
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






Acknowledgement sent to Andreas Röhler <andreas.roehler@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 18:13:54 +0000
From monnier@HIDDEN Fri May 29 11:13:54 2009
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@HIDDEN>; 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 <monnier@HIDDEN>
To: Andreas =?iso-8859-1?Q?R=F6hler?= <andreas.roehler@HIDDEN>
Cc: 3416 <at> debbugs.gnu.org, martin rudalics <rudalics@HIDDEN>
Subject: Re: bug#3416: down-list
Message-ID: <jwv7hzzn5jq.fsf-monnier+emacsbugreports@HIDDEN>
References: <4A1FDF6B.3040208@HIDDEN> <4A1FF5E7.3080709@HIDDEN>
	<4A201255.2050204@HIDDEN>
Date: Fri, 29 May 2009 14:13:45 -0400
In-Reply-To: <4A201255.2050204@HIDDEN> ("Andreas =?iso-8859-1?Q?R?=
 =?iso-8859-1?Q?=F6hler=22'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



Acknowledgement sent to Stefan Monnier <monnier@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 18:03:13 +0000
From andreas.roehler@HIDDEN Fri May 29 11:03:13 2009
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@HIDDEN>; 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@HIDDEN>
Date: Fri, 29 May 2009 20:04:48 +0200
From: =?ISO-8859-1?Q?Andreas_R=F6hler?= <andreas.roehler@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20081227)
MIME-Version: 1.0
To: martin rudalics <rudalics@HIDDEN>
CC: 3416 <at> debbugs.gnu.org
Subject: Re: bug#3416: down-list
References: <4A1FDF6B.3040208@HIDDEN> <4A1FF5E7.3080709@HIDDEN> <4A201255.2050204@HIDDEN> <4A20170F.5030909@HIDDEN>
In-Reply-To: <4A20170F.5030909@HIDDEN>
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@HIDDEN 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@HIDDEN 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




Acknowledgement sent to Andreas Röhler <andreas.roehler@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 17:10:53 +0000
From rudalics@HIDDEN Fri May 29 10:10:53 2009
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@HIDDEN>; 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@HIDDEN>
Date: Fri, 29 May 2009 19:10:39 +0200
From: martin rudalics <rudalics@HIDDEN>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: =?ISO-8859-1?Q?Andreas_R=F6hler?= <andreas.roehler@HIDDEN>
CC: 3416 <at> debbugs.gnu.org
Subject: Re: bug#3416: down-list
References: <4A1FDF6B.3040208@HIDDEN> <4A1FF5E7.3080709@HIDDEN> <4A201255.2050204@HIDDEN>
In-Reply-To: <4A201255.2050204@HIDDEN>
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



Acknowledgement sent to martin rudalics <rudalics@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 16:48:56 +0000
From andreas.roehler@HIDDEN Fri May 29 09:48:55 2009
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@HIDDEN>; 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@HIDDEN>
Date: Fri, 29 May 2009 18:50:29 +0200
From: =?ISO-8859-1?Q?Andreas_R=F6hler?= <andreas.roehler@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20081227)
MIME-Version: 1.0
To: martin rudalics <rudalics@HIDDEN>
CC: 3416 <at> debbugs.gnu.org
Subject: Re: bug#3416: down-list
References: <4A1FDF6B.3040208@HIDDEN> <4A1FF5E7.3080709@HIDDEN>
In-Reply-To: <4A1FF5E7.3080709@HIDDEN>
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




Acknowledgement sent to Andreas Röhler <andreas.roehler@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at 3416@HIDDEN:


Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 14:49:25 +0000
From rudalics@HIDDEN Fri May 29 07:49:25 2009
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@HIDDEN>; 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@HIDDEN>
Date: Fri, 29 May 2009 16:49:11 +0200
From: martin rudalics <rudalics@HIDDEN>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: Andreas Roehler <andreas.roehler@HIDDEN>,
        3416 <at> debbugs.gnu.org
Subject: Re: bug#3416: down-list
References: <4A1FDF6B.3040208@HIDDEN>
In-Reply-To: <4A1FDF6B.3040208@HIDDEN>
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



Acknowledgement sent to martin rudalics <rudalics@HIDDEN>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Information forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 29 May 2009 13:11:43 +0000
From andreas.roehler@HIDDEN Fri May 29 06:11:42 2009
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 <submit@HIDDEN>; 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 <andreas.roehler@HIDDEN>)
	id 1MA1s0-0006C3-Ui
	for emacs-pretest-bug@HIDDEN; 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 <andreas.roehler@HIDDEN>)
	id 1MA1rx-0008B3-0e
	for emacs-pretest-bug@HIDDEN; 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 <andreas.roehler@HIDDEN>)
	id 1MA1rw-0008Af-El
	for emacs-pretest-bug@HIDDEN; 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@HIDDEN>
Date: Fri, 29 May 2009 15:13:15 +0200
From: Andreas Roehler <andreas.roehler@HIDDEN>
User-Agent: Thunderbird 2.0.0.19 (X11/20081227)
MIME-Version: 1.0
To: emacs-pretest-bug@HIDDEN
Subject: down-list
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:
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <down> <down> <down> <down> <right> C-M-d <left>
<left> <left> <left> <left> C-M-s C-M-d <left> C-M-d
<left> <left> C-M-d <left> <left> C-M-d C-M-d <left>
<left> <left> <left> <left> C-M-d <left> <left> C-M-d
<left> <left> C-M-d <left> <left> <left> <left> <left>
<left> <left> C-M-d <left> <left> <left> <right> C-M-d
C-M-d <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <right> C-M-d C-x C-f <M-backspace>
e m <tab> <return> M-> <up> C-h f d o w n - l i s t
<return> C-x p C-x o <return> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <return> C-x C-w C-g <help-echo>
M-+ <down> C-x C-f <up> e l . <backspace> <backspace>
i l . e l <return> <right> <right> <right> <right>
<right> C-M-d <left> <left> <left> C-M-d <left> <left>
<left> <left> <left> <left> <left> <left> <left> C-M-d
C-x C-f <M-backspace> p y t h o <tab> e p y - p <backspace>
<backspace> . p y <return> y e s <return> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <right>
<right> <right> C-M-d <left> <left> C-M-d <up> <up>
<up> <up> <up> <up> <up> <up> <up> 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
<down> <down> C-k C-k <up> <up> <right> <right> <right>
C-M-d M-x r e p o r t - e m a c s - b u g <return>

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



Acknowledgement sent to Andreas Roehler <andreas.roehler@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3416; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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