From 05d37eb89e26ea9c3409c3275e9add5e6b78278d Mon Sep 17 00:00:00 2001 From: Bram Schoenmakers Date: Tue, 16 Jan 2024 06:59:15 +0100 Subject: [PATCH] Do not ask for summary insertion for read-only buffers --- kagi.el | 1 + 1 file changed, 1 insertion(+) diff --git a/kagi.el b/kagi.el index c8b7dfc..004949b 100644 --- a/kagi.el +++ b/kagi.el @@ -446,6 +446,7 @@ this when PROMPT-INSERT-P is non-nil." (list (and prompt-insert-p (equal current-prefix-arg '(4)) + (not buffer-read-only) (y-or-n-p "Insert summary at point?"))) (list (when (equal current-prefix-arg '(4))