From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Sun, 5 Mar 2023 18:33:35 +0200 Message-ID: <18d0308a-947e-165e-b976-f839dea57fd8@yandex.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21517"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Cc: emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 05 17:34:37 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 1pYrJl-0005VK-1L for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Mar 2023 17:34:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYrIr-0001FJ-S7; Sun, 05 Mar 2023 11:33:41 -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 1pYrIp-0001Et-VY for emacs-devel@gnu.org; Sun, 05 Mar 2023 11:33:39 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYrIo-0007WA-Aq for emacs-devel@gnu.org; Sun, 05 Mar 2023 11:33:39 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id p16so4279527wmq.5 for ; Sun, 05 Mar 2023 08:33:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678034017; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=MecXYQzDBPZ5/Bqk2RO3dgmaDZ8kDWEZtJOxsTL0bUI=; b=YEs6zQXIYsvv9I+UikqOhmru56h2t7gl+aGDA9tZ1U2NwNAkjJErn3Kwv7oi91tyor lA2246t6WUeNAhZHQTiA2hNDtisoMz2uCCF71mfJAleVy+NpOjyqhFURqxI5VDWfi23j bxP1UeygJf2rChOq/9VEyivBn5LjFAL4LzYQTqm4BJ03us8DidVrmQ9o8FyNIOziMLpL gR9fPo3tHr8p+AvdHedS8dKneium936avgwtpkXWXGLK6dm0nFn+1/iGvF6gryjbdPbT 1u9v3vvo+VUxXuWozo2nHwTXwOCfkiY/A/V+AfEEsKLJFeJhkoRfNtgT43mushg2Sp7y 5cIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678034017; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MecXYQzDBPZ5/Bqk2RO3dgmaDZ8kDWEZtJOxsTL0bUI=; b=lAIyOa1FCKDFy6SG1gVwXHA+dVWbnsSXJZTSItz6/lDGWCrXMoLaHdg6PlLhKFIM5C AL6upxMuBwOdevI9fofNqP+74eopINVQUI39KdEO0m0505z/GdDhGrAzSa9uhHpF4P7K N93l4ZO97PYF+wkVhK3FCHQZZ55cAiCCv/iLJb6sBg+HNM26O9VIW/dV42yMqVFYwnRP L1UJisnscTGKH4WuF1zJaPehroK7kgtkYl2y3I+pSrv3LA1RFRHYIUW1Jbx4zSNMkW3p gPA9l9KFT58N8pxv1D2MI1q+0bp0YuC5jX1V3EnfzFKWyMxb+UNcBnInSDrzN1xbK2Rs ZaZA== X-Gm-Message-State: AO0yUKV/n3n49ZQwSvejg4arby46fJRzFq3ey2sIOqCe+vXYqmrI2hVC jsPNI7UI6kAhnxxdRXriVLs= X-Google-Smtp-Source: AK7set8X4feLgAowv3G5Trvbdv5ZHbutd6D4NGsgMmCJNV0GKLcXXU15WUoI6j12x/yrhM9bDNpJlQ== X-Received: by 2002:a05:600c:3b87:b0:3e2:c67:1c7f with SMTP id n7-20020a05600c3b8700b003e20c671c7fmr7055542wms.10.1678034016827; Sun, 05 Mar 2023 08:33:36 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id d18-20020a5d6452000000b002c71dd1109fsm7602011wrw.47.2023.03.05.08.33.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Mar 2023 08:33:36 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=raaahh@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:303989 Archived-At: On 05/03/2023 17:57, Helmut Eller wrote: > On Sun, Mar 05 2023, Dmitry Gutov wrote: > >> On 05/03/2023 11:59, Helmut Eller wrote: >>> I think that it's a bad idea to add language specific commands to xref. >>> The next thing is that we have commands for jump-to-variable and >>> jump-to-constant and jump-to-macro ... >>> It would be better to leave those commands in the language specific >>> mode >>> with the C-c prefix. >> Is it still a problem if the command applies to a lot (most) of languages? > It still creates this problem: as a user I don't know which command to > use, the more specific or the more general or both. When you need a declaration, use xref-find-declarations, and otherwise, xref-find-definitions, I guess? Spencer, who started this thread, apparently had a use case where he needs to "jump to interface". I'm not sure if "definitions" should, in general, include "declarations". But we probably have included them up to now, at least as far as the etags backend is concerned.