emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: Confusing doc string of list-or-string at point


From: Drew Adams
Subject: RE: [External] : Re: Confusing doc string of list-or-string at point
Date: Fri, 24 Sep 2021 17:14:47 +0000

> BTW, it seems there is a bug in thing-at-point--end-of-sexp,
> but I'm not sure if this is a correct fix:
> 
> diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
> index efe33982c3..3d2ea9dedf 100644
> --- a/lisp/thingatpt.el
> +++ b/lisp/thingatpt.el
> @@ -241,7 +261,7 @@ in-string-p
> 
>  (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))))
>      (if (or (eq char-syntax ?\))
>           (and (eq char-syntax ?\") (nth 3 (syntax-ppss))))
>       (forward-char 1)

That looks right to me.

BTW2:
Why is function `in-string-p' even defined?
It doesn't seem to be used anywhere (but I'm
using Emacs 26.3, so ignore if it's used now).



reply via email to

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