GNU bug report logs - #77946
master d283db57733: Fix window selection after log-edit-show-diff, again

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Sun, 20 Apr 2025 17:56:02 UTC

Severity: normal

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: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 77946 <at> debbugs.gnu.org, spwhitton <at> spwhitton.name
Subject: bug#77946: master d283db57733: Fix window selection after log-edit-show-diff, again
Date: Sun, 20 Apr 2025 22:22:54 +0300
> Cc: Sean Whitton <spwhitton <at> spwhitton.name>
> From: Juri Linkov <juri <at> linkov.net>
> Date: Sun, 20 Apr 2025 20:53:00 +0300
> 
> > diff --git a/lisp/vc/log-edit.el b/lisp/vc/log-edit.el
> > index 0da0b90975c..3c3288777c8 100644
> > --- a/lisp/vc/log-edit.el
> > +++ b/lisp/vc/log-edit.el
> > @@ -857,7 +857,8 @@ vc-log-fileset
> >  (defun log-edit-diff-fileset ()
> >    "Display diffs for the files to be committed."
> >    (interactive)
> > -  (vc-diff nil nil (list log-edit-vc-backend vc-log-fileset)))
> > +  (save-selected-window
> > +    (vc-diff nil nil (list log-edit-vc-backend vc-log-fileset))))
> 
> This change broke the command 'log-edit-show-diff' ('C-c C-d').
> Previously it selected the diff window.  Now it always stays in the vc-log window.

Isn't it a bug in log-edit-show-diff?  Why does it assume that it will
be put in the diff window?  It should instead switch there.




This bug report was last modified 25 days ago.

Previous Next


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