1
0
Fork 0

Do not ask for summary insertion for read-only buffers

This commit is contained in:
Bram Schoenmakers 2024-01-16 06:59:15 +01:00
parent d75542ac7f
commit 05d37eb89e
Signed by: bram
GPG key ID: 0CCD19DFDC63258F

View file

@ -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))