Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.sao.ru/hq/sts/linux/doc/nedit/macro/2/2-19.shtml
Дата изменения: Unknown
Дата индексирования: Sat Sep 11 22:16:24 2010
Кодировка:

Поисковые слова: m 101
NEdit.org

.
.   
NEdit.org
   .

Home
 - News - Download - Documentation - Search - FTP     
.
.
  

Handle tag files with multiple definitions

[Back]

To be able to handle tag files with multiple definitions for a symbol, I decided to do the whole thing in macros, and it works quite well. A multiple choice dialog box allows the user to choose the definition line from the tags file which applies; the macro then opens it up.

Using these macros also allows a simple find jump history: essentially a position stack is managed (as a string) - the entries (lines) in the string are handled as tag entries. The whole thing works quite well.

I use the background menu for all this stuff generally, but I have also defined the Ctrl+] key as a call to multitags_choose_quick() - after having become used to it in vi.

The macros use other macro files:

NEDIT_LOADED.nm - for file detection and macro file inclusion.
element.nm - for handling strings as if they were arrays (usually of lines).
multichoice.nm - for the multiple choice dialogs.

Although I have implemented a Return to previous macro, I have not implemented a Goto to next in history list macro, for people who want to go backwards and forwards through their find jump history.

My only worry is that overuse of the find jump history will create an overgrown stack, or seriously impact memory.

multitags.nm

There is also a .nedit extract, multitags_extract, which calls these macros.

[Back]


. Released on  Wed, 21 Nov 2001  by C. Denat  

  
Visit our sponsor
Check Metrolink

© NEdit.org
1999-2001
All rights reserved


.