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: Xref completion Date: Sun, 6 Dec 2020 23:40:21 +0200 Message-ID: <10508751-c64c-aed2-3a51-fff9a48ee45d@yandex.ru> References: <873617ets1.fsf@ambrevar.xyz> <878sazzsw5.fsf@mail.linkov.net> <7593e751-cff0-7c1a-7d4c-f927a16c07c9@yandex.ru> <3b255b14-6494-99dc-1e78-9607e0d1fcd9@yandex.ru> <87tut351ea.fsf@mail.linkov.net> <9bbe9827-8e96-e45c-2e0f-23a4fb5aea33@yandex.ru> <87pn3q8ulz.fsf@mail.linkov.net> <7e7e6923-851f-c1c0-4816-d84debe6570b@yandex.ru> <87tut0i39j.fsf@mail.linkov.net> <5440f9e8-6be8-2701-a6aa-3db4a84ad19e@yandex.ru> <87blf7b735.fsf@mail.linkov.net> <8e80fe1e-3aac-85e3-7ace-72b65b3052bd@yandex.ru> <87o8j67h5y.fsf@mail.linkov.net> 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="28524"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: William Xu , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 06 22:41:04 2020 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 1km1mB-0007HF-GE for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Dec 2020 22:41:03 +0100 Original-Received: from localhost ([::1]:47160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km1mA-0002KP-H6 for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Dec 2020 16:41:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1km1la-0001qk-G9 for emacs-devel@gnu.org; Sun, 06 Dec 2020 16:40:26 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:34002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1km1lY-0003TC-Ue for emacs-devel@gnu.org; Sun, 06 Dec 2020 16:40:26 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id dk8so8751786edb.1 for ; Sun, 06 Dec 2020 13:40:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JP7O8w4n5+j/IZ2hKivKiYVT4Ru5mZP/rXxTenotyoI=; b=WfAxOLSsoc87e2axRjyaFwZl/IrUak6M+AaFX6+p+naLzBxFcZK8Wm1Q14mEW8xQnZ GDnOd0JUftiAqngwUr/TQVanqmeYhSzzSTN1rbey/+t9LuZqPf6YZo9GUIc4G0XEf5iV jbK34xLypTlTLVOzqp3BVf+scdlrfFG0rbdK3WlzwfCUpn5hicGZMZgzj7SIVXqNcdiB ZQKN/KA8G1pLyNdDID5wRDuZcJGX4xn2rv+GbJQl4hvHo/pDkvBEJe7iGC9cQxnOSRGk gYMgOr4UKD1nQBoJlfXYUsrAxDAubvsBS90tAAO0oLW1pRkKCl75WzK7a0DD+5MWXs0i 3tiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JP7O8w4n5+j/IZ2hKivKiYVT4Ru5mZP/rXxTenotyoI=; b=HVb2BL/HOaXEYjS/0NDOgFLXusnQMGdru3dbiJxfG8bskug/TH93MFPCrUdjikSjEe 5butFcExmPqcY/4BW5xn/q5C5toDbLxEBHDW8nW6xpmUELVRlT9u7P2WT/TK7DvrZqaM 2/pLdGHPigc/lpE0inP5Lk7jsqYIuNBIfDJb+rFc4XGNw/E96XKjzQGujF93cnhZzHeP 8W0BviNs912QzCr+/wPcncQ/J0NbUTx2b8+vKT9fs43AAaoh+Z2t9sjog6zXWeIYDhF3 m9muQUWaX8ZCYyXEFQ8xujvsVJEHAIxBomRNk8dRS5faWx3VjS3rbXRCO9xqUV+bfk3O MEuw== X-Gm-Message-State: AOAM5306LHxD1mtm7vWSaGdiKUJV92Dqa5WhJZshV/mJoKNg0gCMxdDM nxBEOMCgD0TsDlpz5iRY2ZF4om7tfvZvWg== X-Google-Smtp-Source: ABdhPJwOTS3Ez80vS99jMIXyLV/ZsQApSIWK25a0fJVopKX/qdNbkqZkq4/C36uawO98BAfiwnYfHg== X-Received: by 2002:a05:6402:18:: with SMTP id d24mr16964141edu.382.1607290823349; Sun, 06 Dec 2020 13:40:23 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id x16sm9282854ejo.104.2020.12.06.13.40.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Dec 2020 13:40:22 -0800 (PST) In-Reply-To: <87o8j67h5y.fsf@mail.linkov.net> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=raaahh@gmail.com; helo=mail-ed1-x534.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.249, 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.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:260462 Archived-At: On 06.12.2020 23:34, Juri Linkov wrote: >> That's only because there is no input on my screenshot (I aimed to show >> other things). And Pierre's features input "noti". >> >> Ivy, of course, highlights the matches. > > But why 'M-.' doesn't highlight the identifier name in the *xref* buffer, > neither in the *Completions* buffer when xref--show-defs-minibuffer is used? I don't know, never saw the need? And it might be non-trivial to implement in many cases. The identifier name that was searched for might not even appear in the list verbatim. Like, the user could have searched for the qualified name, but the line only contains its "local" name. Or the user might have searched for an alias. Similarly, it won't be in the definition's file.