Fix XEmacs 21.5 compilation failure. Really.
authorAdam Sjøgren <asjo@koldfront.dk>
Wed, 26 Dec 2012 16:35:55 +0000 (17:35 +0100)
committerAdam Sjøgren <asjo@koldfront.dk>
Wed, 26 Dec 2012 16:35:55 +0000 (17:35 +0100)
* mml2015.el (mml2015-epg-key-image): protect call to
set-buffer-multibyte with featurep 'xemacs for XEmacs
21.5 compability.

lisp/mml2015.el

index e9c52b5..d39ce28 100644 (file)
@@ -823,8 +823,7 @@ If set, it overrides the setting of `mml2015-sign-with-sender'."
 (defun mml2015-epg-key-image (key-id)
   "Return the image of a key, if any"
   (with-temp-buffer
-    (when (fboundp 'set-buffer-multibyte)
-      (set-buffer-multibyte nil))
+    (unless (featurep 'xemacs) (set-buffer-multibyte nil))
     (let* ((coding-system-for-write 'binary)
            (coding-system-for-read 'binary)
            (data (shell-command-to-string