From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: emacs-devel@gnu.org
Subject: Re: Error in post-command-hook (completion-in-region--postch): (wrong-type-argument stringp nil)
Date: Fri, 24 Aug 2012 15:07:54 +0200 [thread overview]
Message-ID: <87y5l430b9.fsf@zigzag.favinet> (raw)
In-Reply-To: <87txvsbkkm.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Fri, 24 Aug 2012 13:23:05 +0200")
[-- Attachment #1: Type: text/plain, Size: 1933 bytes --]
() Tassilo Horn <tsdh@gnu.org>
() Fri, 24 Aug 2012 13:23:05 +0200
> Does ‘nrepl-send-string’ change the current buffer?
No.
> The same questions could apply to any of the functions involved.
Did you check the other functions? (If not, before you do, see below.)
> [use ‘message’]
Sorry, i was not clear. I would use ‘message’ in several places, each
w/ a unique format string (to avoid Emacs combining them in *Messages*),
to trace the execution path. That would help answer some aux questions:
Did the function finish? Did it return the form as expected?
I tried that, and message always said I'm in the buffer I was
supposed to be in, even though the next message was the error.
To be super-safe I added
(assert (eq major-mode 'clojure-mode))
before every single form of my function! Right now, I only have one
clojure-mode buffer open. The original post-command-hook error still
occurs, but the assertions are always true anyhow. So it doesn't
seem to be caused by being in the wrong buffer...
With the series-of-‘message’ calls "instrumentation", i would expand the
set of interesting state to check other assumptions. I see several vars
that are ‘let’-bound in minibuffer.el that are good candidates.
Sort of in parallel (maybe you found a bug in Emacs!), i would also try
a trivial func that does no computation and returns constant, known
data, likewise "instrumented", to validate the completion machinery.
Did you already do that?
--
Thien-Thi Nguyen ..................................... GPG key: 4C807502
. NB: ttn at glug dot org is not me .
. (and has not been since 2007 or so) .
. ACCEPT NO SUBSTITUTES .
........... please send technical questions to mailing lists ...........
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2012-08-24 13:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 8:25 Error in post-command-hook (completion-in-region--postch): (wrong-type-argument stringp nil) Tassilo Horn
2012-08-24 9:44 ` Thien-Thi Nguyen
2012-08-24 11:23 ` Tassilo Horn
2012-08-24 13:07 ` Thien-Thi Nguyen [this message]
2012-08-24 16:23 ` Tassilo Horn
2012-08-24 16:58 ` Thien-Thi Nguyen
2012-08-24 18:12 ` Tassilo Horn
2012-08-24 15:46 ` Stefan Monnier
2012-08-24 18:20 ` Tassilo Horn
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y5l430b9.fsf@zigzag.favinet \
--to=ttn@gnuvola.org \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.