bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#52593: 28.0.90; (thing-at-point thing) has so much overhead since co


From: Lars Ingebrigtsen
Subject: bug#52593: 28.0.90; (thing-at-point thing) has so much overhead since commit 7db376e560448e61485ba054def8c82b21f33d6a
Date: Sun, 19 Dec 2021 17:22:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Perhaps thing-at-point should acquire a new optional argument saying
> "don't pay attention to fields"?

We could indeed do that...  But perhaps we could just feed in some LIMIT
parameters to the field functions:

(field-beginning &optional POS ESCAPE-FROM-EDGE LIMIT)

The problem is that they will search to the beginning/end of the buffer
for the overlays/text properties when there's none under point, and that
will be slow.

So limiting this here might do the trick, but what to use as the limit?
Line end/beg positions?  Is there any THING that spans several lines?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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