On 6/5/23 15:48, Ihor Radchenko wrote:
Scott Randby <[email protected]> writes:

When I execute (browse-url "mailto:[email protected]";) in the *scratch* buffer, 
I get the following:

Debugger entered--Lisp error: (void-function nil)
    nil("mailto:[email protected]"; (nil))
    browse-url--mailto("mailto:[email protected]"; nil)
    apply(browse-url--mailto "mailto:[email protected]"; nil)
    browse-url("mailto:[email protected]";)

Then, it looks like mis-configured `browse-url'.
Check your configuration.


Here are some steps I tried following your advice.

(1) I eliminated all customizations that involved `browse-url' from my 
configuration and restarted Emacs (Emacs 28.2, Org 9.6.6).

(2) I executed (browse-url "mailto:[email protected]";) and the buffer to edit 
an email appeared.

(3) I executed (browse-url "https://orgmode.org/";) and the Org Mode site opened 
in Firefox.

(4) I executed (customize-set-variable 'browse-url-mailto-function nil) and then executed 
(browse-url "mailto:[email protected]";). The result gave the same error 
messages.

(5) I quit Emacs and ran `emacs -q' (Emacs 28.2, Org 9.5.5).

(6) I executed (browse-url "mailto:[email protected]";) and the buffer to edit 
an email appeared.

(7) I executed (browse-url "https://orgmode.org/";) and the Org Mode site opened 
in Firefox.

(8) I executed (customize-set-variable 'browse-url-mailto-function nil) and then executed 
(browse-url "mailto:[email protected]";). The result gave the same error 
messages.

I'm not sure how my configuration can be at fault when `emacs -q' gives the 
same result. I'm not sure what to do now.

Reply via email to