help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Error: End of file during parsing


From: Jean Louis
Subject: Re: Error: End of file during parsing
Date: Tue, 11 Oct 2022 22:00:57 +0300
User-agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02)

* Emanuel Berg <incal@dataswamp.org> [2022-10-11 10:24]:
> Jean Louis wrote:
> 
> >>>> Try `M-x check-parens RET`
> >>>
> >>> That is good, thank you.
> >> 
> >> But nothing ever happens with that?
> >
> > Since then I have used it, it finds the place where
> > parenthesis is missing.
> 
> Ah, I see now, you have to remove a paren (break the code) for
> it to "work" :)

check-parens finds the missing parenthesis, so it is other way around.

> > It should also be involved in those error messages
> 
> Yes, sounds reasonable, I wonder tho if you can get "out
> parsed" only by parenthesis mismatch or if there are other
> ways to do that?
> 
> > to at least estimate
> 
> Estimate, that's how it works?

When there is compiling process, then such fails without giving enough
information. Instead of failing, process could use functions in
check-parens to indicate where could be the problem in the code, and
provide link for user to click on the link and quickly invoke
check-parens

I did not know that function exist. It is not enough integrated in Emacs.

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]