From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "F. Unglaub" Newsgroups: gmane.emacs.help Subject: Re: Emacs removes whitespaces at the end of lines Date: Sun, 2 Aug 2009 18:47:11 +0200 Organization: T-Online Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249235809 14661 80.91.229.12 (2 Aug 2009 17:56:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2009 17:56:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 02 19:56:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MXfIW-0003ES-Or for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 19:56:41 +0200 Original-Received: from localhost ([127.0.0.1]:42116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXfIW-0007PG-AN for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Aug 2009 13:56:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!feeder.news-service.com!feeder.erje.net!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-X-Trace: news.t-online.com 1249231631 02 n20290 WeXIQrZvgLNNvlm 090802 16:47:11 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: TnrTh+ZDrepLlbartRHrylWcSfNQR+nbo3LWrS78TNspiYtu19wYgO User-Agent: slrn/0.9.9p1 (Linux) Original-Xref: news.stanford.edu gnu.emacs.help:171483 X-Mailman-Approved-At: Sun, 02 Aug 2009 13:54:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66669 Archived-At: On 2009-08-02, Tassilo Horn wrote: > "F. Unglaub" writes: >> I use emacs with mutt and slrn (post-mode) and noticed that >> whitespaces at the end of lines are auto-removed. This leads to >> problems, for example, with the signature delimiter "-- \n". In my >> case it's reduced to "--\n" which certain newsreaders like tin >> consider wrong. [...] > 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. Could there be anything besides the mentioned hook that could cause this problem? Regards. -- Never lend your car to anyone to whom you have given birth. -- Erma Bombeck