summaryrefslogtreecommitdiff
path: root/lisp/mh-e/mh-compat.el
diff options
context:
space:
mode:
authorBill Wohler <wohler@newt.com>2006-03-15 17:03:58 +0000
committerBill Wohler <wohler@newt.com>2006-03-15 17:03:58 +0000
commitf875b154b4dbaf7901c6bff923581197c1cf8ab5 (patch)
tree77346e2d712de5de186d04d8eaeb24a38c4d9499 /lisp/mh-e/mh-compat.el
parent713cb18dec3ee8f53fa987b50de7002c298f3170 (diff)
downloademacs-f875b154b4dbaf7901c6bff923581197c1cf8ab5.tar.gz
* mh-compat.el (mh-image-load-path-for-library): Fix example by not
recommending that one binds image-load-path. Just defvar it to placate compiler and only use it if previously defined. * mh-e.el (image-load-path): Don't bind! * mh-folder.el (mh-folder-mode): Only use image-load-path if previously defined. * mh-letter.el (mh-letter-mode): Ditto. * mh-utils.el (mh-logo-display): Ditto.
Diffstat (limited to 'lisp/mh-e/mh-compat.el')
-rw-r--r--lisp/mh-e/mh-compat.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/mh-e/mh-compat.el b/lisp/mh-e/mh-compat.el
index 50542d67f4e..d4da371bffc 100644
--- a/lisp/mh-e/mh-compat.el
+++ b/lisp/mh-e/mh-compat.el
@@ -137,11 +137,13 @@ Here is an example that uses a common idiom to provide
compatibility with versions of Emacs that lack the variable
`image-load-path':
- ;; Avoid errors on Emacsen without `image-load-path'.
- (if (not (boundp 'image-load-path)) (defvar image-load-path nil))
+ ;; Shush compiler.
+ (defvar image-load-path)
(let* ((load-path (image-load-path-for-library \"mh-e\" \"mh-logo.xpm\"))
- (image-load-path (cons (car load-path) image-load-path)))
+ (image-load-path (cons (car load-path)
+ (when (boundp 'image-load-path)
+ image-load-path))))
(mh-tool-bar-folder-buttons-init))"
(unless library (error "No library specified"))
(unless image (error "No image specified"))