[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error in post-command-hook
- From: Hideyuki SHIRAI (白井秀行) <shirai@xxxxxxxxxxx>
- Date: Sun, 25 Jul 2010 13:53:18 +0900 (JST)
- X-ml-name: emacs-w3m
- X-mail-count: 11283
- References: <87zkxgmcwc.wl%irieshinsuke@xxxxxxxxxxx>
From: IRIE Shinsuke <irieshinsuke@xxxxxxxxxxx> said
Subject: [emacs-w3m:11282] Error in post-command-hook
Message-ID: <87zkxgmcwc.wl%irieshinsuke@xxxxxxxxxxx>
Date: Sun, 25 Jul 2010 12:57:39 +0900
> We assume a command is defined by using `lambda' as:
> (global-set-key [hoge] (lambda () (interactive) fuga hige ...))
....
> I investigated this probrem, and found the bug in the function
> `w3m-auto-show'. In this function, `this-command' is checked
> using `symbol-name':
>
> (string-match "\\`i?search-" (symbol-name this-command))
>
> This expression, however, causes an error if `this-command' is
> not a symbobl, so it should be changed to:
>
> (and (symbolp this-command)
> (string-match "\\`i?search-" (symbol-name this-command)))
Thanks your report and patch.
I installed this patch to CVS Head.
# It was an error in Hook, so it did not notice (_ _)
--
Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)