On Sat, Jul 10, 2010 at 01:07:52PM +0800, H Xu wrote:
> On 07/10/2010 02:31 AM, Marc Weber wrote:
> > Excerpts from H Xu's message of Fri Jul 09 20:22:07 +0200 2010:
> >> I want to generate tags by using ctags automatically after I save the
> >> file, and I want tags to be generated in another thread, so it won't
> >> affect my current work.
> >
> > If you're on linux you can use sh background processes:
> >
> > ! ctags -R . &
> > or system ('ctags -R . &')
> >
> > You can run them within an autocommand easily
> >
> > Marc Weber
> >
> 
> However, it will cause some problems when a tag has not been finished
> but the next ctags command is executed.

Create a file to represent a lock while the process of tag creation is
running, and delete it when the process finishes, and have the
'tag-consumer' and the 'tag-generator' commands to check for its
existence and act accordingly.

-- 
Javier Rojas

GPG Key ID: 0x24E00D68

Attachment: signature.asc
Description: Digital signature

Reply via email to