diff options
| author | Dave Love | 2000-09-13 10:34:52 +0000 |
|---|---|---|
| committer | Dave Love | 2000-09-13 10:34:52 +0000 |
| commit | 820d41817cb716f55e908ee06d365f6c58ed180d (patch) | |
| tree | d4c875372d72df786a8bdde3c78fba6a31d10268 | |
| parent | f860896845735249a1341dbbb14c7c198731cce3 (diff) | |
| download | emacs-820d41817cb716f55e908ee06d365f6c58ed180d.tar.gz emacs-820d41817cb716f55e908ee06d365f6c58ed180d.zip | |
(widget-default-format-handler): DTRT when
doc-property is a function.
| -rw-r--r-- | lisp/wid-edit.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index edc1ef68560..a17d6b83e5b 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -1302,13 +1302,13 @@ If that does not exists, call the value of `widget-complete-field'." | |||
| 1302 | (cond ((eq escape ?h) | 1302 | (cond ((eq escape ?h) |
| 1303 | (let* ((doc-property (widget-get widget :documentation-property)) | 1303 | (let* ((doc-property (widget-get widget :documentation-property)) |
| 1304 | (doc-try (cond ((widget-get widget :doc)) | 1304 | (doc-try (cond ((widget-get widget :doc)) |
| 1305 | ((functionp doc-property) | ||
| 1306 | (funcall doc-property | ||
| 1307 | (widget-get widget :value))) | ||
| 1305 | ((symbolp doc-property) | 1308 | ((symbolp doc-property) |
| 1306 | (documentation-property | 1309 | (documentation-property |
| 1307 | (widget-get widget :value) | 1310 | (widget-get widget :value) |
| 1308 | doc-property)) | 1311 | doc-property)))) |
| 1309 | (t | ||
| 1310 | (funcall doc-property | ||
| 1311 | (widget-get widget :value))))) | ||
| 1312 | (doc-text (and (stringp doc-try) | 1312 | (doc-text (and (stringp doc-try) |
| 1313 | (> (length doc-try) 1) | 1313 | (> (length doc-try) 1) |
| 1314 | doc-try)) | 1314 | doc-try)) |
| @@ -1635,7 +1635,7 @@ If END is omitted, it defaults to the length of LIST." | |||
| 1635 | :action 'widget-field-action | 1635 | :action 'widget-field-action |
| 1636 | :validate 'widget-field-validate | 1636 | :validate 'widget-field-validate |
| 1637 | :valid-regexp "" | 1637 | :valid-regexp "" |
| 1638 | :error "Field's value doesn't match allowed form" | 1638 | :error "Field's value doesn't match allowed forms" |
| 1639 | :value-create 'widget-field-value-create | 1639 | :value-create 'widget-field-value-create |
| 1640 | :value-delete 'widget-field-value-delete | 1640 | :value-delete 'widget-field-value-delete |
| 1641 | :value-get 'widget-field-value-get | 1641 | :value-get 'widget-field-value-get |