From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Helpful in Emacs? Date: Fri, 10 Sep 2021 09:16:11 +0300 Message-ID: <83a6klj6qc.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22975"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, me@wilfred.me.uk, stefan@marxist.se, arthur.miller@live.com, mardani29@yahoo.es To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 10 08:17:17 2021 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 1mOZqf-0005jT-KF for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 08:17:17 +0200 Original-Received: from localhost ([::1]:50142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOZqd-0004FS-PF for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Sep 2021 02:17:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOZps-0003Zg-AC for emacs-devel@gnu.org; Fri, 10 Sep 2021 02:16:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33720) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOZpq-0002Wc-B2; Fri, 10 Sep 2021 02:16:26 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1333 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOZpp-0005em-UC; Fri, 10 Sep 2021 02:16:26 -0400 In-Reply-To: (message from Dmitry Gutov on Fri, 10 Sep 2021 01:55:08 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:274492 Archived-At: > From: Dmitry Gutov > Date: Fri, 10 Sep 2021 01:55:08 +0300 > Cc: me@wilfred.me.uk, Stefan Kangas , > Emacs developers > > Distinguishing variables from functions sounds nice I wonder how it works. If there's a function and a variable by the same name, how does the user tell references to which one he/she wants to see? Does the package have 2 different commands? Or does it ask? And what about looking for faces -- are those variables or functions? The commands we have in Xref look for _identifiers_. An identifier is a generalization of all those different syntactic and semantic elements: it can be a variable, a function, a structure, etc. That IMO is a much more convenient UI: a single command with a very short key binding for finding any identifier. YMMV, of course.