On Oct 24, 2011, at 7:14 PM, Jason Grout wrote:
> On 10/24/11 12:07 PM, leif wrote:
>> On 24 Okt., 17:33, Jason Grout<jason-s...@creativetrax.com>  wrote:
>>> Here is one of the big situations when I like trailing spaces:
>>> 
>>> def hello():$
>>>      print 'hi'$
>>>      $
>>>      print 'bye'$
>>> 
>>> To me, it's annoying to have the cursor jump back to column 0 when
>>> scrolling down through the function.  I think that is the only situation
>>> where I get annoyed with my emacs settings of deleting trailing whitespace.
>> 
>> Well, then make emacs(?) not do that. ;)
> 
> 
> Patches to my .emacs are more than welcome! :)
> 
> Jason

If you're using Emacs 24 you can install quarter-plane.el through the GNU ELPA. 
 This uses picture mode to automatically insert spaces so that you can move 
anywhere in the full quarter plane.

I tried it and I don't like it, but YMMV.  One problem is that it pollutes the 
undo space, but I can't believe you can't work around that somehow by fiddling 
with `buffer-undo-list'.

Looking at quarter-plane mode, it seems like the magic that you want could 
probably be done by rebinding your movement keys to `picture-move-up' and 
`picture-move-down' or writing similar functions.

Personally, I detest trailing whitespace—I can't abide hitting C-e and it not 
going where I expect.  It also doesn't bother me to have the cursor jump back 
to column 0, but it might help that I have the whole line highlighted.  

-Ivan

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to