From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/10216 Path: main.gmane.org!not-for-mail From: Karl Kleinpaste Newsgroups: gmane.emacs.gnus.general Subject: Re: Permissions of auto-save files (Re: permissions of dribble file) Date: 13 Mar 1997 13:27:36 -0500 Message-ID: References: <199703131735.SAA12738@dienstmann.informatik.uni-bremen.de> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035150123 23150 80.91.224.250 (20 Oct 2002 21:42:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:42:03 +0000 (UTC) Return-Path: Original-Received: from ifi.uio.no (0@ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.8.5/8.8.5) with SMTP id KAA07643 for ; Thu, 13 Mar 1997 10:37:56 -0800 Original-Received: from pocari-sweat.jprc.com (karl@POCARI-SWEAT.JPRC.COM [207.86.147.217]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Thu, 13 Mar 1997 19:27:42 +0100 Original-Received: (from karl@localhost) by pocari-sweat.jprc.com (8.8.5/8.8.5) id NAA24940; Thu, 13 Mar 1997 13:27:36 -0500 Original-To: ding@ifi.uio.no In-Reply-To: Carsten Bormann's message of Thu, 13 Mar 1997 18:35:05 +0100 (MET) Xref: main.gmane.org gmane.emacs.gnus.general:10216 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:10216 Carsten Bormann writes: > No -- that's not your dribble file, its the auto-save file of a > not-yet-existing dribble file. > Each time we install a new version of Emacs here, we apply the > following patch: ... > The real thing would be a way to indicate, from Emacs-Lisp, the > desired privacy mode for auto-save files for each buffer in Emacs > separately -- even those that don't have files yet (that's why I put > bug-gnu-emacs into the CC). Another alternative: Bury all auto-save files in a particular directory, and then change the _directory_ mode to be 0700, thus making irrelevant the question of what modes the files themselves have. (This also happens to be a major win when you're editing files in AFS or NFS and your server departs this world for universes unknown.) # mkdir ~/.auto # chmod 700 ~/.auto # cat >> .emacs (defvar auto-save-dir "~/.auto/" "directory for auto-saves. protected.") (if (file-directory-p auto-save-dir) (defun make-auto-save-file-name () "safe/fast place for auto-saves." (interactive) (concat auto-save-dir "#" (buffer-name (current-buffer)) "#"))) ^D