diff options
| author | Lars Ingebrigtsen | 2019-06-19 23:52:57 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-20 12:51:38 +0200 |
| commit | ec45664d281e343035f2162e7f9d76754d110423 (patch) | |
| tree | 18d1d29f4ac2f635a9c35d14b48a05c48e6395f4 | |
| parent | ac3219c0e8f051fefed87a58590a3e66e5eff2e1 (diff) | |
| download | emacs-ec45664d281e343035f2162e7f9d76754d110423.tar.gz emacs-ec45664d281e343035f2162e7f9d76754d110423.zip | |
Remove XEmacs compat code from binhex.el
* lisp/mail/binhex.el (binhex-insert-char): Remove XEmacs compat
code and made into a function instead of a defalias.
(binhex-decode-region-internal): Remove XEmacs compat code.
| -rw-r--r-- | lisp/mail/binhex.el | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/lisp/mail/binhex.el b/lisp/mail/binhex.el index 19fcbaaf475..1cf50aa0678 100644 --- a/lisp/mail/binhex.el +++ b/lisp/mail/binhex.el | |||
| @@ -88,16 +88,12 @@ input and write the converted data to its standard output." | |||
| 88 | ((boundp 'temporary-file-directory) temporary-file-directory) | 88 | ((boundp 'temporary-file-directory) temporary-file-directory) |
| 89 | ("/tmp/"))) | 89 | ("/tmp/"))) |
| 90 | 90 | ||
| 91 | (eval-and-compile | 91 | (defun binhex-insert-char (char &optional count ignored buffer) |
| 92 | (defalias 'binhex-insert-char | 92 | "Insert COUNT copies of CHARACTER into BUFFER." |
| 93 | (if (featurep 'xemacs) | 93 | (if (or (null buffer) (eq buffer (current-buffer))) |
| 94 | 'insert-char | 94 | (insert-char char count) |
| 95 | (lambda (char &optional count ignored buffer) | 95 | (with-current-buffer buffer |
| 96 | "Insert COUNT copies of CHARACTER into BUFFER." | 96 | (insert-char char count)))) |
| 97 | (if (or (null buffer) (eq buffer (current-buffer))) | ||
| 98 | (insert-char char count) | ||
| 99 | (with-current-buffer buffer | ||
| 100 | (insert-char char count))))))) | ||
| 101 | 97 | ||
| 102 | (defvar binhex-crc-table | 98 | (defvar binhex-crc-table |
| 103 | [0 4129 8258 12387 16516 20645 24774 28903 | 99 | [0 4129 8258 12387 16516 20645 24774 28903 |
| @@ -224,8 +220,8 @@ If HEADER-ONLY is non-nil only decode header and return filename." | |||
| 224 | (goto-char start) | 220 | (goto-char start) |
| 225 | (when (re-search-forward binhex-begin-line end t) | 221 | (when (re-search-forward binhex-begin-line end t) |
| 226 | (setq work-buffer (generate-new-buffer " *binhex-work*")) | 222 | (setq work-buffer (generate-new-buffer " *binhex-work*")) |
| 227 | (unless (featurep 'xemacs) | 223 | (with-current-buffer work-buffer |
| 228 | (with-current-buffer work-buffer (set-buffer-multibyte nil))) | 224 | (set-buffer-multibyte nil)) |
| 229 | (beginning-of-line) | 225 | (beginning-of-line) |
| 230 | (setq bits 0 counter 0) | 226 | (setq bits 0 counter 0) |
| 231 | (while tmp | 227 | (while tmp |