summaryrefslogtreecommitdiff
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-03-08 07:56:13 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-03-08 07:56:13 +0000
commit14cf0430e43b65cadc93be549344600fc722dd3e (patch)
tree4870f865e6d735109ceebb66d92ea0f9e9cdc72a /lisp/diff-mode.el
parent4894c2b0f81b9a766b0af97b3df8c8af8f719b2e (diff)
downloademacs-14cf0430e43b65cadc93be549344600fc722dd3e.tar.gz
(diff-ignore-whitespace-hunk): Bind
inhibit-read-only before trying to change the buffer.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index afd9399d1e5..d2b0ee84e17 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1695,13 +1695,13 @@ For use in `add-log-current-defun-function'."
(line-nb (and (or (looking-at "[^0-9]+\\([0-9]+\\)")
(error "Can't find line number"))
(string-to-number (match-string 1))))
+ (inhibit-read-only t)
(hunk (delete-and-extract-region
(point) (save-excursion (diff-end-of-hunk) (point))))
(lead (make-string (1- line-nb) ?\n)) ;Line nums start at 1.
(file1 (make-temp-file "diff1"))
(file2 (make-temp-file "diff2"))
(coding-system-for-read buffer-file-coding-system)
- (inhibit-read-only t)
old new)
(unwind-protect
(save-excursion