From d47dadd1687e37e9d399a8b22edf11dd3f1c3f29 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 26 Jan 2017 19:09:58 +0100 Subject: [PATCH] Fix the previous mml patch better * lisp/gnus/mml.el (mml-minibuffer-read-file): Fix the previous patch in a better way (bug#20480). --- lisp/gnus/mml.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 19c19decedd..a4a47f929f4 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el @@ -1249,13 +1249,12 @@ If not set, `default-directory' will be used." (defun mml-minibuffer-read-file (prompt) (let* ((completion-ignored-extensions nil) + (buffer-file-name nil) (file (read-file-name prompt (or mml-default-directory default-directory) - "" t))) + nil t))) ;; Prevent some common errors. This is inspired by similar code in ;; VM. - (when (zerop (length file)) - (error "No file name entered")) (when (file-directory-p file) (error "%s is a directory, cannot attach" file)) (unless (file-exists-p file) -- 2.39.5