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: Tue, 17 Nov 2020 22:00:04 +0200 Message-ID: <99b56f89-9194-2a3b-11c1-4736ec01485f@yandex.ru> References: <873617ets1.fsf@ambrevar.xyz> <878sazzsw5.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="22710"; 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: emacs-devel@gnu.org To: Juri Linkov , Pierre Neidhardt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 17 21:01:08 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 1kf7A3-0005pi-HA for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Nov 2020 21:01:07 +0100 Original-Received: from localhost ([::1]:42250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf7A2-0002z7-Jg for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Nov 2020 15:01:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf79A-0002QX-8E for emacs-devel@gnu.org; Tue, 17 Nov 2020 15:00:12 -0500 Original-Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]:45292) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kf798-000779-EB for emacs-devel@gnu.org; Tue, 17 Nov 2020 15:00:11 -0500 Original-Received: by mail-ej1-x636.google.com with SMTP id dk16so31124358ejb.12 for ; Tue, 17 Nov 2020 12:00:09 -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=jHp5TARhVCDZek0WEJ5nMeEW8fVwVikSy6V472ouMVQ=; b=oPgwOv6Y7T+AVxqTxVLxlgFX4um2yfJTeQe39FAHySJsz/Kl/+IXkfYP5C3Uomh/6p R6BojpmhBtncsM6FqFrhwuyr/JGUd8BBsiYs3EjXwa5GFI6aJ5CG3NGPn2CnZbwLTVI8 cgBNpkTU4IZusy/gFniRo1+K7o5snG8NpiyJI5q8pjxmrZceJQTtSusotYjTQoNRHcxG yPnIRXV1WioLMMaCuZRGe0QmQGT9GHqtY7cJjPvUF+8X4u2dvVwNbrkEUXL+3BfXnvXE 8vc9OiMXQ9NnRBLaX5idgxT4moH9m1daM3UEabHUFwHwlaiEfpsLbGQPgqAYOqbFxo/o xCVw== 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=jHp5TARhVCDZek0WEJ5nMeEW8fVwVikSy6V472ouMVQ=; b=DBAKycS2itSqKadwT4r5sdGEITri1xuBszErMr9+NE1TlQL3QNWFQ3d9ggmgW9hiSB RyGmzThuaxSC810DN7tcsi//npTdBdn++BoJAB+gHkOef2QmqCmELecxN4F4XaSQ3lJj Zuc/esQ1XpEXe1X2p5XehH/fTla/yIuUwRceE3YhUeCwUf/RIjRHNVxvKKieJz3Je0IG j30fd4IaKwBJWts/g7PwQg84qRyqRu5Jdhq5eeVG7Z8r8h1Ehimchs4hCDFYYHUpXwLi eSxS5KJ3BGMBjV79OsdnPzBi4GjO1TXsqTLdCF8pvw3rwcT7M4pTCZM1cVnWrv3PLkON Mwkg== X-Gm-Message-State: AOAM532PoPWcVTVNUpUdJWwrYoQGDO6gfa+f2JHvYCWSRzQ2eEdvYjBG +Ct3X1eUel+AtFpBspjpL1eOAfjUgTAIIA== X-Google-Smtp-Source: ABdhPJxw+TMvrT14tnDk6yX/d3FtQ7DsPqOtmuiOlDbrUximI5UK/WsWEEquZW56pOPJPqJeuC6mFw== X-Received: by 2002:a17:906:e216:: with SMTP id gf22mr20882234ejb.286.1605643207462; Tue, 17 Nov 2020 12:00:07 -0800 (PST) Original-Received: from [192.168.0.4] ([66.205.71.3]) by smtp.googlemail.com with ESMTPSA id 1sm11802867ejt.107.2020.11.17.12.00.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Nov 2020 12:00:06 -0800 (PST) In-Reply-To: <878sazzsw5.fsf@mail.linkov.net> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=raaahh@gmail.com; helo=mail-ej1-x636.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.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:259309 Archived-At: On 17.11.2020 21:27, Juri Linkov wrote: >> In particular, I've overridden the behaviour with regards to Xrefs and >> instead of showing the Xref buffer, I'm now offering completion: the >> user can match against the symbol but also against the file and line >> position. > It seems this should be possible by customizing the value of > xref-show-definitions-function to a function that would redirect > a list of found results to completing-read. Yup. We'd be happy to add an alternative value for this variable that the users who prefer this behavior can set. Contribute away!