From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 18:52:15 2013 Received: (at submit) by debbugs.gnu.org; 6 Feb 2013 23:52:15 +0000 Received: from localhost ([127.0.0.1]:40196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Emk-0001FC-PS for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:52:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:53098) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3Emi-0001F4-CR for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:52:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3ElQ-0005EC-Ud for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:50:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ElQ-0005E5-NX for submit@debbugs.gnu.org; Wed, 06 Feb 2013 18:50:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ElP-0005Vi-MP for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:50:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3ElO-0005Dm-MK for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:50:51 -0500 Received: from istinn.electusmatari.com ([83.169.37.145]:44302) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ElO-0005DT-G3 for bug-gnu-emacs@gnu.org; Wed, 06 Feb 2013 18:50:50 -0500 Received: from orion.kollektiv-hamburg.de (hmbg-4d06f0e6.pool.mediaWays.net [77.6.240.230]) by istinn.electusmatari.com (Postfix) with ESMTPSA id 56E99D10001D for ; Thu, 7 Feb 2013 00:50:48 +0100 (CET) Received: by orion.kollektiv-hamburg.de (Postfix, from userid 1000) id 443F232C087; Thu, 7 Feb 2013 00:50:46 +0100 (CET) From: Jorgen Schaefer To: bug-gnu-emacs@gnu.org Subject: 24.3.50; python-nav-backward-sexp mishandles string movement Date: Thu, 07 Feb 2013 00:50:46 +0100 Message-ID: <8762250zop.fsf@orion.kollektiv-hamburg.de> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -5.5 (-----) Hello! In python-mode, I get the following behavior (with _|_ being point): ----- def foo(): bar = "bar" baz = "baz"_|_ => _|_def foo(): bar = "bar" baz = "baz" ----- I would have expected point to move to the beginning of the string, not to the beginning of def. I also get this: ----- def foo(): bar = "bar"_|_ baz = "baz" => def foo(): _|_bar = "bar" baz = "baz" ----- Again, I would have expected point to end up in front of the string, not the beginning of the statement. python-mode sets forward-sexp-function, so these operations are done when using C-M-b (and C-M-f), which is very counterintuitive to me. Regards, -- Jorgen From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 06 19:14:11 2013 Received: (at 13642) by debbugs.gnu.org; 7 Feb 2013 00:14:11 +0000 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 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 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 Message-ID: <5112F17B.5090808@dancol.org> Date: Wed, 06 Feb 2013 16:12:43 -0800 From: Daniel Colascione User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Jorgen Schaefer Subject: Re: bug#13642: 24.3.50; python-nav-backward-sexp mishandles string movement References: <8762250zop.fsf@orion.kollektiv-hamburg.de> In-Reply-To: <8762250zop.fsf@orion.kollektiv-hamburg.de> X-Enigmail-Version: 1.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2XMSGJWXOBQRIFSNQXQDA" X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13642 Cc: 13642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -0.5 (/) 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-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 08 16:28:09 2013 Received: (at 13642) by debbugs.gnu.org; 8 Feb 2013 21:28:09 +0000 Received: from localhost ([127.0.0.1]:44804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3vUO-0004X9-0H for submit@debbugs.gnu.org; Fri, 08 Feb 2013 16:28:09 -0500 Received: from istinn.electusmatari.com ([83.169.37.145]:58392) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U3vUL-0004Wt-DF for 13642@debbugs.gnu.org; Fri, 08 Feb 2013 16:28:06 -0500 Received: from forcix.kollektiv-hamburg.de (hmbg-4d069430.pool.mediaWays.net [77.6.148.48]) by istinn.electusmatari.com (Postfix) with ESMTPSA id 319FED10001D; Fri, 8 Feb 2013 22:27:59 +0100 (CET) Date: Fri, 8 Feb 2013 22:27:57 +0100 From: Jorgen Schaefer To: Daniel Colascione Subject: Re: bug#13642: 24.3.50; python-nav-backward-sexp mishandles string movement Message-ID: <20130208222757.3c39a21d@forcix.kollektiv-hamburg.de> In-Reply-To: <5112F17B.5090808@dancol.org> References: <8762250zop.fsf@orion.kollektiv-hamburg.de> <5112F17B.5090808@dancol.org> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 13642 Cc: 13642@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: 0.8 (/) On Wed, 06 Feb 2013 16:12:43 -0800 Daniel Colascione wrote: > On 2/6/2013 3:50 PM, Jorgen Schaefer wrote: > > Hello! > > In python-mode, I get the following behavior (with _|_ being point): > > > > ----- > > def foo(): > > bar = "bar" > > baz = "baz"_|_ > > > > => > > > > _|_def foo(): > > bar = "bar" > > baz = "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 to skip over the entire "defun", back to the beginning. It would seem that it would make sense to assume the point is at the end of the block only if it's *past* the last line of the block, not while it's still on it. > I also find the behavior more counter-intuitive than useful, and I > wish python-mode acted more like cc-mode here. cc-mode simply leaves `forward-sexp-function' nil. Setting that to nil in python-mode-hook makes python-mode behave "intuitively" for me again. I have no idea under which circumstances this is useful. There's C-M-a to go to the beginning of a defun if I want to, and python.el could bind python-nav-backward/forward-statement to M-a and M-e which would make a lot of sense. The current behavior is just ... weird. Who is the person to decide that this should change? :-) Regards, -- Jorgen From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 13 19:30:33 2013 Received: (at 13642) by debbugs.gnu.org; 14 Feb 2013 00:30:33 +0000 Received: from localhost ([127.0.0.1]:54784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5mif-0007T0-2K for submit@debbugs.gnu.org; Wed, 13 Feb 2013 19:30:33 -0500 Received: from mail-gg0-f171.google.com ([209.85.161.171]:40567) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5mic-0007Ss-7K for 13642@debbugs.gnu.org; Wed, 13 Feb 2013 19:30:31 -0500 Received: by mail-gg0-f171.google.com with SMTP id j1so1094752ggn.30 for <13642@debbugs.gnu.org>; Wed, 13 Feb 2013 16:29:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to :content-type:content-transfer-encoding:x-gm-message-state; bh=FkE6n7w54ffgo45Mj6OqGXdNoCH+6iMre9idpydWCu0=; b=UBLvGIWVhcXc6K9oLRgM2wcO2AY6tB8l7xL5/iUeGMXb0JK9vQa1d55w8fEBj+9G4f 4mHTe2I9DoWat2pANF9GIMmoeRg/s2Fl9XNT9kpg/yI6hPtCMIZwxxyZ0+I/ZnpepuTp zzKC+8xivuMfxDmRLZvpPSSoQ9USDMxv8sILJXvU58iPIzKQghGBwoyu8RVaKZjc4ujK ZZUSZuZa0iDqWO4ORhv8WW8yLatOQ9iKBGpsnJzLTK5mpFJ2Z6Z4y27+6/ZUPR4SGdxQ Bls+ZdFTrAyLn79Bkp2LcsO54qloxhAILa3fMU0EbWOQFjx0IQBhLDkhB+a7Nltai/Uf ChbA== X-Received: by 10.236.166.34 with SMTP id f22mr28695965yhl.87.1360801795318; Wed, 13 Feb 2013 16:29:55 -0800 (PST) Received: from [192.168.1.136] (OL144-145.fibertel.com.ar. [24.232.145.144]) by mx.google.com with ESMTPS id d80sm53434323yhg.4.2013.02.13.16.29.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 16:29:54 -0800 (PST) Message-ID: <511C3064.8090902@anue.biz> Date: Wed, 13 Feb 2013 21:31:32 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: 13642@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQl2vnWqoUwfktAVOefZUaTs59fhmWsGoDaPRh5xe0ID7SIAlAJeDSluwHbRiCHf3D3hXhHx X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The current behavior follows pretty much what emacs-lisp-mode does for lisp movement, so I won't agree calling it weird, It's just a matter of taste. If setting the `forward-sexp-function' to nil fits your needs then feel free to do so. I'll add documentation in the header explaining how to disable such behavior. [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.171 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4984] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 13642 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The current behavior follows pretty much what emacs-lisp-mode does for lisp movement, so I won't agree calling it weird, It's just a matter of taste. If setting the `forward-sexp-function' to nil fits your needs then feel free to do so. I'll add documentation in the header explaining how to disable such behavior. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.171 listed in list.dnswl.org] -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% [score: 0.3311] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject The current behavior follows pretty much what emacs-lisp-mode does for lisp movement, so I won't agree calling it weird, It's just a matter of taste. If setting the `forward-sexp-function' to nil fits your needs then feel free to do so. I'll add documentation in the header explaining how to disable such behavior. The paren thing at end of defun Daniel found is a known cornercase, which unfortunately I can't fix because `blink-matching-open' needs `python-nav-forward-sexp' to behave this way to work correctly. Also notice this is not a whimsical feature, it was in fact a feature request[0] by another user. And I honestly find it pretty cool overall. [0] https://github.com/fgallina/python.el/issues/106 Regards, Fabián. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 13 19:46:53 2013 Received: (at 13642) by debbugs.gnu.org; 14 Feb 2013 00:46:53 +0000 Received: from localhost ([127.0.0.1]:54797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5myT-0007pm-00 for submit@debbugs.gnu.org; Wed, 13 Feb 2013 19:46:53 -0500 Received: from mail-gg0-f182.google.com ([209.85.161.182]:53042) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5myR-0007pf-Tx for 13642@debbugs.gnu.org; Wed, 13 Feb 2013 19:46:52 -0500 Received: by mail-gg0-f182.google.com with SMTP id d1so1081965ggn.27 for <13642@debbugs.gnu.org>; Wed, 13 Feb 2013 16:46:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to :content-type:content-transfer-encoding:x-gm-message-state; bh=TsNIyvH/G7j74c5XYno36Yntx+pN/dBRG9Vnx/cCG9k=; b=ViiBfIlDSqC6/FkaibsyWTlKN/QKzah0j0l23eq2XL3rP/IL2cL2A6YuNmYt8qHciV bp1ImXPgtSW0I7HLdZuI6zaeZrNrWeJXK3AnOYm/ZEptkcrRyzDv73jJx1R30h0MMAxK Ed9LfRUdsQciadWEaS/mX2h8/iidV7Cdxq9k8qk7xeFFy/VrVqNOPp2J4xy6Jmz/BGU1 bvpJ/YDTkN/HbbEaxbmyaI3Ga/J3DHqsnMX669Oo+WvWvwnucdKldqLFWX+dN08gVMWG wRONLhGk/aEzf1PIJafpRQQ1MmdYHj+F7NmiOTFU4ePKqNlks50IRbUG9iFCfKVHSbO6 Z74Q== X-Received: by 10.236.179.37 with SMTP id g25mr28683184yhm.47.1360802776939; Wed, 13 Feb 2013 16:46:16 -0800 (PST) Received: from [192.168.1.136] (OL144-145.fibertel.com.ar. [24.232.145.144]) by mx.google.com with ESMTPS id j13sm43727019ani.19.2013.02.13.16.46.14 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 16:46:15 -0800 (PST) Message-ID: <511C3439.3050108@anue.biz> Date: Wed, 13 Feb 2013 21:47:53 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: 13642@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Gm-Message-State: ALoCoQmwdFmlc03rWwAlpcRgq/PxXAZZ+h1abJFjjOKS7cLYBuHlOZCkyvh2smZUE0gZyA6K3eHk X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I added documentation how to disable this behavior in the header. I also changed the behavior when inside strings/comments to follow the emacs-lisp-mode behavior. All this in revno 111261. [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.182 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4983] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: 13642 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I added documentation how to disable this behavior in the header. I also changed the behavior when inside strings/comments to follow the emacs-lisp-mode behavior. All this in revno 111261. [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.182 listed in list.dnswl.org] -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% [score: 0.2686] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject I added documentation how to disable this behavior in the header. I also changed the behavior when inside strings/comments to follow the emacs-lisp-mode behavior. All this in revno 111261. Regards, Fabián. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 13 19:47:10 2013 Received: (at control) by debbugs.gnu.org; 14 Feb 2013 00:47:10 +0000 Received: from localhost ([127.0.0.1]:54801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5myk-0007qb-9R for submit@debbugs.gnu.org; Wed, 13 Feb 2013 19:47:10 -0500 Received: from mail-gg0-f173.google.com ([209.85.161.173]:39099) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5myi-0007qU-Dw for control@debbugs.gnu.org; Wed, 13 Feb 2013 19:47:08 -0500 Received: by mail-gg0-f173.google.com with SMTP id b6so1093982ggm.32 for ; Wed, 13 Feb 2013 16:46:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to :content-type:content-transfer-encoding:x-gm-message-state; bh=f0Qtz2KeSA8HzjWoVRsc5+/NUOlCvJavpW/lUVIN6NU=; b=jff7Ul/gpF7Sk6mhHEvshRaPInzfT1zvA8TH6nCBl3B7nNkPaHosgdzBDmn/f+lloE uO84zOuzIE4dK/Ia4ipKs0WixX6zNT3LVoKhj1OPTM8nlu6VvjmZlIxKhKdz2xG83Srq JiWHO7WRNBUJyHFpFP0hmAwgWMwJVxf+nSHxp97tdjWCKrOisjOPkvSOnoo8Ga8521Le B2leCKuPFjHJ1IwxiDX2SaVVaNNnwgSkX6sxFyexnBfphBW+0Hr8E2N/SQnRKxfpevjQ fUd90+aaA+3ujHwws7Del7U8HNsCARyVPNVB9CdHO1YzGCDs1CMAu8Bb4QMMhYdbeDRo yWfg== X-Received: by 10.101.179.26 with SMTP id g26mr8336704anp.7.1360802793901; Wed, 13 Feb 2013 16:46:33 -0800 (PST) Received: from [192.168.1.136] (OL144-145.fibertel.com.ar. [24.232.145.144]) by mx.google.com with ESMTPS id s3sm81486165yhm.10.2013.02.13.16.46.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 16:46:32 -0800 (PST) Message-ID: <511C344A.40602@anue.biz> Date: Wed, 13 Feb 2013 21:48:10 -0300 From: =?ISO-8859-1?Q?Fabi=E1n_Ezequiel_Gallina?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130109 Thunderbird/17.0.2 MIME-Version: 1.0 To: control@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlMs2NXhIJ5TS/VIrj//JQWHyXL2ZKN2ksXNNXDm0PHqgagHdnJ+QvaXH5pJIiGN2YaP+UG X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 13642 [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.173 listed in list.dnswl.org] 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4958] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 13642 [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.161.173 listed in list.dnswl.org] -0.0 BAYES_20 BODY: Bayes spam probability is 5 to 20% [score: 0.1805] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 TVD_SPACE_RATIO TVD_SPACE_RATIO close 13642 From unknown Tue Jun 24 13:56:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Mar 2013 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue May 14 03:34:53 2013 Received: (at control) by debbugs.gnu.org; 14 May 2013 07:34:53 +0000 Received: from localhost ([127.0.0.1]:39363 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uc9l4-0002FS-UK for submit@debbugs.gnu.org; Tue, 14 May 2013 03:34:52 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:64179) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uc9l1-0002FJ-Mm for control@debbugs.gnu.org; Tue, 14 May 2013 03:34:48 -0400 Received: from [192.168.178.21] (brln-4db9f444.pool.mediaWays.net [77.185.244.68]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0Mewwv-1UrDl1371N-00OYGL; Tue, 14 May 2013 09:34:15 +0200 Message-ID: <5191E98D.70907@easy-emacs.de> Date: Tue, 14 May 2013 09:36:45 +0200 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: control@debbugs.gnu.org Subject: unarchive 13642 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:gU14a1yP9bEOUumrtpJ3j6ujkvrdeuI+MWUy84FZjoy YCAHP//ejJPdUpGoAqXvb1NYz+1PzNaoscUkFh12qZhFWKaSFg zeaso0Zr3y5ng3gp8OgGjkjOPgdLptGXyS4UB26UlA01aT+TyO EpFfFIyWJS8xqkS5z6h09ye9kOjBgo58hHyesyoXYZ4WUgLxtc ZVFPDtbdQgRBXgR2MvGy9MlmJfaFBBPCy0P1YoXIWPdnAnoMwN nkDpZGwq4keW1mY7KE1PpWs1Eef2M/yB6ClgT6GK1D5NmiJ8Ep 1WbIzVHYwY8FCC+OndB6ltzcfTc2f8bdcJ1wznBkrRQzS7hdzp o70Yv1ykvj2Bs11Oysub5CV0mJOLaA1iKUr+G4IYr X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -1.9 (-) unarchive 13642 From debbugs-submit-bounces@debbugs.gnu.org Wed May 15 01:53:44 2013 Received: (at submit) by debbugs.gnu.org; 15 May 2013 05:53:44 +0000 Received: from localhost ([127.0.0.1]:45098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcUej-0000iM-46 for submit@debbugs.gnu.org; Wed, 15 May 2013 01:53:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35699) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UcUeg-0000i5-GK for submit@debbugs.gnu.org; Wed, 15 May 2013 01:53:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcUeX-00029c-FT for submit@debbugs.gnu.org; Wed, 15 May 2013 01:53:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-101.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:52410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcUeX-00029F-CY for submit@debbugs.gnu.org; Wed, 15 May 2013 01:53:29 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcUeV-00045T-20 for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 01:53:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UcUeU-00021n-5G for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 01:53:26 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:56962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UcUeT-0001zN-SC for bug-gnu-emacs@gnu.org; Wed, 15 May 2013 01:53:26 -0400 Received: from [192.168.178.21] (brln-4db9f307.pool.mediaWays.net [77.185.243.7]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MRSY4-1V58Oa10Ui-00SjRX; Wed, 15 May 2013 07:53:24 +0200 Message-ID: <51932367.5070200@easy-emacs.de> Date: Wed, 15 May 2013 07:55:51 +0200 From: =?ISO-8859-1?Q?Andreas_R=F6hler?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Re: bug#13642: 24.3.50; python-nav-backward-sexp mishandles string movement References: <8762250zop.fsf@orion.kollektiv-hamburg.de> <5112F17B.5090808@dancol.org> In-Reply-To: <5112F17B.5090808@dancol.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:Zt8Qra55iTftFY6z9RGst+D/siCB1tsk0AwAixhMsCf BMVFNl69Mxs038zXFmhmIdj9SMqUID8LTOQrkmWYaTmPJjsuqY 254/3bJZwdOrPX+La/SV2pBbxNNBUsI1NIjaif0kYKJy6tCNMU 6VGdMPUqvP8TdsmR+o+S4PHrVvDd42hOXdU1x5jIGCdatImXtN oJFnluKG5VA4e6s1VWO+mhmG8lWFnlX/YK9+QIg8021FQ4M97W CLn1qz+v0N7vNSP5fWUAcyNnUeFR9Blb7uDD8b500DdNgdOmGN TkzRaz11hfzp2c0dYZfosDDmUEvhAAizgjBpQjsMULejGKR6pB g0EhLLvpH8pvAjb4G3byapewJD2ngPBbGx4f8Z7aR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) Am 07.02.2013 01:12, schrieb Daniel Colascione: > On 2/6/2013 3:50 PM, Jorgen Schaefer wrote: >> Hello! >> In python-mode, I get the following behavior (with _|_ being point): >> >> ----- >> def foo(): >> bar = "bar" >> baz = "baz"_|_ >> >> => >> >> _|_def foo(): >> bar = "bar" >> baz = "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 to skip > over the entire "defun", back to the beginning. > > This functionality appears to be buggy: > > def foo(): > bar = "bar" > baz = "baz" > x=x()_|_ > > => > > def foo(): > bar = "bar" > baz = "baz" > x=x_|_() > > I also find the behavior more counter-intuitive than useful, and I wish > python-mode acted more like cc-mode here. > [ ... ] hmm, din't think so. In Python that point indicates the end of assignment baz = "baz" End of defun is reached with following dedent only. So the OP's expection seems wrong too: backward-sexp must reach the beginning of the assigment "baz =..." BTW in python-mode.el we have py-beginning-of-expression for the OP's want. Cheers, Andreas From unknown Tue Jun 24 13:56:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 12 Jun 2013 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator