diff options
| author | Sean Whitton | 2026-01-10 12:08:11 +0000 |
|---|---|---|
| committer | Sean Whitton | 2026-01-10 12:08:11 +0000 |
| commit | 09aad81166d2d1ebc97f3f480e70869427ef07d1 (patch) | |
| tree | 24869301b6049e20cb70bb24d6feefc6bf13748f | |
| parent | cd88b8c2ba237fa2c02569c053fc80ceede143e8 (diff) | |
| download | emacs-09aad81166d2d1ebc97f3f480e70869427ef07d1.tar.gz emacs-09aad81166d2d1ebc97f3f480e70869427ef07d1.zip | |
vc--apply-to-other-working-tree: Handle 'diff-default-read-only'.
* lisp/vc/vc.el (vc--apply-to-other-working-tree): Bind
inhibit-read-only to non-nil to handle the case when
diff-default-read-only is non-nil (bug#80128).
| -rw-r--r-- | lisp/vc/vc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index af129f3da5f..a976c498c13 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -5471,7 +5471,8 @@ MOVE non-nil means to move instead of copy." | |||
| 5471 | (with-temp-buffer | 5471 | (with-temp-buffer |
| 5472 | (cond* (patch-string | 5472 | (cond* (patch-string |
| 5473 | (diff-mode) | 5473 | (diff-mode) |
| 5474 | (insert patch-string)) | 5474 | (let ((inhibit-read-only t)) ; `diff-default-read-only'. |
| 5475 | (insert patch-string))) | ||
| 5475 | ;; Some backends don't tolerate unregistered files | 5476 | ;; Some backends don't tolerate unregistered files |
| 5476 | ;; appearing in the fileset for a diff operation. | 5477 | ;; appearing in the fileset for a diff operation. |
| 5477 | ((bind* (diff-fileset | 5478 | ((bind* (diff-fileset |