unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*"
@ 2014-06-04  8:47 Stefan Guath
  2014-06-04 13:15 ` Stefan Monnier
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Guath @ 2014-06-04  8:47 UTC (permalink / raw)
  To: 17685

VERSION:
GNU Emacs 24.3.91.1 (x86_64-apple-darwin13.2.0, NS apple-appkit-1265.20) of 2014-05-23 on angelofdeaths-MacBook-Air.local

TO REPRODUCE BUG:
emacs -Q
(find-lisp-object-file-name 'visible-bell 'defvar) ;visible-bell is just an example and can be replaced with any variable.

RESULT:
C-source

EXPECTED RESULT:
"src/dispnew.c"
Note that I've compiled Emacs from source, and the source files are available. This is also proved by the work-around below.

WORK-AROUND:
emacs -Q
(get-buffer-create " *DOC*") ;That's a crazy line...
(find-lisp-object-file-name 'visible-bell 'defvar) ;...but now it suddenly works!

If you manually kill buffer " *DOC*", it stops working again.

GUESS OF SOLUTION:
According to help-fns.el, find-lisp-object-file-name calls help-C-file-name that in turn tries to create a temp buffer " *DOC*". Maybe this buffer creation somehow fails? It seems like it, since the bug disappears if we create the buffer in advance, and comes back when we manually delete the buffer. Or maybe there is some other error in help-C-file-name or even in get-buffer-create that manifests itself in this strange way?




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-02-08 10:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-04  8:47 bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*" Stefan Guath
2014-06-04 13:15 ` Stefan Monnier
2014-06-04 14:08   ` Drew Adams
2014-06-04 14:21     ` Stefan Monnier
2014-06-05  6:46   ` Stefan Guath
2014-06-05  7:48     ` martin rudalics
2014-06-05  8:35       ` Stefan Guath
2014-06-05  8:45         ` martin rudalics
2014-06-05  9:00           ` Stefan Guath
2014-06-05 13:51         ` Stefan Monnier
2022-02-08 10:11       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).