coding in emacs 23

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

coding in emacs 23

Jeff Bauer
After upgrading to emac23, I noticed one big
difference in editing python code ... or, well
editing anything.

      0123456789012345678901234567890123456789
   1  One-really-long-line-of-text-and-newline
   2  -doesn't-appear-until-full-stop-HERE.
   3  Second-line-of-code

It used to be if my cursor was positioned on
(0,1) and I pressed ^N, the cursor would jump
down to the second line of code (0,3).  Now it
goes to (0,2) which is still considered (0,50).

I think I preferred the older behavior for
coding -- especially when I'm ThinkingInPython.
Now I grab a line of code only to look up and
realize I've only grabbed the first portion of
the python statement.

This also messes up the way I used to do some
on-the-fly macros.  Anyone else affected by this
disconnect?

--
Jeff Bauer
Rubicon, Inc.
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: coding in emacs 23

Bernhard Herzog-3
On 27.01.2010, Jeff Bauer wrote:

> After upgrading to emac23, I noticed one big
> difference in editing python code ... or, well
> editing anything.
>
>       0123456789012345678901234567890123456789
>    1  One-really-long-line-of-text-and-newline
>    2  -doesn't-appear-until-full-stop-HERE.
>    3  Second-line-of-code
>
> It used to be if my cursor was positioned on
> (0,1) and I pressed ^N, the cursor would jump
> down to the second line of code (0,3).  Now it
> goes to (0,2) which is still considered (0,50).

That's a new default in Emacs 23 called visual line mode IIRC.
You can get the old behavior back with the following setting in ~/.emacs:

(setq line-move-visual nil)

  Bernhard

--
Bernhard Herzog  |  ++49-541-335 08 30  |  http://www.intevation.de/
Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: coding in emacs 23

Andreas Röhler-2
In reply to this post by Jeff Bauer
Jeff Bauer wrote:

> After upgrading to emac23, I noticed one big
> difference in editing python code ... or, well
> editing anything.
>
>      0123456789012345678901234567890123456789
>   1  One-really-long-line-of-text-and-newline
>   2  -doesn't-appear-until-full-stop-HERE.
>   3  Second-line-of-code
>
> It used to be if my cursor was positioned on
> (0,1) and I pressed ^N,

Hmm, probably a most basic key binding, ignore it nonetheless

Could you describe this a little bit, tell the command name behind?

BTW assume you are referring to python.el, not python-mode.el, right?

Andreas

--
https://code.launchpad.net/s-x-emacs-werkstatt/


 the cursor would jump

> down to the second line of code (0,3).  Now it
> goes to (0,2) which is still considered (0,50).
>
> I think I preferred the older behavior for
> coding -- especially when I'm ThinkingInPython.
> Now I grab a line of code only to look up and
> realize I've only grabbed the first portion of
> the python statement.
>
> This also messes up the way I used to do some
> on-the-fly macros.  Anyone else affected by this
> disconnect?
>

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: coding in emacs 23

Barry Warsaw
In reply to this post by Bernhard Herzog-3
On Jan 27, 2010, at 4:09 AM, Bernhard Herzog wrote:

> That's a new default in Emacs 23 called visual line mode IIRC.
> You can get the old behavior back with the following setting in ~/.emacs:
>
> (setq line-move-visual nil)

Yep, this one annoyed the crap out of me too when I upgraded, until I found out what was going on and "fixed" it. :)

-Barry

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode
Reply | Threaded
Open this post in threaded view
|

Re: coding in emacs 23

Jeff Bauer-2
In reply to this post by Bernhard Herzog-3
On 01/27/2010 03:09 AM, Bernhard Herzog wrote:

> On 27.01.2010, Jeff Bauer wrote:
>> It used to be if my cursor was positioned on
>> (0,1) and I pressed ^N, the cursor would jump
>> down to the second line of code (0,3).  Now it
>> goes to (0,2) which is still considered (0,50).
>
> That's a new default in Emacs 23 called visual line mode IIRC.
> You can get the old behavior back with the following setting in ~/.emacs:
>
> (setq line-move-visual nil)

I see:  http://www.emacswiki.org/emacs/VisualLineMode

As the wiki suggests, it would make more sense to enable this
for text mode and leave it disabled for editing code:

     (add-hook 'text-mode-hook 'turn-on-visual-line-mode)

-Jeff
_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode