Skip to content

Commit

Permalink
git-commit-propertize-diff: ensure diff-mode keeps buffer writable
Browse files Browse the repository at this point in the history
Fixes #3170.
  • Loading branch information
tarsius committed Sep 14, 2017
1 parent 6b7dd53 commit 746f236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lisp/git-commit.el
Expand Up @@ -733,7 +733,8 @@ Added to `font-lock-extend-region-functions'."
(with-current-buffer buffer
(prog1 (buffer-substring-no-properties (point) (point-max))
(delete-region (point) (point-max)))))
(diff-mode)
(let ((diff-default-read-only nil))
(diff-mode))
(let (font-lock-verbose font-lock-support-mode)
(if (fboundp 'font-lock-ensure)
(font-lock-ensure)
Expand Down

0 comments on commit 746f236

Please sign in to comment.