The button link for variables probably have been broken forever. On Emacs 29, when M-x helpful-variable RET vc-directory-exclusion-list, the find-variable-noselect call will call down to find-function-search-for-symbol, and then when trying to string-match'defvar, an error complaining about 'defvar is not a string will be thrown and pos will always be set to nil, which mean clicking on the "defined in vc-hooks.el.gz" link will only send the user to the top of the file and not the line defining the variable. This PR fixes this issues.
The button link for variables probably have been broken forever. On Emacs 29, when
M-x helpful-variable RET vc-directory-exclusion-list
, thefind-variable-noselect
call will call down tofind-function-search-for-symbol
, and then when trying tostring-match
'defvar
, an error complaining about'defvar
is not a string will be thrown andpos
will always be set tonil
, which mean clicking on the "defined invc-hooks.el.gz
" link will only send the user to the top of the file and not the line defining the variable. This PR fixes this issues.