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

Error in post-command-hook



Dear Bug Team!

We assume a command is defined by using `lambda' as:

 (global-set-key [hoge] (lambda () (interactive) fuga hige ...))

Then, typing the keystroke `hoge' just after opening a web page
causes an error in post-command hook:

 Error in post-command-hook: (wrong-type-argument symbolp (lambda nil (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)))

Regards,

================================================================

System Info to help track down your bug:
---------------------------------------
emacs-w3m-version
 => "1.4.364"
emacs-version
 => "GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)\n of 2010-03-30 on rothera, modified by Debian"
mule-version
 => "6.0 (HANACHIRUSATO)"
system-type
 => gnu/linux
(featurep 'gtk)
 => t
w3m-version
 => "w3m/0.5.2"
w3m-type
 => w3m-m17n
w3m-compile-options
 => ("lang=en" "m17n" "image" "color" "ansi-color" "mouse" "gpm" "menu" "cookie" "ssl" "ssl-verify" "external-uri-loader" "w3mmailer" "nntp" "gopher" "ipv6" "alarm" "mark" "migemo")
w3m-language
 => "Japanese"
w3m-command-arguments
 => nil
w3m-command-arguments-alist
 => nil
w3m-command-environment
 => nil
w3m-input-coding-system
 => iso-2022-7bit-ss2
w3m-output-coding-system
 => iso-2022-7bit-ss2
w3m-use-mule-ucs
 => nil