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: Kang Niu
Subject: bug#52593: 28.0.90; (thing-at-point thing) has so much overhead since commit 7db376e560448e61485ba054def8c82b21f33d6a
Date: Sun, 19 Dec 2021 22:39:55 +0800

There are no fields in the buffer. (field-beginning) (field-end) return the same value as (point-min) (point-max).

Lars Ingebrigtsen <larsi@gnus.org> 于2021年12月19日周日 21:35写道:
Eli Zaretskii <eliz@gnu.org> writes:

>> The overhead disappears only if I comment out (narrow-to-region
>> (field-beginning) (field-end)) in
>> thing-at-point.

Are there fields in the buffer you're using this in?  I.e., does
(field-beginning) (field-end) return anything other than
point-min/point-max?

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

If the buffer has fields, then I think thing-at-point should pay
attention to them -- it's for stuff like this Emacs has fields in the
first place.

--
(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]