From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: autosave/backup file problem
Date: Fri, 15 Jun 2012 16:52:38 -0400 [thread overview]
Message-ID: <barmar-21EBA7.16523815062012@news.eternal-september.org> (raw)
In-Reply-To: mailman.2895.1339792377.855.help-gnu-emacs@gnu.org
In article <mailman.2895.1339792377.855.help-gnu-emacs@gnu.org>,
Jannis <bt_jannis@yahoo.de> wrote:
> Hi emacs users,
>
>
> i have the problem that emacs creates
>
> .#filename.txt
>
> files in the directory file while working on a file. These files create
> problems when I want to automatically create Software packages of the
> parent folder.
>
> Is there any way to tell emacs to create these files in a different
> location?
>
>
> I have put the following in my .emacs file but it seems to not change
> the behaviour of the above mentioned files:
>
>
> ;; Put autosave files (ie #foo#) and backup files (ie foo~) in ~/.emacs.d/.
> (custom-set-variables
> '(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosaves/\\1" t)))
> '(backup-directory-alist '((".*" . "~/.emacs.d/backups/"))))
Two problems:
1. custom-set-variables doesn't evaluate the value part of each argument
list, so you shouldn't have the inner quotes.
2. Your regexp for auto-save-file-name-transforms doesn't contain any
\\(...\\), so there's nothing for \\1 to be replaced with. Use \\& to
substitute the entire matched string, or write a more complex regular
expression where \\1 picks up just the filename part of the pathname.
>
>
> Thanks a lot for your help!
>
> Jannis
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
next parent reply other threads:[~2012-06-15 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2895.1339792377.855.help-gnu-emacs@gnu.org>
2012-06-15 20:52 ` Barry Margolin [this message]
2012-06-15 8:09 autosave/backup file problem Jannis
2012-06-16 6:41 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-21EBA7.16523815062012@news.eternal-september.org \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.