From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.bugs Subject: bug#11274: 23.1; auto-save invoked in read-only directories Date: Wed, 18 Apr 2012 14:03:37 -0700 Message-ID: <1334783017.019980.2631.nullmailer@vm-home1.us.archive.org> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1334788411 16902 80.91.229.3 (18 Apr 2012 22:33:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2012 22:33:31 +0000 (UTC) Cc: danh@archive.org To: 11274@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 00:33:30 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 1SKdRK-0004sQ-8B for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Apr 2012 00:33:30 +0200 Original-Received: from localhost ([::1]:54153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKdRJ-0005O0-LF for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2012 18:33:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKdPj-0004tB-19 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 18:31:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKdPe-0005BJ-QA for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 18:31:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKdPe-0005BA-MZ for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 18:31:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SKdPt-0000ws-QB for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 18:32:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2012 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.13347882713559 (code B ref -1); Wed, 18 Apr 2012 22:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Apr 2012 22:31:11 +0000 Original-Received: from localhost ([127.0.0.1]:40433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKdP1-0000vJ-K4 for submit@debbugs.gnu.org; Wed, 18 Apr 2012 18:31:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54417) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKce7-0007QN-Cc for submit@debbugs.gnu.org; Wed, 18 Apr 2012 17:42:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKcdj-0006Rw-3f for submit@debbugs.gnu.org; Wed, 18 Apr 2012 17:42:18 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:60133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKcdj-0006Rs-0H for submit@debbugs.gnu.org; Wed, 18 Apr 2012 17:42:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49986) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKcde-0001CW-R3 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 17:42:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKcda-0006RQ-6B for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 17:42:10 -0400 Original-Received: from mail.us.archive.org ([207.241.224.6]:58083 helo=mail.archive.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKcdZ-0006RD-Tf for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2012 17:42:06 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.archive.org (Postfix) with ESMTP id A3AA9684109C; Wed, 18 Apr 2012 14:03:39 -0700 (PDT) Original-Received: from mail.archive.org ([127.0.0.1]) by localhost (mail.archive.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id J2mk6Hf8JX5v; Wed, 18 Apr 2012 14:03:38 -0700 (PDT) Original-Received: from vm-home1.us.archive.org (vm-home1.us.archive.org [207.241.224.4]) by mail.archive.org (Postfix) with SMTP id A61AE684106F; Wed, 18 Apr 2012 14:03:37 -0700 (PDT) Original-Received: (nullmailer pid 2632 invoked by uid 13003); Wed, 18 Apr 2012 21:03:37 -0000 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-Mailman-Approved-At: Wed, 18 Apr 2012 18:31:06 -0400 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-Mailman-Approved-At: Wed, 18 Apr 2012 18:33:26 -0400 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:59230 Archived-At: 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. 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.) 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) In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-11-23 on yellow, modified by Debian configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 1 ; 2 4 0 3 ; 0 c ESC x C-f r e p o r t - e m TAB RET Recent messages: Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50git-core.el (source)...done Loading /etc/emacs/site-start.d/50js2-mode.el (source)...done Loading /etc/emacs/site-start.d/50mmm-mode.el (source)...done Loading /etc/emacs/site-start.d/50php-elisp.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /home/danh/elisp/readonly.el (source)...done Loading /home/danh/.abbrev_defs...done For information about GNU Emacs and the GNU system, type C-h C-a. call-interactively: End of buffer