[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a
From: |
Steffen Nurpmeso |
Subject: |
Re: [bug #57592] [PATCH] tmac/<files containing a ".nx" request>: Add a warning |
Date: |
Mon, 13 Jan 2020 20:23:54 +0100 |
User-agent: |
s-nail v14.9.16-67-gc8921880 |
Bjarni Ingi Gislason wrote in <address@hidden\
u.org>:
|URL:
| <https://savannah.gnu.org/bugs/?57592>
..
|From: Bjarni Ingi Gislason <address@hidden>
|Date: Mon, 13 Jan 2020 18:10:39 +0000
|To: address@hidden
|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)