From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Andrus Newsgroups: gmane.emacs.bugs Subject: bug#11974: 24.1.50; python-nav-forward-sexp-function doesn't skip over strings Date: Fri, 28 Sep 2012 23:18:29 +0200 Message-ID: <51132B81-6D8E-4C01-8BEB-126649B09E4D@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348867137 7015 80.91.229.3 (28 Sep 2012 21:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Sep 2012 21:18:57 +0000 (UTC) To: 11974@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 28 23:19:03 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1THhxa-0006Oh-Qi for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 23:18:58 +0200 Original-Received: from localhost ([::1]:60977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THhxV-000719-Iy for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Sep 2012 17:18:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THhxT-000714-D8 for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 17:18:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THhxS-0000De-CE for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 17:18:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THhxS-0000Da-8P for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 17:18:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1THhxd-0003Jl-JO for bug-gnu-emacs@gnu.org; Fri, 28 Sep 2012 17:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Andrus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Sep 2012 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11974 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11974-submit@debbugs.gnu.org id=B11974.134886712612729 (code B ref 11974); Fri, 28 Sep 2012 21:19:01 +0000 Original-Received: (at 11974) by debbugs.gnu.org; 28 Sep 2012 21:18:46 +0000 Original-Received: from localhost ([127.0.0.1]:32769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THhxN-0003JG-Qm for submit@debbugs.gnu.org; Fri, 28 Sep 2012 17:18:46 -0400 Original-Received: from mail-wg0-f46.google.com ([74.125.82.46]:35560) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1THhxM-0003J9-5f for 11974@debbugs.gnu.org; Fri, 28 Sep 2012 17:18:44 -0400 Original-Received: by wgbdt12 with SMTP id dt12so1850299wgb.15 for <11974@debbugs.gnu.org>; Fri, 28 Sep 2012 14:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=gG/7Y04LwpcMhFU+rmOSK7UwtsyLfDeY/wbf1HqQRJk=; b=00uBl9r1kbFygQ5oRjAbwRnqKaAn8zeGeNA4TKSmRtCNTvBLZZh93z0mXQ5oO56ML5 nutDUWAsT+0Efcj+e51K2y5h8N6FwCFujX1qfje3JNCrsEngwgmAI4AsRVaUUBUCQTzq xYwm/gev4Eyl9TVKN+IxjZfa0Gxal5QVw/fzNkpWEYkcbTQiTIhS+ozkMFufHPVGgKC3 h3prYRT2h842YQa27gR5BDrfh0NntvKG078dKpr5SPkA2R5gOOgVUJB2DIBiXQT6Pipv scm2WnuYdPHyFCxkf6lTR1ikhqJZWz50bXiLhf7sr4V0UC7Tc99UIo8bYPPyyy5l4gme WD7Q== Original-Received: by 10.216.55.195 with SMTP id k45mr3882129wec.216.1348867111812; Fri, 28 Sep 2012 14:18:31 -0700 (PDT) Original-Received: from [10.0.2.25] (catv-80-99-177-93.catv.broadband.hu. [80.99.177.93]) by mx.google.com with ESMTPS id q4sm1413972wix.9.2012.09.28.14.18.30 (version=SSLv3 cipher=OTHER); Fri, 28 Sep 2012 14:18:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1085) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64991 Archived-At: On Jul 20, 2012, at 12:54 AM, Stefan Monnier wrote: >>> def foo(): >>> toto >>> bar >> In my mind you should skip to after bar only if the cursor is before = the def >> (or possibly anywhere in the def keyword). >=20 > This is the obvious non-controversial case, indeed. If that's > sufficient, then I think there is no remaining problem. >=20 > I just assumed that Fabi=E1n (or others) also wanted to be able to = skip > just the "block" of statements without the introductory element (like > def/if/...). I'm okay if people like the current definition of "sexp" for = python-mode, but I still think the implementatin is slightly broken. In = the simple example below I cannot get past the end of the main function = using `forward-sexp'. Is this by design? def main(): return 2+3 # I get stuck here print main() If this is by design then I'll work around it in my code. -Ivan