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

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

bug#3016: 23.0.92.2; offer to make a directory when saving if it is need


From: Kazuhiro Ito
Subject: bug#3016: 23.0.92.2; offer to make a directory when saving if it is needed
Date: Thu, 21 Feb 2013 00:33:10 +0900
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.3.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO)

At Tue, 12 Feb 2013 03:37:39 -0500,
Glenn Morris wrote:
> 
> Version: 24.4
> 
> Daniel Clemente wrote:
> 
> > 1. Do: C-x C-f /tmp/doesnotexist/myfile RET. Emacs tells you about
> > make-directory
> > 2. Type something.
> > 3. C-x C-s. Error: no such directory
> >
> > I suggest that Emacs not only tell the user about make-directory, but
> > actually ask him/her in a y-n question if the directory should be
> > created. This should happen on save.
> 
> Sorry for the huge delay. This seems like a good idea, so I did it.

I want this check is done more later.  Because, in draft buffers of
Wanderlust (a message user agent), buffer-file-name does not indicate
actual file name and saving file is done via hook functions (such as
write-contents-functions, local-write-file-hooks,
write-file-functions).  In such case, this offer could make incorrect
directory.

-- 
Kazuhiro Ito





reply via email to

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