[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Preserving trailing spaces
From: |
jgombos |
Subject: |
Re: Preserving trailing spaces |
Date: |
Thu, 19 Apr 2007 06:32:11 -0700 (PDT) |
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.
--
View this message in context:
http://www.nabble.com/Preserving-trailing-whitespace-tf3588636.html#a10077833
Sent from the Emacs - Help mailing list archive at Nabble.com.