From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: master e38e7b7: Make syntax errors say the line/column they appear at
Date: Tue, 02 Feb 2021 09:34:42 +0100 [thread overview]
Message-ID: <87a6smookd.fsf@gnus.org> (raw)
In-Reply-To: <jwv8s87r2us.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 01 Feb 2021 14:47:41 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> But, FWIW, I'd much rather that the error object contains "raw data"
> rather than "human-readable" data. I.e. something like:
>
> xsignal2 (Qinvalid_read_syntax, s, PT);
>
> and then convert the buf-pos to line+column later on, when the error
> is displayed.
Good idea; now fixed.
> [ And if we don't have any ready-made place where we can put
> this display-time conversion, then we should probably change that
> as well. ]
We have the same thing with
forward-sexp: Scan error: "Containing expression ends prematurely", 373, 374
which is pretty cryptic, but `M-f' says
user-error: No next sexp
A general display conversion thing would be nice, but I guess some of
the conversions would be context dependent? The invalid-read-syntax
line/column one wouldn't be, I think...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2021-02-02 8:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20210201161423.6054.53972@vcs0.savannah.gnu.org>
[not found] ` <20210201161425.6B83A20DFD@vcs0.savannah.gnu.org>
2021-02-01 19:47 ` master e38e7b7: Make syntax errors say the line/column they appear at Stefan Monnier
2021-02-02 8:34 ` Lars Ingebrigtsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6smookd.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.