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: Thu, 04 Dec 2014 17:49:36 +0100 Message-ID: References: <20141102151524.0d9c665c@forcix> <20141117211039.37f03409@forcix> <877fymghgb.fsf@bredband.net> <85ppc0qf9a.fsf@stephe-leake.org> <85zjb3o09d.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417711823 19016 80.91.229.3 (4 Dec 2014 16:50:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Dec 2014 16:50:23 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 04 17:50:13 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 1XwZbX-0006bE-Uf for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 17:50:12 +0100 Original-Received: from localhost ([::1]:46643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZbX-0007Sz-GN for ged-emacs-devel@m.gmane.org; Thu, 04 Dec 2014 11:50:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZbL-0007Ib-KT for emacs-devel@gnu.org; Thu, 04 Dec 2014 11:50:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwZbD-0000hQ-TN for emacs-devel@gnu.org; Thu, 04 Dec 2014 11:49:59 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57799) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwZbD-0000gp-ML for emacs-devel@gnu.org; Thu, 04 Dec 2014 11:49:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XwZbB-0006OH-My for emacs-devel@gnu.org; Thu, 04 Dec 2014 17:49:49 +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 ; Thu, 04 Dec 2014 17:49:49 +0100 Original-Received: from eller.helmut by 212.46.172.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2014 17:49:49 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 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:pxz7kqM/yppzOre3AF1yYqW77wQ= 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:178837 Archived-At: On Thu, Dec 04 2014, Stephen Leake wrote: >> Hmm, xref-find-definition does this, except for the case when it's not >> called interactively. > > I bound xref-find-definition to a key. When I invoke that key, I'm > prompted for the identifier; the default is the identifier at point, but > I still have to hit enter. Something's odd here. xref-find-definition does NOT prompt by default. E.g. if you invoke M-x xref-find-definition in an elisp buffer with the text "cons" around point then it should take you immediately to alloc.c without any prompting. xref-find-definition should prompt only if either xref-identifier-at-point returns nil or if it's invoked with prefix argument. > I want to eliminate that prompt/enter step. So do I. Helmut