« Return to Thread: underscore syntax

Re: underscore syntax

by Barry Warsaw :: Rate this Message:

Reply to Author | View in Thread

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Nov 29, 2008, at 12:51 PM, Jeff Bauer wrote:

> Diez B. Roggisch wrote:
>> Jeff Bauer schrieb:
>>> Did the behavior python-mode change with respect to the
>>> syntax of vars_with_underscores?  Keying M-f or M-b
>>> now stops the cursor at the underscores rather than
>>> grabbing the entire variable.  Prior, in GNU Emacs 21.4,
>>> the behavior worked as I expected.
>> I don't think that's a python-mode issue - rather emacs behaves  
>> differently. Dunno how to change that though.
>> My emacs doesn't stop at underscores. Regardless of python-mode-age.
>
> I was running the standard python-mode that ships with Ubuntu 8.10
> when I noticed it stopped at underscores.

I bet that's python.el (i.e. the one that comes with FSF Emacs).

> Downloading the recently
> announced python-mode.el 5.0.0 from LaunchPad (Thanks, Barry!) fixed
> this behavior, though I'm sure it had more to do with switching
> away from whatever python-mode is being shipped in the current
> Ubuntu.
>
> All is now sweetness and light.

Great.  I realize that I bind M-f and M-b to py-(forward|backward)-
into-nomenclature which does stop at underscores.  I've been using  
that for a bazillion years so I'm used to (and like) that behavior.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSTGMHXEjvBPtnXfVAQIvUwQAnO6p2akzlSQujktwkE2zFuw57nLa3SVd
BWSzSTAHAZcA2UvySIOUGbO4s7SbLFOGitFdER5S2Le+o3j5JH03MngqYHINMnfF
uj3iz4fXolrbFRFuL0Zf9yKpe5ezKgIXONMxWo0iISJiSR3p+2emkquURVEOTGf/
6l8+J4vsnLk=
=A53Z
-----END PGP SIGNATURE-----
_______________________________________________
Python-mode mailing list
Python-mode@...
http://mail.python.org/mailman/listinfo/python-mode

 « Return to Thread: underscore syntax