From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 19:38:01 +0200 Message-ID: <83o85c7ax2.fsf@gnu.org> References: <83zgoybbfr.fsf@gnu.org> <83ee689156.fsf@gnu.org> <87r1a8sgxc.fsf@gnus.org> <87bl1cse75.fsf@gnus.org> <877dc0sdn2.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33179"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52593@debbugs.gnu.org, isgniuk@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 19 18:39:38 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 1mz09p-0008Rj-Oy for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 18:39:37 +0100 Original-Received: from localhost ([::1]:58606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mz09o-0000Gl-1h for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Dec 2021 12:39:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz09H-0000Ey-1X for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 12:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mz09G-0001GO-5P for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 12:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mz09F-0007el-Q6 for bug-gnu-emacs@gnu.org; Sun, 19 Dec 2021 12:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Dec 2021 17:39: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: patch moreinfo Original-Received: via spool by 52593-submit@debbugs.gnu.org id=B52593.163993550429386 (code B ref 52593); Sun, 19 Dec 2021 17:39:01 +0000 Original-Received: (at 52593) by debbugs.gnu.org; 19 Dec 2021 17:38:24 +0000 Original-Received: from localhost ([127.0.0.1]:48002 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz08d-0007du-Pa for submit@debbugs.gnu.org; Sun, 19 Dec 2021 12:38:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mz08U-0007dZ-QC for 52593@debbugs.gnu.org; Sun, 19 Dec 2021 12:38:22 -0500 Original-Received: from [2001:470:142:3::e] (port=40854 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz08P-0001Cw-HY; Sun, 19 Dec 2021 12:38:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LmlxOq8w0qnsdTCDbAEkx4X+Y2DAEMw5YgGFNUJrOPE=; b=p+n+yWWP19+Q FPXDJ12d4mfj+8BXmQVdlOF+vOqd/HYNjgHOylmZaAwUeosUjVAzMiei/GuruTbBIrqv62pe6jKS0 XexMZr+QWT764tiutNcuqzWOW0ls0D++0gvmHAfIzTAM8M+cu4PNtljeuDDOIDsuWTh4Q0yITMdyM DGJYzRRKcTyTNJNtxpzk2rU5jUujHH2X5uTIi0OHvtIT5l47qMzPol196BGieHlGZL639Fekcsk10 FznY09PjYAG93r8LJohNsA2IKzqY3wDpwBThLtbH420joo3cOQtkPc27PhH3J0L7Vd2CT0ul/WKIE echE5HuXgZTliMG25h7uhg==; Original-Received: from [87.69.77.57] (port=2139 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mz08P-0001sJ-EY; Sun, 19 Dec 2021 12:38:09 -0500 In-Reply-To: <877dc0sdn2.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 19 Dec 2021 18:33:37 +0100) 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:222729 Archived-At: > From: Lars Ingebrigtsen > Cc: 52593@debbugs.gnu.org, Kang Niu > Date: Sun, 19 Dec 2021 18:33:37 +0100 > > Lars Ingebrigtsen writes: > > > To answer my question: Yes. For instance, `list' may span several lines. > > So... Eli's suggestion of adding a no-field parameter here may be > > solution, unless we somehow rethink the thing-at-point algorithm. > > Another idea: We could change thing-at-point to only respond to > "positive" fields. That is, only consider a thing to be a field if > there's a `field' property under point. > > (insert (propertize "foo" 'field 1) "bar" (propertize "zot" 'field 2)) > > This would mean that (symbol-at-point) in the "foo" bit would return > `foo', but in the "bar" part, it would return `foobarzot'. (Before > adding field support, it would return the latter in the first case, > too.) I admit that I lack the context here: why was thing-at-point changed to honor fields? what was that supposed to achieve?