emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Helpful in Emacs?


From: Eli Zaretskii
Subject: Re: Helpful in Emacs?
Date: Fri, 10 Sep 2021 09:16:11 +0300

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Fri, 10 Sep 2021 01:55:08 +0300
> Cc: me@wilfred.me.uk, Stefan Kangas <stefan@marxist.se>,
>  Emacs developers <emacs-devel@gnu.org>
> 
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]