From: Glenn Morris Date: Sun, 19 Apr 2015 01:00:02 +0000 (-0700) Subject: * lisp/net/browse-url.el (browse-url, browse-url-at-point): Doc fixes. X-Git-Tag: emacs-25.0.90~2373 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1abf64fe2a56b9ea158471b9687689bf1562d4c3;p=emacs.git * lisp/net/browse-url.el (browse-url, browse-url-at-point): Doc fixes. --- diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index 933d292ddfd..3f8cb841c6f 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -761,10 +761,13 @@ narrowed." ;;;###autoload (defun browse-url (url &rest args) "Ask a WWW browser to load URL. -Prompt for a URL, defaulting to the URL at or before point. Variable -`browse-url-browser-function' says which browser to use. +Prompt for a URL, defaulting to the URL at or before point. +The variable `browse-url-browser-function' says which browser to use. If the URL is a mailto: URL, consult `browse-url-mailto-function' -first, if that exists." +first, if that exists. + +Passes any ARGS to the browser function. +The default is to pass `browse-url-new-window-flag'." (interactive (browse-url-interactive-arg "URL: ")) (unless (called-interactively-p 'interactive) (setq args (or args (list browse-url-new-window-flag)))) @@ -800,7 +803,9 @@ first, if that exists." ;;;###autoload (defun browse-url-at-point (&optional arg) "Ask a WWW browser to load the URL at or before point. -Variable `browse-url-browser-function' says which browser to use." +Variable `browse-url-browser-function' says which browser to use. +Optional prefix argument ARG non-nil inverts the value of the option +`browse-url-new-window-flag'." (interactive "P") (let ((url (browse-url-url-at-point))) (if url