From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47073: 28.0.50; speedbar: sorting in sublists is in reverse Date: Fri, 12 Mar 2021 09:53:20 +0200 Message-ID: <83pn04lsen.fsf@gnu.org> References: <87mtv9psfj.fsf@hajtower> <87wnudxknp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7328"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47073@debbugs.gnu.org, haj@posteo.de To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 12 08:54:09 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lKccb-0001m7-IX for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 08:54:09 +0100 Original-Received: from localhost ([::1]:56866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcca-0002YQ-LE for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 02:54:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKccU-0002Xo-KS for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKccU-0008Py-Cv for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKccU-0005Si-Bz for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 02:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 07:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47073 X-GNU-PR-Package: emacs Original-Received: via spool by 47073-submit@debbugs.gnu.org id=B47073.161553560920955 (code B ref 47073); Fri, 12 Mar 2021 07:54:02 +0000 Original-Received: (at 47073) by debbugs.gnu.org; 12 Mar 2021 07:53:29 +0000 Original-Received: from localhost ([127.0.0.1]:55945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcbx-0005Rv-8w for submit@debbugs.gnu.org; Fri, 12 Mar 2021 02:53:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKcbv-0005Rg-DP for 47073@debbugs.gnu.org; Fri, 12 Mar 2021 02:53:28 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55677) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKcbp-0007xi-HS; Fri, 12 Mar 2021 02:53:21 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1742 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKcbn-0007dw-0a; Fri, 12 Mar 2021 02:53:20 -0500 In-Reply-To: <87wnudxknp.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 12 Mar 2021 01:47:38 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202144 Archived-At: > From: Lars Ingebrigtsen > Date: Fri, 12 Mar 2021 01:47:38 +0100 > Cc: 47073@debbugs.gnu.org > > haj@posteo.de (Harald Jörg) writes: > > > This isn't specific for "current" Emacs, it happens in Emacs 26.1, too. > > > > How to reproduce: > > > > - emacs -Q > > - open a Perl file with lots of subroutines > > (e.g. https://github.com/foswiki/distro/blob/master/core/lib/Foswiki.pm) > > or a Elisp file with lots of defuns > > (e.g. lisp/progmodes/cperl-mode.el) > > - M-x speedbar > > > > Following the default configuration, speedbar clusters the display of > > subroutines into alphabetically sorted batches of 20 entries each. > > I've barely used speedbar before, but where does speedbar display these > clusters? The window that pops up with "emacs -Q" and `M-x speedbar' in > cperl-mode.el is unclustered, as far as I can tell. The recipe is incomplete. Try this: . emacs -Q . C-x C-f Foswiki.pm . M-x speedbar . in the speedbar frame go to Foswiki.pm, and click the "+" icon. . you should now see the content of cperl.el in batches, sorted alphabetically, with each batch having its own "+" icon . click on some of the "+" icons of some of the batches and look at the order of the entries within After doing this, I think this observation of the OP: > While the batches are sorted alphabetically (e.g. "ge to i" comes before > "l to re" in Foswiki.pm), the entries in each of the batches are sorted > in reverse: The batch "ge to i" has a first entry of "isValidWikiWord" > and a last entry of "getApproxRevTime". is incorrect: the entries are simply unsorted, I guess they appear in the order they are found in the file or something. For example, the entries below "ge to i" in Foswiki.pm are displayed thusly here: > isValidWikiWord > isValidTopicName > isValidWebName > isValidEmailAddress > i18n > inlineAlert > isTrue > innerExpandMacros > inContext > generateHTTPHeaders > getCGISession > getLoginManager > getSkin > getScriptUrl > getPubURL > generateRandomChars > getWorkArea > getApproxRevTime And you can see that the first 4 are not in any alphabetically-sorted order. Likewise, these entries near the end: > getCGISession > getLoginManager > getSkin > getScriptUrl > getPubURL aren't sorted, neither in ascending nor in descending order.