summaryrefslogtreecommitdiff
path: root/lisp/net/goto-addr.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@linkov.net>2021-07-21 23:34:59 +0300
committerJuri Linkov <juri@linkov.net>2021-07-21 23:34:59 +0300
commitebac285d0ee567ed86e14b871cf0bac2de8655db (patch)
tree7544b94da3c0b02f1ac1b0e1bd357b09423f54d3 /lisp/net/goto-addr.el
parent1493145e3048e057d8ac9e8c9c56d1f99a97eb53 (diff)
downloademacs-ebac285d0ee567ed86e14b871cf0bac2de8655db.tar.gz
emacs-ebac285d0ee567ed86e14b871cf0bac2de8655db.tar.bz2
emacs-ebac285d0ee567ed86e14b871cf0bac2de8655db.zip
Improve docstring of context-menu-functions and add eww-context-menu
* lisp/mouse.el (context-menu-functions): Explain function args in docstring. * lisp/net/eww.el (eww-context-menu): New function. (eww-mode): Add it to context-menu-functions. * lisp/info.el (Info-context-menu): Move history items higher. * lisp/progmodes/prog-mode.el (prog-context-menu): Add menu items in the middle of the menu after the region menu items.
Diffstat (limited to 'lisp/net/goto-addr.el')
-rw-r--r--lisp/net/goto-addr.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/net/goto-addr.el b/lisp/net/goto-addr.el
index 2c43d0f7532..c270cf53cbf 100644
--- a/lisp/net/goto-addr.el
+++ b/lisp/net/goto-addr.el
@@ -126,10 +126,11 @@ will have no effect.")
(defun goto-address-context-menu (menu)
(when (mouse-posn-property (event-start last-input-event) 'goto-address)
- (define-key menu [goto-address-separator] menu-bar-separator)
+ (define-key menu [goto-address-separator-2] menu-bar-separator)
(define-key menu [goto-address-at-mouse]
'(menu-item "Follow Link" goto-address-at-mouse
- :help "Follow a link where you click")))
+ :help "Follow a link where you click"))
+ (define-key menu [goto-address-separator-1] menu-bar-separator))
menu)
(defcustom goto-address-url-face 'link