emacs-orgmode
[Top][All Lists]
Advanced

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

Re: mailto link issue in 9.5.5 and 9.6.6


From: Max Nikulin
Subject: Re: mailto link issue in 9.5.5 and 9.6.6
Date: Thu, 8 Jun 2023 22:47:40 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 07/06/2023 19:56, Ihor Radchenko wrote:
Max Nikulin <manikulin@gmail.com> writes:

It seems https://orgmode.org/worg/org-faq.html#mailto-links requires an
update for Emacs-28 (besides a typo with "~" instead of "-").

May you elaborate? (Or, better, send a patch)

The typo in https://orgmode.org/worg/org-faq.html#mailto-links

browse-url~browser-function
----------^

Looking at https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c4adfbae24d9
Allow for custom URL handlers in browse-url.
(included into Emacs-28)

+(defun browse-url--mailto (url &rest args)
+  "Calls `browse-url-mailto-function' with URL and ARGS."
+  (funcall browse-url-mailto-function url args))

I decided that it is consistent with

   nil("mailto:srandby@gmail.com"; (nil))
   browse-url--mailto("mailto:srandby@gmail.com"; nil)

when `browse-url-mailto-function' is set to nil. However docstring to this variable allows nil (perhaps there is really an Emacs bug). Now I am puzzled why setting `browse-url-mailto-function' to `browse-url-default-browser' does not help. I have no idea what should be suggested to users instead of nil.








reply via email to

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