You are correct.
In my .emacs file I too had a detabify function, and when I added nil as the return value my saves started working.
Thanks so much, Warren
Date: Tue, 15 Sep 2015 17:55:56 -0400
Subject: Re: Issues with edited files not being saved
From: kaushal.modi@gmail.com
To: gobold1y@hotmail.comHave you added functions to the write-file-functions hook? Or to the old hook name that this new name obsoleted?
If so, make sure that all of those functions return nil. To test if one or more of the functions added to this hook are a problem, remove all functions from the hook, and then saving should work fine.
I had to create a custom untabify function that returned nil to fix this issue: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-editing.el#L99
On Sep 15, 2015 5:22 PM, "warren ferguson" <gobold1y@hotmail.com> wrote:I've just downloaded and build a recent version of emacs.
GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw scroll bars)
> head -n 1 /.image
LinuxSET EC Image SLES11SP2-2 Revision 0 ia32e
> sysname -afs
x86-64_linux30
Unfortunately, when I edit a file and try to save it, the status line shows the usual "saving" message but that message never goes away indicating the save completed. While the attempt to save is ongoing, I can go to the terminal window and check that the file has not been updated to reflect the edits.
Interestingly, if I save the edited file to a new unused file name, the save does complete.
How do I determine why emacs is unable to write over the original file?
I checked file permissions, and they don't seem to be the source of the problem. Indeed, the emacs (version 23.2.1) that came with the OS is able to save edits to the same file.