Subject: Re: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion

From: Andreas Schwab <[email-masked]>
Date: Wed, 31 Oct 2012 08:33:46 +0100

John Croix <[email-masked]> 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, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."