[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion
From: |
Andreas Schwab |
Subject: |
bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion |
Date: |
Wed, 31 Oct 2012 08:33:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
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."
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, John Croix, 2012/10/30
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, Jan Djärv, 2012/10/30
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, John Croix, 2012/10/30
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, Jan Djärv, 2012/10/30
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, John Croix, 2012/10/30
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion,
Andreas Schwab <=
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, martin rudalics, 2012/10/31
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, Andreas Schwab, 2012/10/31
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, martin rudalics, 2012/10/31
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, John Croix, 2012/10/31
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, John Croix, 2012/10/31
- bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion, Stefan Monnier, 2012/10/31