Mercurial > emacs
diff lisp/mh-e/mh-letter.el @ 69245:f3bbf5f32462
* mh-folder.el (mh-tool-bar-init): Autoload.
(mh-folder-mode): Call mh-tool-bar-init conditionally in XEmacs. Set
scoped variables image-load-path and load-path with updated
mh-image-load-path before calling mh-tool-bar-folder-buttons-init.
* mh-letter.el (mh-tool-bar-init): Autoload.
(mh-letter-mode): Call mh-tool-bar-init conditionally in XEmacs. Set
scoped variables image-load-path and load-path with updated
mh-image-load-path before calling mh-tool-bar-letter-buttons-init.
* mh-show.el (mh-tool-bar-init): Autoload.
(mh-show-mode): Perform tool bar stuff conditionally in XEmacs and GNU
Emacs.
* mh-tool-bar.el (mh-tool-bar-define): Don't quote stuff in error
messages per conventions.
(mh-tool-bar-folder-buttons-init)
(mh-tool-bar-letter-buttons-init): Don't call mh-image-load-path.
(mh-tool-bar-define call): Format.
* mh-utils.el (mh-image-directory, mh-image-load-path-called-flag):
Delete.
(mh-image-load-path): Incorporate changes from Gnus team. Biggest
changes are that it no longer uses/sets mh-image-directory or
mh-image-load-path-called-flag, and returns the updated path rather
than change it.
(mh-logo-display): Change usage of mh-image-load-path.
author | Bill Wohler <wohler@newt.com> |
---|---|
date | Fri, 03 Mar 2006 00:27:49 +0000 |
parents | 7daec5f4a289 |
children | b52e0cc8af61 |
line wrap: on
line diff
--- a/lisp/mh-e/mh-letter.el Thu Mar 02 22:34:58 2006 +0000 +++ b/lisp/mh-e/mh-letter.el Fri Mar 03 00:27:49 2006 +0000 @@ -42,8 +42,9 @@ (require 'gnus-util) -;; Dynamically-created function not found in mh-loaddefs.el. +;; Dynamically-created functions not found in mh-loaddefs.el. (autoload 'mh-tool-bar-letter-buttons-init "mh-tool-bar") +(autoload 'mh-tool-bar-init "mh-tool-bar") (autoload 'mml-insert-tag "mml") @@ -311,9 +312,16 @@ (make-local-variable 'mh-sent-from-folder) (make-local-variable 'mh-sent-from-msg) (mh-do-in-gnu-emacs - (unless mh-letter-buttons-init-flag - (mh-tool-bar-letter-buttons-init) - (setq mh-letter-buttons-init-flag t))) + (unless mh-letter-buttons-init-flag + (let ((load-path + (mh-image-load-path "mh-e" "mh-logo.xpm" 'load-path)) + (image-load-path + (mh-image-load-path "mh-e" "mh-logo.xpm" 'image-load-path))) + (mh-tool-bar-letter-buttons-init) + (setq mh-letter-buttons-init-flag t))) + (set (make-local-variable 'tool-bar-map) mh-letter-tool-bar-map)) + (mh-do-in-xemacs + (mh-tool-bar-init :letter)) ;; Set the local value of mh-mail-header-separator according to what is ;; present in the buffer... (set (make-local-variable 'mh-mail-header-separator) @@ -328,8 +336,6 @@ ;; Enable undo since a show-mode buffer might have been reused. (buffer-enable-undo) - (set (make-local-variable 'tool-bar-map) mh-letter-tool-bar-map) - (mh-funcall-if-exists mh-tool-bar-init :letter) (make-local-variable 'font-lock-defaults) (cond ((or (equal mh-highlight-citation-style 'font-lock)