Followup to last change in browse-url.el

* lisp/net/browse-url.el (browse-url-emacs): Doc fix to follow up
the previous change.  (Bug#30673)

* etc/NEWS: Mention the change in 'browse-url-emacs'.
This commit is contained in:
Eli Zaretskii 2018-03-19 11:17:20 +02:00
parent f022b1bdf8
commit 415ff1a0e1
2 changed files with 8 additions and 1 deletions

View file

@ -144,6 +144,11 @@ for abbrevs that have them.
* Changes in Specialized Modes and Packages in Emacs 27.1
** Browse-url
*** The function 'browse-url-emacs' can now visit a URL in selected window.
It now treats the optional 2nd argument to mean that the URL should be
shown in the currently selected window.
** Ecomplete
*** The ecomplete sorting has changed to a decay-based algorithm.
This can be controlled by the new `ecomplete-sort-predicate' variable.

View file

@ -1243,7 +1243,9 @@ used instead of `browse-url-new-window-flag'."
;;;###autoload
(defun browse-url-emacs (url &optional same-window)
"Ask Emacs to load URL into a buffer and show it in another window."
"Ask Emacs to load URL into a buffer and show it in another window.
Optional argument SAME-WINDOW non-nil means show the URL in the
currently selected window instead."
(interactive (browse-url-interactive-arg "URL: "))
(require 'url-handlers)
(let ((file-name-handler-alist