[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confusing doc string of list-or-string at point
From: |
Stefan Monnier |
Subject: |
Re: Confusing doc string of list-or-string at point |
Date: |
Mon, 27 Sep 2021 12:56:25 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
>> Splitting the work between `char-after` and `char-syntax` means that we
>> can't obey any `syntax-table` text properties placed on that char.
>> So I think the above change would be a regression in this sense (tho
>> I understand it fixes or circumvents a bug elsewhere).
>
> No bugs prompted this patch, just noticed the difference between
> this function and its counterpart thing-at-point--beginning-of-sexp
> that uses `(char-syntax (char-before))`.
My point was just that `syntax-after` is almost always the better choice
over (char-syntax (char-after)) because it has access to more
information, so the better fix to unify the two would be to use
`syntax-after` in both cases ;-)
Stefan
- Re: Confusing doc string of list-or-string at point, (continued)
- Re: Confusing doc string of list-or-string at point, Juri Linkov, 2021/09/23
- Re: Confusing doc string of list-or-string at point, Eli Zaretskii, 2021/09/23
- Re: Confusing doc string of list-or-string at point, Eli Zaretskii, 2021/09/23
- Re: Confusing doc string of list-or-string at point, Juri Linkov, 2021/09/23
- Re: Confusing doc string of list-or-string at point, Juri Linkov, 2021/09/24
- Re: Confusing doc string of list-or-string at point, Eli Zaretskii, 2021/09/24
- RE: [External] : Re: Confusing doc string of list-or-string at point, Drew Adams, 2021/09/24
- RE: [External] : Re: Confusing doc string of list-or-string at point, Stefan Kangas, 2021/09/24
- Re: Confusing doc string of list-or-string at point, Stefan Monnier, 2021/09/24
- Re: Confusing doc string of list-or-string at point, Juri Linkov, 2021/09/25
- Re: Confusing doc string of list-or-string at point,
Stefan Monnier <=
- Re: Confusing doc string of list-or-string at point, Juri Linkov, 2021/09/23