From: Andreas Schwab <schwab@linux-m68k.org>
To: John Croix <jcroix@mac.com>
Cc: 12769@debbugs.gnu.org
Subject: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 08:33:46 +0100 [thread overview]
Message-ID: <m2lien3xk5.fsf@igel.home> (raw)
In-Reply-To: <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> (John Croix's message of "Tue, 30 Oct 2012 22:04:31 -0500")
John Croix <jcroix@mac.com> writes:
> I tracked the problem down to the following (in red):
> (setq-default indent-tabs-mode nil)
> (add-hook 'write-file-hooks
> (lambda ()
> (if (not indent-tabs-mode)
> (untabify (point-min) (point-max))
> (delete-trailing-whitespace))))
> When I comment out that line, everything works. When the line is present,
> it doesn't work.
Which line?
Have you tried reading the documentation of write-file-hooks?
List of functions to be called before writing out a buffer to a file.
If one of them returns non-nil, the file is considered already written
and the rest are not called.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2012-10-31 7:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-30 19:25 bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion John Croix
2012-10-30 20:33 ` Jan Djärv
2012-10-30 20:37 ` John Croix
2012-10-30 21:07 ` Jan Djärv
2012-10-31 3:04 ` John Croix
2012-10-31 7:33 ` Andreas Schwab [this message]
2012-10-31 7:41 ` martin rudalics
2012-10-31 8:09 ` Andreas Schwab
2012-10-31 10:27 ` martin rudalics
2012-10-31 14:50 ` John Croix
2012-10-31 15:07 ` John Croix
2012-10-31 16:09 ` Stefan Monnier
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=m2lien3xk5.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=12769@debbugs.gnu.org \
--cc=jcroix@mac.com \
/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.