emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 32c500d: tool-bar-map doc string clarification


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 32c500d: tool-bar-map doc string clarification
Date: Sat, 12 Oct 2019 01:30:42 -0400 (EDT)

branch: master
commit 32c500df99deb88cace9be53dde0dfa0f50304f3
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    tool-bar-map doc string clarification
    
    * lisp/tool-bar.el (tool-bar-map): Try to clarify how this
    variable is used (bug#17709).
---
 lisp/tool-bar.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/tool-bar.el b/lisp/tool-bar.el
index 4be16b2..01bd8f7 100644
--- a/lisp/tool-bar.el
+++ b/lisp/tool-bar.el
@@ -77,7 +77,11 @@ See `tool-bar-mode' for more information."
 
 (defvar tool-bar-map (make-sparse-keymap)
   "Keymap for the tool bar.
-Define this locally to override the global tool bar.")
+
+To override the global tool bar, define this variable
+buffer-locally and add the items you want to it with
+`tool-bar-add-item', `tool-bar-add-item-from-menu' and related
+functions.")
 
 (global-set-key [tool-bar]
                `(menu-item ,(purecopy "tool bar") ignore



reply via email to

[Prev in Thread] Current Thread [Next in Thread]