[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 6c09616354 2/3: Add FIXME about window configur
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 6c09616354 2/3: Add FIXME about window configuration |
Date: |
Thu, 13 Oct 2022 05:57:16 -0400 (EDT) |
branch: externals/agitate
commit 6c0961635430844ca7787da61c1945be87884072
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add FIXME about window configuration
---
agitate.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/agitate.el b/agitate.el
index a8ecc6583e..b146114592 100644
--- a/agitate.el
+++ b/agitate.el
@@ -266,6 +266,10 @@ Restore the last window configuration when finalising
log-view."
(defun agitate--log-edit-informative-setup ()
"Set up informative `log-edit' window configuration."
+ ;; FIXME 2022-10-13: The window configuration needs to be saved at
+ ;; an earlier stage. Hooking it to 'vc-before-checkin-hook' or
+ ;; `vc-checkin-hook' seems appropriate, though it then breaks the
+ ;; C-c C-c in log-edit buffers (the C-c C-k works).
(setq agitate--previous-window-configuration (current-window-configuration))
(delete-other-windows)
(add-hook 'log-edit-done-hook #'agitate--log-edit-informative-restore nil t)