[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Poll: Change xref-show-definitions-function's default?
From: |
martin rudalics |
Subject: |
Re: Poll: Change xref-show-definitions-function's default? |
Date: |
Sat, 2 Jan 2021 16:43:10 +0100 |
> 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 <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?
In cases where there is only one definition like `set_iterator_to_next'
below, M-. first gets me a four lines frame with a short description
and then gets me to the definition as expected.
Thanks, martin