Mercurial > emacs
comparison lisp/gnus/mm-view.el @ 33329:71ce9ad48432
Use featurep for XEmacs test.
(mm-inline-message): Test for `remove-specifier'; don't use
condition-case.
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 08 Nov 2000 23:53:08 +0000 |
parents | 54ae1def18cf |
children | a26d9b55abb6 |
comparison
equal
deleted
inserted
replaced
33328:e97560ed979b | 33329:71ce9ad48432 |
---|---|
62 ,(set-marker (make-marker) (point)))))) | 62 ,(set-marker (make-marker) (point)))))) |
63 (set-extent-property annot 'mm t) | 63 (set-extent-property annot 'mm t) |
64 (set-extent-property annot 'duplicable t))) | 64 (set-extent-property annot 'duplicable t))) |
65 | 65 |
66 (eval-and-compile | 66 (eval-and-compile |
67 (if (string-match "XEmacs" (emacs-version)) | 67 (if (featurep 'xemacs) |
68 (defalias 'mm-inline-image 'mm-inline-image-xemacs) | 68 (defalias 'mm-inline-image 'mm-inline-image-xemacs) |
69 (defalias 'mm-inline-image 'mm-inline-image-emacs))) | 69 (defalias 'mm-inline-image 'mm-inline-image-emacs))) |
70 | 70 |
71 (defvar mm-w3-setup nil) | 71 (defvar mm-w3-setup nil) |
72 (defun mm-setup-w3 () | 72 (defun mm-setup-w3 () |
249 handles (list handles))))) | 249 handles (list handles))))) |
250 (mm-handle-set-undisplayer | 250 (mm-handle-set-undisplayer |
251 handle | 251 handle |
252 `(lambda () | 252 `(lambda () |
253 (let (buffer-read-only) | 253 (let (buffer-read-only) |
254 (condition-case nil | 254 (if (fboundp 'remove-specifier) |
255 ;; This is only valid on XEmacs. | 255 ;; This is only valid on XEmacs. |
256 (mapcar (lambda (prop) | 256 (mapcar (lambda (prop) |
257 (remove-specifier | 257 (remove-specifier |
258 (face-property 'default prop) (current-buffer))) | 258 (face-property 'default prop) (current-buffer))) |
259 '(background background-pixmap foreground)) | 259 '(background background-pixmap foreground))) |
260 (error nil)) | |
261 (delete-region ,(point-min-marker) ,(point-max-marker))))))))) | 260 (delete-region ,(point-min-marker) ,(point-max-marker))))))))) |
262 | 261 |
263 (defun mm-display-inline-fontify (handle mode) | 262 (defun mm-display-inline-fontify (handle mode) |
264 (let (text) | 263 (let (text) |
265 (with-temp-buffer | 264 (with-temp-buffer |