Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d9f114a3
Commit
d9f114a3
authored
Feb 10, 2007
by
Eli Zaretskii
Browse files
(Programming Example): Put constant strings in :format.
parent
493cf720
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
man/widget.texi
man/widget.texi
+3
-3
No files found.
man/widget.texi
View file @
d9f114a3
...
...
@@ -349,10 +349,10 @@ Interface}).
(
let
((
inhibit
-
read
-
only
t
))
(
erase
-
buffer
))
(
remove
-
overlays
)
(
widget
-
insert
"Here is some documentation.
\n\n
Name:
"
)
(
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 @@ Interface}).
'(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
\n
In some City
\n
Some country."
)
(
widget
-
insert
"
\n
See also "
)
(
widget
-
create
'link
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment