From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Fri, 05 Dec 2014 14:25:33 +0100 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141117211039.37f03409@forcix> <877fymghgb.fsf@bredband.net> <85ppc0qf9a.fsf@stephe-leake.org> <85zjb3o09d.fsf@stephe-leake.org> <85tx1amnyg.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417786016 1504 80.91.229.3 (5 Dec 2014 13:26:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Dec 2014 13:26:56 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 05 14:26:50 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XwsuH-0006gx-3b for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 14:26:49 +0100 Original-Received: from localhost ([::1]:50409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwsuG-0000E5-NN for ged-emacs-devel@m.gmane.org; Fri, 05 Dec 2014 08:26:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwstQ-0007VS-KF for emacs-devel@gnu.org; Fri, 05 Dec 2014 08:26:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwstJ-0006hQ-5V for emacs-devel@gnu.org; Fri, 05 Dec 2014 08:25:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:33910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwstI-0006gr-T1 for emacs-devel@gnu.org; Fri, 05 Dec 2014 08:25:49 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XwstF-0006CD-EJ for emacs-devel@gnu.org; Fri, 05 Dec 2014 14:25:45 +0100 Original-Received: from 212.46.172.140 ([212.46.172.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Dec 2014 14:25:45 +0100 Original-Received: from eller.helmut by 212.46.172.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Dec 2014 14:25:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 212.46.172.140 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:GN2ZqpUVA2koAf99bhje2a9+FIo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:178917 Archived-At: On Fri, Dec 05 2014, Stephen Leake wrote: > Other comments: > > xref.el needs (provide 'xref). Added. [...] > That would be more consistent if the first reference was shown as: > > (defun wisi-number-p) OK. > In ada-mode, I use compilation-mode for showing multiple references; > that is a familiar UI. I gather the mode you implemented is similar to > SLIME? Yes, it's a simplified version of SLIME's UI. > Perhaps we need another dispatch/user option to choose this UI? I added a variable xref-show-xrefs-function so that people can experiment with alternative UIs. I'm not sure if compilation-mode is able to handle locations that can't be represented as simple strings. [...] > I'd actually prefer xref-find-definitions as the user function, and > xref-find-defintions-m as the dispatching function; the user function > can show more than one definition. I decided to call the backend functions xref-lookup-defintions and xref-lookup-references and the commands xref-find-defintions resp. xref-find-references. Helmut