From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 14 13:28:21 2016 Received: (at submit) by debbugs.gnu.org; 14 Jul 2016 17:28:21 +0000 Received: from localhost ([127.0.0.1]:51682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNkQu-0007Kn-Ik for submit@debbugs.gnu.org; Thu, 14 Jul 2016 13:28:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNkQs-0007KZ-0n for submit@debbugs.gnu.org; Thu, 14 Jul 2016 13:28:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNkQl-0007pi-9y for submit@debbugs.gnu.org; Thu, 14 Jul 2016 13:28:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkQl-0007pZ-6k for submit@debbugs.gnu.org; Thu, 14 Jul 2016 13:28:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkQi-0003Lu-Ss for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNkQe-0007mG-Lq for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:28:07 -0400 Received: from mail3.iitk.ac.in ([202.3.77.190]:33737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkQd-0007jV-Ue for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:28:04 -0400 Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail3.iitk.ac.in (Postfix) with ESMTP id 6E53210001B4 for ; Thu, 14 Jul 2016 22:57:47 +0530 (IST) Received: from ram.bvr.dp.lan (unknown [172.20.240.119]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id 6982A51 for ; Thu, 14 Jul 2016 22:57:47 +0530 (IST) From: bvraghav@iitk.ac.in (B.V. Raghav) To: bug-gnu-emacs@gnu.org Subject: 24.5; Icy with Ggtags Problem Date: Thu, 14 Jul 2016 22:57:47 +0530 Message-ID: <87zipk2kq4.fsf@ram.bvr.dp.lan> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) ====================================================================== Start with a project having GTAGS table, and then starting with `emacs -Q', navigate to the project : 1. Load the ggtags (in scratch buffer type the following, and `C-M-x'): (add-to-list 'load-path "~/.emacs.d/elpa/ggtags-20151214.1344") (require 'ggtags) 2. Navigate to a file in project, and `M-. TAB RET' --- moves to in the corresponding file. 3. Close emacs `C-x C-c' Restart `emacs -Q' 1. Load ggtags, and icicles, as in step 1 of prev attempt. 2. Navigate to a file in project, and `M-. TAB RET' --- crashes with following error: Error running timer `compilation-auto-jump': (error "Selecting deleted buffer") Can anyone reproduce this? This has been there for a long time. May be related to https://github.com/leoliu/ggtags/issues/89 There is a workaround suggested in the above link, > Does it help if you change 0 in (ggtags-navigation-mode-cleanup buf 0) > of ggtags-global-handle-exit to a greater value, for example, 0.25, 0.5, > 1 etc? but it did not work for me. ====================================================================== In GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2016-04-08 on binet, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Debian GNU/Linux testing (stretch) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.5/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.5/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=lucid --with-toolkit-scroll-bars --without-gconf --without-gsettings 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_IN locale-coding-system: iso-latin-1-unix Major mode: Lisp Interaction Minor modes in effect: yas-global-mode: t yas-minor-mode: t icicle-mode: t minibuffer-depth-indicate-mode: t shell-dirtrack-mode: t projectile-global-mode: t projectile-mode: t TeX-PDF-mode: t async-bytecomp-package-mode: t global-subword-mode: t subword-mode: t show-paren-mode: t electric-pair-mode: t display-time-mode: t global-reveal-mode: t reveal-mode: t global-linum-mode: t linum-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Wrote /home/bvr/.emacs.d/elpa/ggtags-20151214.1344/ggtags.el Saving file /home/bvr/.emacs.d/elpa/ggtags-20151214.1344/ggtags.el... Wrote /home/bvr/.emacs.d/elpa/ggtags-20151214.1344/ggtags.el Undo! [13 times] Redo! [2 times] Undo! [2 times] user-error: No further undo information [13 times] Saving file /home/bvr/.emacs.d/elpa/ggtags-20151214.1344/ggtags.el... Wrote /home/bvr/.emacs.d/elpa/ggtags-20151214.1344/ggtags.el Computing completion candidates... Load-path shadows: /home/bvr/.emacs.d/elpa/helm-20160520.1124/helm-multi-match hides /home/bvr/.emacs.d/elpa/helm-core-20160519.2213/helm-multi-match /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs/24.5/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.5/lisp/textmodes/rst Features: (shadow sort bbdb-message org-table mail-extr emacsbug sendmail imenu filecache tramp-cmds tramp-sh tramp-cache autorevert filenotify misearch multi-isearch flyspell ispell org-indent org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view jka-compr image-mode org-bbdb org-w3m skeleton vc-dispatcher vc-svn ggtags ewoc yasnippet cc-langs face-remap xterm server smart-mode-line-powerline-theme powerline powerline-separators color powerline-themes smart-mode-line mule-util rich-minority dot-mode dabbrev icomplete+ icomplete icicles warnings two-column icicles-mode dired+ image-file dired-aux mb-depth+ mb-depth icicles-cmd2 icicles-cmd1 frame-cmds frame-fns avoid icicles-mcmd image-dired doremi icicles-fn icicles-var apropos-fn+var apropos icicles-opt ffap fuzzy-match cus-theme cus-edit cus-start cus-load wid-edit bookmark+ bookmark+-key derived dired-x crosshairs col-highlight vline hl-line+ bookmark+-1 bookmark+-bmu help-mode bookmark+-lit pp+ bookmark hexrgb thingatpt+ icicles-face slime-repl slime-parse slime etags arc-mode archive-mode pp hyperspec message-x bbdb bbdb-site timezone ob-sqlite ob-gnuplot ob-dot ob-perl ob-python ob-sh ob-R ess-toolbar ess-mouse mouseme ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l make-regexp ess-sp6-d ess-dde ess-sp3-d ess-julia julia-mode ess-r-d ess-r-syntax ess-r-completion ess-roxy essddr hideshow ess-help ess-r-package eldoc ess-s-l ess ess-inf ess-tracebug tramp tramp-compat tramp-loaddefs trampver shell ess-mode ess-noweb-mode ess-utils ess-generics ess-custom executable ess-compat ess-site projectile grep ibuf-ext ibuffer thingatpt auctex-latexmk latex tex-style tex-buf tex dbus crm multi-term cl term disp-table ehelp cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs org-ref org-ref-helm-bibtex helm-bibtex bibtex-completion biblio biblio-dissemin biblio-hal biblio-dblp biblio-crossref biblio-arxiv parse-time biblio-doi biblio-core seq seq-24 let-alist url-queue ido hl-line helm-plugin helm-utils compile helm-net browse-url xml helm-help org-ref-helm helm helm-source helm-multi-match helm-lib dired helm-config helm-easymenu async-bytecomp async reftex-cite reftex reftex-vars parsebib org-ref-glossary org-ref-utils org-ref-bibtex pcase org-ref-citeproc cl-macs gv message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader key-chord hydra advice lv doi-utils org-bibtex json bibtex f s ucs-normalize dash ox-texinfo ox-icalendar ox-html ox-beamer ox-latex ox-ascii ox-publish ox org-element org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs wc-mode edmacro kmacro superword subword paren elec-pair battery time noutline outline easy-mmode reveal linum tex-site info easymenu slime-autoloads package epg-config wheatgrass-theme tempo url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cl-extra cl-loaddefs cl-lib cconv eieio-core gnus-util time-date mm-util help-fns mail-prsvr password-cache url-vars mailcap xml-parse doxymacs tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting font-render-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 813517 87364) (symbols 48 66894 7) (miscs 40 1832 2461) (strings 32 196469 24158) (string-bytes 1 5909376) (vectors 16 94354) (vector-slots 8 1578498 29078) (floats 8 1876 396) (intervals 56 21904 2668) (buffers 960 31) (heap 1024 82085 5812)) -- -- (B.V. Raghav) Ph.D. Student, Design Programme, IIT Kanpur Ph: +91-9450988137 Email: bvraghav@gmail.com From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 20 03:43:16 2016 Received: (at 23987) by debbugs.gnu.org; 20 Jul 2016 07:43:17 +0000 Received: from localhost ([127.0.0.1]:57883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmA0-0003ap-ME for submit@debbugs.gnu.org; Wed, 20 Jul 2016 03:43:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPm9y-0003aY-Qh for 23987@debbugs.gnu.org; Wed, 20 Jul 2016 03:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPm9s-0001Qx-W2 for 23987@debbugs.gnu.org; Wed, 20 Jul 2016 03:43:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPm9h-0001Py-U1; Wed, 20 Jul 2016 03:42:57 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bPm9f-0004Es-Ts; Wed, 20 Jul 2016 03:42:56 -0400 From: Glenn Morris To: bvraghav@iitk.ac.in (B.V. Raghav) Subject: Re: bug#23987: 24.5; Icy with Ggtags Problem References: <87zipk2kq4.fsf@ram.bvr.dp.lan> X-Spook: Blizzard Secure Border Initiative Department of Homeland X-Ran: C/<3jB,[u%]D{Kdyc0*p&B85]Ql)&]yDavp->?{k2*[7nsfUhoi'. (B. V. Raghav's message of "Thu, 14 Jul 2016 22:57:47 +0530") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: 23987 Cc: 23987@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) Icicles is not part of Emacs or GNU ELPA. ggtags is in GNU ELPA, but uses github for bug reports. You've already found the relevant open github issue, so I suggest commenting there. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 20 03:44:36 2016 Received: (at control) by debbugs.gnu.org; 20 Jul 2016 07:44:36 +0000 Received: from localhost ([127.0.0.1]:57887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmBI-0003cx-11 for submit@debbugs.gnu.org; Wed, 20 Jul 2016 03:44:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48079) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPmBD-0003cg-RA for control@debbugs.gnu.org; Wed, 20 Jul 2016 03:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPmB8-0001km-11 for control@debbugs.gnu.org; Wed, 20 Jul 2016 03:44:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPmB7-0001ka-UK for control@debbugs.gnu.org; Wed, 20 Jul 2016 03:44:25 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bPmB6-0004Lc-Eu for control@debbugs.gnu.org; Wed, 20 Jul 2016 03:44:24 -0400 Subject: control message for bug 23987 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 20 Jul 2016 03:44:24 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.3 (------) forwarded 23987 https://github.com/leoliu/ggtags/issues/89 close 23987 From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 21 12:44:58 2016 Received: (at 23987) by debbugs.gnu.org; 21 Jul 2016 16:44:58 +0000 Received: from localhost ([127.0.0.1]:60591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQH5m-0003Xj-Fn for submit@debbugs.gnu.org; Thu, 21 Jul 2016 12:44:58 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:27890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQH5j-0003XT-Vf for 23987@debbugs.gnu.org; Thu, 21 Jul 2016 12:44:57 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6LGilfO023238 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Jul 2016 16:44:47 GMT 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 u6LGikdW018280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Jul 2016 16:44:47 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6LGijKN032631; Thu, 21 Jul 2016 16:44:45 GMT MIME-Version: 1.0 Message-ID: <3010c050-4257-4c00-82be-9a0437e2a4cc@default> Date: Thu, 21 Jul 2016 09:44:44 -0700 (PDT) From: Drew Adams To: bvraghav@iitk.ac.in, 23987@debbugs.gnu.org Subject: RE: bug#23987: 24.5; Icy with Ggtags Problem References: <87zipk2kq4.fsf@ram.bvr.dp.lan> In-Reply-To: <87zipk2kq4.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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 23987 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) > Error running timer `compilation-auto-jump': (error "Selecting > deleted buffer") This might, as supposed, be a ggtags issue. But I wonder if this isn't actually a `compile.el' issue. It seems like asking for trouble for any function (e.g. `compilation-auto-jump') that is invoked by an idle timer to be doing something based on evaluation of `(current-buffer)', in particular, without testing whether the result of that evaluation is a live buffer. In the present case, a user is apparently doing code completion. And in the case of Icicles, that can involve use of the minibuffer. I suspect that `compilation-auto-jump' should control itself, and act only in the buffer that it apparently expects to be acting in. Seems like fragile code. Any reason why an idle-timer function should assume something about what buffer is current or should not bother to check whether `(current-buffer)' is a live buffer? My guess is that this is not a ggtags or Icicles issue, but is just dumb behavior by `compilation-auto-jump'. This is my suggestion, FWIW: (defun compilation-auto-jump (buffer pos) (when (buffer-live-p buffer) ; <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (with-current-buffer buffer (goto-char pos) (let ((win (get-buffer-window buffer 0))) (when win (set-window-point win pos))) (when compilation-auto-jump-to-first-error =09 (compile-goto-error))))) Seems like a no-brainer... From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 22 08:06:21 2016 Received: (at 23987) by debbugs.gnu.org; 22 Jul 2016 12:06:21 +0000 Received: from localhost ([127.0.0.1]:60857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQZDh-0001QI-3k for submit@debbugs.gnu.org; Fri, 22 Jul 2016 08:06:21 -0400 Received: from mail2.iitk.ac.in ([202.3.77.186]:52082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQZDe-0001Q7-AS for 23987@debbugs.gnu.org; Fri, 22 Jul 2016 08:06:19 -0400 Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail2.iitk.ac.in (Postfix) with ESMTP id 8C9A210001AC; Fri, 22 Jul 2016 17:36:14 +0530 (IST) Received: from ram.bvr.dp.lan.iitk.ac.in (unknown [172.20.240.119]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id 813C848; Fri, 22 Jul 2016 17:36:14 +0530 (IST) From: bvraghav@iitk.ac.in (B.V. Raghav) To: Drew Adams Subject: Re: bug#23987: 24.5; Icy with Ggtags Problem Organization: Indian Institute of Technology, Kanpur References: <87zipk2kq4.fsf@ram.bvr.dp.lan> <3010c050-4257-4c00-82be-9a0437e2a4cc@default> Date: Fri, 22 Jul 2016 17:36:14 +0530 In-Reply-To: <3010c050-4257-4c00-82be-9a0437e2a4cc@default> (Drew Adams's message of "Thu, 21 Jul 2016 09:44:44 -0700 (PDT)") Message-ID: <87a8h96fnt.fsf@ram.bvr.dp.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 23987 Cc: 23987@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) Drew Adams writes: [I have no knowledge about what was written here.] > > This is my suggestion, FWIW: > > (defun compilation-auto-jump (buffer pos) > (when (buffer-live-p buffer) ; <=========================== > (with-current-buffer buffer > (goto-char pos) > (let ((win (get-buffer-window buffer 0))) > (when win (set-window-point win pos))) > (when compilation-auto-jump-to-first-error > (compile-goto-error))))) > > Seems like a no-brainer... This function did not help the use case, but a sanity check does not seemingly harm. So I keep it as an override in my init.el. Thanks, r -- (B.V. Raghav) Ph.D. Student, Design Programme, IIT Kanpur From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 22 10:01:48 2016 Received: (at 23987) by debbugs.gnu.org; 22 Jul 2016 14:01:48 +0000 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 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 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 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 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 MIME-Version: 1.0 Message-ID: <6bcabe89-33a6-4259-bb42-28f59497c255@default> Date: Fri, 22 Jul 2016 07:01:35 -0700 (PDT) From: Drew Adams To: bvraghav@iitk.ac.in Subject: RE: bug#23987: 24.5; Icy with Ggtags Problem References: <87zipk2kq4.fsf@ram.bvr.dp.lan> <3010c050-4257-4c00-82be-9a0437e2a4cc@default> <87a8h96fnt.fsf@ram.bvr.dp.lan> 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)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 23987 Cc: 23987@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) > > (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) ...)) From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 22 10:51:56 2016 Received: (at 23987) by debbugs.gnu.org; 22 Jul 2016 14:51:56 +0000 Received: from localhost ([127.0.0.1]:33878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQbnv-0005nb-TQ for submit@debbugs.gnu.org; Fri, 22 Jul 2016 10:51:56 -0400 Received: from mail2.iitk.ac.in ([202.3.77.186]:42881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bQbnt-0005nQ-5T for 23987@debbugs.gnu.org; Fri, 22 Jul 2016 10:51:54 -0400 Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail2.iitk.ac.in (Postfix) with ESMTP id A7A5C1000129; Fri, 22 Jul 2016 20:21:49 +0530 (IST) Received: from ram.bvr.dp.lan.iitk.ac.in (unknown [172.20.240.119]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id A613C48; Fri, 22 Jul 2016 20:21:49 +0530 (IST) From: bvraghav@iitk.ac.in (B.V. Raghav) To: Drew Adams Subject: Re: bug#23987: 24.5; Icy with Ggtags Problem Organization: Indian Institute of Technology, Kanpur References: <87zipk2kq4.fsf@ram.bvr.dp.lan> <3010c050-4257-4c00-82be-9a0437e2a4cc@default> <87a8h96fnt.fsf@ram.bvr.dp.lan> <6bcabe89-33a6-4259-bb42-28f59497c255@default> Date: Fri, 22 Jul 2016 20:21:49 +0530 In-Reply-To: <6bcabe89-33a6-4259-bb42-28f59497c255@default> (Drew Adams's message of "Fri, 22 Jul 2016 07:01:35 -0700 (PDT)") Message-ID: <871t2l67zu.fsf@ram.bvr.dp.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 23987 Cc: 23987@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) Drew Adams writes: >> > (defun compilation-auto-jump (buffer pos) >> > (when (buffer-live-p buffer) ; <======= > ... >> 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. > Yes, I had thought the same, when I had included this in the init.el, in the end. Then I sent a print message, and it printed the message, but that was all. I had tried it with `emacs -Q', added ggtags, and icicles to the load path; copied the function to scratch buffer, and C-M-x But the same result! Now I am trying your suggestion, using the message instead of print. (defun compilation-auto-jump (buffer pos) "Override suggested by Drew Adams bug#23987 <23987@debbugs.gnu.org>" (message "Override for compilation-auto-jump called Buf:%s Pos:%s" buffer pos) (when (buffer-live-p buffer) ; <============= (with-current-buffer buffer (goto-char pos) (let ((win (get-buffer-window buffer 0))) (if win (set-window-point win pos))) (if compilation-auto-jump-to-first-error (compile-goto-error))))) Here is the output from the *Messages* buffer > For information about GNU Emacs and the GNU system, type C-h C-a. > Mark set > Function icicle-repeat-complex-command is already compiled > Quit [2 times] > Making completion list... > Ggtags mode enabled > Global found 1 definition > Override for compilation-auto-jump called Buf:*ggtags-global* Pos:208 > Quit > Global found 4 references > Override for compilation-auto-jump called Buf:*ggtags-global* Pos:230 > Global found 1 definition > Override for compilation-auto-jump called Buf:*ggtags-global* Pos:223 > is undefined > Quit > Turning OFF Icicle mode...done > Turning ON Icicle mode...done > Turning OFF Icicle mode...done > Turning ON Icicle mode...done > Turning ON Icicle mode...done > Computing completion candidates... > Quit > Computing completion candidates... > Global found 1 definition > Override for compilation-auto-jump called Buf:# Pos:229 > Computing completion candidates... > Turning OFF Icicle mode...done > Global found 1 definition > Override for compilation-auto-jump called Buf:*ggtags-global* Pos:229 Ggtags works as expected, before icy-mode, but with icy-mode switched on, the message flashes, saying called for a killed buffer. Then again after switching off icy-mode, invoking ggtags, for the same definition. Incidentally this happens only, for sole completions, for example, func_foo_bar, has single occurence as definition, then this failure happens. However for multiple completions, it works, seamlessly. On top of it, when I override the call to `ggtags-navigation-mode-cleanup' inside of `ggtags-global-handle-exit', as follows: (ggtags-navigation-mode-cleanup buf 0.25) instead of `0' /^^^^\-----here This function works for arbitrarily small numbers 0.006 etc. buf sometimes also does fail. There indeed is a jump to the definition, but a split window is left open at the bottom. This probably is a ggtags affair. Thanks, HTH -- (B.V. Raghav) Ph.D. Student, Design Programme, IIT Kanpur Ph: +91-9450988137 Email: bvraghav@gmail.com From unknown Sat Aug 16 16:11:29 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 20 Aug 2016 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator