GNU bug report logs - #80128
[PATCH] vc: Fix applying diff buffers to other working trees

Previous Next

Package: emacs;

Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>

Date: Sun, 4 Jan 2026 15:25:02 UTC

Severity: normal

Tags: patch

Fixed in version 31.1

Done: Sean Whitton <spwhitton <at> spwhitton.name>

To reply to this bug, email your comments to 80128 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to spwhitton <at> spwhitton.name, bug-gnu-emacs <at> gnu.org:
bug#80128; Package emacs. (Sun, 04 Jan 2026 15:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Paul D. Nelson" <ultrono <at> gmail.com>:
New bug report received and forwarded. Copy sent to spwhitton <at> spwhitton.name, bug-gnu-emacs <at> gnu.org. (Sun, 04 Jan 2026 15:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Paul D. Nelson" <ultrono <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] vc: Fix applying diff buffers to other working trees
Date: Sun, 04 Jan 2026 23:23:56 +0800
[Message part 1 (text/plain, inline)]
On a recent master, with emacs -Q:

1. (setopt diff-default-read-only t)
2. Create a git worktree.  Make some changes in it.
3. Use C-x v D to create a diff buffer showing those changes.
4. Try using C-x v w a to apply those changes to some other worktree.

This yields the error:

  vc-apply-to-other-working-tree: Buffer is read-only: #<killed buffer>

[0001-vc-Fix-applying-diff-buffers-to-working-trees.patch (text/x-patch, attachment)]

Reply sent to Sean Whitton <spwhitton <at> spwhitton.name>:
You have taken responsibility. (Sat, 10 Jan 2026 12:09:03 GMT) Full text and rfc822 format available.

Notification sent to "Paul D. Nelson" <ultrono <at> gmail.com>:
bug acknowledged by developer. (Sat, 10 Jan 2026 12:09:03 GMT) Full text and rfc822 format available.

Message #10 received at 80128-done <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: "Paul D. Nelson" <ultrono <at> gmail.com>
Cc: 80128-done <at> debbugs.gnu.org
Subject: Re: bug#80128: [PATCH] vc: Fix applying diff buffers to other
 working trees
Date: Sat, 10 Jan 2026 12:08:22 +0000
Version: 31.1

Hello,

Paul D. Nelson [04/Jan 11:23pm +08] wrote:
> On a recent master, with emacs -Q:
>
> 1. (setopt diff-default-read-only t)
> 2. Create a git worktree.  Make some changes in it.
> 3. Use C-x v D to create a diff buffer showing those changes.
> 4. Try using C-x v w a to apply those changes to some other worktree.
>
> This yields the error:
>
>   vc-apply-to-other-working-tree: Buffer is read-only: #<killed buffer>

Thanks.  I'd prefer to fix this by binding inhibit-read-only instead of
relying on the implicit ordering of the forms, so I've done that, and
closing the bug.

-- 
Sean Whitton




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.