GNU bug report logs -
#21969
VC opens new window to display minimal messages
Previous Next
Reported by: David Reitter <david.reitter <at> gmail.com>
Date: Sat, 21 Nov 2015 13:56:02 UTC
Severity: minor
Tags: fixed
Merged with 21518
Found in version 24.5
Fixed in version 25.1
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 21969 <at> debbugs.gnu.org (full text, mbox):
> From: Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Sun, 22 Nov 2015 02:04:06 +0200
>
> Looking at the code, the main reason for this is that the '<backend>
> diff' command is called asynchronously. Before Emacs 25, we made
> exceptions for certain backends (Git, Hg, RCS); not sure why, maybe
> because they're faster that the rest? They're treated the same now,
> since ed6ce56e2.
>
> vc-diff-internal calls the 'diff' backend command, then checks if the
> process in its buffer has finished working and there's no output (which
> might be the case if the command was called *synchronously*), pops a
> window and sets up the code to be executed when the process finishes.
>
> All of which seems reasonable: we can't really pop the window only after
> the process finishes, because if might take some time in certain cases,
> and the user would be still be waiting for anything to happen until then.
>
> So, I'm not sure what's the best course of action here:
>
> - Call 'git diff' synchronously, and leave all other backends with this
> problem.
>
> - Call all 'diff' commands synchronously, and disregard the backends
> that might respond slowly to this command; the user will wait.
>
> - Invent some other solutions, like introduce a timeout which we might
> wait for the backend to respond before popping the window, and abort (?)
> if the user interacts with Emacs during that time.
>
> Suggestions welcome.
Why not always show the output in a window, and remove the code that
shows it in the echo area?
This bug report was last modified 9 years and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.