emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: [Cygwin] Composing mail does not work with auto-saving turned on


From: Eli Zaretskii
Subject: Re: [Cygwin] Composing mail does not work with auto-saving turned on
Date: Mon, 28 Jun 2004 19:56:23 +0200

> Date: Mon, 28 Jun 2004 14:25:25 +0200
> From: Christian Gudrian <address@hidden>
> 
> When trying to compose a mail via M-x mail the mail buffer does not
> show up.  Instead I get the error message `Opening output file: no
> such file or directory, /home/Gudrian/#*mail*#1824XsA#'.

Thanks for the report.

I don't have the Cygwin port installed, but I'm almost sure that the
problem happens because this file name is invalid on Windows (the `*'
character is not allowed).

Take a look at the function make-auto-save-file-name defined on
files.el: it has this fragment somewhere in its middle:

        ;; Make sure auto-save file names don't contain characters
        ;; invalid for the underlying filesystem.
        (if (and (memq system-type '(ms-dos windows-nt))
                 ;; Don't modify remote (ange-ftp) filenames
                 (not (string-match "^/address@hidden:" result)))
            (convert-standard-filename result)
          result))

Does it help if you add cygwin to the list of systems that now
includes only ms-dos and windows-nt?  (Don't forget to compile
files.el and rebuild Emacs after that, since files.el is preloaded.)
There's another fragment in that function that calls
convert-standard-filename, so we had better add cygwin there as well.

This assumes that Cygwin's definition of convert-standard-filename
deals with that problem; I had no easy way of checking that, sorry.




reply via email to

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