From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kang Niu Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <83zgoybbfr.fsf@gnu.org> <83ee689156.fsf@gnu.org> <878rwgra3k.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000093782605d380bf74" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7180"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52593@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 19 15:41:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1myxN9-0001hl-RM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 15:41:11 +0100 Original-Received: from localhost ([::1]:51038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myxN8-0002Vo-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 09:41:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myxN0-0002V2-2H for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 09:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myxMz-0001MY-QX for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 09:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1myxMz-0008GY-Lc for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 09:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kang Niu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Dec 2021 14:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52593 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 52593-submit@debbugs.gnu.org id=B52593.163992481431710 (code B ref 52593); Sun, 19 Dec 2021 14:41:01 +0000 Original-Received: (at 52593) by debbugs.gnu.org; 19 Dec 2021 14:40:14 +0000 Original-Received: from localhost ([127.0.0.1]:45340 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxME-0008FO-2P for submit@debbugs.gnu.org; Sun, 19 Dec 2021 09:40:14 -0500 Original-Received: from mail-yb1-f176.google.com ([209.85.219.176]:46725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myxMC-0008F5-Gp for 52593@debbugs.gnu.org; Sun, 19 Dec 2021 09:40:12 -0500 Original-Received: by mail-yb1-f176.google.com with SMTP id g17so20963188ybe.13 for <52593@debbugs.gnu.org>; Sun, 19 Dec 2021 06:40:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tUEmcoaZRyivqQ6hXnUNcrrXiOOeS9bDrnrkruI76R8=; b=SuTeAA46YNH3ySV8E5Kq2U0+Tp1CXwOIAjns+YsJ+YIY22QEAOHVaVUTMSPkgmHCpk OyUtaNn/8Gd31Nv61A2ELdd4uimbBJaR2brJ1ZFxPz2DyKSsZg7HEsMjZS/q28lnuHUT IP7EeWM7vNrNb4HhuiAuGcrbgWWUHguhG2bzxRpE6z/nmN/gyqfYLwk4JlSAM9lOjRyi NE0FKQzOEEsXrcKV8k8dUMMlakS+pH9mv+0pfqP9Jd8rq4d8uh39Glt/Gh3/M0QnThg3 iT4QqDNZz+90FlujbljnX3QCmMdT2OwN2ZivhQJwRuaCgYEhMJEbMxGJHwMGOF5V6uHZ 3PPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tUEmcoaZRyivqQ6hXnUNcrrXiOOeS9bDrnrkruI76R8=; b=iPSsK0kke78DIED/SWI80EWDUbLz4gkXw+bgtGqk9iVSTgX8dsKWIJ05guI9Rc601E 8sZWJJVPasrK9PGxRZxek0rVpCG0xgqdqj1kXJ0bDWtp71DykeytEj7YdcSz7o2GXDol zOPkJ5LxJ3dIHbsN8v9l2sgDr0HXmD4jCLzg4TLRhMPlJ1UrjHmnoT5ST0PB6kV/nWwW CzqpZggknrCyRpIP3IVpyC2yqMUo7QMsrwR3PRS3fokH0vz7ccXahwGIlqf4swlarSjt C7ifD+WD/J9CJNUUKuMU9ZxD+1zWDEw80AeC2x/o7pdHzcDJTuosE2yA9pQXYIXUf+FC FuQA== X-Gm-Message-State: AOAM531CI5SGI5uZSctAYCOnjbG7/y7C8PTvxP3xxnkwnTcd3RlE62XT NTrrCx4Dx71fAj5/0NUrUJHTdnq3FHW1bvZ0wyw= X-Google-Smtp-Source: ABdhPJwxy1nBH5186civfn0nKl3Km5Or96RYVvre9mZC8Lnna2met2OcCGsUbQRWJpdJgOPnnIOAEDmPB3jhOkH9fzE= X-Received: by 2002:a25:f826:: with SMTP id u38mr16289844ybd.535.1639924806935; Sun, 19 Dec 2021 06:40:06 -0800 (PST) In-Reply-To: <878rwgra3k.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222694 Archived-At: --00000000000093782605d380bf74 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable There are no fields in the buffer. (field-beginning) (field-end) return the same value as (point-min) (point-max). Lars Ingebrigtsen =E4=BA=8E2021=E5=B9=B412=E6=9C=8819=E6= =97=A5=E5=91=A8=E6=97=A5 21:35=E5=86=99=E9=81=93=EF=BC=9A > Eli Zaretskii 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 > --00000000000093782605d380bf74 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
There are no fields in the buffer. (field-beginning) (fiel= d-end) return the same value as (point-min) (point-max).

Lars Ingebrigtsen &= lt;larsi@gnus.org> =E4=BA=8E2021= =E5=B9=B412=E6=9C=8819=E6=97=A5=E5=91=A8=E6=97=A5 21:35=E5=86=99=E9=81=93= =EF=BC=9A
Eli Za= retskii <eliz@gnu.org<= /a>> 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?=C2=A0 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.)
=C2=A0 =C2=A0bloggy blog:
http://lars.ingebrigtsen.no
--00000000000093782605d380bf74--