emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 43a251c 1/2: Remove XEmacs compat code from epa.el


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 43a251c 1/2: Remove XEmacs compat code from epa.el
Date: Wed, 19 Jun 2019 16:30:26 -0400 (EDT)

branch: master
commit 43a251ccf3e54e519572f431a415fc121450d2b0
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Remove XEmacs compat code from epa.el
    
    * lisp/epa.el (epa-key-list-mode, epa-key-mode)
    (epa--find-coding-system-for-mime-charset): Remove XEmacs compat
    code and comments.
---
 lisp/epa.el | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/lisp/epa.el b/lisp/epa.el
index ad67c238..97d0b54 100644
--- a/lisp/epa.el
+++ b/lisp/epa.el
@@ -291,8 +291,6 @@ You should bind this variable with `let', but do not set it 
globally.")
   (setq truncate-lines t
        buffer-read-only t)
   (setq-local font-lock-defaults '(epa-font-lock-keywords t))
-  ;; In XEmacs, auto-initialization of font-lock is not effective
-  ;; if buffer-file-name is not set.
   (font-lock-set-defaults)
   (make-local-variable 'epa-exit-buffer-function)
   (setq-local revert-buffer-function #'epa--key-list-revert-buffer))
@@ -303,8 +301,6 @@ You should bind this variable with `let', but do not set it 
globally.")
   (setq truncate-lines t
        buffer-read-only t)
   (setq-local font-lock-defaults '(epa-font-lock-keywords t))
-  ;; In XEmacs, auto-initialization of font-lock is not effective
-  ;; if buffer-file-name is not set.
   (font-lock-set-defaults)
   (make-local-variable 'epa-exit-buffer-function))
 
@@ -872,16 +868,13 @@ For example:
                             (epg-context-result-for context 'verify)))))))
 
 (defun epa--find-coding-system-for-mime-charset (mime-charset)
-  (if (featurep 'xemacs)
-      (if (fboundp 'find-coding-system)
-         (find-coding-system mime-charset))
-    ;; Find the first coding system which corresponds to MIME-CHARSET.
-    (let ((pointer (coding-system-list)))
-      (while (and pointer
-                 (not (eq (coding-system-get (car pointer) 'mime-charset)
-                          mime-charset)))
-       (setq pointer (cdr pointer)))
-      (car pointer))))
+  ;; Find the first coding system which corresponds to MIME-CHARSET.
+  (let ((pointer (coding-system-list)))
+    (while (and pointer
+               (not (eq (coding-system-get (car pointer) 'mime-charset)
+                        mime-charset)))
+      (setq pointer (cdr pointer)))
+    (car pointer)))
 
 ;;;###autoload
 (defun epa-decrypt-armor-in-region (start end)



reply via email to

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