From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#19466: 25.0.50; xref-find-def doesn't find C functions Date: Fri, 16 Jan 2015 08:47:55 +0100 Message-ID: <54B8C22B.3080200@gmx.at> References: <8361cucl3u.fsf@gnu.org> <54A230CD.3040309@yandex.ru> <83vbktb1ct.fsf@gnu.org> <54A2EE15.3020406@yandex.ru> <831tnhasx0.fsf@gnu.org> <54A6DAF6.5070605@yandex.ru> <831tna9tmr.fsf@gnu.org> <54A9C94F.8040701@yandex.ru> <83vbkl99vm.fsf@gnu.org> <54B8878A.4050506@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421394555 13984 80.91.229.3 (16 Jan 2015 07:49:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2015 07:49:15 +0000 (UTC) Cc: 19466@debbugs.gnu.org, Helmut Eller To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 08:49:14 2015 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 1YC1ea-0000kG-RQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2015 08:49:13 +0100 Original-Received: from localhost ([::1]:54359 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC1ea-0001J3-3p for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Jan 2015 02:49:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC1eV-0001GN-MV for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2015 02:49:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YC1eQ-00085f-MD for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2015 02:49:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YC1eQ-00085X-JJ for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2015 02:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YC1eQ-00025i-6l for bug-gnu-emacs@gnu.org; Fri, 16 Jan 2015 02:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Jan 2015 07:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19466-submit@debbugs.gnu.org id=B19466.14213945057992 (code B ref 19466); Fri, 16 Jan 2015 07:49:02 +0000 Original-Received: (at 19466) by debbugs.gnu.org; 16 Jan 2015 07:48:25 +0000 Original-Received: from localhost ([127.0.0.1]:58386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YC1do-00024q-N7 for submit@debbugs.gnu.org; Fri, 16 Jan 2015 02:48:25 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:54589) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YC1dm-00024a-Ql for 19466@debbugs.gnu.org; Fri, 16 Jan 2015 02:48:23 -0500 Original-Received: from [91.113.6.66] ([91.113.6.66]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0LzskF-1Xhtgb08Jv-014zQU; Fri, 16 Jan 2015 08:48:06 +0100 In-Reply-To: <54B8878A.4050506@yandex.ru> X-Provags-ID: V03:K0:4bHeP7QPrUUcvFPuZp+Np1+D30K62bw63pf+3isxiX/DvoKbgAV yaWvwlzkf8gzJfRcufj829PDpoHBhsPmA4dHnWvgAherVTIfEbC47UfTexTZri04zwqfJgk sLzhsE6C4cZCcnO5yJItNsskbeAAB9LRvdtbkjBGnesaNy1yntWPiwTtSUqpDPW9aE12CvZ UW7eHomxBRFQiRGLs2XJw== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:98404 Archived-At: > The alternative implementation was pushed to scratch/xref, and it's waiting for Martin's comments (bug#19468). Sorry, I didn't have time yet to give it a through testing. Anyway, Eli's concern "... if I switch to the window where that candidate is displayed, the window switches buffers on me ..." is IMHO more serious than your "I want the user to be able to easily return to the window configuration that was before xref-find-definitions was called." so I think you should push the `quit-window' based solution to trunk (which, from the few testing I gave it, seems to handle this case well). One thing that has annoyed me ever since is the buffers that pile up while browsing tags. I always dreamt of a good heuristic to get rid of them. Maybe you could try making provisions like (1) this buffer is killable because it has been probably visited exclusively by and only accidentally during xrefing, and (2) have the command that quits the *xref* buffer optionally kill the buffers marked in (1). A heuristic for (1) could go as follows: The buffer was created during xrefing, the window was never selected while it showed that buffer and either its buffer was "immediately" replaced by another xrefed one or `xref--quit' was invoked. You might also consider setting `other-window-scroll-buffer' to the window used by `xref-show-location-at-point'. martin, who'd prefer (user-error "No reference at point")