From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: org-indent-mode corrupted most of a big org file Date: Tue, 03 Dec 2013 20:29:37 +0100 Message-ID: <8638m9d97i.fsf@somewhere.org> References: <8738mb2rhq.fsf@gmail.com> <87y542147z.fsf@gmail.com> <529E1399.7040204@gmail.com> <87eh5t4ypo.fsf@alphaville.bos.redhat.com> <87li01254o.fsf@gmail.com> <87a9gh4wk1.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Nick Dokos, Nick Dokos wrote: > Alexander Baier writes: > >> I used to set up backup-directory-alist the same way you have, but >> changed it, when I noticed emacs putting backups of files I edited as >> root into that directory. That was something I did not want to do. >> > > OK - I haven't lived with this setup long enough to know better. > > On another subject: > >> (setq backup-directory-alist >> '(("/home/delexi/*" . "/home/delexi/.emacs.d/backup"))) > > the docstring says that the car of each dotted pair in the alist is a > regexp: I presume an emacs regexp, not a shell glob pattern. So the > setting should be > > (setq backup-directory-alist '(("/home/delexi/.*" . "/some/dir"))) > > - no? Yes, I do have (for years) the following: --8<---------------cut here---------------start------------->8--- (setq backup-directory-alist '((".*" . "~/.emacs.d/backups/"))) --8<---------------cut here---------------end--------------->8--- Emacs will `make-directory' it, if necessary. Best regards, Seb -- Sebastien Vauban