From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#9304: report-emacs-bug fails: /Mail write-protected. Date: Mon, 15 Aug 2011 17:12:55 -0400 Message-ID: References: <20110815145248.GB1222@stefan-klinger.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1313442809 11321 80.91.229.12 (15 Aug 2011 21:13:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2011 21:13:29 +0000 (UTC) Cc: 9304@debbugs.gnu.org, Lars Magne Ingebrigtsen To: Stefan Klinger Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 15 23:13:24 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt4TM-000252-9J for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 23:13:24 +0200 Original-Received: from localhost ([::1]:41338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt4TL-0000Ql-PC for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Aug 2011 17:13:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt4TI-0000Po-DL for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 17:13:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qt4TH-0001Ag-8C for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 17:13:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt4TH-0001Ac-2r for bug-gnu-emacs@gnu.org; Mon, 15 Aug 2011 17:13:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Qt4Uw-0004V4-ST; Mon, 15 Aug 2011 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Aug 2011 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9304 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9304-submit@debbugs.gnu.org id=B9304.131344288517256 (code B ref 9304); Mon, 15 Aug 2011 21:15:02 +0000 Original-Received: (at 9304) by debbugs.gnu.org; 15 Aug 2011 21:14:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt4Ue-0004UG-Jc for submit@debbugs.gnu.org; Mon, 15 Aug 2011 17:14:45 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qt4Uc-0004U9-BJ for 9304@debbugs.gnu.org; Mon, 15 Aug 2011 17:14:43 -0400 Original-Received: from localhost ([127.0.0.1]:59111) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qt4Su-000766-EN; Mon, 15 Aug 2011 17:12:56 -0400 X-Spook: warfare plutonium cryptographic enigma John Kerry weapons X-Ran: gd&ZU@o_Oj:)U*cByh4at*G$v)|< (Stefan Klinger's message of "Mon, 15 Aug 2011 16:52:48 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 15 Aug 2011 17:15:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:50092 Archived-At: 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'.