From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#23987: 24.5; Icy with Ggtags Problem Date: Fri, 22 Jul 2016 07:01:35 -0700 (PDT) Message-ID: <6bcabe89-33a6-4259-bb42-28f59497c255@default> References: <87zipk2kq4.fsf@ram.bvr.dp.lan> <3010c050-4257-4c00-82be-9a0437e2a4cc@default> <87a8h96fnt.fsf@ram.bvr.dp.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469196162 20131 80.91.229.3 (22 Jul 2016 14:02:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 14:02:42 +0000 (UTC) Cc: 23987@debbugs.gnu.org To: bvraghav@iitk.ac.in Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 22 16:02:29 2016 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 1bQb1y-0002k4-Sn for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jul 2016 16:02:23 +0200 Original-Received: from localhost ([::1]:47382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQb1y-0000dS-6Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jul 2016 10:02:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQb1i-0000XF-NQ for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2016 10:02:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQb1f-0006lT-2W for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2016 10:02:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49740) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQb1e-0006lN-VO for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2016 10:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bQb1e-0004Zo-NZ for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2016 10:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jul 2016 14:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23987 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23987-submit@debbugs.gnu.org id=B23987.146919610817563 (code B ref 23987); Fri, 22 Jul 2016 14:02:02 +0000 Original-Received: (at 23987) by debbugs.gnu.org; 22 Jul 2016 14:01:48 +0000 Original-Received: from localhost ([127.0.0.1]:33843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQb1Q-0004ZD-Eh for submit@debbugs.gnu.org; Fri, 22 Jul 2016 10:01:48 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:41456) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQb1O-0004Yv-GI for 23987@debbugs.gnu.org; Fri, 22 Jul 2016 10:01:46 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6ME1ci9013514 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jul 2016 14:01:39 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u6ME1b0u000313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jul 2016 14:01:37 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6ME1aYe016130; Fri, 22 Jul 2016 14:01:37 GMT In-Reply-To: <87a8h96fnt.fsf@ram.bvr.dp.lan> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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:121415 Archived-At: > > (defun compilation-auto-jump (buffer pos) > > (when (buffer-live-p buffer) ; <=3D=3D=3D=3D=3D=3D=3D ... > This function did not help the use case... Hm. I thought that the error reported was that some code tried to use a buffer that was dead (killed). And that the code that raised the error was invoked from `compilation-auto-jump' (which is invoked from an idle timer). Error running timer `compilation-auto-jump': (error "Selecting deleted buffer") Are you getting the _same_ error even after changing the code as indicated? If so then I might not understand what's going on. I'm guessing that the new definition of `compilation-auto-jump' was not getting invoked. The old definition was still getting invoked, as it was built into the original timer (which is not assigned to any variable, so you cannot easily cancel it). To test with the suggested code, try something like this: Make a _copy_ of compile.el, and move the original and any byte-compiled version (compile.elc) somewhere that is not in your `load-path' (so you can move them back again after testing, if need be). Then replace the original definition in the copy of file compile.el that _is_ in your `load-path' with the new definition. Don't bother to compile the file. Then test in a new Emacs session or at least a new compilation buffer. The point is to be sure to pick up the new version. You can also add a call to `message' to the new version, to let you know that it is getting called (the messages get logged in buffer `*Messages*'). E.g.: (defun compilation-auto-jump (buffer pos) (message "CAJ, BUF: %S, POS: %S" buffer pos) <=3D=3D=3D=3D=3D=3D=3D (when (buffer-live-p buffer) ...))