bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#59443: 29.0.50; [PATCH] Allow goto-address-at-point to use secondary


From: Gabriel
Subject: bug#59443: 29.0.50; [PATCH] Allow goto-address-at-point to use secondary browser
Date: Mon, 21 Nov 2022 08:45:26 -0300

Description:

When `goto-address-mode' is enabled, it's not possible to make "C-c RET"
(`goto-address-at-point') open an URL with
`browse-url-secondary-browser-function`.

Steps:
1) emacs -Q (master "6b0179f7908c658342d1e642e5444e3d2e1cd997")

2) eval
(progn
  (require 'browse-url)
  (setopt browse-url-browser-function           #'eww-browse-url
          browse-url-secondary-browser-function #'browse-url-default-browser)
  (scratch-buffer)
  (goto-address-mode))

3) Insert "https://www.gnu.org/software/emacs/"; in the *scratch* buffer

4) Put point at URL and execute C-c RET (`goto-address-at-point')

Result: `browse-url-browser-function' opens the URL with the default
browser function.  It's not possible to specify the use of the
`browse-url-secondary-browser-function'.

A proposed patch is attached.  The prefix argument will not affect the
argument CONTINUE of `compose-email'.

Attachment: 0001-Allow-goto-address-at-point-to-use-secondary-browser.patch
Description: Text Data

---
Gabriel

reply via email to

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