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: Juri Linkov
Subject: Re: Confusing doc string of list-or-string at point
Date: Sat, 25 Sep 2021 22:03:48 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

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

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



reply via email to

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