branch: externals/ampc
commit 10ce67ba7ac8d2491f2a830b9fba67ac564d664e
Author: Christopher Schmidt <[email protected]>
Commit: Christopher Schmidt <[email protected]>
* ampc.el (ampc-mode-map): Forbid changes of the window layout when ampc is
busy.
---
ampc.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ampc.el b/ampc.el
index a9b0ac3537..079712daae 100644
--- 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