From: Drew Adams <drew.adams@oracle.com>
To: 16553@debbugs.gnu.org
Subject: bug#16553: 24.3.50; `file-truename' returns a cons? (wrong-type-argument stringp (...))
Date: Sat, 25 Jan 2014 15:09:11 -0800 (PST) [thread overview]
Message-ID: <bbb39510-b1db-46ec-ae8e-0fcdab41da84@default> (raw)
In-Reply-To: <cfa22bc5-b446-4bdd-beb5-4050ea5f0fec@default>
And in fact, if I do not redefine `describe-function-1', i.e., if I
evaluate the original definition, then I get the same error.
I did `debug-on-entry' for `help-fns--autoloaded-p' and then traced
things until the error was produced. This is what I saw:
All of the calls to `file-truename' that I saw returned the right values.
There were multiple calls to `file-name-sans-extension', each of which,
except for the last, was passed an absolute file name and returned the
right value. The last of these correct calls was this one:
Debugger entered--entering a function:
* file-name-sans-extension("d:/Emacs-24-2014-01-23/share/emacs/24.3.50/lisp/emacs-lisp/cl-indent.elc")
That returned, correctly,
"d:/Emacs-24-2014-01-23/share/emacs/24.3.50/lisp/emacs-lisp/cl-indent"
(None of the calls involved file handlers or symlinks, FWIW.)
The next thing I saw in the debugger was this bizarre call to
`file-name-sans-extension':
Debugger entered--entering a function:
* file-name-sans-extension((require . fit-frame))
* #[514...]
* apply(#[514...] (message-tab "d:/Emacs-24-2014-01-23/share/emacs/24.3.50/lisp/gnus/message.el"))
* help-fns--autoloaded-p(message-tab "d:/Emacs-24-2014-01-23/share/emacs/24.3.50/lisp/gnus/message.el")
describe-function-1(message-tab)
describe-key(" " 1 nil)
call-interactively(describe-key nil nil)
command-execute(describe-key)
That is, as soon as the previous call to file-name-sans-extension
returned, correctly (and I traced that call step by step, using `d'),
`d' in the debugger came up with what you see above.
I also tried `debug-on-entry' for `describe-function-1' (the vanilla
Emacs version) and then `C-h f message-tab'. Same thing.
My wild guess is that the problem comes somehow from using Cygwin (?).
next prev parent reply other threads:[~2014-01-25 23:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-25 22:35 bug#16553: 24.3.50; `file-truename' returns a cons? (wrong-type-argument stringp (...)) Drew Adams
2014-01-25 23:09 ` Drew Adams [this message]
2014-01-26 1:16 ` Glenn Morris
2014-01-26 17:50 ` Eli Zaretskii
[not found] <<cfa22bc5-b446-4bdd-beb5-4050ea5f0fec@default>
[not found] ` <<bbb39510-b1db-46ec-ae8e-0fcdab41da84@default>
[not found] ` <<83txcqaazz.fsf@gnu.org>
2014-01-26 18:33 ` Drew Adams
2014-01-27 2:12 ` Stefan Monnier
2014-01-27 2:43 ` Drew Adams
2014-01-27 2:55 ` Stefan Monnier
2014-01-27 3:07 ` Drew Adams
2014-02-10 3:44 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bbb39510-b1db-46ec-ae8e-0fcdab41da84@default \
--to=drew.adams@oracle.com \
--cc=16553@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).