changeset 68597:04d228a1b5c8

* mh-tool-bar.el: Add conditional require of 'tool-bar or 'toolbar for gnu-emacs or xemacs to avoid void-variable tool-bar-map lisp errors if describe-bindings is called before tool-bar-mode is used.
author Mark D. Baushke <mdb@gnu.org>
date Fri, 03 Feb 2006 19:32:06 +0000
parents 18f95be962c1
children 164eb9d4f124
files lisp/mh-e/ChangeLog lisp/mh-e/mh-tool-bar.el
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mh-e/ChangeLog	Fri Feb 03 19:31:55 2006 +0000
+++ b/lisp/mh-e/ChangeLog	Fri Feb 03 19:32:06 2006 +0000
@@ -1,3 +1,9 @@
+2006-02-03  Mark D. Baushke  <mdb@gnu.org>
+
+	* mh-tool-bar.el: Add conditional require of 'tool-bar or 'toolbar
+	for gnu-emacs or xemacs to avoid void-variable tool-bar-map lisp
+	errors if describe-bindings is called before tool-bar-mode is used.
+
 2006-02-03  Peter S Galbraith  <psg@debian.org>
 
 	* mh-compat.el (mh-url-unreserved-chars): Fix typo from
--- a/lisp/mh-e/mh-tool-bar.el	Fri Feb 03 19:31:55 2006 +0000
+++ b/lisp/mh-e/mh-tool-bar.el	Fri Feb 03 19:32:06 2006 +0000
@@ -31,6 +31,10 @@
 ;;; Code:
 
 (require 'mh-e)
+(mh-do-in-gnu-emacs
+  (require 'tool-bar))
+(mh-do-in-xemacs
+  (require 'toolbar))
 
 ;;; Tool Bar Commands