Aquamacs: kill-line/smart-spacing interaction (was Re: [OS X Emacs] AUCTeX mode annoyance)

David Reitter david.reitter at gmail.com
Tue Sep 6 23:28:19 EDT 2011


I have checked in a fix for the issue.  Thanks for reporting it once more.

- David

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!


On Aug 31, 2011, at 2:59 PM, Robert Morelli wrote:

> 
> 
> On 8/30/11 10:30 PM, David Reitter wrote:
>> On Aug 30, 2011, at 7:55 PM, Robert Morelli wrote:
>>> to be different from regular Emacs. If I kill a line of text that's indented, it sometimes
>>> deletes a space from the indentation of the next line.
>> That shouldn't be.  What happens if you turn off smart-spacing-mode?  That one is Aquamacs-specific.
>> 
> Yes, the problem goes away when smart-spacing-mode is turned off. Actually, after googling, I found
> a posting in Aquamacs-devel about this issue by the author (Nov 12, 2010, by Jeremy Thurgood), but
> nobody followed up. Then, David Swelt opened an issue on May 24, 2011, but nobody's been assigned.
> 
> For now, I'm going to keep smart-spacing-mode off since this issue is quite a nuissance. It would be nice
> if someone took it up.
> 


On Nov 12, 2010, at 12:06 PM, Jeremy Thurgood wrote:

> When smart-spacing-mode is turned on, hitting C-k (kill-line) on an
> empty line will remove the first space character on the following line
> if there is one.
> 
> For example, consider a buffer containing the following:
> 
> """
> A line.
>  An indented line.
> 
>  Another indented line.
> """
> 
> If the empty line between the two indented lines is killed, the buffer
> then contains the following:
> 
> """
> A line.
>  An indented line.
> Another indented line.
> """
> 
> Note that the indentation of the third line has changed.
> 
> The best fix is probably to check for newlines at the end of the
> killed text before removing the extra space. This problem (or the
> reverse) may occur in other situations -- I have not tested
> exhaustively. Unfortunately, I currently lack the time to learn enough
> to submit a patch.
> 
> (I have removed the debug information helpfully inserted by Aquamacs,
> as I don't believe it is necessary and it contains personal
> information.)
> 
> Thanks,
> --J
> _______________________________________________
> Aquamacs-bugs mailing list
> Aquamacs-bugs at aquamacs.org
> http://lists.aquamacs.org/mailman/listinfo.cgi/aquamacs-bugs




More information about the MacOSX-Emacs mailing list