From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Slass Newsgroups: gmane.emacs.help Subject: Re: Autosave and filename too long Date: Thu, 24 Oct 2002 17:03:41 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <_DOt9.20721$DP6.65383@news-server.bigpond.net.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035479489 8705 80.91.224.249 (24 Oct 2002 17:11:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2002 17:11:29 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184lVy-0002ER-00 for ; Thu, 24 Oct 2002 19:11:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184lS4-0000o3-00; Thu, 24 Oct 2002 13:07:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-NNTP-Posting-Host: 12.228.27.239 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc52.ops.asp.att.net 1035479021 12.228.27.239 (Thu, 24 Oct 2002 17:03:41 GMT) Original-NNTP-Posting-Date: Thu, 24 Oct 2002 17:03:41 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:106334 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2885 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2885 >> "Matt Muggeridge" writes: >> >> I would like to try changing the "#" character to learn if it makes >> a difference. >> >> Thanks, >> Matt. >> >> >>"Michael Slass" wrote in message >>news:m33cqwqufe.fsf@localhost.localdomain... >> >> (defadvice make-auto-save-file-name (after auto-save-remove-hash-mark ()) >> "return an autosave file name, replacing \"#\" with \"OCTOTHORPE\"" >> (setq ad-return-value >> (replace-regexp-in-string "#" "OCTOTHORPE" ad-return-value))) >> >> (ad-activate 'make-auto-save-file-name) >> >> >> (defun auto-save-file-name-p (filename) >> "Return non-nil if FILENAME can be yielded by `make-auto-save-file-name'. >> FILENAME should lack slashes. You can redefine this for customization." >> (string-match "^OCTOTHORPE.*OCTOTHORPE$" filename)) "Matt Muggeridge" writes: >Michael, > >Thanks for making the octothorpe go away! The auto-save feature is now >working. > >On to the next hurdle... > >The recover feature of emacs is still searching for files of name #foo.c#. >So after a quick test, I tried to recover foo.c (I first verifed the >contents of "OCTOTHORPEfoo.cOCTOTHORPE" existed and contained 'lost' edits). >The recover operation complained with: > > Auto-save file /usr/users/muggerid/kingsx/#foo.c# not current > >Now that auto-save is working, what is needed to make recover aware of this >new auto-save file name format? > >Matt. Hmmm... I'm not sure why that is, since recover-file uses make-auto-save-file-name to generate the recovery file name, so it should match. I'll keep looking at it, but perhaps one of the gurus might have an idea? -- Mike Slass