[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Poll: Change xref-show-definitions-function's default?

From: Dmitry Gutov
Subject: Re: Poll: Change xref-show-definitions-function's default?
Date: Sat, 2 Jan 2021 19:25:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

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

   (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

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 <up> and <down> and having <right> or <RET>
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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]