From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: auto-save-file-name-transforms: When is it applied? Date: Sat, 10 Mar 2012 15:32:15 +0800 Message-ID: <87obs4ewsg.fsf@Gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1331364749 17192 80.91.229.3 (10 Mar 2012 07:32:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Mar 2012 07:32:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 10 08:32:28 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S6Gmx-0002Qm-Pw for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2012 08:32:27 +0100 Original-Received: from localhost ([::1]:60342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Gmx-0004tz-6z for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Mar 2012 02:32:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Gmr-0004tc-Bb for help-gnu-emacs@gnu.org; Sat, 10 Mar 2012 02:32:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S6Gmp-0004Lj-NZ for help-gnu-emacs@gnu.org; Sat, 10 Mar 2012 02:32:20 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:51320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S6Gmp-0004LW-Hz for help-gnu-emacs@gnu.org; Sat, 10 Mar 2012 02:32:19 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S6Gml-0002LC-Lt for help-gnu-emacs@gnu.org; Sat, 10 Mar 2012 08:32:15 +0100 Original-Received: from 59.78.37.25 ([59.78.37.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Mar 2012 08:32:15 +0100 Original-Received: from XeCycle by 59.78.37.25 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Mar 2012 08:32:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 59.78.37.25 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:cy2dXwd1CLhCLt8Rd82oOplY/cI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83997 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. =2D-=20 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJPWwN/AAoJEI1xjsR3leWR550H/RAcp8UbhbE3KHcU7cvmRZOf MSeyffXAH/vFoYAsRcEE/SULa1nYpLmVA8rJmGdSXf6pISaM4/E/OGsbe5p68dzG dv3yKEBKg5qlvNUGL4J6/b3M4/vQ1eUm64n34r0afABS6UAKhmJkHKOf4tttnnep BHuQ95S+BhKWs0fRWG6V0XdUtBOh8RyOHXBIXj9I5VD8cx1XAsp/tAXK9tE/DZXg w/GdvkTgquO9XhVdr+LpNnQLHPv1yLjO5ciUaZV4/6kiMKWVBqIuDh7FKvu18syR VaFgA/BkaKm0/j39vyNFEKk5KuhHoONCEkaBz5rO/9b0XEeSp7Xt8JGXhYNJBaQ= =6Kq2 -----END PGP SIGNATURE----- --=-=-=--