emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: org-indent-mode corrupted most of a big org file
Date: Tue, 03 Dec 2013 20:29:37 +0100	[thread overview]
Message-ID: <8638m9d97i.fsf@somewhere.org> (raw)
In-Reply-To: 87a9gh4wk1.fsf@alphaville.bos.redhat.com

Nick Dokos,

Nick Dokos wrote:
> Alexander Baier <lexi.baier-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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

  reply	other threads:[~2013-12-03 19:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02 11:21 org-indent-mode corrupted most of a big org file Rainer Stengele
2013-12-02 11:31 ` Sebastien Vauban
2013-12-02 12:06   ` Carsten Dominik
2013-12-02 15:37 ` Alexander Baier
2013-12-02 19:11   ` Nicolas Richard
2013-12-03  8:33   ` Johann Spies
2013-12-03 12:58     ` Alexander Baier
2013-12-03 17:23       ` Johann Spies
2013-12-03 17:37         ` Alexander Baier
2013-12-03 17:43         ` Nick Dokos
2013-12-03 17:53           ` Alexander Baier
2013-12-03 18:30             ` Nick Dokos
2013-12-03 19:29               ` Sebastien Vauban [this message]
2013-12-04  9:43               ` Alexander Baier
2013-12-03 18:15         ` org-indent-mode corrupted most of a big org file (solved backups) Johann Spies
2013-12-06 14:41       ` org-indent-mode corrupted most of a big org file Johann Spies
2013-12-07 10:48         ` Alexander Baier
2013-12-04  8:25 ` Nicolas Goaziou
2013-12-04 11:26   ` Rainer Stengele
2013-12-04 13:16     ` Nicolas Goaziou
2013-12-12 14:48 ` Rainer Stengele

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8638m9d97i.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).