diff options
Diffstat (limited to 'lisp/mail/binhex.el')
| -rw-r--r-- | lisp/mail/binhex.el | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/mail/binhex.el b/lisp/mail/binhex.el index 896f82d7bcc..2c77f88f97b 100644 --- a/lisp/mail/binhex.el +++ b/lisp/mail/binhex.el | |||
| @@ -83,10 +83,8 @@ input and write the converted data to its standard output." | |||
| 83 | "^[^:]...............................................................$") | 83 | "^[^:]...............................................................$") |
| 84 | (defconst binhex-end-line ":$") ; unused | 84 | (defconst binhex-end-line ":$") ; unused |
| 85 | 85 | ||
| 86 | (defvar binhex-temporary-file-directory | 86 | (make-obsolete-variable 'binhex-temporary-file-directory |
| 87 | (cond ((fboundp 'temp-directory) (temp-directory)) | 87 | 'temporary-file-directory "28.1") |
| 88 | ((boundp 'temporary-file-directory) temporary-file-directory) | ||
| 89 | ("/tmp/"))) | ||
| 90 | 88 | ||
| 91 | (defun binhex-insert-char (char &optional count ignored buffer) | 89 | (defun binhex-insert-char (char &optional count ignored buffer) |
| 92 | "Insert COUNT copies of CHARACTER into BUFFER." | 90 | "Insert COUNT copies of CHARACTER into BUFFER." |
| @@ -285,7 +283,7 @@ If HEADER-ONLY is non-nil only decode header and return filename." | |||
| 285 | (file-name (expand-file-name | 283 | (file-name (expand-file-name |
| 286 | (concat (binhex-decode-region-internal start end t) | 284 | (concat (binhex-decode-region-internal start end t) |
| 287 | ".data") | 285 | ".data") |
| 288 | binhex-temporary-file-directory))) | 286 | temporary-file-directory))) |
| 289 | (save-excursion | 287 | (save-excursion |
| 290 | (goto-char start) | 288 | (goto-char start) |
| 291 | (when (re-search-forward binhex-begin-line nil t) | 289 | (when (re-search-forward binhex-begin-line nil t) |
| @@ -296,7 +294,7 @@ If HEADER-ONLY is non-nil only decode header and return filename." | |||
| 296 | (generate-new-buffer " *binhex-work*"))) | 294 | (generate-new-buffer " *binhex-work*"))) |
| 297 | (buffer-disable-undo work-buffer) | 295 | (buffer-disable-undo work-buffer) |
| 298 | (insert-buffer-substring cbuf firstline end) | 296 | (insert-buffer-substring cbuf firstline end) |
| 299 | (cd binhex-temporary-file-directory) | 297 | (cd temporary-file-directory) |
| 300 | (apply 'call-process-region | 298 | (apply 'call-process-region |
| 301 | (point-min) | 299 | (point-min) |
| 302 | (point-max) | 300 | (point-max) |