Thread: [CEDET-devel] How to sort the speedbar entries
Brought to you by:
zappo
From: Kiwon Um <um....@gm...> - 2010-11-19 01:53:05
|
Dear Eric, When I use the speedbar for displaying project (ede), is there any way to sort the entries alphabetically in order? If it's not, can I easily patch for this functionality? Sincerely, Kiwon Um |
From: Eric M. L. <er...@si...> - 2010-11-22 03:09:27
|
You can use ede-project-sort-targets to order the targets however you like, which is how they then end up in Speedbar. If you want it to be part of speedbar only, look in ede-speedbar.el, and the methods eieio-speedbar-object-children (of which there are a couple) to change how they are displayed. They are currently returned in whatever order they were created/added to the project. Eric On 11/18/2010 08:52 PM, Kiwon Um wrote: > Dear Eric, > > When I use the speedbar for displaying project (ede), is there any > way to sort the entries alphabetically in order? If it's not, can I > easily patch for this functionality? > > Sincerely, > Kiwon Um > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Cedet-devel mailing list > Ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-devel > |
From: Kiwon Um <um....@gm...> - 2010-11-22 05:28:24
|
2010/11/22 Eric M. Ludlam <er...@si...>: > You can use ede-project-sort-targets to order the targets however you like, > which is how they then end up in Speedbar. This is only for the targets. I want to sort the source files in alphabetical order. To do this now, I manually sort them through ede-customize-project or project.ede file. > If you want it to be part of speedbar only, look in ede-speedbar.el, and the > methods eieio-speedbar-object-children (of which there are a couple) to > change how they are displayed. They are currently returned in whatever > order they were created/added to the project. For more convenience to seek, it would be worth that speedbar has an option to choose a sorting method. Temporally, I redefined eieio-speedbar-object-children as follows: (defmethod eieio-speedbar-object-children ((this ede-target)) "Return the list of speedbar display children for THIS." (sort (oref this source) 'string<)) This works well. ;) Thanks for your reply. -- Kiwon Um |