emacs-diffs
[Top][All Lists]
Advanced

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

master c64fcb8 3/9: Remove some compat code from uudecode.el


From: Lars Ingebrigtsen
Subject: master c64fcb8 3/9: Remove some compat code from uudecode.el
Date: Tue, 18 Aug 2020 06:12:37 -0400 (EDT)

branch: master
commit c64fcb8ab52f6469760cc64063eb8010815e1ae5
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Remove some compat code from uudecode.el
    
    * lisp/mail/uudecode.el (uudecode-decode-region-external): Remove
    check for make-temp-file, which is always defined.
---
 lisp/mail/uudecode.el | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/lisp/mail/uudecode.el b/lisp/mail/uudecode.el
index 9423275..68e1227 100644
--- a/lisp/mail/uudecode.el
+++ b/lisp/mail/uudecode.el
@@ -86,13 +86,9 @@ used is specified by `uudecode-decoder-program'."
                                               (match-string 1)))))
        (setq tempfile (if file-name
                           (expand-file-name file-name)
-                          (if (fboundp 'make-temp-file)
-                              (let ((temporary-file-directory
-                                     uudecode-temporary-file-directory))
-                                (make-temp-file "uu"))
-                            (expand-file-name
-                             (make-temp-name "uu")
-                             uudecode-temporary-file-directory))))
+                        (let ((temporary-file-directory
+                               uudecode-temporary-file-directory))
+                          (make-temp-file "uu"))))
        (let ((cdir default-directory)
              (default-process-coding-system nil))
          (unwind-protect



reply via email to

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