From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.devel Subject: Re: Generalizing find-definition Date: Sun, 2 Nov 2014 21:17:25 +0100 Message-ID: <20141102211725.24e6c24c@forcix> References: <20141102151524.0d9c665c@forcix> <20141102172944.0f7944e3@forcix> <20141102193514.279d3053@forcix> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414959487 8050 80.91.229.3 (2 Nov 2014 20:18:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 20:18:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 21:17:59 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 1Xl1b5-0008QV-K6 for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 21:17:59 +0100 Original-Received: from localhost ([::1]:59146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl1b3-0001G2-2N for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 15:17:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl1ak-0001E9-2b for emacs-devel@gnu.org; Sun, 02 Nov 2014 15:17:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xl1ac-0000Oc-IF for emacs-devel@gnu.org; Sun, 02 Nov 2014 15:17:38 -0500 Original-Received: from loki.jorgenschaefer.de ([87.230.15.51]:36293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xl1ac-0000OM-Bq for emacs-devel@gnu.org; Sun, 02 Nov 2014 15:17:30 -0500 Original-Received: by loki.jorgenschaefer.de (Postfix, from userid 998) id 447752045AB; Sun, 2 Nov 2014 21:17:28 +0100 (CET) Original-Received: from forcix (port-35731.pppoe.wtnet.de [46.59.190.112]) by loki.jorgenschaefer.de (Postfix) with ESMTPSA id B0F972045A9; Sun, 2 Nov 2014 21:17:26 +0100 (CET) In-Reply-To: X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; i586-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 87.230.15.51 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:176243 Archived-At: On Sun, 02 Nov 2014 20:51:40 +0100 Helmut Eller wrote: > On Sun, Nov 02 2014, Jorgen Schaefer wrote: > > > Could you elaborate a bit on what you'd like to see for "a good > > UI"? My idea so far was to simply have modes provide a function > > that returns a marker or nil, while the function can check for > > interactive calls if it wants to, and use that in the usual go to > > location in same window/other window/other frame and go back. But > > I'm very open to ideas to make this better. > > Let me define a bit of terminology that I use in SLIME: > [...] Thank you for the elaborate explanation! > The primary complication for a "good UI" is the case when there is > more than one candidate. Yes; I deliberately omitted this for my initial proposal, as this is definitely not simple, and I suspect no matter how it is done, it will leave *someone* unhappy. > BTW: M-x rgrep needs to solve similar UI issues as it also needs to > deal with a "list of candidates". Maybe there's an opportunity to > share/unify some things. I think it would be possible to optionally return a list of markers from `find-definition-function', which would then be displayed in a buffer similar to rgrep/compile. Thank you for the idea. I like that. Regards, Jorgen