[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17685: 22.214.171.124; help-C-file-name failes to create temp buffer " *D
bug#17685: 126.96.36.199; help-C-file-name failes to create temp buffer " *DOC*"
Thu, 05 Jun 2014 09:51:39 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
> Maybe just add an optional argument in find-lisp-object-file-name?
I'd be OK with that, yes.
> (defun show-elisp-src-at-point ()
> (message (find-lisp-object-file-name (variable-at-point) 'defvar)))
This call to `message' is erroneous (e.g. if the file name contains % chars).
You can fix it with
(defun show-elisp-src-at-point ()
(message "%s" (find-lisp-object-file-name (variable-at-point) 'defvar)))
At which point the `C-source' return value is not nearly as problematic.
> I don't think an extra value in help-enable-auto-load would be of any help
> in these kind of cases (i.e. when used programmatically).
Agreed, tho the caller could let-bind help-enable-auto-load (in effect
passing it an implicit additional argument).