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

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

Re: Emacs removes whitespaces at the end of lines


From: Tassilo Horn
Subject: Re: Emacs removes whitespaces at the end of lines
Date: Sun, 02 Aug 2009 20:41:56 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

"F. Unglaub" <address@hidden> writes:

Hi!

>> Back to the problem: Normally, emacs should not do that, so I guess
>> that's something you (or your sysadmin) configured.  Something like:
>>
>>   (add-hook 'before-save-hook 'delete-trailing-whitespace)
>>
>> So grep your ~/.emacs and the files in the site-lisp directory for
>> `delete-trailing-whitespace'.
>
> I can only find delete-trailing-whitespace in my rails-mode.el
> file. And I'm certain that I'm not using rails-mode for posting emails
> and news.

Well, it could be that rails-mode adds that to some hook globally.  In
the worst case, then simply loading the mode would cause that behavior.

Please poste the relevant lines of rails-mode, then we'll see if they
are the culprit.

Bye,
Tassilo





reply via email to

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