emacs-devel
[Top][All Lists]
Advanced

[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: Fri, 24 Sep 2021 13:41:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>  (defun thing-at-point--end-of-sexp ()
>    "Move point to the end of the current sexp."
> -  (let ((char-syntax (syntax-after (point))))
> +  (let ((char-syntax (char-syntax (char-after))))

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).


        Stefan




reply via email to

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