From a06cddec20d79b92a11172c201fa8cec54a28ffb Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Thu, 5 Feb 2026 12:24:05 +0000 Subject: [PATCH] ; diff--revert-kill-hunks: Hoist binding inhibit-read-only. --- lisp/vc/diff-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 0b6d2af517a..559310ff770 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -2332,10 +2332,10 @@ If REVERTP is non-nil, reverse-apply hunks before killing them." (setq beg (copy-marker beg) end (point-marker)) (unwind-protect (cl-loop initially (goto-char beg) + with inhibit-read-only = t for (hunk-beg hunk-end) = (diff-bounds-of-hunk) for file-bounds = (ignore-errors (diff-bounds-of-file)) for (file-beg file-end) = file-bounds - for inhibit-read-only = t if (and file-bounds (progn (goto-char file-beg)