From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#3416: down-list Date: Fri, 29 May 2009 19:10:39 +0200 Message-ID: <4A20170F.5030909@gmx.at> References: <4A1FDF6B.3040208@online.de> <4A1FF5E7.3080709@gmx.at> <4A201255.2050204@easy-emacs.de> Reply-To: martin rudalics , 3416@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243617456 4804 80.91.229.12 (29 May 2009 17:17:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 17:17:36 +0000 (UTC) Cc: 3416@emacsbugs.donarmstrong.com To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 29 19:17:32 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MA5hy-0003JD-Eu for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 19:17:30 +0200 Original-Received: from localhost ([127.0.0.1]:53778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA5hx-0004zz-Os for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 13:17:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA5hs-0004yx-UD for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 13:17:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA5ho-0004xl-B9 for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 13:17:24 -0400 Original-Received: from [199.232.76.173] (port=40599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA5ho-0004xi-83 for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 13:17:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55948) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MA5hn-0002X3-P4 for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 13:17:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4THHHlN031559; Fri, 29 May 2009 10:17:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4THF372030912; Fri, 29 May 2009 10:15:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 May 2009 17:15:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3416 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3416-submit@emacsbugs.donarmstrong.com id=B3416.124361705330450 (code B ref 3416); Fri, 29 May 2009 17:15:03 +0000 Original-Received: (at 3416) by emacsbugs.donarmstrong.com; 29 May 2009 17:10:53 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-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 Original-Received: (qmail invoked by alias); 29 May 2009 17:10:43 -0000 Original-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 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4A201255.2050204@easy-emacs.de> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.77 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 29 May 2009 13:17:24 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28299 Archived-At: > 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