Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1616

Re: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warning

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Steffen Nurpmeso <steffen@sdaoden.eu>
Newsgroups gnu.groff.bug
Subject Re: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warning
Date Mon, 13 Jan 2020 20:23:54 +0100
Lines 41
Approved bug-groff@gnu.org
Message-ID <mailman.2508.1578943451.1979.bug-groff@gnu.org> (permalink)
References <20200113-183655.sv93188.51644@savannah.gnu.org> <20200113192354.CJYgn%steffen@sdaoden.eu>
NNTP-Posting-Host lists.gnu.org
X-Trace usenet.stanford.edu 1578943452 28134 209.51.188.17 (13 Jan 2020 19:24:12 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-groff@gnu.org
To Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Envelope-to bug-groff@gnu.org
In-Reply-To <20200113-183655.sv93188.51644@savannah.gnu.org>
Mail-Followup-To Bjarni Ingi Gislason <bjarniig@rhi.hi.is>, bug-groff@gnu.org
User-Agent s-nail v14.9.16-67-gc8921880
OpenPGP id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt
BlahBlahBlah Any stupid boy can crush a beetle. But all the professors in the world can make no bugs.
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy]
X-Received-From 217.144.132.164
X-BeenThere bug-groff@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id "Bug reports for the GNU version of nroff, troff et al" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200113192354.CJYgn%steffen@sdaoden.eu>
X-Mailman-Original-References <20200113-183655.sv93188.51644@savannah.gnu.org>
Xref csiph.com gnu.groff.bug:1616

Show key headers only | View raw


Bjarni Ingi Gislason wrote in <20200113-183655.sv93188.51644@savannah.gn\
u.org>:
 |URL:
 |  <https://savannah.gnu.org/bugs/?57592>
 ..
 |From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
 |Date: Mon, 13 Jan 2020 18:10:39 +0000
 |To: bug-groff@gnu.org
 |Subject: [PATCH] tmac/<files containing a ".nx" request>: Add a warning
 |
 |  Some macro files have an '.nx' request
 |to avoid to have all of it read a second time.
 |
 |  Add a warning to point out this unwanted situation.

I do not think this is a good idea in general, since this means
you cannot blindly include some file to ensure it is present or
not.  Say you want to include some picture in a report and include
the macro set which allows that, but it was already sourced (maybe
due to some condition) in another macro set.  Now you have
a pointless warning.

The way it is done right now is how most languages ensure that
files get included once only, may it be C headers or even TeX:

  \csname xy_IS_LOADED\endcsname
  \global\let\xy_IS_LOADED\endinput

 |  Two files, "pdfpic.tmac" and "pspic.tmac",
 |are automatically read,
 |as they are used in the file "tmac/troffrc".

And that users can adjust the way they want, no?

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Back to gnu.groff.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warning Steffen Nurpmeso <steffen@sdaoden.eu> - 2020-01-13 20:23 +0100

csiph-web