]> git.eshelyaron.com Git - emacs.git/commitdiff
Use featurep for XEmacs test.
authorDave Love <fx@gnu.org>
Wed, 8 Nov 2000 23:53:59 +0000 (23:53 +0000)
committerDave Love <fx@gnu.org>
Wed, 8 Nov 2000 23:53:59 +0000 (23:53 +0000)
(mm-inline-message): Test for `remove-specifier'; don't use
condition-case.

lisp/gnus/ChangeLog
lisp/gnus/mm-view.el

index e86be2db8cfa9c2b5715010f750f1d83f9550b1e..bd3cc2dbe2f9b5960c02a9b3a73ad78fbe472a20 100644 (file)
 
 2000-11-08  Dave Love  <fx@gnu.org>
 
+       * mm-view.el: Use featurep for XEmacs test.
+       (mm-inline-message): Test for `remove-specifier'; don't use
+       condition-case.
+
        * mm-bodies.el (mm-encode-body): Use mm-multibyte-p.
 
        * gnus-score.el (gnus-score-load-file): Use expand-file-name.
index 5bf4f09e3b913296cc2721ece1f9dbf0f16d9ab9..9f389ba7e3a9d5fbdb16c9fe5bafae76a98ebf77 100644 (file)
@@ -64,7 +64,7 @@
     (set-extent-property annot 'duplicable t)))
 
 (eval-and-compile
-  (if (string-match "XEmacs" (emacs-version))
+  (if (featurep 'xemacs)
       (defalias 'mm-inline-image 'mm-inline-image-xemacs)
     (defalias 'mm-inline-image 'mm-inline-image-emacs)))
 
         handle
         `(lambda ()
            (let (buffer-read-only)
-             (condition-case nil
+             (if (fboundp 'remove-specifier)
                  ;; This is only valid on XEmacs.
                  (mapcar (lambda (prop)
                            (remove-specifier
                             (face-property 'default prop) (current-buffer)))
-                         '(background background-pixmap foreground))
-               (error nil))
+                         '(background background-pixmap foreground)))
              (delete-region ,(point-min-marker) ,(point-max-marker)))))))))
 
 (defun mm-display-inline-fontify (handle mode)