[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";"
From: |
Stefan Monnier |
Subject: |
bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";" |
Date: |
Wed, 26 Jun 2024 16:11:41 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
> I need to test if a parenthesis in LaTeX (latex-mode) starts
> a balanced expression.
You mentioned `forward-sexp` which should do the trick, so what made you
try `sexp-at-point`?
> sexp-at-point: Return the sexp at point, or nil if none is found.
>
> This is not possible with (thing-at-point 'sexp) because it does no return
> nil in the case, e.g.:
>
> $K(U_1, V_1, x_1; t_2, x_2$
The "<foo>-at-point" functions (by the very nature of the concept of
"foo at point") are DWIMish functions.
They're usually not appropriate for use from ELisp code unless that
ELisp code itself wants to be DWIMish.
Stefan
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/25
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Jeremy Bryant, 2024/06/25
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains "; ", Eli Zaretskii, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Stefan Monnier, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";",
Stefan Monnier <=
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Stefan Monnier, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Stefan Monnier, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Stefan Monnier, 2024/06/26
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/27
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Eli Zaretskii, 2024/06/29
- bug#71777: 29.4; sexp-at-point in latex-mode when sexp contains ";", Gabriele Nicolardi, 2024/06/26