[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ec45664 04/18: Remove XEmacs compat code from binhe
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master ec45664 04/18: Remove XEmacs compat code from binhex.el |
Date: |
Thu, 20 Jun 2019 06:51:56 -0400 (EDT) |
branch: master
commit ec45664d281e343035f2162e7f9d76754d110423
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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.
---
lisp/mail/binhex.el | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/lisp/mail/binhex.el b/lisp/mail/binhex.el
index 19fcbaa..1cf50aa 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."
((boundp 'temporary-file-directory) temporary-file-directory)
("/tmp/")))
-(eval-and-compile
- (defalias 'binhex-insert-char
- (if (featurep 'xemacs)
- 'insert-char
- (lambda (char &optional count ignored buffer)
- "Insert COUNT copies of CHARACTER into BUFFER."
- (if (or (null buffer) (eq buffer (current-buffer)))
- (insert-char char count)
- (with-current-buffer buffer
- (insert-char char count)))))))
+(defun binhex-insert-char (char &optional count ignored buffer)
+ "Insert COUNT copies of CHARACTER into BUFFER."
+ (if (or (null buffer) (eq buffer (current-buffer)))
+ (insert-char char count)
+ (with-current-buffer buffer
+ (insert-char char count))))
(defvar binhex-crc-table
[0 4129 8258 12387 16516 20645 24774 28903
@@ -224,8 +220,8 @@ If HEADER-ONLY is non-nil only decode header and return
filename."
(goto-char start)
(when (re-search-forward binhex-begin-line end t)
(setq work-buffer (generate-new-buffer " *binhex-work*"))
- (unless (featurep 'xemacs)
- (with-current-buffer work-buffer (set-buffer-multibyte nil)))
+ (with-current-buffer work-buffer
+ (set-buffer-multibyte nil))
(beginning-of-line)
(setq bits 0 counter 0)
(while tmp
- [Emacs-diffs] master updated (920745e -> 77e8d41), Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 3c16eda 02/18: Remove XEmacs compat code from pascal.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master ac3219c 03/18: Remove XEmacs compat code from uudecode.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master ec45664 04/18: Remove XEmacs compat code from binhex.el,
Lars Ingebrigtsen <=
- [Emacs-diffs] master 954b58f 12/18: Remove XEmacs compat code from dns-mode.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 82aeaf1 07/18: Remove XEmacs compat code from viper-macs.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master b67a6cb 11/18: Clean up eieio-custom slightly, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 717a99d 09/18: Clean up after previous viper patch, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 4e0baad 10/18: Remove XEmacs compat code from checkdoc.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master c2e2794 01/18: Remove XEmacs support from cperl-mode, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 1f6e6ee 05/18: Remove XEmacs and old Emacs compat code from gamegrid.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 86c3d92 15/18: Remove XEmacs compat code from gravatar.el, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master 77e8d41 18/18: Declare semantic-*overlay* aliases obsolete, Lars Ingebrigtsen, 2019/06/20
- [Emacs-diffs] master a4047f9 06/18: Remove XEmacs compat code from viper-cmd.el, Lars Ingebrigtsen, 2019/06/20