comparison lispref/keymaps.texi @ 27488:f2b4d355b3e2

Fix use of mark-active in examples.
author Dave Love <fx@gnu.org>
date Fri, 28 Jan 2000 22:58:46 +0000
parents 0f5edee5242b
children 498b7f6777b5
comparison
equal deleted inserted replaced
27487:9304a93329d1 27488:f2b4d355b3e2
1978 Items}) for @code{print-region}, like this: 1978 Items}) for @code{print-region}, like this:
1979 1979
1980 @example 1980 @example
1981 (define-key menu-bar-print-menu [print-region] 1981 (define-key menu-bar-print-menu [print-region]
1982 '(menu-item "Print Region" print-region 1982 '(menu-item "Print Region" print-region
1983 :enable (mark-active))) 1983 :enable mark-active))
1984 @end example 1984 @end example
1985 1985
1986 @noindent 1986 @noindent
1987 With the extended menu item, the enable condition is specified 1987 With the extended menu item, the enable condition is specified
1988 inside the menu item itself. If we wanted to make this 1988 inside the menu item itself. If we wanted to make this
1990 we could do it this way: 1990 we could do it this way:
1991 1991
1992 @example 1992 @example
1993 (define-key menu-bar-print-menu [print-region] 1993 (define-key menu-bar-print-menu [print-region]
1994 '(menu-item "Print Region" print-region 1994 '(menu-item "Print Region" print-region
1995 :visible (mark-active))) 1995 :visible mark-active))
1996 @end example 1996 @end example
1997 1997
1998 @node Menu Bar 1998 @node Menu Bar
1999 @subsection The Menu Bar 1999 @subsection The Menu Bar
2000 @cindex menu bar 2000 @cindex menu bar