unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20480: mml-attach-file then just RET gives wrong error message
       [not found] <87k2wtc9qw.fsf@jidanni.org>
@ 2017-01-26 18:10 ` Lars Ingebrigtsen
  0 siblings, 0 replies; only message in thread
From: Lars Ingebrigtsen @ 2017-01-26 18:10 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 20480

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-26 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87k2wtc9qw.fsf@jidanni.org>
2017-01-26 18:10 ` bug#20480: mml-attach-file then just RET gives wrong error message Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).