summaryrefslogtreecommitdiff
path: root/tmac/trace.tmac
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year.wl2009-01-051-1/+1
|
* * */*: Update GPL2 to GPL3.wl2009-01-041-5/+4
|
* * tmac/trace.tmac: Much improved.wl2008-10-011-209/+202
| | | | | | | | | | | | | (trace-full): New register to be set on the command line; it controls whether number and string register assignments get traced also. (!!c): New macro for comments. (rm): New traced macro. (de, de1, am, am1): Use \\[xxx]\\ calling method to pass \$0 to `!!xxx'; this makes doc.tmac completely traceable. Trace call of .de and friends also. * tmac/groff_tmac.man, NEWS: Update.
* typowl2008-09-281-1/+1
|
* Formatting.wl2008-09-281-1/+1
|
* Don't use `.de1' for `.rn' and `.nr'.wl2008-09-261-11/+11
|
* * tmac/trace.tmac: Add copyright message.wl2008-09-261-110/+229
| | | | | | | Use `.de1' where possible to make source code more readable. (so, mso, als, rn): Restore escape character before executing the request. (de, de1, am, am1): Trace `.foo' also if called as `\\[foo]'.
* * tmac/trace.tmac (so, mso): Added.wl2008-03-241-0/+26
| | | | | | | | | | | * tmac/www.tmac (PIMG): Replace `.ie' (without `.el') with `.if'. If used with -mtrace, and this clause was active, the macro was executed twice. * tmac/pspic.tmac (PSPIC): Accept option `-C' for orthogonality. This makes `.PIMG -C <file>' (from www.tmac) work on non-HTML devices. * man/groff_tmac.man: Document it.
* * tmac/trace.tmac (rn): Added.wl2007-03-211-2/+27
| | | | | | | | | (nr, ds, ds1, as, as1, substring): Restore escape character while executing the macro. (nr): Remove dead code. * src/preproc/eqn/box.cpp (box::top_level): Use \E in string definitions to make them traceable.
* * tmac/trace.tmac (als): Added.wl2007-03-151-8/+17
| | | | (de, de1, am, am1): Make traced macros aliased with .als work.
* * man/roff.man, doc/groff.texinfo: Improve history of roff, based onwl2006-11-191-6/+3
| | | | | | | | | | | | | | | | information from Tom Van Vleck <thvv@multicians.org>. * tmac/62bit.tmac: New macro package. * tmac/Makefile.sub (NORMALFILES): Add it. * NEWS: Document it. * tmac/trace.tmac: Protect against being loaded again. (nr): Always show result. * doc/groff.texinfo (Input Encodings): Document latin-5. * man/grof_tmac.man: Document sv, latinX, cp1047, 60bit, ec.
* * tmac/trace.tmac: Improve tracing of `.nr'.wl2006-10-281-6/+20
| | | | | | Trace `.substring' also. * NEWS: Updated.
* Add `\%^' escape to handle the parameters to a macro as a stringwl2006-10-261-29/+60
| | | | | | | | | | | | | | | | | | | | | | argument. * src/roff/troff/input.h (DOUBLE_QUOTE): New special character. * src/roff/troff/input.cpp (input_iterator, input_stack, macro_iterator): Add `space_follows_arg' member function. (macro_iterator::add_arg): Add parameter to set the `space_follows' flag. (arg_list): Add member `space_follows'. Update constructor and all callers. (decode_args): Store discarded double quotes. (interpolate_args): Handle DOUBLE_QUOTE. Add `\%^' escape. (get_copy, token::next, composite_glyph_name): Handle DOUBLE_QUOTE. * tmac/trace.tmac: Trace .nr, .ds, .ds1, .as, .as1. * docs/groff.texinfo (Parameters), man/groff.man, man/groff_diff.man, NEWS: Document it.
* * doc/groff.texinfo (Expressions): Improve documentation of `!'.wl2006-10-231-1/+0
| | | | * tmac/trace.tmac (return): Don't call `substring'.
* * tmac/trace.tmac (de1): Fix serious typo (.di -> .do) and minorwl2006-05-241-3/+3
| | | | omissions.
* Implement new number register `.br' which is set to 1 if a macro haswl2006-04-041-31/+51
| | | | | | | | | | | | | | | | | | | | | | been called as .foo and to 0 if called as 'bar. This is useful for -mtrace so that requests can be reliably traced too. * src/roff/troff/input.cpp (input_iterator): Add virtual function `get_break_flag'. (macro_iterator): Add `with_break' member and `get_break_flag' function. Update constructors. (input_stack): Add function `get_break_flag'. (break_flag_reg): New number register class. (input_init_requests): Register `.br'. * src/roff/troff/TODO: Updated. * tmac/trace.tmac: s/!!sp/!!!sp/. Modify definitions of `de', `de1', `am', and `am1' to use \n[.br]. * docs/groff.texinfo, man/groff.man, man/groff_diff.man, NEWS: Document it.
* * tmac/trace.tmac: Fix handling of `am' and `am1' calls.wl2004-10-101-4/+4
|
* Add requests `dei1' and `ami1' for completeness.wlemb2003-07-241-3/+45
| | | | | | | | | | | | | | | | | | | | | | | * src/roff/troff/input.cc (calling_mode): Remove CALLING_DISABLE_COMP. (comp_mode): New enumeration. (do_define_string, define_string, define_nocomp_string, append_string, append_nocomp_string): Updated. (do_define_macro): Add third parameter. (define_macro, define_nocomp_macro, define_indirect_macro, append_macro, append_nocomp_macro, append_indirect_macro): Updated. (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New functions. (ignore): Updated. (init_input_requests): Add `dei1' and `ami1'. * tmac/trace.tmac: Handle de1 and am1. (de): Improve tracing message. (am): Add missing `do'. (return): Use de1. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document new requests.
* * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaceswlemb2003-05-181-5/+13
| | | | | | | | | | | | | | | | | aren't stretched in a tag (this can fail with unformatted boxes). Instead, insert a break and go back one line. * src/roff/troff/input.cc (return_macro_request): If called with argument pop macro twice. We need this to trace `return'. * tmac/trace.tmac: Handle `return'. Fix typos. * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo: Document. * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of registers `FPS', `FVS', and `FPD'.
* * MORE.STUFF: Added gpresent.wlemb2002-08-071-8/+15
| | | | | * tmac/trace.tmac: Show nesting level by a corresponding amount of whitespace before printing the logging message.
* Added three new requests `ds1', `as1', and `ami'. The former twowlemb2002-02-031-9/+34
| | | | | | | | | | | | | | | | | | | | | | | | are equivalent to `ds' and `as' with the difference that compatibility mode is saved on entry, switched off during string expansion, and restored on exit. The latter is the pendant to `dei' for `am'. (do_define_string): Use `define_mode' and `calling mode'. Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and end of string, respectively. (define_string, append_string): Use `calling_mode'. (define_nocomp_string, append_nocomp_string, define_string_indirect): New functions. (init_input_requests): Updated. * NEWS, man/groff_diff.man, man/groff.man: Document it. * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use `as1' for assigning LINE_STRING (this is `10' usually). Sun's mm macro package accesses this string register directly. * src/preproc/eqn/main.cc (inline_equation): Use `as1'. * tmac/trace.tmac: Trace calls to `am' also. Make it work in compatibility mode.
* Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:wlemb2000-10-261-0/+29
tmac.doc.old -> doc-old.tmac tmac.an.old -> an-old.tmac * tmac/tmac.*: Moved to ... * tmac/*.tmac: this. * tmac/man.local: Fix comment. * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man, tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. Added some `FILES' sections. More use of @...@ directives. Other minor updates. * arch/djgpp/README, font/devutf8/NOTES: Updated. * doc/homepage.ms, doc/groff.texinfo: Updated. * man/groff.man, man/roff.man: Updated. * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man, src/devices/grops/grops.man, src/devices/grotty/grotty.man: Updated. * src/preproc/pic/pic.man: Updated. * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old instead of -mdoc.old. * src/roff/grog/grog.man: Document -mdoc and -mdoc-old. * src/roff/nroff/nroff.man: Updated. * NEWS: Updated. * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment. * tmac/mm.diff: Removed -- it has no use now since the mm package is part of groff. * tmac/*: Removed trailing spaces. * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac subdirectory also).