aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/wid-edit.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r--lisp/wid-edit.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el
index 52c0b5b74d2..b9f98cdc4c7 100644
--- a/lisp/wid-edit.el
+++ b/lisp/wid-edit.el
@@ -1163,8 +1163,9 @@ When not inside a field, signal an error."
1163 1163
1164(defun widget-at (&optional pos) 1164(defun widget-at (&optional pos)
1165 "The button or field at POS (default, point)." 1165 "The button or field at POS (default, point)."
1166 (or (get-char-property (or pos (point)) 'button) 1166 (let ((widget (or (get-char-property (or pos (point)) 'button)
1167 (widget-field-at pos))) 1167 (widget-field-at pos))))
1168 (and (widgetp widget) widget)))
1168 1169
1169;;;###autoload 1170;;;###autoload
1170(defun widget-setup () 1171(defun widget-setup ()