help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

auto-save-file-name-transforms: When is it applied?


From: XeCycle
Subject: auto-save-file-name-transforms: When is it applied?
Date: Sat, 10 Mar 2012 15:32:15 +0800
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

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: pgpbj8_Er6t7h.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]