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: Poll: Change xref-show-definitions-function's default? Date: Sun, 3 Jan 2021 19:43:08 +0200 Message-ID: References: <9af40a30-8964-3142-aadf-6592605720ec@yandex.ru> <781e8f60-c957-46c5-e164-7d4013ffb4db@gmx.at> <87im8ftz15.fsf@posteo.net> <6488d778-c4ec-5f33-a1c0-883daa6d1175@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28250"; 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 To: martin rudalics , "Philip K." Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 03 18:44:13 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 1kw7QK-0007GN-9f for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 18:44:12 +0100 Original-Received: from localhost ([::1]:51730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw7QJ-0002kQ-CZ for ged-emacs-devel@m.gmane-mx.org; Sun, 03 Jan 2021 12:44:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw7PQ-00025m-1S for emacs-devel@gnu.org; Sun, 03 Jan 2021 12:43:16 -0500 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:38771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kw7PO-0007nf-8D for emacs-devel@gnu.org; Sun, 03 Jan 2021 12:43:15 -0500 Original-Received: by mail-ej1-x62f.google.com with SMTP id 6so33871352ejz.5 for ; Sun, 03 Jan 2021 09:43:13 -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=iYxpKQW0ioVGLkKJbAZEiUlmy7yBtui3z8AQ9yK8Yvg=; b=lobHeijpHiAcDL/mtMYVhD0femNlHt0S1H8nqIeGUiT3Tzf5UENhZA2ibEJXQxqMpS 4j3fEtrjRQLwE4qxi/d8uCx91ETOhsyig7K01fS/WtG4qzaMdy1f8LCQjeT9+BhkwAc4 eSIWj8ZGwFha8OsYZ2ZWYopMSnbV7V8uwaZMnpwYcB0FBOIrapv5VA2uy5tCDFBNG3wf akK5eTSO3qUX7K2qbIlUbrwMae4KjThDsCSyn8a4hzEGGqWWohvpJyjeN32faUY+/HBG muFyip+pf2jmEBcQ4MBbQ4G1MP32tNPZ9R217p4LJVNm3AQeGGrPFc7uwHcpSD5X5dWv VaPw== 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=iYxpKQW0ioVGLkKJbAZEiUlmy7yBtui3z8AQ9yK8Yvg=; b=JiKCBx1qL19rqJROI1rwWe+eamkJ1Pk2Tpvm1bHbT2dPtSGsP0HRuB+zQ0+28JruWz p7K66zjXr3GjvDsXWLySZPlb+v/ZTpow9hEIGtNhzklH94MS9J+lmZRxe3W805IQc833 HiMNxGaIiTuRoN/0Si8tJadezxFMnR0uudWgUfoz8xXtW5Wlou2zf1wykz0bwVhrX86/ K8N7Ix4Srwqg2psryKr7jFEvZOMhRXUAGfqE2h/KTc1QALGaUmdsasTaDzdt9ZXytcUV L1yNno8VimXoeU2SSJ2pwgUre2A9o9aRjGATY40CfueXZcZzacDFYFLQsazTZ94F/xei TCyA== X-Gm-Message-State: AOAM532A6ZEBPg8/eolQyRI9tzc7OOhH7cM1wtfyH0RQrt04tljvo/VZ jbJkV7P2A65Y0cmTe0JKRaDpWALnM/4IOw== X-Google-Smtp-Source: ABdhPJzG9Znt7bZjW2bzouaAX5H1sBvzuNnu6rk0dvF+W9FHYbJIENYQh4LBnlmxzibbqo6JI6BuKg== X-Received: by 2002:a17:906:2898:: with SMTP id o24mr63228471ejd.215.1609695792166; Sun, 03 Jan 2021 09:43:12 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c16sm16811770ejk.91.2021.01.03.09.43.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 03 Jan 2021 09:43:11 -0800 (PST) In-Reply-To: Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=raaahh@gmail.com; helo=mail-ej1-x62f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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.248, NICE_REPLY_A=-0.262, 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:262373 Archived-At: On 03.01.2021 10:39, martin rudalics wrote: > > Indeed, xref-posframe-dwim doesn't handle the "difficult" case, and > > it's not a suitable xref-show-definitions-function value. > > Here I'm using my homespun set of functions because I hate that window > popped up by the default 'xref-find-definitions'.  I would have written > a popup menu version but I still can't grok 'xref--insert-xrefs' and > probably never will ... xref-show-definitions-completing-read doesn't use xref--insert-xrefs. Can you use it as the example? You can basically take the first 2/3rds of that function, and then build the menu based on the value of xref-alist-with-line-info.