mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-05 22:20:24 -08:00
Make goto-address/bug-reference buttons TAB-navigable in 'button-mode'
* lisp/net/goto-addr.el (goto-address-fontify): Set overlay property 'button' to 'this-overlay', and 'category' to 'goto-address'. * lisp/progmodes/bug-reference.el (bug-reference-fontify): Set overlay property 'button' to 'ov' (bug#74792).
This commit is contained in:
parent
0f90cc033d
commit
c2e2a86d1b
2 changed files with 3 additions and 0 deletions
|
|
@ -187,6 +187,8 @@ and `goto-address-fontify-p'."
|
|||
'help-echo "mouse-2, C-c RET: follow URL")
|
||||
(overlay-put this-overlay
|
||||
'keymap goto-address-highlight-keymap)
|
||||
(overlay-put this-overlay 'button this-overlay)
|
||||
(overlay-put this-overlay 'category 'goto-address)
|
||||
(overlay-put this-overlay 'goto-address t))))
|
||||
(goto-char (or start (point-min)))
|
||||
(while (re-search-forward goto-address-mail-regexp end t)
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ subexpression 10."
|
|||
(let ((ov (make-overlay (car bounds) (cdr bounds)
|
||||
nil t nil)))
|
||||
(overlay-put ov 'category 'bug-reference)
|
||||
(overlay-put ov 'button ov)
|
||||
ov))))
|
||||
;; Don't put a link if format is undefined.
|
||||
(when bug-reference-url-format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue