unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: XeCycle <XeCycle@Gmail.com>
To: help-gnu-emacs@gnu.org
Subject: auto-save-file-name-transforms: When is it applied?
Date: Sat, 10 Mar 2012 15:32:15 +0800	[thread overview]
Message-ID: <87obs4ewsg.fsf@Gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 715 bytes --]

Hello,

I don't like the default auto-save file name, since it doesn't
start with a period `.'.  So I modified this variable:

(add-to-list 'auto-save-file-name-transforms
             '("\\`\\(.*\\)/\\([^/]*\\)\\'" "\\1/.\\2" nil))

However, for a file like ~/sdf, the auto save file name became
~/#.sdf#.  Seems the transform is done before prepending and
appending #.  I remember some time ago, with some other
customization, the name can be like .#sdf#, but I lost that
configuration.  How can I change that?

Thank you.

-- 
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

                 reply	other threads:[~2012-03-10  7:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87obs4ewsg.fsf@Gmail.com \
    --to=xecycle@gmail.com \
    --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.
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).