bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *D


From: martin rudalics
Subject: bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*"
Date: Thu, 05 Jun 2014 10:45:35 +0200

> (defun show-elisp-src-at-point ()
>    (interactive)
>    (message (find-lisp-object-file-name (variable-at-point) 'defvar)))
>
> Now, executing show-elisp-src-at-point with point on a C variable just 
returns the symbol 'C-source. With an optional variable enable-c-search in 
find-lisp-object-file-name, it could instead return the actual C source file name.
>
> 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).

I thought about something like

(if (or (and (eq help-enable-auto-load 'create-doc)
             (get-buffer-create " *DOC*"))
        (get-buffer " *DOC*"))
    (help-C-file-name type 'subr)
  'C-source)

in `find-lisp-object-file-name'.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]