On 6/5/23 15:48, Ihor Radchenko wrote:
Scott Randby <sran...@gmail.com> writes:

When I execute (browse-url "mailto:sran...@gmail.com";) in the *scratch* buffer, 
I get the following:

Debugger entered--Lisp error: (void-function nil)
    nil("mailto:sran...@gmail.com"; (nil))
    browse-url--mailto("mailto:sran...@gmail.com"; nil)
    apply(browse-url--mailto "mailto:sran...@gmail.com"; nil)
    browse-url("mailto:sran...@gmail.com";)

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:sran...@gmail.com";) 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:sran...@gmail.com";). 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:sran...@gmail.com";) 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:sran...@gmail.com";). 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