GNU bug report logs -
#70846
Imenu flatten
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Thu, 9 May 2024 16:37:01 UTC
Severity: normal
Fixed in version 30.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Juri Linkov <juri <at> linkov.net>
> Cc: 70846 <at> debbugs.gnu.org
> Date: Tue, 14 May 2024 09:05:09 +0300
>
> >> Ok, I could add display-sort-function directly to the imenu completing-read
> >> that will depend on the value of display-sort-function. Then there will be
> >> no need to change the manual.
> >
> > Except we should then remove the reference to "menus", right? Because
> > if you do that, the customization of sorting order will affect both
> > the menus and the completion, right?
>
> Indeed, this will require removing the reference to the mouse menus.
>
> But when I tried to use imenu-sort-function for sorting the completions,
> I found a problem that makes such change impossible.
>
> The problem is that the default value of imenu-sort-function is nil.
> This means that by default the items on the mouse menu are unsorted.
> But the completions are sorted, and we can't change this default
> behavior. Therefore, imenu-sort-function can't define how the
> completions are sorted. So this is just a documentation task
> that is done in this patch:
Thanks, SGTM.
This bug report was last modified 352 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.