From 1eb5c9800789e0f6b14c84656b12418bd86e0786 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 25 Feb 2012 04:27:49 -0800 Subject: * parser.l (source_loc_str): Missing function re-written. (Accidentally originally written in lex.yy.c file!) (parse_reset): If file can't be opened, try adding .txr suffix to it. * txr.1: Suffix-handling behavior documented. --- txr.1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'txr.1') diff --git a/txr.1 b/txr.1 index beb6209b..aa290163 100644 --- a/txr.1 +++ b/txr.1 @@ -3837,6 +3837,11 @@ source file from which the @(load) form was read. If there was no such source file (for instance, the script was read from standard input), then it is resolved relative to the current working directory. +If the file cannot be opened, then the .txr suffix is added and another +attempt is made. Thus load expressions need not refer to the suffix. +In the future, additional suffixes may be searched (compiled versions +of a file). + Loading is performed at evaluation time; it is not a source file inclusion mechanism. A TXR script is read from beginning to end and parsed prior to being evaluated. -- cgit v1.2.3