comparison lispref/keymaps.texi @ 60447:881b9bd682ac

(Menu Separators, Tool Bar): Get rid of "Emacs 21". (Menu Bar): Fix when menu-bar-update-hook is called.
author Richard M. Stallman <rms@gnu.org>
date Sun, 06 Mar 2005 18:17:08 +0000
parents 09052e72c240
children fa0d61d5c5e0 29e773288013
comparison
equal deleted inserted replaced
60446:b26c30e5d770 60447:881b9bd682ac
1928 1928
1929 In the simplest case, @var{separator-type} consists of only dashes. 1929 In the simplest case, @var{separator-type} consists of only dashes.
1930 That specifies the default kind of separator. (For compatibility, 1930 That specifies the default kind of separator. (For compatibility,
1931 @code{""} and @code{-} also count as separators.) 1931 @code{""} and @code{-} also count as separators.)
1932 1932
1933 Starting in Emacs 21, certain other values of @var{separator-type} 1933 Certain other values of @var{separator-type} specify a different
1934 specify a different style of separator. Here is a table of them: 1934 style of separator. Here is a table of them:
1935 1935
1936 @table @code 1936 @table @code
1937 @item "--no-line" 1937 @item "--no-line"
1938 @itemx "--space" 1938 @itemx "--space"
1939 An extra vertical space, with no actual line. 1939 An extra vertical space, with no actual line.
2245 value is @code{(help-menu)}; thus, the @samp{Help} menu item normally appears 2245 value is @code{(help-menu)}; thus, the @samp{Help} menu item normally appears
2246 at the end of the menu bar, following local menu items. 2246 at the end of the menu bar, following local menu items.
2247 @end defvar 2247 @end defvar
2248 2248
2249 @defvar menu-bar-update-hook 2249 @defvar menu-bar-update-hook
2250 This normal hook is run whenever the user clicks on the menu bar, before 2250 This normal hook is run by redisplay to update the menu bar contents,
2251 displaying a submenu. You can use it to update submenus whose contents 2251 before redisplaying the menu bar. You can use it to update submenus
2252 should vary. 2252 whose contents should vary. Since this hook is run frequently, we
2253 advise you to ensure that the functions it calls do not take much time
2254 in the usual case.
2253 @end defvar 2255 @end defvar
2254 2256
2255 @node Tool Bar 2257 @node Tool Bar
2256 @subsection Tool bars 2258 @subsection Tool bars
2257 @cindex tool bar 2259 @cindex tool bar
2258 2260
2259 A @dfn{tool bar} is a row of icons at the top of a frame, that execute 2261 A @dfn{tool bar} is a row of icons at the top of a frame, that execute
2260 commands when you click on them---in effect, a kind of graphical menu 2262 commands when you click on them---in effect, a kind of graphical menu
2261 bar. Emacs supports tool bars starting with version 21. 2263 bar.
2262 2264
2263 The frame parameter @code{tool-bar-lines} (X resource @samp{toolBar}) 2265 The frame parameter @code{tool-bar-lines} (X resource @samp{toolBar})
2264 controls how many lines' worth of height to reserve for the tool bar. A 2266 controls how many lines' worth of height to reserve for the tool bar. A
2265 zero value suppresses the tool bar. If the value is nonzero, and 2267 zero value suppresses the tool bar. If the value is nonzero, and
2266 @code{auto-resize-tool-bars} is non-@code{nil}, the tool bar expands and 2268 @code{auto-resize-tool-bars} is non-@code{nil}, the tool bar expands and