# HG changeset patch # User Bill Wohler # Date 1142442376 0 # Node ID 4f9233243d977274e15738c07e8cc46c1f4f8e5a # Parent 6afc0d1f682b74c2e3e04fa3975bc2b25fc71e6e (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. diff -r 6afc0d1f682b -r 4f9233243d97 lisp/ChangeLog --- a/lisp/ChangeLog Wed Mar 15 17:03:58 2006 +0000 +++ b/lisp/ChangeLog Wed Mar 15 17:06:16 2006 +0000 @@ -1,3 +1,9 @@ +2006-03-15 Bill Wohler + + * image.el (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. + 2006-03-15 Carsten Dominik * textmodes/org.el (org-insert-centered): Use `string-width' to diff -r 6afc0d1f682b -r 4f9233243d97 lisp/image.el --- a/lisp/image.el Wed Mar 15 17:03:58 2006 +0000 +++ b/lisp/image.el Wed Mar 15 17:06:16 2006 +0000 @@ -99,11 +99,13 @@ 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"))