From f5fa43148cd2f6f10a3064933aa41f9d7c3df144 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 20 Feb 2024 13:26:55 +0200 Subject: gnosis-edit-save-exit: Exit recursive edit IF we are in one --- gnosis.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnosis.el b/gnosis.el index aac6840..569c466 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1128,7 +1128,10 @@ changes." (interactive) (eval-buffer) (kill-buffer) - (exit-recursive-edit)) + ;; exit recursive edit if we are in one + (if (>= (recursion-depth) 1) + (exit-recursive-edit) + (gnosis-dashboard))) (defvar-keymap gnosis-edit-mode-map :doc "gnosis-edit keymap" -- cgit v1.2.3