changeset 74281:0c96941203c0

(facemenu-add-new-face): Improve doc strings of constructed commands.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 Nov 2006 02:19:58 +0000
parents 548fcfa53e5e
children 7e0bda309a90
files lisp/facemenu.el
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/facemenu.el	Tue Nov 28 02:19:20 2006 +0000
+++ b/lisp/facemenu.el	Tue Nov 28 02:19:58 2006 +0000
@@ -685,8 +685,11 @@
 	    symbol (intern name)))
     (setq menu 'facemenu-face-menu)
     (setq docstring
-	  (format "Select face `%s' for subsequent insertion."
-		  name))
+	  (format "Select face `%s' for subsequent insertion.
+If the mark is active and there is no prefix argument,
+apply face `%s' to the region instead.
+This command was defined by `facemenu-add-new-face'."
+		  name name))
     (cond ((facemenu-iterate ; check if equivalent face is already in the menu
 	    (lambda (m) (and (listp m)
 			     (symbolp (car m))