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#58158: 29.0.50; [overlay] Interval tree iteration considered harmful Date: Mon, 10 Oct 2022 11:10:39 +0300 Message-ID: <838rlohzeo.fsf@gnu.org> References: <83h70qhez0.fsf@gnu.org> <83edvuhaby.fsf@gnu.org> <831qruh67o.fsf@gnu.org> <83y1u2foli.fsf@gnu.org> <83zgehe6iq.fsf@gnu.org> <95113379-99d8-eba4-f980-a7fca11430d5@yandex.ru> <834jwfmn5a.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16752"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 58158@debbugs.gnu.org, monnier@iro.umontreal.ca To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 10:31:25 2022 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 1ohoC5-00045i-Dz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 10:31:25 +0200 Original-Received: from localhost ([::1]:49724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohoC4-0001qy-Em for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 04:31:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohnsM-0005MG-U3 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 04:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohnsM-0007l2-IW for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 04:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohnsM-0006IS-DW for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 04:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Oct 2022 08:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58158 X-GNU-PR-Package: emacs Original-Received: via spool by 58158-submit@debbugs.gnu.org id=B58158.166538944824173 (code B ref 58158); Mon, 10 Oct 2022 08:11:02 +0000 Original-Received: (at 58158) by debbugs.gnu.org; 10 Oct 2022 08:10:48 +0000 Original-Received: from localhost ([127.0.0.1]:45845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohns7-0006Ho-NI for submit@debbugs.gnu.org; Mon, 10 Oct 2022 04:10:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohns5-0006Hb-LY for 58158@debbugs.gnu.org; Mon, 10 Oct 2022 04:10:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohnrx-0007jx-J2; Mon, 10 Oct 2022 04:10:37 -0400 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=MdkRl8nZtBK3Ijq6cPAt49+l4TA5hcZnxzS+WLmhGOc=; b=E/DcS3ikuHf1 b081R4fARGVQvXwpThqKOx22TtsBhFmYwcYvy4Cidp7Te8EbKO7P+DGfnATg8DVF2QjFePJdUaGx8 HWcMcLoK0ncOAWFuWuDTkXC4U6j2ot44qopwDc9u31UmtQ3pPs1xf8xz/u79THDuZohIQSghh13m0 NmMhTWbA1N6jsZ7emnrMAEMT9+sMYsl8dCQoIJlfcGxlE/bURUYCTDmjsUSbq5Oj4+vV3AiUQfyPc nFxShbu/Na5Cb4JcvGuYrxRi4ymUOuKbwkZiyVdkwcT+eeP4vTYCLPKjPjNNXZlw8nNmwHCQsI9j3 t1iSDIFcVv/tD4pOVSxh3Q==; Original-Received: from [87.69.77.57] (port=1366 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 1ohnrt-0002Ic-BE; Mon, 10 Oct 2022 04:10:36 -0400 In-Reply-To: (message from Dmitry Gutov on Sat, 8 Oct 2022 21:50:39 +0300) 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:244993 Archived-At: > Date: Sat, 8 Oct 2022 21:50:39 +0300 > Cc: gerd.moellmann@gmail.com, 58158@debbugs.gnu.org, monnier@iro.umontreal.ca > From: Dmitry Gutov > > > Btw, what am I doing wrong below? > > > > emacs -Q > > C-x C-f src/character.h RET > > M-x visit-tags-table RET RET > > M-. char_string RET > > r whatever RET > > > > Unexpected result: "No suitable matches here". Huh? what did I miss? > > We can't replace over "find definition" matches: they are more abstract > and don't contain the necessary information to perform the replacement > (such as the length of a match, for instance). > > And such xrefs might navigate you to the beginning of the line, for > example, rather than to the beginning of the name. > > But that makes sense, doesn't it? If replacing over "find definitions" > results worked fine, in the end you would get a codebase where all > declarations of a method 'foo' got renamed, but all callsites of it > remain unchanged. That couldn't have been your intention, could it? > > The error message could use some improvement, I suppose, but I'm not > sure how to make it better. I tried to improve the situation, both in the error message, the doc string, and the manual.