From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: emacs changed file's own user and file permission Date: Fri, 14 Dec 2007 21:21:09 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4ad823b9-4941-4883-8771-de43d50913de@e25g2000prg.googlegroups.com> <3cc756b9-6379-4395-b9a2-bbf8e3b2776d@a35g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1197769499 22710 80.91.229.12 (16 Dec 2007 01:44:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Dec 2007 01:44:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 16 02:45:10 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J3iYu-0005jz-O4 for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Dec 2007 02:45:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J3iYj-0006NC-Vg for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Dec 2007 20:44:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!s19g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: 64.9.239.250 Original-X-Trace: posting.google.com 1197696070 3526 127.0.0.1 (15 Dec 2007 05:21:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 15 Dec 2007 05:21:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s19g2000prg.googlegroups.com; posting-host=64.9.239.250; posting-account=qPxGtQkAAADb6PWdLGiWVucht1ZDR6fn User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12 (KHTML, like Gecko) Version/3.0.4 Safari/523.12, gzip(gfe), gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:154669 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50097 Archived-At: Peter Dyballa wrote: $B!V(BWhat about .emacs.d/backups? ~/.emacs.d is quite common, containing default.el, auto-save-list or such. It could also be home for session and desktop files, private Elisp ...$B!W(B Yeah, it's a good suggestion. Thanks. ------------- I just did a test out of curiosity about what happens when the backup file name is too long. Put this is your emacs init file: (setq backup-directory-alist '(("" . "~/.emacs.d/emacs-backup"))) Then create a file such that its path is very long. Then, emacs's backup will silently fail (not creating backup at the expected location). Upon manually switching and reading the $B!H(B*Messages*$B!I(B buffer, i found: $B!H(BCannot write backup file; backing up in /Users/xah/%backup%~$B!I(B and indeed the file is backed up there. The file i tested with is this: /Users/xah/web/PageTwo_dir/Personal_dir/AliceInWonderland_dir/ 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789 123456789/that is one hundred if you dont believe me you can see it for yourselves and you dummy dont challeng./ano This is on Mac OS X 10.4.11. Xah xah@xahlee.org $B-t(B http://xahlee.org/ On Dec 11, 3:03 pm, Peter Dyballa wrote: > Am 11.12.2007 um 21:49 schriebXahLee: > > > PS addendum to my previous suggestion about sperater dir for emacs > > backup: the default backup dir should be fixed by default such as > > ".emacs_backup". (as opposed to asking a user to set it.) User can > > still change it of course. The thing here is that having a > > standardized emacs backup dir location is good. > > What about .emacs.d/backups? ~/.emacs.d is quite common, containing > default.el, auto-save-list or such. It could also be home for > session and desktop files, private Elisp ... > > BTW, I'd prefer to have the options of "traditional" and unified > backup. And probably it would be a good idea to have another choice > between flat and in a tree "unified" backup. > > Why is it such a huge problem to make a complete proposal?