From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#24585: 25.1; avoid hack in ggtags.el to run compilation-auto-jump timer Date: Mon, 03 Oct 2016 14:45:57 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1475581706 5601 195.159.176.226 (4 Oct 2016 11:48:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Oct 2016 11:48:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: 24585@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 04 13:48:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brOCn-00008w-6e for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 13:48:17 +0200 Original-Received: from localhost ([::1]:41677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOCi-0000nt-Mb for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Oct 2016 07:48:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOCd-0000no-13 for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 07:48:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brOCY-00021g-4y for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 07:48:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brOCY-00021T-1J for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 07:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1brOCX-0002T3-Sg for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2016 07:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2016 11:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24585 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24585-submit@debbugs.gnu.org id=B24585.14755816389434 (code B ref 24585); Tue, 04 Oct 2016 11:48:01 +0000 Original-Received: (at 24585) by debbugs.gnu.org; 4 Oct 2016 11:47:18 +0000 Original-Received: from localhost ([127.0.0.1]:43844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brOBp-0002S6-TV for submit@debbugs.gnu.org; Tue, 04 Oct 2016 07:47:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brOBn-0002Rn-2g for 24585@debbugs.gnu.org; Tue, 04 Oct 2016 07:47:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DeBQALW9BX/7nwSC1dGwEBAQMBAQGDLQEBAQEBHoRNhVCxeYYWBAICgWk8EQECAQEBAQEBAV4nhGIBAQMBViMQCw4mEhQYDSSIVQi8VQEBAQEGAiWKfYocAQSZWZkNhguQSzQghGwghgoBAQE X-IPAS-Result: A0DeBQALW9BX/7nwSC1dGwEBAQMBAQGDLQEBAQEBHoRNhVCxeYYWBAICgWk8EQECAQEBAQEBAV4nhGIBAQMBViMQCw4mEhQYDSSIVQi8VQEBAQEGAiWKfYocAQSZWZkNhguQSzQghGwghgoBAQE X-IronPort-AV: E=Sophos;i="5.30,296,1470715200"; d="scan'208";a="274560279" Original-Received: from 45-72-240-185.cpe.teksavvy.com (HELO pastel.home) ([45.72.240.185]) by smtp.teksavvy.com with ESMTP; 04 Oct 2016 07:47:08 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 118FF64BE1; Mon, 3 Oct 2016 14:45:57 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Mon, 03 Oct 2016 23:22:24 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:124032 Archived-At: >>> The first timer is compilation-auto-jump which is installed (by compile) >>> at the start of compilation. >>> The second timer is a cleanup timer which is installed (by ggtags) when >>> compilation finishes and there is 0 or 1 match. >>> The second timer kills the buffer (among other things) that the first >>> timer depends on. >> So we can fix the bug by making the timer's code check if the buffer is >> still live? > No. We still want compilation-auto-jump to happen first. Otherwise we > just find 1 match and clean up without jumping to the match. Then why does the second timer kill the buffer so hastily? Stefan