[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master c69858b3f0: ; * lisp/treesit.el (treesit-ready-p): Guard agai
From: |
Eli Zaretskii |
Subject: |
Re: master c69858b3f0: ; * lisp/treesit.el (treesit-ready-p): Guard against empty buffers. |
Date: |
Wed, 23 Nov 2022 15:38:03 +0200 |
> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Cc: emacs-devel@gnu.org, casouri@gmail.com
> Date: Wed, 23 Nov 2022 07:40:31 -0500
>
> But my question was not so much pointing out a problem but trying to
> understand why we chose the more complex code.
Because we need to compare with byte positions, and I'm not aware that we
have anything like a buffer-size-bytes function. (Do we?) And I didn't
feel like adding one, for this simple use case, in a function that is
unlikely to be called frequently and/or in some inner loop.