diff src/menubar.c @ 259:11cf20601dec r20-5b28

Import from CVS: tag r20-5b28
author cvs
date Mon, 13 Aug 2007 10:23:02 +0200
parents 677f6a0ee643
children 405dd6d1825b
line wrap: on
line diff
--- a/src/menubar.c	Mon Aug 13 10:22:10 2007 +0200
+++ b/src/menubar.c	Mon Aug 13 10:23:02 2007 +0200
@@ -223,7 +223,7 @@
 A menu item can have any of the following forms:
 
  [ "name" callback <active-p> ]
- [ "name" callback <active-p> "suffix" ]
+ [ "name" callback <active-p> <suffix> ]
  [ "name" callback :<keyword> <value>  :<keyword> <value> ... ]
 
 The name is the string to display on the menu; it is filtered through the
@@ -241,10 +241,12 @@
                      displayed, and the menu will be selectable only if
                      the result is non-nil.
 
- :suffix   "string"  Same as "suffix" in the second form: the suffix is
-                     appended to the displayed name, providing a convenient
-                     way of adding the name of a command's ``argument'' to
-                     the menu, like ``Kill Buffer NAME''.
+ :suffix   <form>    Same as <suffix> in the second form: the expression
+                     is evaluated just before the menu is displayed and
+		     resulting string is appended to the displayed name,
+		     providing a convenient way of adding the name of a
+		     command's ``argument'' to the menu, like
+		     ``Kill Buffer NAME''.
 
  :keys     "string"  Normally, the keyboard equivalents of commands in
                      menus are displayed when the `callback' is a symbol.
@@ -426,7 +428,7 @@
 A menu item can have any of the following forms:
 
  [ "name" callback <active-p> ]
- [ "name" callback <active-p> "suffix" ]
+ [ "name" callback <active-p> <suffix> ]
  [ "name" callback :<keyword> <value>  :<keyword> <value> ... ]
 
 The name is the string to display on the menu; it is filtered through the
@@ -444,10 +446,12 @@
                      displayed, and the menu will be selectable only if
                      the result is non-nil.
 
- :suffix   "string"  Same as "suffix" in the second form: the suffix is
-                     appended to the displayed name, providing a convenient
-                     way of adding the name of a command's ``argument'' to
-                     the menu, like ``Kill Buffer NAME''.
+ :suffix   <form>    Same as <suffix> in the second form: the expression
+                     is evaluated just before the menu is displayed and
+		     resulting string is appended to the displayed name,
+		     providing a convenient way of adding the name of a
+		     command's ``argument'' to the menu, like
+		     ``Kill Buffer NAME''.
 
  :keys     "string"  Normally, the keyboard equivalents of commands in
                      menus are displayed when the `callback' is a symbol.