aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-12-22 14:04:09 -0800
committerGlenn Morris2012-12-22 14:04:09 -0800
commitd227e322293aef0d6b6a1702ee9dd4c2b22558eb (patch)
tree7bcbd777e9ba6c8096607d3236661f861a13a449
parent2ecfdaa6a9a2c14364f714b138c72e50f1ad30c8 (diff)
downloademacs-d227e322293aef0d6b6a1702ee9dd4c2b22558eb.tar.gz
emacs-d227e322293aef0d6b6a1702ee9dd4c2b22558eb.zip
* doc/misc/widget.texi (Programming Example): Break some long lines.
-rw-r--r--doc/misc/ChangeLog2
-rw-r--r--doc/misc/widget.texi21
2 files changed, 14 insertions, 9 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 83e91e55a36..f15dedb2b9f 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,5 +1,7 @@
12012-12-22 Glenn Morris <rgm@gnu.org> 12012-12-22 Glenn Morris <rgm@gnu.org>
2 2
3 * widget.texi (Programming Example): Break some long lines.
4
3 * wisent.texi (Wisent Overview): Fix xref. 5 * wisent.texi (Wisent Overview): Fix xref.
4 (Grammar format, Understanding the automaton): Avoid overfill. 6 (Grammar format, Understanding the automaton): Avoid overfill.
5 7
diff --git a/doc/misc/widget.texi b/doc/misc/widget.texi
index d5514fc936c..182dbb430ac 100644
--- a/doc/misc/widget.texi
+++ b/doc/misc/widget.texi
@@ -364,13 +364,14 @@ Interface}).
364 (setq widget-example-repeat 364 (setq widget-example-repeat
365 (widget-create 'editable-list 365 (widget-create 'editable-list
366 :entry-format "%i %d %v" 366 :entry-format "%i %d %v"
367 :notify (lambda (widget &rest ignore) 367 :notify
368 (let ((old (widget-get widget 368 (lambda (widget &rest ignore)
369 ':example-length)) 369 (let ((old (widget-get widget
370 (new (length (widget-value widget)))) 370 ':example-length))
371 (unless (eq old new) 371 (new (length (widget-value widget))))
372 (widget-put widget ':example-length new) 372 (unless (eq old new)
373 (message "You can count to %d." new)))) 373 (widget-put widget ':example-length new)
374 (message "You can count to %d." new))))
374 :value '("One" "Eh, two?" "Five!") 375 :value '("One" "Eh, two?" "Five!")
375 '(editable-field :value "three"))) 376 '(editable-field :value "three")))
376 (widget-insert "\n\nSelect multiple:\n\n") 377 (widget-insert "\n\nSelect multiple:\n\n")
@@ -387,11 +388,13 @@ Interface}).
387 :notify (lambda (widget &rest ignore) 388 :notify (lambda (widget &rest ignore)
388 (message "You selected %s" 389 (message "You selected %s"
389 (widget-value widget))) 390 (widget-value widget)))
390 '(item "One") '(item "Another One.") '(item "A Final One.")) 391 '(item "One") '(item "Another One.")
392 '(item "A Final One."))
391 (widget-insert "\n") 393 (widget-insert "\n")
392 (widget-create 'push-button 394 (widget-create 'push-button
393 :notify (lambda (&rest ignore) 395 :notify (lambda (&rest ignore)
394 (if (= (length (widget-value widget-example-repeat)) 396 (if (= (length
397 (widget-value widget-example-repeat))
395 3) 398 3)
396 (message "Congratulation!") 399 (message "Congratulation!")
397 (error "Three was the count!"))) 400 (error "Three was the count!")))