]> code.delx.au - gnu-emacs-elpa/commitdiff
* ampc.el (ampc-mode-map): Forbid changes of the window layout when ampc is
authorChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 28 Mar 2012 16:09:38 +0000 (18:09 +0200)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 28 Mar 2012 16:09:38 +0000 (18:09 +0200)
  busy.

ampc.el

diff --git a/ampc.el b/ampc.el
index a9b0ac353764713c9b8df2c9b9ec4e2f3d8d6330..079712daae2139412fa6da3da9e1acc8b62e29ec 100644 (file)
--- a/ampc.el
+++ b/ampc.el
@@ -371,7 +371,9 @@ all the time!"
           do (define-key map (car view)
                `(lambda ()
                   (interactive)
-                  (ampc-configure-frame ',(cdr view)))))
+                  (if (equal ampc-outstanding-commands '((idle)))
+                      (ampc-configure-frame ',(cdr view))
+                    (message "ampc is busy, cannot change window layout")))))
     map))
 
 (defvar ampc-item-mode-map