gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: pabbrev.el


From: William Xu
Subject: Re: pabbrev.el
Date: Sun, 04 Nov 2007 13:21:44 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (darwin)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]