[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a reason why iinvalid-read-syntax doesn't give me the locat
From: |
Noam Postavsky |
Subject: |
Re: Is there a reason why iinvalid-read-syntax doesn't give me the location of the error? |
Date: |
Wed, 7 Aug 2019 10:17:41 -0400 |
On Wed, 7 Aug 2019 at 09:59, Michael Heerdegen <michael_heerdegen@web.de> wrote:
>
> ndame <emacsuser@freemail.hu> writes:
>
> > I wonder why the error message doesn't give me the location of the
> > error like scan-error. I have to bisect the file to find the bad part.
>
> I don't have the answer to your question, only a workaround: turn on
> debug-on-error and eval. When the debugger pops up, switch to the
> source code buffer. Point will be likely near the problem (AFAICT
> `read' just leaves point where it gave up).
The backtrace itself should mention the exact location where the last
`read' was. In Emacs 27, you can click on it to jump there.
See Bug#6435.