[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/display.texi
From: |
Bill Wohler |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/display.texi |
Date: |
Tue, 14 Mar 2006 19:35:08 +0000 |
Index: emacs/lispref/display.texi
diff -u emacs/lispref/display.texi:1.207 emacs/lispref/display.texi:1.208
--- emacs/lispref/display.texi:1.207 Mon Mar 13 12:41:59 2006
+++ emacs/lispref/display.texi Tue Mar 14 19:35:08 2006
@@ -4138,22 +4138,21 @@
Then this function returns a list of directories which contains first
the directory in which @var{image} was found, followed by the value of
@code{load-path}. If @var{path} is given, it is used instead of
address@hidden If @var{path} is @code{t}, then the function just
-returns the directory that contains @var{image}.
address@hidden ??? Meaningm it does not return a list?
address@hidden
-If @var{no-error} is address@hidden, this function returns @code{nil}
-if a suitable path can't be found, rather than signaling an error.
+If @var{no-error} is address@hidden and a suitable path can't be
+found, don't signal an error. Instead, return a list of directories as
+before, except that @code{nil} appears in place of the image directory.
Here is an example that uses a common idiom to provide compatibility
with versions of Emacs that lack the variable @code{image-load-path}:
@example
-(let ((load-path
- (image-load-path-for-library "mh-e" "mh-logo.xpm"))
- (image-load-path
- (image-load-path-for-library "mh-e" "mh-logo.xpm"
- 'image-load-path)))
+;; Avoid errors on Emacsen without `image-load-path'.
+(if (not (boundp 'image-load-path)) (defvar image-load-path nil))
+
+(let* ((load-path (image-load-path-for-library "mh-e" "mh-logo.xpm"))
+ (image-load-path (cons (car load-path) image-load-path)))
(mh-tool-bar-folder-buttons-init))
@end example
@end defun
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Bill Wohler, 2006/03/11
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Bill Wohler, 2006/03/11
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Richard M. Stallman, 2006/03/13
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Richard M. Stallman, 2006/03/13
- [Emacs-diffs] Changes to emacs/lispref/display.texi,
Bill Wohler <=
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Bill Wohler, 2006/03/15
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Bill Wohler, 2006/03/16
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Richard M. Stallman, 2006/03/16
- [Emacs-diffs] Changes to emacs/lispref/display.texi, Nick Roberts, 2006/03/21