diff options
| author | Michael R. Mauger | 2015-03-14 23:51:44 -0400 |
|---|---|---|
| committer | Michael R. Mauger | 2015-03-14 23:51:44 -0400 |
| commit | 2f12fc56bf094dbbeb4fde1980627432a82ae23f (patch) | |
| tree | d1f478484688b95e314c4a318720b11f48ef34d6 | |
| parent | 84a6685660fd7585d9b7a5bb30dda7cf41c3ea84 (diff) | |
| parent | 554001dfa90be447dc0c71c596eb837d8e3b374b (diff) | |
| download | emacs-2f12fc56bf094dbbeb4fde1980627432a82ae23f.tar.gz emacs-2f12fc56bf094dbbeb4fde1980627432a82ae23f.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/widget.el | 3 |
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 | ||
| 7 | 2015-03-14 Daniel Colascione <dancol@dancol.org> | 7 | 2015-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 | ||
| 11 | 2015-03-13 Kevin Ryde <user42_kevin@yahoo.com.au> | 15 | 2015-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 | ||
| 85 | The third argument DOC is a documentation string for the widget." | 85 | The 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) |