On Sat, Nov 2, 2019 at 10:15 PM Tony Mechelynck
<[email protected]> wrote:
>
> On Sat, Nov 2, 2019 at 10:01 PM Bram Moolenaar <[email protected]> wrote:
> >
> >
> > Tony wrote:
> >
> > > > > After the latest runtime files update, this problem has disappeared;
> > > > > but helptags generation ("/usr/local/bin/vim -eX -u doctags.vim")
> > > > > still outputs a large number of empty lines, which is annoying. Would
> > > > > it please be possible to filter them out (maybe 2>&1 | egrep -v ^\s*$
> > > > > or something)?
> > > >
> > > > Where do you see empty lines?  I get no output at all:
> > > >
> > > > $ cd vim/vim81/runtime/doc
> > > > $ vim -eX -u doctags.vim
> > > > $
> > >
> > > Here is the relevant part of the output of "make installruntime",
> > > including one line after the many empties:
> > >
> > > generating help tags
> > > make[1]: Entering directory '/root/.build/vim/vim-hg/runtime/doc'
> > > /usr/local/bin/vim -eX -u doctags.vim
> >
> > [empty lines]
> >
> > > make[1]: Leaving directory '/root/.build/vim/vim-hg/runtime/doc'
> >
> > I don't see that.  Can you try changing the line in
> > runtime/doc/Makefile:
> >
> > vimtags: $(DOCS)
> >         @if test -x $(VIMEXE); then $(VIMEXE) -eX -u doctags.vim; \
> >                 else echo "vim executable $(VIMEXE) not found"; fi
> >
> > to:
> >
> > vimtags: $(DOCS)
> >         @if test -x $(VIMEXE); then $(VIMEXE) --clean -eX -u doctags.vim; \
> >                 else echo "vim executable $(VIMEXE) not found"; fi
> >
> > Does it go away then?
>
> No need. As I said earlier, your change 8.1.2239, putting the
> $(VIMEXE) etc. command inside an "if" clause seems to have been
> enough. If the problem doesn't reappear, I will assume that it was
> solved at that point.

I spoke too fast: the problem has reappeared, albeit with fewer empty
lines. Let me try with --clean added… success. (I did not rebuild
Vim).

For the record, I'm attaching the patch I applied.

Best regards,
Tony.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXsyqn17zAO9CB%2B56XeP_r%2BE-_u7%2BvSREpFkojmVsLD_xg%40mail.gmail.com.
# HG changeset patch
# User Tony Mechelynck <[email protected]>
# Parent  131e32e35e2c37e4bab6ab068d1bd3f32fc17ed7
make sure tags are generated with vim --clean

diff --git a/runtime/doc/Makefile b/runtime/doc/Makefile
--- a/runtime/doc/Makefile
+++ b/runtime/doc/Makefile
@@ -318,17 +318,17 @@ CONVERTED = \
 .SUFFIXES:
 .SUFFIXES: .c .o .txt .html
 
 all: tags vim.man evim.man vimdiff.man vimtutor.man xxd.man $(CONVERTED)
 
 # Use Vim to generate the tags file.  Can only be used when Vim has been
 # compiled and installed.  Supports multiple languages.
 vimtags: $(DOCS)
-	@if test -x $(VIMEXE); then $(VIMEXE) -eX -u doctags.vim; \
+	@if test -x $(VIMEXE); then $(VIMEXE) --clean -eX -u doctags.vim; \
 		else echo "vim executable $(VIMEXE) not found"; fi
 
 # Use "doctags" to generate the tags file.  Only works for English!
 tags: doctags $(DOCS)
 	./doctags $(DOCS) | LANG=C LC_ALL=C sort >tags
 	uniq -d -2 tags
 
 doctags: doctags.c

Raspunde prin e-mail lui