diff src/menubar.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 6075d714658b
children a2f645c6b9f8
line wrap: on
line diff
--- a/src/menubar.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/menubar.c	Mon Aug 13 09:55:28 2007 +0200
@@ -114,9 +114,9 @@
 Otherwise, the element must be a vector, which describes a menu item.
 A menu item can have any of the following forms:
 
- [ \"name\" callback <active-p> ]
- [ \"name\" callback <active-p> \"suffix\" ]
- [ \"name\" callback :<keyword> <value>  :<keyword> <value> ... ]
+ [ "name" callback <active-p> ]
+ [ "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
 resource database, so it is possible for resources to override what string
@@ -133,12 +133,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
+ :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''.
 
- :keys     \"string\"  Normally, the keyboard equivalents of commands in
+ :keys     "string"  Normally, the keyboard equivalents of commands in
                      menus are displayed when the `callback' is a symbol.
                      This can be used to specify keys for more complex menu
                      items.  It is passed through `substitute-command-keys'
@@ -165,9 +165,9 @@
 
 For example:
 
- [ \"Save As...\"    write-file  t ]
- [ \"Revert Buffer\" revert-buffer (buffer-modified-p) ]
- [ \"Read Only\"     toggle-read-only :style toggle :selected buffer-read-only ]
+ [ "Save As..."    write-file  t ]
+ [ "Revert Buffer" revert-buffer (buffer-modified-p) ]
+ [ "Read Only"     toggle-read-only :style toggle :selected buffer-read-only ]
 
 See menubar.el for many more examples.
 */
@@ -207,8 +207,8 @@
     menu_item[0] = build_string ("");
     menu_item[1] = Qnil;
     menu_item[2] = Qnil;
-    Vblank_menubar = Fcons (Fcons (build_string (blank_msg), 
-				   Fcons (Fvector (3, &menu_item[0]), 
+    Vblank_menubar = Fcons (Fcons (build_string (blank_msg),
+				   Fcons (Fvector (3, &menu_item[0]),
 					  Qnil)),
 			    Qnil);
     Vblank_menubar = Fpurecopy (Vblank_menubar);
@@ -261,9 +261,9 @@
 Otherwise, the element must be a vector, which describes a menu item.
 A menu item can have any of the following forms:
 
- [ \"name\" callback <active-p> ]
- [ \"name\" callback <active-p> \"suffix\" ]
- [ \"name\" callback :<keyword> <value>  :<keyword> <value> ... ]
+ [ "name" callback <active-p> ]
+ [ "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
 resource database, so it is possible for resources to override what string
@@ -280,12 +280,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
+ :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''.
 
- :keys     \"string\"  Normally, the keyboard equivalents of commands in
+ :keys     "string"  Normally, the keyboard equivalents of commands in
                      menus are displayed when the `callback' is a symbol.
                      This can be used to specify keys for more complex menu
                      items.  It is passed through `substitute-command-keys'
@@ -336,13 +336,13 @@
 
 For example:
 
- (\"File\"
+ ("File"
   :filter file-menu-filter	; file-menu-filter is a function that takes
 				; one argument (a list of menu items) and
 				; returns a list of menu items
-  [ \"Save As...\"    write-file  t ]
-  [ \"Revert Buffer\" revert-buffer (buffer-modified-p) ]
-  [ \"Read Only\"     toggle-read-only :style toggle
+  [ "Save As..."    write-file  t ]
+  [ "Revert Buffer" revert-buffer (buffer-modified-p) ]
+  [ "Read Only"     toggle-read-only :style toggle
 		      :selected buffer-read-only ]
   )