Article View: net.text
Article #847What was wrong with .li?
From: Steve Summit
Date: Wed, 30 Apr 1986 05:32
Date: Wed, 30 Apr 1986 05:32
34 lines
2277 bytes
2277 bytes
In "A Typesetter-independent TROFF", by Brian W. Kernighan, it is
mentioned that "Some obsolete commands have been eliminated
(e.g., .fz, .li;...)," and later, in case you hadn't noticed it,
"The .fz and .li commands are no more." I am wondering why .li
was deleted. To be sure, it was undocumented, but after I
discovered it one day while poking through the source code, I
found it quite handy.
What .li did, in case you're rusty on your obsolete, undocumented
nroff commands, was to take the next line (or next n lines, with
an argument) LIterally, i.e. without checking the first character
to see if it was a period or an apostrophe, for a request. Now,
I realize you can protect a leading period or an apostrophe with
\&, but this always seemed kind of unclean to me. The .li
request said what I meant, whereas a \& is a dodge that just
happens to work.
Is there a modern, cleaner way to suppress request processing,
other than \&? Temporarily changing the control character
with .cc is also ugly, because you have to pick some other
character, and you have to remember to set it back when you're
done.
Was there something insidiously dangerous about .li? First
undocumenting, then removing it seems a bit harsh if it was just
superfluous or redundant. There are plenty of nroff requests
which can be simulated with other nroff requests.
If you have any clues on this little mystery that you'd like to
pass along, please respond by mail, since I don't read this
newsgroup regularly.
Steve Summit
tektronix!copper!stevesu
Technical Details
Message-ID:
<316@copper.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!teklds!copper!stevesuShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 (USS@Tek, v1.1) based on 4.3bsd-beta 6/6/85; site copper.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!tektronix!teklds!copper!stevesu From: stevesu@copper.UUCP (Steve Summit) Newsgroups: net.text Subject: What was wrong with .li? Message-ID: <316@copper.UUCP> Date: Wed, 30-Apr-86 01:32:00 EDT Article-I.D.: copper.316 Posted: Wed Apr 30 01:32:00 1986 Date-Received: Sat, 3-May-86 17:44:22 EDT Reply-To: stevesu%copper@tektronix.UUCP (Steve Summit) Organization: Tektronix, Inc., Beaverton, OR. Lines: 34