emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 415ff1a: Followup to last change in browse-url.el


From: Eli Zaretskii
Subject: [Emacs-diffs] master 415ff1a: Followup to last change in browse-url.el
Date: Mon, 19 Mar 2018 05:17:49 -0400 (EDT)

branch: master
commit 415ff1a0e141b74a53df1d8411113b1cd0c9ce90
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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'.
---
 etc/NEWS               | 5 +++++
 lisp/net/browse-url.el | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/etc/NEWS b/etc/NEWS
index b6c4157..99f3f27 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 3b5169d..bdedcb2 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -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



reply via email to

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