diff options
author | Sam Steingold <sds@gnu.org> | 2019-07-24 12:08:38 -0400 |
---|---|---|
committer | Sam Steingold <sds@gnu.org> | 2019-07-24 12:12:48 -0400 |
commit | fd86149b1a05a38a9d21616003107aa2ab2e6c3f (patch) | |
tree | 04ac644de305b63d5c2275d4e85263610d95d843 /lisp/wid-edit.el | |
parent | 7da926ce3c6388bfdd041e2b6588dce76d95311f (diff) | |
download | emacs-fd86149b1a05a38a9d21616003107aa2ab2e6c3f.tar.gz |
Avoid potential extensive verbosity in gnus-summary-browse-url
* lisp/wid-edit.el (widget-move): Accept suppress-echo argument.
* lisp/gnus/gnus-sum.el (gnus-collect-urls): Use it.
Diffstat (limited to 'lisp/wid-edit.el')
-rw-r--r-- | lisp/wid-edit.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index b96f6aabf96..dd03a24bb36 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -1040,9 +1040,11 @@ POS defaults to the value of (point)." "If non-nil, use overlay change functions to tab around in the buffer. This is much faster.") -(defun widget-move (arg) +(defun widget-move (arg &optional suppress-echo) "Move point to the ARG next field or button. -ARG may be negative to move backward." +ARG may be negative to move backward. +When the second optional argument is non-nil, +nothing is shown in the echo area." (or (bobp) (> arg 0) (backward-char)) (let ((wrapped 0) (number arg) @@ -1084,7 +1086,8 @@ ARG may be negative to move backward." (while (eq (widget-tabable-at) new) (backward-char))) (forward-char)) - (widget-echo-help (point)) + (unless suppress-echo + (widget-echo-help (point))) (run-hooks 'widget-move-hook)) (defun widget-forward (arg) |