line numbers in interactive mode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

line numbers in interactive mode

Jürgen Hötzel
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
Reply | Threaded
Open this post in threaded view
|

Re: line numbers in interactive mode

David Burgess
>From the C side (seaside?) it would be lovely if there was an
easy way to set the base or seed line number, I have not
managed to think of an easy way to do this yet.

David B