GNU bug report logs -
#73533
[PATCH] Rewrite speedbar expansion for all descendants
Previous Next
Reported by: Morgan Willcock <morgan <at> ice9.digital>
Date: Sat, 28 Sep 2024 20:02:02 UTC
Severity: wishlist
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Morgan Willcock <morgan <at> ice9.digital>
> Cc: 73533 <at> debbugs.gnu.org
> Date: Tue, 08 Oct 2024 19:36:06 +0100
>
> Attached is a patch for a replacement function and an additional patch
> which adds tests for expanding all descendants.
>
> I couldn't see a direct way to test a Speedbar without creating a frame,
> and because the Speedbar code doesn't implement any type of hierarchy
> itself I've used eieio-speedbar to make something minimal to test.
>
> Each test runs by converting a list of strings into objects which
> implement a Speedbar display, making state changes for the functions
> being tested, and then converting the objects back into strings - this
> was the simplest way I could find to create a reusable interface for
> tests. The conversion back to a string is customizable to allow
> whatever state change is under test to be represented.
>
> If the tests are problematic or considered too complicated, perhaps they
> can just be used to test the current function and the replacement
> function and not committed. The current function fails 3/9 tests.
Thanks, I installed these patches on master.
There seems to be still a problem with some files, in that
speedbar-expand-line-descendants takes a very long time, and if I
interrupt it with C-g, I see nested DEFUNs, something that shouldn't
happen, because DEFUNs are never nested. E.g., try this:
$ cd /path/to/emacs/src
$ ./emacs -Q
M-x speedbar RET
At this point you should see all the files in the Emacs src directory.
Go to androidfns.c and type '['. After about 10 sec type C-g. You
should see nested DEFUns in the Speedbar frame.
Could you please look into this?
This bug report was last modified 212 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.