all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: David Reitter <david.reitter@gmail.com>, 21969@debbugs.gnu.org
Subject: bug#21969: VC opens new window to display minimal messages
Date: Sun, 22 Nov 2015 02:04:06 +0200	[thread overview]
Message-ID: <56510676.2010305@yandex.ru> (raw)
In-Reply-To: <906518FC-CA8A-408D-88CC-A44553EB66C6@gmail.com>

On 11/21/2015 03:55 PM, David Reitter wrote:
> At some point on the way to Emacs 25, VC has begun creating new windows to display messages that would more appropriately fit into the echo area.
>
> For example, you do C-x =, it’ll display a “no revisions between working revision and work file” message.  But that is shown in the echo area AND a newly created window.

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.





  parent reply	other threads:[~2015-11-22  0:04 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-21 13:55 bug#21969: VC opens new window to display minimal messages David Reitter
2015-11-21 18:21 ` Dmitry Gutov
2015-11-22  0:04 ` Dmitry Gutov [this message]
2015-11-22  1:07   ` David Reitter
2015-11-22  1:27     ` Dmitry Gutov
2015-11-22  2:28       ` David Reitter
2015-11-22  5:01         ` Dmitry Gutov
2015-11-22 16:20         ` Eli Zaretskii
2015-11-22 16:46           ` Dmitry Gutov
2015-11-22 17:00             ` Eli Zaretskii
2015-11-22 17:02               ` Dmitry Gutov
2015-11-22 16:58           ` David Reitter
2015-11-22 16:08   ` Eli Zaretskii
2015-11-22 16:45     ` Dmitry Gutov
2015-11-22 16:58       ` Eli Zaretskii
2015-11-22 17:01         ` Dmitry Gutov
2015-11-22 17:40           ` Eli Zaretskii
2015-11-22 17:41             ` Dmitry Gutov
2015-11-22 17:45               ` David Reitter
2015-11-27 22:26                 ` Daniel Colascione
2015-11-28  0:50                   ` Dmitry Gutov
2015-11-28  8:21                     ` Eli Zaretskii
2015-11-28 12:01                       ` Dmitry Gutov
2015-11-28 12:15                         ` Eli Zaretskii
2015-11-28 12:19                           ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56510676.2010305@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=21969@debbugs.gnu.org \
    --cc=david.reitter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.