aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/shr.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index a6b8693dd74..5582e29c526 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -934,8 +934,12 @@ size, and full-buffer size."
934 (shr-browse-url)) 934 (shr-browse-url))
935 935
936(defun shr-browse-url (&optional external mouse-event) 936(defun shr-browse-url (&optional external mouse-event)
937 "Browse the URL under point. 937 "Browse the URL at point using `browse-url'.
938If EXTERNAL, browse the URL using `shr-external-browser'." 938If EXTERNAL is non-nil (interactively, the prefix argument), browse
939the URL using `shr-external-browser'.
940If this function is invoked by a mouse click, it will browse the URL
941at the position of the click. Optional argument MOUSE-EVENT describes
942the mouse click event."
939 (interactive (list current-prefix-arg last-nonmenu-event)) 943 (interactive (list current-prefix-arg last-nonmenu-event))
940 (mouse-set-point mouse-event) 944 (mouse-set-point mouse-event)
941 (let ((url (get-text-property (point) 'shr-url))) 945 (let ((url (get-text-property (point) 'shr-url)))