Подтвердить что ты не робот

Сортировка по имени методов, представленных в буфере ECB-методов

Я использую ECB (Emacs Code Browser), а мой макет по умолчанию выглядит следующим образом:

;; +------+-------+--------------------------------------+
;; |              |                                      |
;; | Directories  |                                      |
;; |              |                                      |
;; +------+-------+                                      |
;; |   History    |              Edit                    |
;; +------+-------+                                      |
;; |   Methods    |                                      |
;; |              |                                      |
;; +-----------------------------------------------------+

По умолчанию методы отображаются в том порядке, в котором они отображаются в отредактированном буфере, но я ищу способ сортировки их по имени. Я хотел использовать что-то вроде ecb-methods-sort-method, но, похоже, оно не существует. Любой намек на то, как его настроить?

4b9b3361

Ответ 1

Я быстро просмотрел документы, Посмотрите на slike, вы можете настроить "ecb-methods-menu-sorter".

C-h v ecb-methods-menu-sorter

Из документов:

*Function which re-sorts the menu-entries of the directories buffer.          
If a function then this function is called to re-arrange the menu-entries of  
the combined menu-entries of the user-menu-extensions of                      
`ecb-directories-menu-user-extension' and the built-in-menu                   
`ecb-directories-menu'. If nil then no special sorting will be done and the   
user-extensions are placed in front of the built-in-entries.                  

The function get one argument, a list of menu-entries. For the format of this 
argument see `ecb-directories-menu-user-extension'. The function must return a
new list in the same format. Of course this function can not only re-arrange  
the entries but also delete entries or add new entries.