From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.help Subject: Re: xref-find-definitions Date: Thu, 25 Feb 2021 09:43:32 +0100 Message-ID: <878s7ctu4r.fsf@posteo.net> References: <86wnuxiaj5.fsf@x201.butler.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33440"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Emacs To: Leo Butler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 25 09:44:12 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFCFo-0008cH-GC for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 09:44:12 +0100 Original-Received: from localhost ([::1]:42558 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFCFn-0003Wj-IF for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 25 Feb 2021 03:44:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFCFJ-0003Wd-9u for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 03:43:41 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:39174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFCFH-0004da-47 for help-gnu-emacs@gnu.org; Thu, 25 Feb 2021 03:43:40 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id ABE62160060 for ; Thu, 25 Feb 2021 09:43:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1614242614; bh=gFeGPkoLUZHbySU0BdsHDbJgBr+fgK/hV4viX6s0Wy4=; h=From:To:Cc:Subject:Date:From; b=YpH9VUGkjq0lwas4R3Wia8Niz3XdEPIMWfuOwIgADH2K/0ukpDyIo37+WE+5v0WyD q4t3QrNzt6428Vw4XG1qgLuY6BSmelB4RZEklFeHOjrXqf/UgE/Kkf7qP9KpwUh/sN II3Z19zVzV3ow40IoF36r70I3QUxturYakZf+/yWlq7cm6Hm+x0e5Z5IG9GaH9W77q uGn72cSJxsmZIRZfqmwPfM4Qm/m5zSp8VVbNZAsc1JaXc5K4sav8CcvkGkM0ToQ9G0 OLpsdPa4TcIWxz89nSG6x8h9S5ab0EXyfhd5rrVNeHjQUqETgbsA4zoQcxFohJx9aY vKFga2QY6CSqA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DmRCB0Hr3z6tmQ; Thu, 25 Feb 2021 09:43:33 +0100 (CET) In-Reply-To: <86wnuxiaj5.fsf@x201.butler.org> (Leo Butler's message of "Wed, 24 Feb 2021 12:30:06 -0600") Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128243 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Butler writes: > What is the name of the regexp used by xref-find-definitions to determine > the identifier? I have looked in xref.el, but I don't see any way to do > this. Depending on the backend, it will call the method xref-backend-identifier-at-point, that defaults to symbol-at-point, so it doesn't use a regular expression in that sense. > Leo > > PS: > > M-. runs the command xref-find-definitions (found in global-map), > which is an autoloaded interactive compiled Lisp function in > =E2=80=98xref.el=E2=80=99. >=20=20=20 > It is bound to M-., . >=20=20=20 > (xref-find-definitions IDENTIFIER) >=20=20=20 > Probably introduced at or before Emacs version 25.1. >=20=20=20 > Find the definition of the identifier at point. > With prefix argument or when there=E2=80=99s no identifier at point, > prompt for it. >=20=20=20 > If sufficient information is available to determine a unique > definition for IDENTIFIER, display it in the selected window. > Otherwise, display the list of the possible definitions in a > buffer where the user can select from the list. >=20=20=20 > > =2D-=20 Philip K. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCAAxFiEEbW+YL3e0aNnYosjIGB9bla4wszYFAmA3YzQTHHBoaWxpcGtA cG9zdGVvLm5ldAAKCRAYH1uVrjCzNkhVDACEnp3Mcu3GVEdU2/SUvi91I8gF9y/Y SQsVR0WqAraMZ/Fkof58+jxDJDhChrfpsrFdikJnfi/NH+avsoMYpC+al2J9H9DT RcybYPbodDREMYLqqv6Mnom1M+qJCpLuTocCZL9XSNARrWsX2geyGjc5Z3NDDRpv LtwQMUwJAKyYAWGAUEeZ15VmrnL8gPhb59C8b23wJFdT9JPFKXHbKGtc4DcjPnLe zXoCGBn6GGbYT0flXaH9kAHPVNNO7mkWhtcV3/nl9ZeLCNJnkij28HnbCh4TDKSw JOZywPrafRBxP+aovd6VOin8N3zXvbRO/16iDJlzk21BO1oFF3WsNWI9NVjycrhX Hb+VXqlSihOQu3LU2/Kznx0/auXeTfMpQT+D+Iizm0SUKSh6MBU/pBvZDSbL8c3s zeJY3McN63MROv51M+BbHLV7NUBviH/oiv6a8xH+M7z07CZe51P+5F78l7eb56cG o4XhOQLm0nZOM9IxcQydIrRILCFtVseqJYY= =VofL -----END PGP SIGNATURE----- --=-=-=--