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: Thu, 19 Nov 2020 15:30:14 +0200 Message-ID: References: <873617ets1.fsf@ambrevar.xyz> <878sazzsw5.fsf@mail.linkov.net> <7593e751-cff0-7c1a-7d4c-f927a16c07c9@yandex.ru> <3b255b14-6494-99dc-1e78-9607e0d1fcd9@yandex.ru> 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="2407"; 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 To: William Xu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 19 14:32:41 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 1kfk3F-0000VY-Iy for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Nov 2020 14:32:41 +0100 Original-Received: from localhost ([::1]:37346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfk3E-0006ej-Ge for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Nov 2020 08:32:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfk0y-0005ik-C0 for emacs-devel@gnu.org; Thu, 19 Nov 2020 08:30:20 -0500 Original-Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]:34747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfk0w-00027p-G3 for emacs-devel@gnu.org; Thu, 19 Nov 2020 08:30:19 -0500 Original-Received: by mail-ej1-x629.google.com with SMTP id o9so7949506ejg.1 for ; Thu, 19 Nov 2020 05:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ug0vYm266DNz9yFoXSYBwjSUgYF6S7i3JttIIDXw0MU=; b=rB8reF2AF74ezjWiysEpVrIgen1pr/WvqlNDskhHcOy1Qurz0IzT9z7bGcrAu0cS6S +Hll1AjdXChHfT0x/5k/XwZnNeHJRZ+0635QlXwSnYK0MgU/R+qooyzIc8zLqdfIc6zy OHrklgcap7+uI4LQry/B3zDCql4s56pi2PN/XusBr1S/2/2mQfzOFkQD6TVmcCzMyDxV gU7YqN189lBpPNGVEhcildGAH+/6JG3aDclPmPgRfYva5kBDDhVlokKf4VFZu4wuU+hr djyhe/DMyQsglafS6Op3Ph5gBiHWugIyCgpjKhFdg+WZnWNmjE8tP27FXtfwOSepVb9Q /TeQ== 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:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ug0vYm266DNz9yFoXSYBwjSUgYF6S7i3JttIIDXw0MU=; b=O+el4/Zi/I6KJczkP3roC7RPiGfkpGynblD8LwpfocerVs5jaKotQgzXA/T/f4IPy0 ATDtn0YHY86ATwJb5dv84jPfTP+ItWeKNySLtEPKC2RsoKVWyxGfTCYmeYeQAiGJX8jO 3Pk5bksz/9WA9t7onf6AvIA9Vrp2hc4jIDsDJfrcnjqUwmnP7ANtDdU6BPlDJk5/hwmB +YMV9fvO6q7ZMLJ6osISikWLN561F8YYn3e6k4gBSQYDoSF1JgOw1zhq28fBXSGOoIFr 8b3fAcHx4Ge4bFpQPcSws7+3bhN57BoYVcmydCx6FFd7ysessA+HOvfcR6V632hOx2p7 tH3Q== X-Gm-Message-State: AOAM531odVAiMH4YZrXhebh7VfbBXz4NwQj5LDOQ8ShF29clYRZ5h9VZ dN5VvtWt6x/C22Q4WEiGkJUS/Z+OCXj2tg== X-Google-Smtp-Source: ABdhPJyYafHksfjenIBJ7Q6acwunhlAeqOYtdzgSs9DLhPPuyM/MNyYFPQE9ZyZUGcp2ulp1uw+Q/g== X-Received: by 2002:a17:906:329a:: with SMTP id 26mr27469075ejw.227.1605792616913; Thu, 19 Nov 2020 05:30:16 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id d23sm461860edz.19.2020.11.19.05.30.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Nov 2020 05:30:15 -0800 (PST) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::629; envelope-from=raaahh@gmail.com; helo=mail-ej1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.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:259424 Archived-At: On 19.11.2020 10:19, William Xu wrote: > Dmitry Gutov writes: > >> OTOH, we should create a shortcut for the case when every group >> contains only one element: then completion would only show the group >> names (meaning file/package names), without summaries. That might work >> well in certain environments (like Java?). > > I like this idea. So we can display a mix of both. Looking good! > One more point, I'm not sure if the order of the candidates are > important or not, but we can keep it the same order as in xref buffer. Not sure all completion UIs will keep that order, but sure.