From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Leo Liu 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 23:22:24 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1475508292 28586 195.159.176.226 (3 Oct 2016 15:24:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 15:24:52 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (macOS 10.12) Cc: 24585@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 03 17:24:44 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 1br56Y-0005ky-So for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 17:24:35 +0200 Original-Received: from localhost ([::1]:37624 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br56X-0007oH-DS for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 11:24:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br55A-0006wh-5U for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:23:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1br554-0006sP-J3 for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:23:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1br554-0006sI-EL for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1br554-000135-7c for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2016 11:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Oct 2016 15:23:02 +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.14755081583964 (code B ref 24585); Mon, 03 Oct 2016 15:23:02 +0000 Original-Received: (at 24585) by debbugs.gnu.org; 3 Oct 2016 15:22:38 +0000 Original-Received: from localhost ([127.0.0.1]:43127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br54g-00011s-1L for submit@debbugs.gnu.org; Mon, 03 Oct 2016 11:22:38 -0400 Original-Received: from mail-pf0-f178.google.com ([209.85.192.178]:35114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1br54e-00011X-GL for 24585@debbugs.gnu.org; Mon, 03 Oct 2016 11:22:36 -0400 Original-Received: by mail-pf0-f178.google.com with SMTP id s13so64872731pfd.2 for <24585@debbugs.gnu.org>; Mon, 03 Oct 2016 08:22:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version; bh=+Z8Vm+7Bz1MfVB4rR/oGo9i+xtQNNEQoT55P3NHNirU=; b=r50/duLXxd1F7J3U+h1rzj53UuULXwpCWBCoQIs39VP2N5giwXzRNdOfgBfs+oFzvc zmP9IJrL32rQwbJKOOTAoIn1WaInFoZ+qLXLxYu5HVFOEtJbpiMPScNYMeCwAuDs1+Xh JrX7AhJIdgdjtBMw6NgHRz12zRZ4H1y+SuLX48+WkgVIQrYP+/C1zr1nDsbNWR3xiG5z 4Fa7mPU2ictza3dz+LfyRC0XB7KFm1/MNmuyetWjwcQyDJQrNwZp3LVnUfta6kQvNyBF KiLSg2yUIOOTAIPx9ptt4Izyo6pTCpJ7mRJGtoTvAmAzFDmc4hp7M52VAGW70K4Egoxt X4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:face:date :in-reply-to:message-id:user-agent:mime-version; bh=+Z8Vm+7Bz1MfVB4rR/oGo9i+xtQNNEQoT55P3NHNirU=; b=ZeIWUCYh1CGRpP/ZYJ4hAgqTnM9rU/U49h//H72sOggK2vP/lTfZD1p44GHbX7uVSh fZ9Hhgb/0HO0CLZ1lj/e7T0QmHMzCfwSfN3DOXXe9wQvOnIZtWCEgSXu2RTj8stuQ7UR ilpEXV3T7lklRTuVI0NricT8II1CV51eyUhR4Kr1ej0a+st5YDiU2c9OQw4FoFqeTqWR KmszZ56sODjlfJWuxuRZQqDiyPDuQb/n/vtDCuMqY+DhbGJIYJuIXLdzeSZUZuCpDeb1 tMmzsdeXbQU2U9Zle32j095Gbgm6dgU3LzCs5Iw3nXdYFHaSrHih95r9JcHBNN75/pNy Ab7g== X-Gm-Message-State: AA6/9Rkh7maISQAsP9nj+2DVxHviHSxdCiggBbjH2+60MTuriO5G8FeYWoCv/zoWYHFkdA== X-Received: by 10.98.76.9 with SMTP id z9mr24874680pfa.75.1475508150442; Mon, 03 Oct 2016 08:22:30 -0700 (PDT) Original-Received: from zeuss-MacBook-Pro.local ([139.59.241.182]) by smtp.gmail.com with ESMTPSA id i8sm18028977pfj.67.2016.10.03.08.22.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Oct 2016 08:22:29 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAElBMVEUAAAAAAP+LRRP0pGC+ vr7///+7mT1iAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMO DhglKe4AAAEsSURBVCjPbZNBboQwDEV/Cd4X9QJRThApmn0XYW+Jyf2v0m+HhqDBgiAe9rcTG7QH w/1Vn2Ar8gBb/ocywSN3qK9T3z4eFDB4eApocBpeBs1RSykoJd8gQcm8pGmHXFso3ajnmsqV0TnY DQkOfXUfN5NwaI7AWTVOyEhcu1aHmdWItHddUVUcUgUBCkitu8V6ditHVOVdqzl2EQ1ZVGTbdK0V 7cqn8vWzoU5Q/bF9Y/Y0cRU1xwkys5dJ+Dt6pBDWifcNQml8Gh2JVmPSoQzo7en0grswkxrUGYJ7 0hSxxAGr7ZMwYcHIzprpi7TENEE1xtiYxixRlCfPBsUUrwHD7uGIwATrbnODJcVrPpVn3hxiGloe m/S+z3CtuzUSMo83N4DPH+F0evwR3P4A2k+75838OKQAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Mon, 03 Oct 2016 09:24:50 -0400") 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:123958 Archived-At: On 2016-10-03 09:24 -0400, Stefan Monnier wrote: >> 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. Leo