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 11:01:02 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1475463752 5522 195.159.176.226 (3 Oct 2016 03:02:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 3 Oct 2016 03:02:32 +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 05:02:28 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 1bqtWE-00085M-9M for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Oct 2016 05:02:18 +0200 Original-Received: from localhost ([::1]:33545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqtWB-00033x-UJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Oct 2016 23:02:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqtW4-00033r-G4 for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 23:02:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqtVy-0005EG-JS for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 23:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqtVy-0005Du-Fq for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 23:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bqtVy-0000WP-5F for bug-gnu-emacs@gnu.org; Sun, 02 Oct 2016 23:02: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 03:02: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.14754636741938 (code B ref 24585); Mon, 03 Oct 2016 03:02:02 +0000 Original-Received: (at 24585) by debbugs.gnu.org; 3 Oct 2016 03:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:42386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqtVC-0000VC-FM for submit@debbugs.gnu.org; Sun, 02 Oct 2016 23:01:14 -0400 Original-Received: from mail-pa0-f54.google.com ([209.85.220.54]:33914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bqtVA-0000Ux-UE for 24585@debbugs.gnu.org; Sun, 02 Oct 2016 23:01:13 -0400 Original-Received: by mail-pa0-f54.google.com with SMTP id rz1so1662737pab.1 for <24585@debbugs.gnu.org>; Sun, 02 Oct 2016 20:01:12 -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=FKlYndwov5TcK/yv7COenIdTQXx32k779XgSrIT4XZs=; b=MLovz45a1TcUPb3I6Dqr0/6/4Xp8jfV5O2WiwVSNCmbzr6B8unRIHxk4R0teaO+Ja0 8oGY0FSy5DIaPiA4Wz3aX9YGayXDxEEt1UHoI/WlEne4lrUtMIv7sjZc3mnOxFE3luI8 cRDoM7dh/H1BjVzUFCLlV3P+k/TDOK6dUPtuKekxYmkdt7MCzliK36uhoZl81APooFKk Qi5RDEq793GsbWproLjcP3L4RwovH5+RhpA2r1MZCvCRYocstQ7uCN2j+vhPJTcDmWHT 23GLmgxsvQ+JrsQUxIbpyY8QudlSWR9XZq5/B6YTpVFCoO60Hdtw3Y8lKa7RZk7lYlXL fVcQ== 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=FKlYndwov5TcK/yv7COenIdTQXx32k779XgSrIT4XZs=; b=dEbdWU2NLO27H7m6ckIaxx1XExQ/K5n9HNWFzHuTmUcI3v7RLjoZeFIKqvwk5XbQak YROV6Pb16s+CQ75vGswoCfQEE24gZAbcoIqQXVVd6e0qTl8t0D20/3GGpHeCNiwaMcre 85NfJvsoc9AZw7o7sY3r0V/i+qF0MiajzIaoaFbQIqVI0t/8qWlHMjT/TS1weHP9lCqL XMHEzwV6ct/OUPa65EJtId7pZi7UCVXX1w1Nxjasvdn1Hk9jO6dYjIbV1+8pj413bM+d LiZU0l72HavqnB2l19ytdsVOSbzKRix3Ops9VUwjdER4cX/rKjxy3CNa7lEIMXCB1hOx M/ug== X-Gm-Message-State: AA6/9RmHOvmL9IIGfmXZ1umwlsww/FampABCWqf2qKi3+wYAFYRRfA3rcyVrNBzZ+W3low== X-Received: by 10.66.156.5 with SMTP id wa5mr219701pab.149.1475463667120; Sun, 02 Oct 2016 20:01:07 -0700 (PDT) Original-Received: from zeuss-MacBook-Pro.local ([139.59.241.182]) by smtp.gmail.com with ESMTPSA id v24sm42732562pfd.1.2016.10.02.20.01.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Oct 2016 20:01:06 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAMFBMVEUaFRZLMy1dTENxVzKQ WiCrXQ97cmO/dSqSh3akjGTApXy5sJ7Sxo/Sz8Xo6eP9//xJbkruAAAAAWJLR0QAiAUdSAAAAAlw SFlzAAACxQAAAsUBidZ/7wAAAAd0SU1FB9cBBwMJOwHXewoAAAIBSURBVCjPVdNBiNNAFADQ6J4F x3hThHZBBC+WCFI8SS0iezRDcMHLHkLAg6gJH/fgYQ9xYlj2sLK4KHgqCgXFhda2Idmr4kkQPZQ0 nkQMbTypbMmMM2m7ZgYSmMef/5OZPwo7HFnx3uKPcmj0Dht1LWZJ+Hvr7dIFZXRUwl9VRTuuKDJ+ U44gjscknK4hhJaCkYRsWjmBtLqXlJAG2wipNe18OZJu1BBq1E8xafl4s6Jq2mUZGftU1y7CCxnp FVUDWJXx4C66BKBnErbuoaYNtoRTu6EZBsCbMn7W+5qOAR6WvxNOby9jHWC9hAf3n304CdiAByXs 3Nh9roLDkyb/sWV712vYwaLSAn8CPMHIAAzOPDKP2COAFm4Y4ODVWc6xG7KXsN7UeUJjjimx2uwd gCgNhr0i8C/xyCD5CiCKAMY3Bf5oDzx//w/fimscdcAZU2jv9sedx6+nYPPFIoWI/GK6QZ+EFGOR ErAjCnV3vPZ7XqlTIMbOLY7fLcvvmT7rXNWaGDexIY44N12TG2PDp7vqyl57dnCeuWwyNpnEURxk fTbDYeBnKRn4oejPYI4sH6WviBumEZ/GxX4X/x6EcURFZ7E071bjQGAxpcOAEOJuTiroDEea5Szv rVWLYfl7ZiQwSUToxrkux7OLixAWGz22+HIyWTRYcVfomOwvzusfjtVIGgLHf3MAAAAASUVORK5C YII= In-Reply-To: (Stefan Monnier's message of "Sun, 02 Oct 2016 16:35:57 -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:123930 Archived-At: On 2016-10-02 16:35 -0400, Stefan Monnier wrote: > IIUC this patch just changes the ordering for same-time timers. > Relying on either ordering is itself a hack. We need a better solution. If you eval (progn (run-with-timer 0 ...) ; timer 1 (run-with-timer 0 ...)) ; timer 2 you expect timer 1 to be triggered first, no? > What are those two timers whose relative execution order matters? > Why do they care in which order they're run? 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. Leo