[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: Error in post-command-hook



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)