aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael R. Mauger2015-03-14 23:51:44 -0400
committerMichael R. Mauger2015-03-14 23:51:44 -0400
commit2f12fc56bf094dbbeb4fde1980627432a82ae23f (patch)
treed1f478484688b95e314c4a318720b11f48ef34d6
parent84a6685660fd7585d9b7a5bb30dda7cf41c3ea84 (diff)
parent554001dfa90be447dc0c71c596eb837d8e3b374b (diff)
downloademacs-2f12fc56bf094dbbeb4fde1980627432a82ae23f.tar.gz
emacs-2f12fc56bf094dbbeb4fde1980627432a82ae23f.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/widget.el3
2 files changed, 7 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0891e1947c..a9cf1b0f88f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -6,6 +6,10 @@
6 6
72015-03-14 Daniel Colascione <dancol@dancol.org> 72015-03-14 Daniel Colascione <dancol@dancol.org>
8 8
9 * widget.el (define-widget): Check that documentation is a string
10 or nil; prevent wailing and gnashing of teeth when users forget to
11 pass a docstring and wonder why their properties don't work.
12
9 * startup.el (command-line): Process "--no-x-resources". 13 * startup.el (command-line): Process "--no-x-resources".
10 14
112015-03-13 Kevin Ryde <user42_kevin@yahoo.com.au> 152015-03-13 Kevin Ryde <user42_kevin@yahoo.com.au>
diff --git a/lisp/widget.el b/lisp/widget.el
index f8faa0f379b..539f91e63a0 100644
--- a/lisp/widget.el
+++ b/lisp/widget.el
@@ -83,6 +83,9 @@ create identical widgets:
83* (apply 'widget-create CLASS ARGS) 83* (apply 'widget-create CLASS ARGS)
84 84
85The third argument DOC is a documentation string for the widget." 85The third argument DOC is a documentation string for the widget."
86 ;;
87 (unless (or (null doc) (stringp doc))
88 (error "widget documentation must be `nil' or a string."))
86 (put name 'widget-type (cons class args)) 89 (put name 'widget-type (cons class args))
87 (put name 'widget-documentation (purecopy doc)) 90 (put name 'widget-documentation (purecopy doc))
88 name) 91 name)