diff options
| author | Sam Steingold | 2019-07-24 12:08:38 -0400 |
|---|---|---|
| committer | Sam Steingold | 2019-07-24 12:12:48 -0400 |
| commit | fd86149b1a05a38a9d21616003107aa2ab2e6c3f (patch) | |
| tree | 04ac644de305b63d5c2275d4e85263610d95d843 | |
| parent | 7da926ce3c6388bfdd041e2b6588dce76d95311f (diff) | |
| download | emacs-fd86149b1a05a38a9d21616003107aa2ab2e6c3f.tar.gz emacs-fd86149b1a05a38a9d21616003107aa2ab2e6c3f.zip | |
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.
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 2 | ||||
| -rw-r--r-- | lisp/wid-edit.el | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 1f330e3ebf3..fdecad4e424 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -9438,7 +9438,7 @@ With optional ARG, move across that many fields." | |||
| 9438 | "Return the list of URLs in the buffer after (point). | 9438 | "Return the list of URLs in the buffer after (point). |
| 9439 | The 1st element is the one named 'Link', if any." | 9439 | The 1st element is the one named 'Link', if any." |
| 9440 | (let ((pt (point)) urls link) | 9440 | (let ((pt (point)) urls link) |
| 9441 | (while (progn (widget-move 1) | 9441 | (while (progn (widget-move 1 t) ; no echo |
| 9442 | ;; `widget-move' wraps around to top of buffer. | 9442 | ;; `widget-move' wraps around to top of buffer. |
| 9443 | (> (point) pt)) | 9443 | (> (point) pt)) |
| 9444 | (setq pt (point)) | 9444 | (setq pt (point)) |
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)." | |||
| 1040 | "If non-nil, use overlay change functions to tab around in the buffer. | 1040 | "If non-nil, use overlay change functions to tab around in the buffer. |
| 1041 | This is much faster.") | 1041 | This is much faster.") |
| 1042 | 1042 | ||
| 1043 | (defun widget-move (arg) | 1043 | (defun widget-move (arg &optional suppress-echo) |
| 1044 | "Move point to the ARG next field or button. | 1044 | "Move point to the ARG next field or button. |
| 1045 | ARG may be negative to move backward." | 1045 | ARG may be negative to move backward. |
| 1046 | When the second optional argument is non-nil, | ||
| 1047 | nothing is shown in the echo area." | ||
| 1046 | (or (bobp) (> arg 0) (backward-char)) | 1048 | (or (bobp) (> arg 0) (backward-char)) |
| 1047 | (let ((wrapped 0) | 1049 | (let ((wrapped 0) |
| 1048 | (number arg) | 1050 | (number arg) |
| @@ -1084,7 +1086,8 @@ ARG may be negative to move backward." | |||
| 1084 | (while (eq (widget-tabable-at) new) | 1086 | (while (eq (widget-tabable-at) new) |
| 1085 | (backward-char))) | 1087 | (backward-char))) |
| 1086 | (forward-char)) | 1088 | (forward-char)) |
| 1087 | (widget-echo-help (point)) | 1089 | (unless suppress-echo |
| 1090 | (widget-echo-help (point))) | ||
| 1088 | (run-hooks 'widget-move-hook)) | 1091 | (run-hooks 'widget-move-hook)) |
| 1089 | 1092 | ||
| 1090 | (defun widget-forward (arg) | 1093 | (defun widget-forward (arg) |