[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 af1624f: * lisp/net/shr.el (shr-browse-url): Doc

From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 af1624f: * lisp/net/shr.el (shr-browse-url): Doc fix. (Bug#30957)
Date: Sun, 1 Apr 2018 05:10:31 -0400 (EDT)

branch: emacs-26
commit af1624f29bc264fe0cff31c46b25b0b0c90e24bf
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    * lisp/net/shr.el (shr-browse-url): Doc fix.  (Bug#30957)
 lisp/net/shr.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index a6b8693..5582e29 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -934,8 +934,12 @@ size, and full-buffer size."
 (defun shr-browse-url (&optional external mouse-event)
-  "Browse the URL under point.
-If EXTERNAL, browse the URL using `shr-external-browser'."
+  "Browse the URL at point using `browse-url'.
+If EXTERNAL is non-nil (interactively, the prefix argument), browse
+the URL using `shr-external-browser'.
+If this function is invoked by a mouse click, it will browse the URL
+at the position of the click.  Optional argument MOUSE-EVENT describes
+the mouse click event."
   (interactive (list current-prefix-arg last-nonmenu-event))
   (mouse-set-point mouse-event)
   (let ((url (get-text-property (point) 'shr-url)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]