A bug report. It dies if i bind some operator to a lambda function.

To reproduce, eval the following in a buffer, and start typing `+' twice.

,----
| (local-set-key (kbd "+") (lambda () (interactive) (insert " + ")))
`----

---------------------------------8<------------------------------------- 
There has been an error in pabbrev-mode. This mode normally
makes use of "post-command-hook", which runs after every command. If this
error continued Emacs could be made unusable, so pabbrev-mode has attempted
to disable itself. So although it will appear to still be on, it won't do
anything. Toggling it off, and then on again will usually restore functionality.
The following is debugging information

Wrong type argument: symbolp, (lambda nil (interactive) (insert " + "))

Backtrace is: 
  backtrace()
  (let ((standard-output ...)) (backtrace))
  (with-output-to-temp-buffer "*pabbrev-fail*" (princ "There has been an error 
in pabbrev-mode. This mode normally
makes use of \"post-command-hook\", which runs after every command. If this
error continued Emacs could be made unusable, so pabbrev-mode has attempted
to disable itself. So although it will appear to still be on, it won't do
anything. Toggling it off, and then on again will usually restore functionality.
") (princ "The following is debugging information

") (princ (error-message-string err)) (princ "

Backtrace is: 
") (let (...) (backtrace)))
  pabbrev-command-hook-fail((wrong-type-argument symbolp (lambda nil 
(interactive) (insert " + "))) "post")
  (condition-case err (unless (or buffer-read-only ...) (save-excursion ... 
...)) (error (pabbrev-command-hook-fail err "post")))
  pabbrev-post-command-hook()
  run-hooks(post-command-hook)
---------------------------------8<------------------------------------- 

-- 
William



_______________________________________________
gnu-emacs-sources mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to