Fix incompatibility between `.de1' and `.do'. Without this change,
commit6795d15c7bed7568853eb92c5334fb628b8110e2
authorWerner LEMBERG <wl@gnu.org>
Thu, 25 Sep 2008 07:47:38 +0000 (25 07:47 +0000)
committerWerner LEMBERG <wl@gnu.org>
Thu, 25 Sep 2008 07:47:38 +0000 (25 07:47 +0000)
tree2e64b779996d8150ed1eeab3a1aaf0fa2ab42c58
parent8b833703d94fbee42261d265d0a8892cee9037a7
Fix incompatibility between `.de1' and `.do'.  Without this change,
the following snippet

  .de1 xx
  .  tm \\n(.C
  ..
  .cp 1
  .do xx

prints 1 instead of 0.

* src/roff/troff/input.cc (do_request): If a macro gets processed,
call tok.next().
(interpolate_macro): Add optional argument.  Update callers.
(request::invoke): Add optional argument.
(macro::invoke): Add optional argument to delay call of tok.next().

* src/roff/troff/request.h (request_or_macro): Add argument to
`invoke' member.  Update all derived classes.

* doc/groff.texinfo: Improve documentation of .do request.
ChangeLog
doc/groff.texinfo
src/roff/troff/input.cpp
src/roff/troff/request.h