From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=D0=9F=D0=B5=D1=82=D1=80=D0=BE=D0=B2_?= =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Newsgroups: gmane.emacs.bugs Subject: bug#54025: 27.2; dired-do-find-regexp skips occurences Date: Sun, 27 Feb 2022 12:50:32 +0000 Message-ID: <508563bed10b4d95b7b60655bb4f84a5@itgrp.ru> References: <611521ae-42d4-6584-915e-243060de536e@yandex.ru> <831qzwx5a6.fsf@gnu.org> <967624c188c942ff8ecbf23bd6be46d0@pay-lab.ru> <0239f68191344ab49b23ddc96c7bd6e9@pay-lab.ru> <8017fbd711264d36ba69b62c480a55c6@pay-lab.ru> <7f544a39-e32d-2d62-4db8-dc957d243aec@yandex.ru> <87fso7mkj0.fsf@gmx.de> <274c3d9c-205d-be47-1bc6-1aeeacd659e8@yandex.ru> <8735k7m1ez.fsf@gmx.de> <87pmn9lu2k.fsf@gmx.de> , <613c0bd5-5976-9958-9c0d-e2dba862ea26@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16669"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "54025@debbugs.gnu.org" <54025@debbugs.gnu.org> To: Dmitry Gutov , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 13:51:16 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 1nOJ19-00048z-KE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 13:51:15 +0100 Original-Received: from localhost ([::1]:35766 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOJ18-0006JE-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 07:51:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOJ0w-0006Gr-9d for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 07:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOJ0w-0002Nm-0g for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 07:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOJ0v-0007Am-KL for bug-gnu-emacs@gnu.org; Sun, 27 Feb 2022 07:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=9F=D0=B5=D1=82=D1=80=D0=BE=D0=B2_?= =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 12:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54025 X-GNU-PR-Package: emacs Original-Received: via spool by 54025-submit@debbugs.gnu.org id=B54025.164596624227547 (code B ref 54025); Sun, 27 Feb 2022 12:51:01 +0000 Original-Received: (at 54025) by debbugs.gnu.org; 27 Feb 2022 12:50:42 +0000 Original-Received: from localhost ([127.0.0.1]:56978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJ0b-0007AD-TA for submit@debbugs.gnu.org; Sun, 27 Feb 2022 07:50:42 -0500 Original-Received: from mail1.itgrp.ru ([185.8.182.248]:56736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOJ0a-00079y-JT for 54025@debbugs.gnu.org; Sun, 27 Feb 2022 07:50:41 -0500 IronPort-SDR: Gd5yuA37eoJISfr5O0GlAUk0fy1h2VbbvF0LwTNN8pk6ca5aszUI0zVVidTQc6xqgsMcDlDsji UoMBEcUn+LAQ== X-IronPort-AV: E=Sophos;i="5.90,141,1643662800"; d="scan'208";a="159770739" Thread-Topic: bug#54025: 27.2; dired-do-find-regexp skips occurences Thread-Index: AQHYIyjXtspqEmtb7Emo34ft0KOoIayc/TcAgABkI0mAADe4/YACqySAgAB1HP6AASCpgIAAfuOKgAD/QYCAAKCyrYAAKwkAgABIRLiAAGrrgIAA8rDegAAoEG6AAJ8eAIAA1ttR In-Reply-To: <613c0bd5-5976-9958-9c0d-e2dba862ea26@yandex.ru> Accept-Language: ru-RU, en-US Content-Language: ru-RU x-originating-ip: [10.24.4.20] 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:227711 Archived-At: Dmitry, I have installed the lastest Emacs from master branch. The searching works slightly different but acceptable. Thank you for supporting Emacs, guys! You are my heroes! Best regards, Andrey Petrov. ________________________________________ =EF=D4: DG =CF=D4 =C9=CD=C5=CE=C9 Dmitry Gutov =EF=D4=D0=D2=C1=D7=CC=C5=CE=CF: 27 =C6=C5=D7=D2=C1=CC=D1 2022 =C7. 7:50:20 =EB=CF=CD=D5: =F0=C5=D4=D2=CF=D7 =E1=CE=C4=D2=C5=CA; Michael Albinus =EB=CF=D0=C9=D1: 54025@debbugs.gnu.org =F4=C5=CD=C1: Re: bug#54025: 27.2; dired-do-find-regexp skips occurences Hi Andrey, On 26.02.2022 16:54, =F0=C5=D4=D2=CF=D7 =E1=CE=C4=D2=C5=CA wrote: > Michael, Dmitry, > > - I think it is not the best idea to search in files and directories > visited through tramp (does internal grep call have an optimized > version for that?). Try it, it works well enough already. Or at least much better than the previous approach for searching across many files (exemplified by 'M-x project-search'). > - I believe what saving buffers before operation involves more traffic > then checking for modification time. > > - Also if I remember correctly I saw some inflating transcoding while > copying files into local machine using tramp (that's why I prefer > using tar/ssh/untar or scp over dired tools for copying files > between machines) - aggressive traffic optimization is not always > used. Good thing project-find-regxp does not do that. > - When I trying to type something in buffer visiting modified from > outside file I am prompted to confirm my intention (really edit the > buffer?) - if I'm not wrong, it should involve some network > activity. > > So does the time modification checking give so much overhead? It would take roughly (network rtt)x(number of open buffers with found matches). Or more: there might be a multiplier on rtt, depending on how this is implemented in Tramp. > I found > the synchronizing of search results in xref buffers with buffer > contents (when you passes through an xref) very comfortable. It might > be more confusing when user clicks to xref and jumps into non-matching > text area. Check the current code in master out. It should be working fine for most cases, but not, alas, for remote files edited outside of the Emacs process. Those might see result in discrepancies.