[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Copy register value to another register?
From: |
Larry Jones |
Subject: |
Re: [Groff] Copy register value to another register? |
Date: |
Sun, 30 May 2010 20:24:40 -0400 |
Clarke Echols writes:
>
> But I prefer to use a macro like this:
>
> .de macro
> .nr returnlocation \n[nl]u \"Preserve location to return to.
That substitues the value when the macro is defined, which isn't what
you want; you need to double the backslash to defer the substitution
until the macro is invoked:
.de macro
.nr returnlocation \\n[nl]u \"Preserve location to return to.
--
Larry Jones
I must have been delirious from having so much fun. -- Calvin