unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: David Reitter <david.reitter@gmail.com>
Cc: 21969@debbugs.gnu.org
Subject: bug#21969: VC opens new window to display minimal messages
Date: Sun, 22 Nov 2015 03:27:18 +0200	[thread overview]
Message-ID: <565119F6.9050008@yandex.ru> (raw)
In-Reply-To: <2DD7D456-BD0F-47A7-9138-E771094E169E@gmail.com>

On 11/22/2015 03:07 AM, David Reitter wrote:

> Call asynchronously.  Install timeout or sentinel that checks if or when the process has finished.  If it’s just one line, remove the window that was created.

So you would be content with a window that appears, changes layout, and 
then flips back after 0.1s? I wouldn't like that, myself.

> My thinking is that this is likely to be handled so quickly that redisplay will not have time to pop up the window.

Setting aside the fact that if it's that fast then we don't need calling 
it asynchronously, redisplay *will* almost always have the time to show 
the changes window configuration, simply because it's changed during the 
command's execution, and any "change back" will have to happen afterwards.

> However, I can see that this might use low-level functions (pop-to-buffer is very configurable).

Not sure what's your point here.

> Alternatively, and perhaps that is the correct solution, I would start asynchronously and install a very brief timeout that opens up the new window unless the process has finished with just one line of output (or an error).

Like my option 3? What can be considered to be a "brief timeout"?

> For the 25.1 branch, one could consider just calling it synchronously.

For all backends? Including SVN and CVS, which generally have to talk to 
remote servers, which can respond rather sluggishly?

I can change it back to synchronous for the mentioned backends (Git, Hg, 
RCS) now; that's simple. The more advanced solution will have to be 
written by someone else then.





  reply	other threads:[~2015-11-22  1:27 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
2015-11-22  1:07   ` David Reitter
2015-11-22  1:27     ` Dmitry Gutov [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=565119F6.9050008@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).