GNU bug report logs - #17685
24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*"

Previous Next

Package: emacs;

Reported by: Stefan Guath <stefan <at> automata.se>

Date: Wed, 4 Jun 2014 08:49:01 UTC

Severity: minor

Found in version 24.3.91.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Stefan Guath <stefan <at> automata.se>
Cc: 17685 <at> debbugs.gnu.org, martin rudalics <rudalics <at> gmx.at>
Subject: bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*"
Date: Thu, 05 Jun 2014 09:51:39 -0400
> 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 ()
>   (interactive)
>   (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 ()
     (interactive)
     (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).


        Stefan




This bug report was last modified 3 years and 102 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.