From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jgombos Newsgroups: gmane.emacs.help Subject: Re: Preserving trailing spaces Date: Thu, 19 Apr 2007 06:32:11 -0700 (PDT) Message-ID: <10077833.post@talk.nabble.com> References: <10028734.post@talk.nabble.com> <87tzvds1eb.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176989558 30794 80.91.229.12 (19 Apr 2007 13:32:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 13:32:38 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 15:32:32 2007 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 1HeWkR-00046W-Bp for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 15:32:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeWpO-0002iO-1A for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 09:37:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeWp8-0002fZ-80 for help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:37:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeWp7-0002dY-3Q for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:37:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeWp6-0002dR-Rc for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:37:20 -0400 Original-Received: from www.nabble.com ([72.21.53.35] helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HeWk8-0005tg-Pb for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:32:13 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HeWk7-0005lg-UA for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 06:32:11 -0700 In-Reply-To: <87tzvds1eb.fsf@kobe.laptop> X-Nabble-From: nabble.forum.jog@spamgourmet.com X-detected-kernel: Linux 2.4-2.6 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:42821 Archived-At: 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.