GNU bug report logs - #77306
31.0.50; C-x v L from *vc-change-log* buffer leaves wrong default-directory

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Thu, 27 Mar 2025 11:15:02 UTC

Severity: normal

Found in version 31.0.50

Fixed in version 31.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Robert Pluim <rpluim <at> gmail.com>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 77306 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca, Sean Whitton <spwhitton <at> spwhitton.name>
Subject: bug#77306: 31.0.50; C-x v L from *vc-change-log* buffer leaves wrong default-directory
Date: Thu, 03 Apr 2025 14:58:24 +0200
>>>>> On Thu, 3 Apr 2025 15:14:28 +0300, Dmitry Gutov <dmitry <at> gutov.dev> said:

    Dmitry> On 27/03/2025 13:13, Sean Whitton wrote:
    >> This problem is caused by the let binding of default-directory
    >> established by vc-print-root-log.  vc-setup-buffer wants to set
    >> default-directory in the*vc-change-log* buffer to the new repository's
    >> root, but ends up just adjusting the let binding's value.
    >> The same thing probably occurs with C-x v D.
    >> Could we reformulate the command definitions so that they didn't
    >> need to
    >> bind default-directory?  Should vc-setup-buffer use the same
    >> run-with-timer trick implemented in xref--ensure-default-directory?

    Dmitry> Yeah, I don't have a better suggestion.

Doe `setq-local' not adjust the buffer-local value? What am I missing?

Robert
-- 




This bug report was last modified 45 days ago.

Previous Next


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