diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2002-07-19 01:38:44 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2002-07-19 01:38:44 +0000 |
commit | bbaea3128cf2ab661356a7c191f057b6f20917ae (patch) | |
tree | 043c8dd42ecd0c1f239793534feccabe5a4c27d6 /generic/proof-splash.el | |
parent | 5d67acbc0b3001e095a976c0cf5f5ffa7d68a047 (diff) |
Move imagep compat code to splash
Diffstat (limited to 'generic/proof-splash.el')
-rw-r--r-- | generic/proof-splash.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/generic/proof-splash.el b/generic/proof-splash.el index b02d014c..0d00b633 100644 --- a/generic/proof-splash.el +++ b/generic/proof-splash.el @@ -78,6 +78,18 @@ These are evaluated and appended to `proof-splash-contents'." ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; Compatibility between Emacs/XEmacs. +(if (string-match "XEmacs" emacs-version) + ;; Constant nil function + (defun proof-emacs-imagep (img) + "See if IMG is an Emacs 21 image descriptor (returns nil since not E21)." + nil) + (defun proof-emacs-imagep (img) + "See if IMG is an Emacs 21 image descriptor." + (and (listp img) (eq (car img) 'image)))) + + (defun proof-splash-display-image (name &optional nojpeg) "Construct an image instantiator for an image, or string failing that. Different formats are chosen from according to what can be displayed. |