[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master d47dadd 2/6: Fix the previous mml patch better
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master d47dadd 2/6: Fix the previous mml patch better |
Date: |
Thu, 26 Jan 2017 18:46:31 +0000 (UTC) |
branch: master
commit d47dadd1687e37e9d399a8b22edf11dd3f1c3f29
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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 19c19de..a4a47f9 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)
- [Emacs-diffs] master updated (cf60608 -> aeecbc0), Lars Ingebrigtsen, 2017/01/26
- [Emacs-diffs] master aeecbc0 6/6: Fix typo in last checkin, Lars Ingebrigtsen, 2017/01/26
- [Emacs-diffs] master 079b6be 3/6: Gnus doc clarification, Lars Ingebrigtsen, 2017/01/26
- [Emacs-diffs] master a1cb68b 5/6: Document nnimap-shell-program, Lars Ingebrigtsen, 2017/01/26
- [Emacs-diffs] master d47dadd 2/6: Fix the previous mml patch better,
Lars Ingebrigtsen <=
- [Emacs-diffs] master d32623f 4/6: Document :shell-command in `make-network-process', Lars Ingebrigtsen, 2017/01/26
- [Emacs-diffs] master 9fc67ae 1/6: Give a slight better error message in mml-minibuffer-read-file, Lars Ingebrigtsen, 2017/01/26