summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc/config.tlu
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-02-28 16:12:57 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-02-28 16:12:57 +0000
commit92c8406013463f54d0b27ac6a2fa5b4608cc0966 (patch)
tree725332ecf8a74ff09b7de3e33a2be0b204be2598 /Master/texmf/scripts/texdoc/config.tlu
parent5589232e99f0fa13868111280c5b64ce9dc25730 (diff)
texdoc 0.70.
git-svn-id: svn://tug.org/texlive/trunk@17236 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/texdoc/config.tlu')
-rw-r--r--Master/texmf/scripts/texdoc/config.tlu24
1 files changed, 16 insertions, 8 deletions
diff --git a/Master/texmf/scripts/texdoc/config.tlu b/Master/texmf/scripts/texdoc/config.tlu
index be82dbf72d1..7ae2b69a6bb 100644
--- a/Master/texmf/scripts/texdoc/config.tlu
+++ b/Master/texmf/scripts/texdoc/config.tlu
@@ -5,21 +5,17 @@ Distributed under the terms of the GNU GPL version 3 or later.
See texdoc.tlu for details.
--]]
+-- Load a private environment for this submodule (see texdoc.tlu).
local L = {}
load_env(L, {
- 'export_symbols',
- 'string', 'table', 'os', 'kpse', 'lfs', 'io',
- 'ipairs', 'pairs', 'tonumber', 'tostring', 'setmetatable', 'next', 'print',
- 'assert', 'error',
- 'err_print', 'win32_hook', 'deb_print', 'print_usage',
- 'confline_to_alias', 'confline_to_score',
- 'C',
+ 'os', 'kpse', 'lfs', 'io', 'setmetatable', 'print',
+ 'win32_hook', 'confline_to_alias', 'confline_to_score', 'print_usage',
'config',
})
-------------------------- hide the config table ---------------------------
--- config is read-only
+-- config is read-only (but not "deep" read-only)
function set_read_only(table, name)
assert(next(table) == nil,
'Internal error: '..name..' should be empty at this point.')
@@ -90,6 +86,17 @@ function set_config_element (key, value, context)
else -- string
real_set_config(key, value)
end
+ -- alias_switch is depecated
+ if key == 'alias_switch' and context.src ~= 'def' then
+ err_print('warning',
+ 'Command-line options -a, --alias, -A, --noalias, as well as')
+ err_print('warning',
+ 'configuration item alias_switch, are deprecated')
+ err_print('warning',
+ 'and will soon be removed.')
+ err_print('warning',
+ 'Please protest on the texdoc mailing list if you need it.')
+ end
-- special case: if we just set debug_list, print version info now
if key == 'debug_list' then
deb_print('version', C.fullname..' version '..C.version)
@@ -509,6 +516,7 @@ function setup_config_from_defaults()
badext_list = 'txt, ',
verbosity_level = C.def_verbosity,
debug_list = '',
+ max_lines = '20',
}
-- must be set after mode!
set_config_elt ('alias_switch', alias_from_mode(config.mode))