diff options
| author | Katsumi Yamaoka | 2013-12-17 10:12:07 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-12-17 10:12:07 +0000 |
| commit | cb8b0736d56871ed988a6f7f2071e0bdd9f760bb (patch) | |
| tree | a173e0bc30a8140d2b2352e7b248f2aab56f5c19 /lisp | |
| parent | e9145444310f03b0b9bdcf9a227376282be45b67 (diff) | |
| download | emacs-cb8b0736d56871ed988a6f7f2071e0bdd9f760bb.tar.gz emacs-cb8b0736d56871ed988a6f7f2071e0bdd9f760bb.zip | |
lisp/gnus/mm-util.el (mm-make-temp-file): Alias to make-temp-file for modern Emacsen
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/mm-util.el | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 83b66f78f64..7cee21522b6 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-12-17 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * mm-util.el (mm-make-temp-file): | ||
| 4 | Alias to make-temp-file for modern Emacsen. | ||
| 5 | |||
| 1 | 2013-12-08 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2013-12-08 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * gnus-msg.el (gnus-setup-message): Fix the type of argument passed to | 8 | * gnus-msg.el (gnus-setup-message): Fix the type of argument passed to |
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el index 5b0fd6860a0..7ccf1c9e9ee 100644 --- a/lisp/gnus/mm-util.el +++ b/lisp/gnus/mm-util.el | |||
| @@ -1382,13 +1382,12 @@ If INHIBIT is non-nil, inhibit `mm-inhibit-file-name-handlers'." | |||
| 1382 | ;; It is not a MIME function, but some MIME functions use it. | 1382 | ;; It is not a MIME function, but some MIME functions use it. |
| 1383 | (if (and (fboundp 'make-temp-file) | 1383 | (if (and (fboundp 'make-temp-file) |
| 1384 | (ignore-errors | 1384 | (ignore-errors |
| 1385 | (let ((def (symbol-function 'make-temp-file))) | 1385 | (let ((def (if (fboundp 'compiled-function-arglist) ;; XEmacs |
| 1386 | (and (byte-code-function-p def) | 1386 | (eval (list 'compiled-function-arglist |
| 1387 | (setq def (if (fboundp 'compiled-function-arglist) | 1387 | (symbol-function 'make-temp-file))) |
| 1388 | ;; XEmacs | 1388 | (require 'help-fns) |
| 1389 | (eval (list 'compiled-function-arglist def)) | 1389 | (help-function-arglist 'make-temp-file t)))) |
| 1390 | (aref def 0))) | 1390 | (and (>= (length def) 4) |
| 1391 | (>= (length def) 4) | ||
| 1392 | (eq (nth 3 def) 'suffix))))) | 1391 | (eq (nth 3 def) 'suffix))))) |
| 1393 | (defalias 'mm-make-temp-file 'make-temp-file) | 1392 | (defalias 'mm-make-temp-file 'make-temp-file) |
| 1394 | ;; Stolen (and modified for XEmacs) from Emacs 22. | 1393 | ;; Stolen (and modified for XEmacs) from Emacs 22. |