Article View: gnu.emacs.vm.bug
Article #976Problem with auto-saving reply buffers under Win32
From: Christopher Kline
Date: Sun, 13 Jan 2002 20:08
Date: Sun, 13 Jan 2002 20:08
50 lines
2393 bytes
2393 bytes
I'm using Xemacs 21.1p9 under Win2k with VM 6.99. When I reply to a
message in VM, the buffer is named something like
reply to "Foo Bar"
Unfortunately, this causes auto-saving to fail in the win32
environment because filenames cannot contain certain characters (such
as quotes). I tried modifying vm-update-composition-buffer-name,
changing
(if (equal newbufname curbufname)
nil
(rename-buffer newbufname t)))))
to
(if (equal newbufname curbufname)
nil
(setq newbufname
(replace-in-string newbufname
"[\"<>\\/:\*\?\|]" "" t))
(rename-buffer newbufname t)))))
This correctly strips out the unwanted characters, but when I am in
the reply buffer, my buffer name is now toggled between
reply to Foo Bar
and
reply to Foo Bar<2>
This again causes auto-save to fail, because '<' and '>' are not
allowed in Win32 file names.
As I move my cursor up and down in the message, the buffer name
changes back and forth between these two values. I can't seem to
figure out what is adding the "<2>" on the end of the buffers. I
thought it was vm-rename-current-mail-buffer, but modification of that
function revealed that it wasn't the culprit.
Any ideas on how to fix this problem? Is there a hook to use to strip
out these characters in the auto-save name? I couldn't seem to find
the right hook via using apropos on "auto-save".
thanks,
chris
PS - The uniquify package is NOT loaded, and BBDB 2.32 is insinuated,
if that provides any helpful clues.
Technical Details
Message-ID:
<90b61b3b.0201131208.74bbf6b6@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6829,10944c469757edbb,start X-Google-Attributes: gidf6829,public X-Google-ArrivalTime: 2002-01-13 12:08:28 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: chriskline@yahoo.com (Christopher Kline) Newsgroups: gnu.emacs.vm.bug Subject: Problem with auto-saving reply buffers under Win32 Date: 13 Jan 2002 12:08:27 -0800 Organization: http://groups.google.com/ Lines: 50 Message-ID: <90b61b3b.0201131208.74bbf6b6@posting.google.com> NNTP-Posting-Host: 24.218.248.23 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1010952508 17683 127.0.0.1 (13 Jan 2002 20:08:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Jan 2002 20:08:28 GMT