summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorwlemb <wlemb>2001-03-09 00:18:20 +0000
committerwlemb <wlemb>2001-03-09 00:18:20 +0000
commitb0e4f58b4afa4e924818766dd78f3c8a804295c4 (patch)
tree5f6e48fb6b1f9d4a007054dbe262af14580e9b95 /NEWS
parent5c15ebdf9477000c401785690b95997713e8aec8 (diff)
downloadgroff-b0e4f58b4afa4e924818766dd78f3c8a804295c4.tar.gz
Added the `return' request to end a macro immediately. It simply
pops iterators from the input stack until a macro iterator is found. * src/roff/troff/input.cc (input_iterator::is_macro, macro_iterator::is_macro): New member. (input_return_boundary): New class to signal an immediate return to while_request(). (input_stack::add_return_boundary, input_stack::is_return_boundary): New functions. (input_stack::clear): Use it. (input_stack::pop_macro): New function. (while_request): Use `is_return_boundary()'. (return_macro_request): New function. (init_input_requests): Use it. * src/roff/troff/TODO: Updated. * NEWS, src/roff/troff/troff.man, man/groff.man: Document it. * src/roff/troff/input.cc (input_iterator::is_boundary): Minor cleanup.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 61f02633..8f41b4f6 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,8 @@ o A new command line option for the `man' macros (similar to the `mdoc'
produce one single, very long page instead of multiple pages. `-rcR=0'
will deactivate it.
+o The `return' request has been added to return immediately from a macro.
+
o A new request `nop' (no operation) has been added which is similar to
`if 1'. For example,
@@ -50,7 +52,7 @@ o The `asciify' request has been extended to `unformat' space characters
o The new `unformat' request is similar to `asciify' but only handles space
characters and tabs specially if the diversion is reread, retaining font
- information. This makes it possible to reformat diversions; for example
+ information. This makes it possible to reformat diversions; for example
the following
.ll 3i