Modified Files:
authorkate <kate>
Sat, 20 Jul 2002 08:15:58 +0000 (08:15 +0000)
committerkate <kate>
Sat, 20 Jul 2002 08:15:58 +0000 (08:15 +0000)
tamago/ChangeLog tamago/egg.el

Mr. SAITO Takuya contributes this patch.

ChangeLog
egg.el

index 6bc2b6b..06ee86b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-20  SAITO Takuya <reed@lily.freemail.ne.jp>
+
+       * egg.el (egg-activate-keymap-after-command): set-buffer to
+       killed buffer.
+
 2001-05-22  KATAYAMA Yoshio <kate@pfu.fujitsu.com>
 
        * its.el (its-delete-by-character): New customizable variable.
diff --git a/egg.el b/egg.el
index 7bd4f3c..3bb95e7 100644 (file)
--- a/egg.el
+++ b/egg.el
 (defun egg-activate-keymap-after-command ()
   (while egg-change-major-mode-buffer
     (save-excursion
-      (set-buffer (car egg-change-major-mode-buffer))
-      (egg-activate-keymap)
+      (when (buffer-live-p (car egg-change-major-mode-buffer))
+       (set-buffer (car egg-change-major-mode-buffer))
+       (egg-activate-keymap))
       (setq egg-change-major-mode-buffer (cdr egg-change-major-mode-buffer))))
   (remove-hook 'post-command-hook 'egg-activate-keymap-after-command))