Alexander Burger <a...@software-lab.de> writes:

Hi Alex,
> On Mon, Nov 14, 2011 at 01:38:56PM +0100, Alexander Burger wrote:
>> I think that the necessary tags are already there, or can be easily

> I'm assuming that emacs can use the 'vi' tag file format. Am I wrong?

I'm afraid not, I used 

,---------------------------------------------
| M-.                                         
| (find-tag tagname &optional next-p regexp-p)
`---------------------------------------------

on 'while' in a picolisp source-file in @/src64. and got the following
message:

,-----------------------------------------------------------------
| visit-tags-table-buffer:                                        
| File /home/tj1/bin/picoLisp/src64/tags is not a valid tags table
`-----------------------------------------------------------------

Is that ctags or etags or something else what 'vi' uses? 


,-------------------------------------------------------------------------------
| *emacs-tags* *emacs_tags* *E430*                                              
| Emacs style tag files are only supported if Vim was compiled with the         
| |+emacs_tags| feature enabled.  Sorry, there is no explanation about Emacs tag
| files here, it is only supported for backwards compatibility :-).             
|                                                                               
| Lines in Emacs tags files can be very long.  Vim only deals with lines of up  
| to about 510 bytes.  To see whether lines are ignored set 'verbose' to 5 or   
| higher.                                                                       
|                                                                               
| http://vimdoc.sourceforge.net/htmldoc/tagsrch.html                            
`-------------------------------------------------------------------------------

If 'vi' uses (exuberant) ctags, it seems you could produce an etags TAGS
file for emacs by simply running 'ctags -e'. 


,-------------------------------------------------------------------------
| Despite the wealth of available options, defaults are set so that ctags     |
| is most commonly executed without any options (e.g. "ctags *", or "ctags    |
| −R"), which will create a tag file in the current directory for all         |
| recognized source files. The options described below are provided merely    |
| to allow custom tailoring to meet special needs.                            |
|                                                                             |
| −e                                                                          |
|                                                                             |
| Enable etags mode, which will create a tag file for use with the Emacs      |
| editor. Alternatively, if ctags is invoked by a name containing the         |
| string "etags" (either by renaming, or creating a link to, the              |
| executable), etags mode will be enabled. This option must appear before     |
| the first file name.                                                        |
| http://ctags.sourceforge.net/ctags.html#HOW%20TO%20USE%20WITH%20GNU%20EMACS |
|                                                                             |
`-------------------------------------------------------------------------

cheers
-- 
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to