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

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

bug#20480: mml-attach-file then just RET gives wrong error message


From: Lars Ingebrigtsen
Subject: bug#20480: mml-attach-file then just RET gives wrong error message
Date: Thu, 26 Jan 2017 19:10:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

M9< Dan Jacobson <jidanni@jidanni.org> writes:

> No big deal, but if one does C-c C-a
> but then just hits return,
> One gets mml-minibuffer-read-file: No such file: ~/News/drafts/drafts/16
> when one should really get "... is a directory".

That's not as easy as you'd think.  `read-file-name':

If DEFAULT-FILENAME is omitted or
nil, then if INITIAL is non-nil, the default is DIR combined with
INITIAL; otherwise, if the current buffer is visiting a file,
that file serves as the default; otherwise, the default is simply
the string inserted into the minibuffer.

Like, WTF.

Hm...  perhaps if I bind buffer-file-name...  Yup, that work.  Fixed on
the trunk now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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