auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] Changes to auctex/toolbar-x.el


From: Reiner Steib
Subject: [AUCTeX-diffs] Changes to auctex/toolbar-x.el
Date: Thu, 20 Oct 2005 08:57:53 -0400

Index: auctex/toolbar-x.el
diff -u auctex/toolbar-x.el:1.7 auctex/toolbar-x.el:1.8
--- auctex/toolbar-x.el:1.7     Mon May  2 14:37:44 2005
+++ auctex/toolbar-x.el Thu Oct 20 12:57:52 2005
@@ -1109,7 +1109,13 @@
   (let ((file))
     (dolist (i '("" ".xpm" ".xbm" ".pbm"))
       (unless file
-       (setq file (locate-library (concat filename i) t toolbarx-image-path))))
+       (setq file
+             (or
+              (and (fboundp 'image-search-load-path) ;; Emacs 22+
+                   (boundp 'image-load-path)
+                   (image-search-load-path (concat filename i)
+                                           image-load-path))
+              (locate-library (concat filename i) t toolbarx-image-path)))))
     (when file
       (funcall (if (featurep 'xemacs) 'make-glyph 'create-image)
               file))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]