changeset 75752:5c8b0041ee8a

(Programming Example): Put constant strings in :format.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 10 Feb 2007 11:21:30 +0000
parents 8cc088fc5fb2
children 5e34b32b9b4c
files man/widget.texi
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/man/widget.texi	Sat Feb 10 11:12:42 2007 +0000
+++ b/man/widget.texi	Sat Feb 10 11:21:30 2007 +0000
@@ -349,10 +349,10 @@
   (let ((inhibit-read-only t))
     (erase-buffer))
   (remove-overlays)
-  (widget-insert "Here is some documentation.\n\nName: ")
+  (widget-insert "Here is some documentation.\n\n")
   (widget-create 'editable-field
 		 :size 13
-		 :format "%v " ; Text after the field!
+		 :format "Name: %v " ; Text after the field!
 		 "My Name")
   (widget-create 'menu-choice
 		 :tag "Choose"
@@ -364,8 +364,8 @@
 		 '(item :tag "This option" :value "This")
 		 '(choice-item "That option")
 		 '(editable-field :menu-tag "No option" "Thus option"))
-  (widget-insert "Address: ")
   (widget-create 'editable-field
+		 :format "Address: %v"
 		 "Some Place\nIn some City\nSome country.")
   (widget-insert "\nSee also ")
   (widget-create 'link