Fix 'help-view-source' for variables defined in C
This fixes an issue that Juri Linkov mentioned in Bug#71117. * lisp/help-mode.el (help-function-def--button-function): When searching for the definition of a variable, make sure to call 'help-C-file-name' with KIND argument set to 'var'.
This commit is contained in:
parent
e1789f66ac
commit
52acabcbe8
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ The format is (FUNCTION ARGS...).")
|
|||
(require 'find-func)
|
||||
(when (eq file 'C-source)
|
||||
(setq file
|
||||
(help-C-file-name (indirect-function fun) 'fun)))
|
||||
(if (memq type '(variable defvar))
|
||||
(help-C-file-name fun 'var)
|
||||
(help-C-file-name (indirect-function fun) 'fun))))
|
||||
;; Don't use find-function-noselect because it follows
|
||||
;; aliases (which fails for built-in functions).
|
||||
(let* ((location
|
||||
|
|
Loading…
Add table
Reference in a new issue