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: Sat, 2 Jan 2021 19:25:32 +0200 Message-ID: <6488d778-c4ec-5f33-a1c0-883daa6d1175@yandex.ru> References: <9af40a30-8964-3142-aadf-6592605720ec@yandex.ru> <781e8f60-c957-46c5-e164-7d4013ffb4db@gmx.at> <87im8ftz15.fsf@posteo.net> 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="4944"; 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 Sat Jan 02 18:26:37 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 1kvkfk-0001BP-J6 for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jan 2021 18:26:36 +0100 Original-Received: from localhost ([::1]:34572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvkfj-0007uI-He for ged-emacs-devel@m.gmane-mx.org; Sat, 02 Jan 2021 12:26:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvkep-0007Rf-TN for emacs-devel@gnu.org; Sat, 02 Jan 2021 12:25:39 -0500 Original-Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:34937) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvken-0003FQ-Qz for emacs-devel@gnu.org; Sat, 02 Jan 2021 12:25:39 -0500 Original-Received: by mail-ej1-x62f.google.com with SMTP id q22so30984789eja.2 for ; Sat, 02 Jan 2021 09:25:37 -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=YKfp/WyeiqOUdD2CvSEl08zikmDlbg2H3tF9m6eoHIg=; b=CJXwWiygDK8JziZGGsvtu1f02UYJknEc4LXJpHJqqp7zfPhhnIWtzP/MLryvrDJ0CR mNgIQOz6Lkv6mNRVJIc/60KH/QZHBJo3qAGdubWroIT6OgClgcOH/DvZAV5rbBHblpHi ntacCCvzFFaKudZMoSTYog7R8BWd22ztxZFuN/W/QXk8H0HXAQrWR82lF9Hlfnoi05Wc pND8F9nJSXHkkdt/LuD3ebj+jQQIjBrf/ZAGmhwCt/vk/YD1I5q44epCvMgf5zwAL9in n08TK/jPJzC4vmtpysdJl21HDVTaFUrhY57ICV7iUh2i3eAaS+Xskq/wDb8k5x+26Ngu 5XIA== 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=YKfp/WyeiqOUdD2CvSEl08zikmDlbg2H3tF9m6eoHIg=; b=dUfflDqUgxA2ui6iKlhHiM/jLS5yaQYmqEdY1of28Iq/vKdL+lMzKvrS/pQc2Y8H2I zJVgxXlc5PjdWjfuX5FUCw39XLXRHGiIVe45Hiz4297OI1rdQ+ovtwMUxme91zURPB2r V2x1E3totwDsXiANxfxuI/EiZpEYllq6mRoPKR3CxWvvvONwUEgNFD64XMpv036Ztv18 8rTINttVTDXLXvdBOoU9LGPG2/IiEb85iITGOx6u7deGssqrpmPkIbBnQrFdG0iBMdqn dkFTgljYP89dN04fFBUMO5zfGeiVutJ3FUiP8mxYd2IyGFbBIes1rqizbCMmzvuICCe3 hEZQ== X-Gm-Message-State: AOAM532dZRrRv82bGxUSbMWrbmrcNm87GwXUIgN4Pw9TwRUUdirSv9V9 YOmHjwh/OP++BSjgE/WJgtC8s57ePpsvRQ== X-Google-Smtp-Source: ABdhPJxQVk2V1A5L+1Y7yNVUPqxNlHcG0NBI0mKnWLIFFt9inwyHVv46qM+0j2HWqGGtMXSd3fdjkQ== X-Received: by 2002:a17:906:1498:: with SMTP id x24mr59052726ejc.170.1609608335977; Sat, 02 Jan 2021 09:25:35 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id rh2sm21791949ejb.68.2021.01.02.09.25.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 02 Jan 2021 09:25:35 -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: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 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.249, NICE_REPLY_A=-1.118, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:262331 Archived-At: On 02.01.2021 17:43, martin rudalics wrote: > > Do you mean something like this: > > > https://github.com/fmdkdd/dotfiles/blob/master/emacs/.emacs.d/elisp/xref-posframe.el? > > > I don't know.  After evaluating with emacs -Q > > (progn >   (load "~/temp/posframe.el") >   (load "~/temp/xref-posframe.el") >   (global-set-key (kbd "M-.") #'xref-posframe-dwim) >   (find-file "~/emacs-git/quick/src/xdisp.c") >   (re-search-forward "get_next_display_element")) > > I typed M-. and after confirming the TAGS table prompt I got an *xref* > window below the xdisp.c window displaying > > /home/martin/emacs-git/quick/src/xdisp.c > 7244: #define GET_NEXT_DISPLAY_ELEMENT( > 7396: get_next_display_element > > What I expected was to show these two lines in a menu (or posframe) > right above or below the "get_next_display_element" string in xdisp.c, > allow navigation there via and and having or > get me to the corresponding tag, simultaneously popping down the menu > (or posframe).  Have I done something wrong? Indeed, xref-posframe-dwim doesn't handle the "difficult" case, and it's not a suitable xref-show-definitions-function value. It's a neat experimental feature, though.