GNU bug report logs - #12769
24.2; Files won't save on Macintosh/Mountain Lion

Previous Next

Package: emacs;

Reported by: John Croix <jcroix <at> mac.com>

Date: Tue, 30 Oct 2012 19:32:01 UTC

Severity: normal

Tags: notabug

Found in version 24.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: John Croix <jcroix <at> mac.com>
Cc: 12769 <at> debbugs.gnu.org, Jan Djärv <jan.h.d <at> swipnet.se>
Subject: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
Date: Wed, 31 Oct 2012 08:33:46 +0100
John Croix <jcroix <at> 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 <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 12 years and 261 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.