From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Fri, 10 Mar 2023 01:57:19 +0100 Message-ID: References: <1587ddb6-f631-0890-965a-c7acb5729fa6@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34508"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?ISO-8859-1?Q?Jo=E3o_T=E1vora?= , Helmut Eller , emacs-devel To: emacs-devel@gnu.org, Dmitry Gutov , John Yates Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 01:58:19 2023 Return-path: Envelope-to: ged-emacs-devel@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 1paR5P-0008mE-2k for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 01:58:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paR4l-0007Aj-Pw; Thu, 09 Mar 2023 19:57:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paR4j-0007AM-Hz for emacs-devel@gnu.org; Thu, 09 Mar 2023 19:57:37 -0500 Original-Received: from sonic305-3.consmr.mail.bf2.yahoo.com ([74.6.133.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paR4h-0000xr-6H for emacs-devel@gnu.org; Thu, 09 Mar 2023 19:57:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1678409849; bh=uqq2+tDmDI7mgEcIZK29R/kUNVsKOouCSfn86Gh974g=; h=Date:From:To:CC:Subject:In-Reply-To:References:From:Subject:Reply-To; b=BpWTtdASI/SWdgiGompeXhE8q4tWC/mXgWJGEA5cbPPv2O3BJoHuiQeij+rXntB4mMd+hGAjL3r0+S1d8C/icxZGaO7tW1xrPyfV3gK0COuJKbgrHiIn8RP4KipKOGnWTK7peHoMi70hLYO0xYlHmSWTF6U/xenmvBI9dyBbazZOndu90KQ/nyNlC95P1xHW33oFDCWzDMhH6Plnx2Cb3566tIMNwhaTlFKu/0QoYL99377g/UDcS38mRyuSBRkyAhVNDwEkm0++Q/mlvj++oiaW74M4r2iaLhnkZCRjIEhks80DAWl5IeH1bMeNaRLCV6ZNxpXbCqu5q6Qw+N8lJQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1678409849; bh=rXL0vetXqhxeHMMjRTP91I8dxRBDiCyo+8LiPeOEyle=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=cPnPS6PVMYFF+JfmbEYwXf3IjEUjD2MessW12JcK89TqVUjrj3x7Vzor4/nnGlgtjAaqVLRXg7DQ/lO2lkxiYqzmM5vY9ghsblCyemFYZ3v4tUxss0u7woJWwMz7c679Rvn2Sw6eqh4AfjiZHKC1Gc2aurieEu1Oirx6M8WWUE/zSTjf2SbZ4pLgIgzbfcUpIKxCbSrHIaT88Briz119lVfNASCByzonieQptdtS4ajsVsObFlp32kYM3Qs3O1k/6YK8laHs+UX1XRJhJoqUpI4sRGeEgEWPzKasMmHgNXi7gVwvCZuq/pstmls9QXxjuE233WXkgpDyigtvo0l+AQ== X-YMail-OSG: Hh5pZn4VM1m9LpZM_r4A1fXUoX5by1Jc685FC51_TB1_6TTSVe3nlKfTzJw52Pj 0FkSbsfSTIyzIhElrn6lFpVNxTZtiug0X9eR8uKLySthFK2HvhTJkAkYooG_Tf_.TI8IHnK_rCuF XSYY56K4A7lzVTj_SETJgg7p_WdGCs4WQp6X_JuAbHH0HXHnsAZXtUNj3W_QoQ78x6SRsjKkJZu_ VtwGAuVRvvPu6HLb9cl6MrDOqBB7pLe5NTlydX3AmUHEkB2W7JfpAXdFM_k8tmgPrMgQfHIje6EI Ts9jFpWWGApgbnk_xOYIUcd_.3.XfjRr36xBDJl1uT975Y_lyWMoWHWn5EsdvlRk259ihpzoPMCy vCy8VMBU049nKnDEZAcmf0UTpmnT4JPRQ4G_9DUBo0.oKumRFER2IBLASZlF3fSOpH8DBSg6URia 2ec3Ehy0SxRPxEqfbj9jHdddhXlgbnlWW5twoUCqIr31GWUgXB0wTzCyEhYHyNONABwTT_Oj7hkM mKH.YM51eTOUbeRjG0JwMdfnegu6.as6b3WDPF1VQE4l3zrfgp9w3sP0ed2jvZ2Qtv_fYXBsM_Tf Lcw0qadLefv1dfdw9mZQ_PXEZ7H972CVD6EMKTF__v0gcNZmjZc_Ug9bBcAdQSM5KANT.T3l42dP sTMT.MNx4lIxaZoSjM0iTremquvR7kk6DlfaQNPZMHgKijCTJx_1UyvcYtadNa80BN10CQqX7qNP iPMG59JQFXo2pYg.oTJTQmHhOBXWPwTo7aIwQBhIDR2GfNsIE4Y0TIXTHenAKLENPGcjeuZGr.yg pQ4nWs5LMi0yvpERCqrHO_ncXvhCGJ5TG5MUq2ZBbs X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Fri, 10 Mar 2023 00:57:29 +0000 Original-Received: by hermes--production-ir2-5b7d458747-rxkcm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 71aed29af212c07a59faf4d2a4a87b7f; Fri, 10 Mar 2023 00:57:26 +0000 (UTC) In-Reply-To: X-Mailer: WebService/1.1.21284 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.133.42; envelope-from=spacibba@aol.com; helo=sonic305-3.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304226 Archived-At: Ho Dmitry and Joao On March 6, 2023 3:09:40 PM GMT+01:00, Dmitry Gutov w= rote: >On 06/03/2023 01:40, John Yates wrote: >> For languages that do not distinguish declaration from definition, >> another alternative is to have both key bindings reference the same >> find-definition functionality=2E Yes please, just fall back to find-definition (or find-references) + a war= ning when find-declaration or the the others are not supported? It is simpl= er and practical=2E Alternatively there could be a default fallback command similar to find-re= ferences but reordering to list definitions first (just an example) >I think I would generally prefer for the "find declarations" binding to e= nd with an error when unsupported rather than repeat an existing command wh= ich is already accessible through an easier key binding=2E > >Otherwise some users might waste time wondering over the difference, test= ing, and comparing -- I myself would, probably=2E > Before binding to a key maybe let's start again with the simpler: to add = them in the right click context menu=2E=2E=2E And we can find a binding lat= er=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E