* lisp/help-fns.el (describe-variable): Store the type.
* lisp/help-mode.el (help-view-source): Use the type. This fixes
the problem when looking for a variable defined in a C file.
(with-current-buffer standard-output
(setq help-mode--current-data
(list :symbol variable
+ :type 'variable
:file file-name))
(save-excursion
(re-search-backward (substitute-command-keys
"It is void as a variable."
"Its "))
(with-current-buffer standard-output
- (setq help-mode--current-data (list :symbol variable)))
+ (setq help-mode--current-data (list :symbol variable
+ :type 'variable)))
(if valvoid
" is void as a variable."
(substitute-command-keys "'s ")))))
(interactive nil help-mode)
(unless (plist-get help-mode--current-data :file)
(error "Source file for the current help item is not defined"))
- (help-function-def--button-function (plist-get help-mode--current-data :symbol)
- (plist-get help-mode--current-data :file)))
+ (help-function-def--button-function
+ (plist-get help-mode--current-data :symbol)
+ (plist-get help-mode--current-data :file)
+ (plist-get help-mode--current-data :type)))
(defun help-goto-info ()
"View the *info* node of the current help item."