From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#21969: VC opens new window to display minimal messages Date: Sat, 21 Nov 2015 20:07:05 -0500 Message-ID: <2DD7D456-BD0F-47A7-9138-E771094E169E@gmail.com> References: <906518FC-CA8A-408D-88CC-A44553EB66C6@gmail.com> <56510676.2010305@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448154507 8811 80.91.229.3 (22 Nov 2015 01:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 01:08:27 +0000 (UTC) Cc: 21969@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 22 02:08:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0J8U-0001VS-9t for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Nov 2015 02:08:11 +0100 Original-Received: from localhost ([::1]:54330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0J8T-0002rx-Om for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Nov 2015 20:08:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0J8P-0002rs-NE for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 20:08:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0J8M-0004Ln-HU for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 20:08:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57756) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0J8M-0004Lj-Co for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 20:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a0J8L-0001sU-VQ for bug-gnu-emacs@gnu.org; Sat, 21 Nov 2015 20:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Nov 2015 01:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21969 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21969-submit@debbugs.gnu.org id=B21969.14481544487166 (code B ref 21969); Sun, 22 Nov 2015 01:08:01 +0000 Original-Received: (at 21969) by debbugs.gnu.org; 22 Nov 2015 01:07:28 +0000 Original-Received: from localhost ([127.0.0.1]:47464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0J7o-0001rW-43 for submit@debbugs.gnu.org; Sat, 21 Nov 2015 20:07:28 -0500 Original-Received: from mail-qg0-f50.google.com ([209.85.192.50]:34987) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a0J7T-0001r1-Sa for 21969@debbugs.gnu.org; Sat, 21 Nov 2015 20:07:26 -0500 Original-Received: by qgec40 with SMTP id c40so95783525qge.2 for <21969@debbugs.gnu.org>; Sat, 21 Nov 2015 17:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=bSAGZqKUrl8jjAcnk8i5uC5GWLAblPW518RqFw2mYtA=; b=BH9hbwKNgGDaRtw9uwE0DrVyFXC4VB3IbUeTdDxND6j48pqUYwwov1syRq30N+Qush wLtYA09iJMiDJSL6f9xSCt58a1Hfz6daZMCgXT18FM4WwFY0uXUM20QtvfwAFF4qVh9E lqPvz3P8wf4Ye6HehUJXw73pqV62Rap0OJMWlp5Xww1HhBkOzrFaets95d+RldXX0aUA CJ8RfLZrEcrOl3Rc5uP8+r/N2JiIMVVZojvN9rJ/8j+r1Lv1XB73Bln3wjz61OdaoeW6 zqxi4RTWdKgzfrNglZ6NuYaYKR6553BsNTc4hgpAwUJDBT+oqeBN32hEobALd3aF46pQ I1gQ== X-Received: by 10.140.221.145 with SMTP id r139mr21839186qhb.94.1448154427455; Sat, 21 Nov 2015 17:07:07 -0800 (PST) Original-Received: from [10.0.1.23] (c-71-58-212-112.hsd1.pa.comcast.net. [71.58.212.112]) by smtp.gmail.com with ESMTPSA id c128sm1458267qha.5.2015.11.21.17.07.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Nov 2015 17:07:06 -0800 (PST) In-Reply-To: <56510676.2010305@yandex.ru> X-Mailer: Apple Mail (2.3094) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109040 Archived-At: On Nov 21, 2015, at 7:04 PM, Dmitry Gutov wrote: > So, I'm not sure what's the best course of action here: >=20 > - Call 'git diff' synchronously, and leave all other backends with = this problem. >=20 > - Call all 'diff' commands synchronously, and disregard the backends = that might respond slowly to this command; the user will wait. >=20 > - 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. Try this: Call asynchronously. Install timeout or sentinel that checks if or when = the process has finished. If it=E2=80=99s just one line, remove the = window that was created. My thinking is that this is likely to be handled so quickly that = redisplay will not have time to pop up the window. However, I can see that this might use low-level functions = (pop-to-buffer is very configurable). =20 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). For the 25.1 branch, one could consider just calling it synchronously.=