all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Help debug an error in pre-command-hook?
Date: Thu, 09 Feb 2012 17:20:45 -0500	[thread overview]
Message-ID: <jwvy5sbvepn.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m1wr7ws8xb.fsf@gmail.com> (Leo's message of "Thu, 09 Feb 2012 16:33:20 +0800")

> 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



  parent reply	other threads:[~2012-02-09 22:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09  8:33 Help debug an error in pre-command-hook? Leo
2012-02-09 18:25 ` martin rudalics
2012-02-09 22:20 ` Stefan Monnier [this message]
2012-02-13  8:08   ` Leo

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=jwvy5sbvepn.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=sdl.web@gmail.com \
    /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.