all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Preserving trailing spaces
Date: Thu, 19 Apr 2007 18:37:58 +0300	[thread overview]
Message-ID: <874pncnzmx.fsf@kobe.laptop> (raw)
In-Reply-To: mailman.2260.1176989843.7795.help-gnu-emacs@gnu.org

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' :)

  parent reply	other threads:[~2007-04-19 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2168.1176801350.7795.help-gnu-emacs@gnu.org>
2007-04-18 23:34 ` Preserving trailing spaces Giorgos Keramidas
2007-04-19 13:32   ` jgombos
     [not found]   ` <mailman.2260.1176989843.7795.help-gnu-emacs@gnu.org>
2007-04-19 15:37     ` Giorgos Keramidas [this message]
2007-04-17  3:41 jgombos
2007-04-17 20:34 ` Dieter Wilhelm
2007-04-18 13:14   ` jgombos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874pncnzmx.fsf@kobe.laptop \
    --to=keramida@ceid.upatras.gr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.