diff options
| author | Eli Zaretskii | 2018-03-19 11:17:20 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-03-19 11:17:20 +0200 |
| commit | 415ff1a0e141b74a53df1d8411113b1cd0c9ce90 (patch) | |
| tree | 42a24eebad05e10c73f6e5c9ec0c25a6441d64da | |
| parent | f022b1bdf885007363518ec1474ef5820ee6b6d6 (diff) | |
| download | emacs-415ff1a0e141b74a53df1d8411113b1cd0c9ce90.tar.gz emacs-415ff1a0e141b74a53df1d8411113b1cd0c9ce90.zip | |
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'.
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/net/browse-url.el | 4 |
2 files changed, 8 insertions, 1 deletions
| @@ -144,6 +144,11 @@ for abbrevs that have them. | |||
| 144 | 144 | ||
| 145 | * Changes in Specialized Modes and Packages in Emacs 27.1 | 145 | * Changes in Specialized Modes and Packages in Emacs 27.1 |
| 146 | 146 | ||
| 147 | ** Browse-url | ||
| 148 | *** The function 'browse-url-emacs' can now visit a URL in selected window. | ||
| 149 | It now treats the optional 2nd argument to mean that the URL should be | ||
| 150 | shown in the currently selected window. | ||
| 151 | |||
| 147 | ** Ecomplete | 152 | ** Ecomplete |
| 148 | *** The ecomplete sorting has changed to a decay-based algorithm. | 153 | *** The ecomplete sorting has changed to a decay-based algorithm. |
| 149 | This can be controlled by the new `ecomplete-sort-predicate' variable. | 154 | 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 3b5169d4734..bdedcb2bd3e 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'." | |||
| 1243 | 1243 | ||
| 1244 | ;;;###autoload | 1244 | ;;;###autoload |
| 1245 | (defun browse-url-emacs (url &optional same-window) | 1245 | (defun browse-url-emacs (url &optional same-window) |
| 1246 | "Ask Emacs to load URL into a buffer and show it in another window." | 1246 | "Ask Emacs to load URL into a buffer and show it in another window. |
| 1247 | Optional argument SAME-WINDOW non-nil means show the URL in the | ||
| 1248 | currently selected window instead." | ||
| 1247 | (interactive (browse-url-interactive-arg "URL: ")) | 1249 | (interactive (browse-url-interactive-arg "URL: ")) |
| 1248 | (require 'url-handlers) | 1250 | (require 'url-handlers) |
| 1249 | (let ((file-name-handler-alist | 1251 | (let ((file-name-handler-alist |