lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi,

executing stdin as one chunk:

bash-3.1$ lua -
-- ignore
print(debug.traceback())
stack traceback:
        stdin:2: in main chunk
        [C]: ?

now entering interactive mode:

bash-3.1$ lua  
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
> -- ignore
> print(debug.traceback())
stack traceback:
        stdin:1: in main chunk
        [C]: ?

OK, lua reads each line as a chunk but also resets line enumeration for each
chunk. Is this intended?

I try to parse lua tracebacks from emacs and jump to traceback lines in the
input buffer.

Jürgen