When browse-url-browser-function signals an error, link-hint-open-link and related commands replace the error with a wrong-number-of-arguments error, due to link-hint--apply calling the function several times with different numbers of arguments.
This seems to be due to a desire to accommodate different calling conventions, but I think link-hint--apply should only check for wrong-number-of-arguments, not just any error.
When
browse-url-browser-function
signals an error,link-hint-open-link
and related commands replace the error with a wrong-number-of-arguments error, due tolink-hint--apply
calling the function several times with different numbers of arguments.This seems to be due to a desire to accommodate different calling conventions, but I think
link-hint--apply
should only check forwrong-number-of-arguments
, not just any error.For example, evaluating the following code:
Causes this error:
whereas the expected error is: