2006-03-06 Reiner Steib <Reiner.Steib@gmx.de>
+ * gmm-utils.el (gmm-image-load-path-for-library): Return single
+ directory if path is t.
+
* gnus-group.el (gnus-group-make-tool-bar): Use add-hook.
Suggested by Stefan Monnier <monnier@iro.umontreal.ca>.
well as in `image-load-path' and `load-path'.
This function returns the value of `load-path' augmented with the
-path to IMAGE. If PATH is given, it is used instead of
-`load-path'.
+path to IMAGE. If PATH is given, it is used instead of
+`load-path'. If PATH is t, return a single image directory
+instead of a path.
Here is an example that uses a common idiom to provide
compatibility with versions of Emacs that lack the variable
(error "Could not find image %s for library %s" image library)))
;; Return augmented `image-load-path' or `load-path'.
- (cond ((and path (symbolp path))
- (nconc (list image-directory)
+ (cond ((eq path t)
+ image-directory)
+ ((and path (symbolp path))
+ (nconc (list image-directory)
(delete image-directory
(if (boundp path)
(copy-sequence (symbol-value path))