Sync.
authoryamaoka <yamaoka>
Fri, 28 Apr 2000 04:56:21 +0000 (04:56 +0000)
committeryamaoka <yamaoka>
Fri, 28 Apr 2000 04:56:21 +0000 (04:56 +0000)
lisp/ChangeLog
lisp/lpath.el
lisp/mm-view.el

index b09024e..3aa24f7 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-28 00:31:53  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * lpath.el: Fbind put-image for XEmacs.
+       * mm-view.el (mm-inline-image): Fset it.
+
 2000-04-27 23:23:37  Shenghuo ZHU  <zsh@cs.rochester.edu>
 
        * nndoc.el (nndoc-type-alist): Change forward regexp. 
index cf6c777..f6ee51d 100644 (file)
@@ -48,6 +48,7 @@
                     temp-directory babel-fetch babel-wash
                     find-coding-systems-for-charsets sc-cite-regexp
                     vcard-pretty-print image-type-available-p
+                    put-image
                     make-overlay overlay-put make-symbolic-link))
       (maybe-bind '(global-face-data
                    mark-active transient-mark-mode mouse-selection-click-count
index 9edee34..fe36cf6 100644 (file)
     (set-extent-property annot 'mm t)
     (set-extent-property annot 'duplicable t)))
 
-(defun mm-inline-image (handle)
-  (if mm-xemacs-p
-      (mm-inline-image-xemacs handle)
-    (mm-inline-image-emacs handle)))
+(eval-and-compile
+  (if (string-match "XEmacs" (emacs-version))
+      (fset 'mm-inline-image 'mm-inline-image-xemacs)
+    (fset 'mm-inline-image 'mm-inline-image-emacs)))
 
 (defvar mm-w3-setup nil)
 (defun mm-setup-w3 ()