bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9304: report-emacs-bug fails: /Mail write-protected.


From: Glenn Morris
Subject: bug#9304: report-emacs-bug fails: /Mail write-protected.
Date: Mon, 15 Aug 2011 17:12:55 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Stefan Klinger wrote:

> Reproduce: Start with a write-protected ~/Mail, run 'emacs -Q', type 'M-x 
> report-emacs-bug'. This fails with the message "make-directory: Creating 
> directory: permission denied, /home/foo/Mail/drafts". No further information 
> is provided.

I was going to say that this won't happen in Emasc 24.1, due to the
changes from http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4432,
but it still does.

Perhaps

(defcustom message-auto-save-directory
  (if (file-exists-p message-directory)
      (file-name-as-directory (expand-file-name "drafts" message-directory))
    "~/")

should use `file-writable-p' instead of `file-exists-p'.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]