[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : forward-sexp
From: |
Andreas Röhler |
Subject: |
Re: [External] : forward-sexp |
Date: |
Fri, 11 Aug 2023 21:20:34 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
Am 11.08.23 um 19:43 schrieb Drew Adams:
M-x forward-sexp RET works from the beginning of the first line, but
does nothing from the beginning at the second. Are there reasons for
this? [ asdf ] .
The syntactic definition of "sexp" depends on the context, e.g., the
current major mode. Without knowing how a "sexp" is defined in your
context, we can't help much. That said, trying it in a Lisp mode tells
me that an error is raised when I try it at the beginning of the
second line, because: Debugger entered--Lisp error: (scan-error
"Unbalanced parentheses" 450 459) scan-sexps(450 1) forward-sexp(1)
funcall-interactively(forward-sexp 1) call-interactively(forward-sexp
nil nil) command-execute(forward-sexp) IOW, the `(' char isn't
balanced with a `)' char, so parsing to the end of the `[' sexp isn't
possible.
let assume fundamental mode, cursor at opening bracket: what puzzles me,
with [ asdf ] it recognizes the opening bracket.
In such a case, it should not look inside, just travel onto the closing one.
But with [(&asdf] it fails.
- forward-sexp, Andreas Röhler, 2023/08/11
- RE: [External] : forward-sexp, Drew Adams, 2023/08/11
- Re: [External] : forward-sexp, Emanuel Berg, 2023/08/11
- Re: [External] : forward-sexp,
Andreas Röhler <=
- Re: [External] : forward-sexp, Pierre Rouleau, 2023/08/11
- Re: [External] : forward-sexp, Andreas Röhler, 2023/08/11
- RE: [External] : forward-sexp, Drew Adams, 2023/08/11
- Re: [External] : forward-sexp, Pierre Rouleau, 2023/08/11
- Re: [External] : forward-sexp, Emanuel Berg, 2023/08/12
- RE: [External] : forward-sexp, Drew Adams, 2023/08/11
- Re: [External] : forward-sexp, Andreas Röhler, 2023/08/12
- Re: [External] : forward-sexp, Emanuel Berg, 2023/08/12
- RE: [External] : forward-sexp, Drew Adams, 2023/08/12
- Re: [External] : forward-sexp, Emanuel Berg, 2023/08/13