summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc/constants.tlu
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/scripts/texdoc/constants.tlu')
-rw-r--r--Master/texmf/scripts/texdoc/constants.tlu23
1 files changed, 14 insertions, 9 deletions
diff --git a/Master/texmf/scripts/texdoc/constants.tlu b/Master/texmf/scripts/texdoc/constants.tlu
index c31f8183fa2..ca286fc14e1 100644
--- a/Master/texmf/scripts/texdoc/constants.tlu
+++ b/Master/texmf/scripts/texdoc/constants.tlu
@@ -5,17 +5,17 @@ Distributed under the terms of the GNU GPL version 3 or later.
See texdoc.tlu for details.
--]]
+-- Load a private environment.
+-- A name 'foo' defined here will be globally visible as 'C.foo', see EOF.
local L = {}
load_env(L, {
- 'setmetatable', 'next', 'assert', 'error',
- 'arg',
- 'C',
+ 'setmetatable', 'arg',
})
-- progname and version
fullname = arg[0]
progname = 'texdoc'
-version = '0.66'
+version = '0.70'
-- make sure to update setup_config_from_cl() accordingly
-- and set a default value in setup_config_from_defaults() if relevant
@@ -40,9 +40,6 @@ Current settings:
-I, --nointeract Use plain lists, no interaction required.
-M, --machine Machine-readable output for lists (implies -I).
- -a, --alias Use the alias table. (default)
- -A, --noalias Don't use the alias table.
-
-q, --quiet Suppress warnings and most error messages.
-v, --verbose Print additional information (eg, viewer command).
-d, --debug[=list] Print debug info for selected items (default: all).
@@ -58,7 +55,6 @@ usage_settings = {
showall = '--showall' },
{ name = 'interact_switch',
[true] = '--interact', [false] = '--nointeract' },
- { name = 'alias_switch', [true] = '--alias', [false] = '--noalias' },
}
known_options = {
@@ -76,6 +72,7 @@ known_options = {
'rm_file',
'unzip_.*',
'zipext_list',
+ 'max_lines',
}
error_msg = [[
@@ -106,11 +103,19 @@ known_debugs = {
view = {},
texdocs = {},
score = {},
+ tlpdb = {}
}
+-- various cache or non-cache files
+cache_name = 'texdoc/cache-tlpdb.lua' -- relative to TEXMFVAR
+data_meta_name = 'Data.meta.lua'
+data_tlpdb_name = 'Data.tlpdb.lua'
+
place_holder = '%%s' -- used for viewer commands
--- make C a proxy to the local environment
+-- Make global C a read-only proxy to the local environment.
+-- Note this is not deep read-only: C.known_debugs is read-only, but
+-- C.known_debugs.version isn't, for instance.
assert(next(C) == nil,
'Internal error: table of constants should be empty at this point')
setmetatable(C, {