[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help debug an error in pre-command-hook?
From: |
Stefan Monnier |
Subject: |
Re: Help debug an error in pre-command-hook? |
Date: |
Thu, 09 Feb 2012 17:20:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> I am seeing an error:
> Error in pre-command-hook:
Are you using Emacs-24? [In Emacs-24 I try to provide the faulty hook
function in the error message, which can be really helpful]
> (wrong-type-argument symbolp (lambda (&rest --cl-rest--) (interactive)
> (apply (lambda (G91516 G91517 G91518) (setq
> minor-mode-overriding-map-alist (symbol-value G91518)) (bury-buffer) (if
> (and (symbol-value G91517) (not (one-window-p))) (delete-window)) (if
> (window-live-p (symbol-value G91516)) (select-window (symbol-value
> G91516)))) (quote --origwin--) (quote --delete-p--) (quote --old--)
> --cl-rest--)))
This looks like the macroexpansion of a lexical-let closure.
I guess the code expects a function name and not a lambda expression
(e.g. `fboundp').
> Before the error, the value of pre-command-hook is:
> pre-command-hook is a variable defined in `C source code'.
> Its value is (t comint-preinput-scroll-to-bottom)
> Local in buffer *Python*; global value is
> (delete-selection-pre-hook tooltip-hide)
> But looking at the source of comint-preinput-scroll-to-bottom, I cannot
> see where it can generate this error? Any idea how to debug this?
I tried to look for a package which uses both lexical-let and one of the
symbols that appear above but can't find it. Can you reproduce it with
emacs -Q?
Stefan