From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#13642: 24.3.50; python-nav-backward-sexp mishandles string movement Date: Wed, 06 Feb 2013 16:12:43 -0800 Message-ID: <5112F17B.5090808@dancol.org> References: <8762250zop.fsf@orion.kollektiv-hamburg.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2XMSGJWXOBQRIFSNQXQDA" X-Trace: ger.gmane.org 1360196028 24541 80.91.229.3 (7 Feb 2013 00:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2013 00:13:48 +0000 (UTC) Cc: 13642@debbugs.gnu.org To: Jorgen Schaefer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 07 01:14:09 2013 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 1U3F7v-0007fY-Er for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Feb 2013 01:14:07 +0100 Original-Received: from localhost ([::1]:47112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3F7c-0000LU-9M for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 19:13:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3F7Y-0000LO-Vf for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 19:13:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3F7X-0002sm-OF for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 19:13:44 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34758) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3F7X-0002si-LJ for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 19:13:43 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U3F8n-0001m0-V5 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 19:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Feb 2013 00:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13642 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13642-submit@debbugs.gnu.org id=B13642.13601960516744 (code B ref 13642); Thu, 07 Feb 2013 00:15:01 +0000 Original-Received: (at 13642) by debbugs.gnu.org; 7 Feb 2013 00:14:11 +0000 Original-Received: from localhost ([127.0.0.1]:40222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3F7y-0001kj-D1 for submit@debbugs.gnu.org; Wed, 06 Feb 2013 19:14:10 -0500 Original-Received: from dancol.org ([96.126.100.184]:54579) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3F7v-0001kb-Hb for 13642@debbugs.gnu.org; Wed, 06 Feb 2013 19:14:08 -0500 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1U3F6d-0003ZE-Ho; Wed, 06 Feb 2013 16:12:47 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <8762250zop.fsf@orion.kollektiv-hamburg.de> X-Enigmail-Version: 1.5 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.x 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:70794 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2XMSGJWXOBQRIFSNQXQDA Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2/6/2013 3:50 PM, Jorgen Schaefer wrote: > Hello! > In python-mode, I get the following behavior (with _|_ being point): >=20 > ----- > def foo(): > bar =3D "bar" > baz =3D "baz"_|_ >=20 > =3D> >=20 > _|_def foo(): > bar =3D "bar" > baz =3D "baz" > ----- That's by design. python-mode tries to emulate lisp movement as much as possible, so it considers point to be at the end of a "defun" and tries t= o skip over the entire "defun", back to the beginning. This functionality appears to be buggy: def foo(): bar =3D "bar" baz =3D "baz" x=3Dx()_|_ =3D> def foo(): bar =3D "bar" baz =3D "baz" x=3Dx_|_() I also find the behavior more counter-intuitive than useful, and I wish python-mode acted more like cc-mode here. ------enig2XMSGJWXOBQRIFSNQXQDA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Cygwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlES8X4ACgkQ17c2LVA10VvdxQCePkZMxgCFFqLE53gORQZziovq dO8AoIkkGPwUCUBV/1l9yYrMWWbDduhw =A9G+ -----END PGP SIGNATURE----- ------enig2XMSGJWXOBQRIFSNQXQDA--