GNU bug report logs - #20480
mml-attach-file then just RET gives wrong error message

Previous Next

Packages: gnus, emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Fri, 1 May 2015 02:51:03 UTC

Severity: minor

Tags: fixed

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 20480 <at> debbugs.gnu.org
Subject: bug#20480: mml-attach-file then just RET gives wrong error message
Date: Thu, 26 Jan 2017 19:10:13 +0100
M9< Dan Jacobson <jidanni <at> 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




This bug report was last modified 8 years and 174 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.