2011-12-14 05:27 Ken Brown : | On 12/13/2011 9:54 PM, Stefan Monnier wrote: | >> The code I'm talking about is near the beginning of the definition of | >> basic-save-buffer-2' in files.el: | > | > I'm not sure what was the intention, but I know that this code is | > triggered in cases such as: | [snip] | | (... and) saving to a file that is in fact writable, for which | file-writable-p gives the wrong answer. | | > This said, the code you quote should never prevent you from saving | > a file, it should only ask for confirmation (i.e. it might be annoying | > but it shouldn't prevent you from getting your work done). For occasional confirmation, this is acceptable. But in this case every single save is prompted while I know I have a write access. The protective prompting turned into nightmare. I'm proposing following, Jari 2011-12-14 Jari Aalto * files.el (basic-save-buffer-2): Add `save-buffer-read-only-confirm-flag' to control asking to a write-protected file. (save-buffer-read-only-confirm-flag): New user variable (bug#10257).