* Why do emacs backtraces lack line numbers?
@ 2022-12-20 16:50 John Yates
2022-12-20 18:56 ` Emanuel Berg
2022-12-20 19:34 ` Eli Zaretskii
0 siblings, 2 replies; 3+ messages in thread
From: John Yates @ 2022-12-20 16:50 UTC (permalink / raw)
To: Help Gnu Emacs mailing list
I am doing my first significant bit of coding in elisp.
Relative to other environments that I have used, something
that I miss sorely is line numbers in backtraces.
What explains their absence?
/john
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why do emacs backtraces lack line numbers?
2022-12-20 16:50 Why do emacs backtraces lack line numbers? John Yates
@ 2022-12-20 18:56 ` Emanuel Berg
2022-12-20 19:34 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Emanuel Berg @ 2022-12-20 18:56 UTC (permalink / raw)
To: help-gnu-emacs
John Yates wrote:
> I am doing my first significant bit of coding in elisp.
>
> Relative to other environments that I have used, something
> that I miss sorely is line numbers in backtraces.
>
> What explains their absence?
Lisp? :)
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Why do emacs backtraces lack line numbers?
2022-12-20 16:50 Why do emacs backtraces lack line numbers? John Yates
2022-12-20 18:56 ` Emanuel Berg
@ 2022-12-20 19:34 ` Eli Zaretskii
1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2022-12-20 19:34 UTC (permalink / raw)
To: help-gnu-emacs
> From: John Yates <john@yates-sheets.org>
> Date: Tue, 20 Dec 2022 11:50:46 -0500
>
> I am doing my first significant bit of coding in elisp.
>
> Relative to other environments that I have used, something
> that I miss sorely is line numbers in backtraces.
>
> What explains their absence?
The line information needs to be recorded somewhere, before it can be
presented. In compiled programs, for example, the compiler records
the line-number information in the debug info it generates.
None of this is present in Lisp, and moreover, until Emacs 29 the byte
compiler didn't even have a good idea of which line number it is
processing at any given time.
So I guess the simple answer is: because Emacs doesn't know.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-20 19:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-20 16:50 Why do emacs backtraces lack line numbers? John Yates
2022-12-20 18:56 ` Emanuel Berg
2022-12-20 19:34 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).