]> git.eshelyaron.com Git - emacs.git/commit
Let 'browse-url-interactive-arg' return more values for NEW-WINDOW-FLAG
authorJim Porter <jporterbugs@gmail.com>
Fri, 8 Mar 2024 05:55:45 +0000 (21:55 -0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 11 Mar 2024 09:27:44 +0000 (10:27 +0100)
commit81e218234d1c0725752c0121ce783bd1e7242dfc
treec09df9a0c7c0d681d37608334a01108c1187b6a1
parent66f5783c1c88ef03865d34480451681d25efa6c0
Let 'browse-url-interactive-arg' return more values for NEW-WINDOW-FLAG

Previously it always returned t or nil for NEW-WINDOW-FLAG, but now it
can return the actual prefix arg when appropriate.  This lets functions
for 'browse-url-browser-function' consult it and do more things than
just open a new window or not (for example, you could use "C--" as the
prefix arg to do something special in a custom function).

* lisp/net/browse-url.el (browse-url-interactive-arg): Use 'xor' to
adjust the value of 'current-prefix-arg'.
(browse-url): Update docstring.

(cherry picked from commit 46afc91c9f7e6ee6a7917537c83052e0877fa4f2)
lisp/net/browse-url.el