groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] Re: groff .cc page trap issue


From: Werner LEMBERG
Subject: [Groff] Re: groff .cc page trap issue
Date: Thu, 31 Jul 2003 23:50:50 +0200 (CEST)

> I found this old topic and your reply:
>
> http://www.ffii.org/archive/mails/groff/2002/Dec/0087.html
>
>     > How can one write a macro package whose page trap macros still
>     > work when the user redefines .cc and/or .ec for some text?
>
>     Starting with groff 1.17 there exist the requests `ecs' and
>     `ecr' to save and restore the current escape character.  Werner
>
> How does that help?  If a user does ".cc @" in front of 200 lines of
> text and then a page trap occurs, the page trap macros don't work
> (because the trap macros all use dots).

I was talking about the escape character only.  Well, I could add
escapes, \j and \J say, to do the same as .ecs and .ecr, respectively,
but then there is still the limitation of changing both the escape and
control character.

Hmm, I could change the .de1 request (and friends) to reset both the
escape and control characters to the default while executing the
defined macro.  What do you think?


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]