help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preserving trailing spaces


From: Giorgos Keramidas
Subject: Re: Preserving trailing spaces
Date: Thu, 19 Apr 2007 18:37:58 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (berkeley-unix)

jgombos <nabble.forum.jog@spamgourmet.com> writes:
> Giorgos Keramidas wrote:
>> It looks like your `write-file-hooks' deletes whitespace.
>> 
>> Can you check the value of this variable when you have opened
>> a buffer with your source code?  I don't have any local
>> write-file-hooks loaded right now, so when I type `M-: (list
>> write-file-hooks)' my message buffer shows:
>> 
>>     (nil)
>> 
>> If yours shows a non-nil list of hooks, you should examine the
>> hooks to see if one (or more) of them calls
>> `delete-trailing-whitespace' or some other custom function
>> with a similar effect.
> 
> Thanks for the tip.  That's useful to know.  I listed the
> write-file-hooks, and the result was (nil).  Dieter Wilhelm's
> solution worked
> [which was to add (setq ada-clean-buffer-before-saving nil) to
> .emacs], so it must have been a major mode hook that removed
> the trailing whitespace.

Nice.  I didn't know about `ada-clean-buffer-before-saving' :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]