From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#11274: 23.1; auto-save invoked in read-only directories Date: Thu, 19 Apr 2012 00:44:33 -0600 Message-ID: References: <1334783017.019980.2631.nullmailer@vm-home1.us.archive.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1334817897 1147 80.91.229.3 (19 Apr 2012 06:44:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 06:44:57 +0000 (UTC) To: 11274@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 08:44:57 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKl6u-0000j8-Oy for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 08:44:56 +0200 Original-Received: from localhost ([::1]:36385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl6u-00089r-4n for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 02:44:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl6o-00089T-Ug for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:44:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKl6j-000763-Kx for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:44:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl6j-00075x-Hu for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:44:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKl70-0005UP-Ev for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Rodgers Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Apr 2012 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133481787721055 (code B ref -1); Thu, 19 Apr 2012 06:45:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Apr 2012 06:44:37 +0000 Original-Received: from localhost ([127.0.0.1]:40770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKl6X-0005TV-G3 for submit@debbugs.gnu.org; Thu, 19 Apr 2012 02:44:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36302) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKl6S-0005TG-5p for submit@debbugs.gnu.org; Thu, 19 Apr 2012 02:44:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKl61-00072y-60 for submit@debbugs.gnu.org; Thu, 19 Apr 2012 02:44:05 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:56308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl61-00072u-2m for submit@debbugs.gnu.org; Thu, 19 Apr 2012 02:44:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl5w-00087L-BO for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:44:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKl5p-000724-Qu for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:43:55 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKl5p-00071x-Jv for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 02:43:49 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SKl5n-0008R4-7F for bug-gnu-emacs@gnu.org; Thu, 19 Apr 2012 08:43:47 +0200 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Apr 2012 08:43:47 +0200 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Apr 2012 08:43:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <1334783017.019980.2631.nullmailer@vm-home1.us.archive.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:59240 Archived-At: On 4/18/12 3:03 PM, danh@mail.archive.org wrote: > When i edit a file in a directory to which i do not have > write-permission (such as /etc), after i type a line or > two of text, or type a few characters and then move around > in the buffer, emacs will suddenly freeze and just print > a message in the mini-buffer that my text could not be auto-saved. > > The message stays up for several seconds before it > yields control of the terminal back to me. > > This is extremely inconvenient, and the only way i can > prevent this from happening is to frequently save the file. These statements seem contradictory to me: > I do not want to turn auto-save off, or to mark any buffers ^^^^^^^^^^^^^^^^^^^^^^ > as to not be auto-saved, or to change the location of the ^^^^^^^^^^^^^^^^^^^^^^^ > auto-saves (unless it can be done once and forever, only > apply to files in write-protected directories and no others, > and not require a listing of either the files or directories > to which it is to be applied). > > The desired behavior is that emacs recognize that a directory ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > is write-protected, and if an attempt to write to that directory ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > fails, that it fail silently. (It would be quite OK to have ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > this governed by the behavior of a variable set in my .emacs file.) (add-hook 'find-file-hook (lambda () (when (file-writable-p (file-name-directory buffer-file-name)) (auto-save-mode 0)))) (add-hook 'find-file-not-found-functions (lambda () (when (file-writable-p (file-name-directory buffer-file-name)) (auto-save-mode 0)) ;; don't short-circuit run-hook-with-args-until-success: nil)) > I am not the only person who has reported this problem to > newsgroups, but i wasn't aware of the possibility of filing > a bug from within emacs until Michael Heerdegen told me > about it. > > (Note that emacs does not crash, and never has for me. But > the freezing happens to me, colleagues of mine, and people > i've never heard of on the newsgroups.) > > dan (danh@archive.org) -- Kevin Rodgers Denver, Colorado, USA