From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#54025: 27.2; dired-do-find-regexp skips occurences Date: Sun, 27 Feb 2022 04:50:20 +0200 Message-ID: <613c0bd5-5976-9958-9c0d-e2dba862ea26@yandex.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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40185"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: "54025@debbugs.gnu.org" <54025@debbugs.gnu.org> To: =?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?= , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 27 03:51:21 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 1nO9ea-000AJA-P4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 27 Feb 2022 03:51:20 +0100 Original-Received: from localhost ([::1]:44388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nO9eZ-0002Y0-E9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Feb 2022 21:51:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nO9eI-0002XC-0U for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34494) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nO9eH-00011X-Js for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:51:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nO9eH-0004i0-JF for bug-gnu-emacs@gnu.org; Sat, 26 Feb 2022 21:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Feb 2022 02: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.164593023218052 (code B ref 54025); Sun, 27 Feb 2022 02:51:01 +0000 Original-Received: (at 54025) by debbugs.gnu.org; 27 Feb 2022 02:50:32 +0000 Original-Received: from localhost ([127.0.0.1]:56624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9do-0004h6-DP for submit@debbugs.gnu.org; Sat, 26 Feb 2022 21:50:32 -0500 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:37454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nO9dk-0004gm-5X for 54025@debbugs.gnu.org; Sat, 26 Feb 2022 21:50:31 -0500 Original-Received: by mail-wr1-f51.google.com with SMTP id d28so10162500wra.4 for <54025@debbugs.gnu.org>; Sat, 26 Feb 2022 18:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=zu8pw9mQv9Ngn4J5eWbmcd9d3MLYA0E/kHWnXpXIh+I=; b=LTDIUM4RNLNMnT8LBb6xJ3EDKtOZfl8WW2N9TdYMmdVakXkvEYhtGcNT/D6Hem0FSX WZmSqt04UAgGHbz2icMaN0yTCvqH9TzmLMaYvB8+SMNjQC5mZBszEy5AbP/PL67nix+1 TCDj5ysL5ESumbae3lR0NZiioLwTipWh0/qaKdXFsHxpENwFK7RpcK4Gle0XIDRQICkA nW72I8yX5OvWPZezN5ux+vFcAnfYKbG1W0dvIsy+nZB1yMH84V5+qxie62uasSsJPeeI hhPRGGlhj7zl3OF1R25ABL1BrJVU9ac2rzZJDfVeCkgcw0byjJkNPtuZFvggFoPtsCmX EObw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=zu8pw9mQv9Ngn4J5eWbmcd9d3MLYA0E/kHWnXpXIh+I=; b=vvIxBUk/t34ZOsJ3M9tcMrl02EGWKJcoDWYytm6scNuMUV/Cek4nq1JxYodkYluz9M Q1uLA9ThSwxqKzW1H3rVv09qh0ykU0CTQ/GRiCIr0hc2/udvWeuOQTbZWBmFYpC4xLiL d8El3Yu51BPKG5W8rXAe1Gz7aE/2xXCpKnR6+FaTjtUTZjF3XwdttRWTjbTqt3AU3+2M XSPhDtxmxgeUzlLz7AtDUKIQfI1ND/4b9LaruH75XgKWeFw8wNVrFUEgsq9/3qi+C2N7 a3/1P1A6GqweMbir0nfUK7GswjOoZzmn+y0d8wL2Hk8NUAibVZYJ1pdd0YvPmriB6MT4 Jhbg== X-Gm-Message-State: AOAM530Y1SU79GHOreCWgxjhQun6bFh1twtTrwiFJT7V0FT/x0/is6fL aa8nED/if53hpFe0eIGfwoE= X-Google-Smtp-Source: ABdhPJzKnCaqTXPeYmwm5CZ35wsB2iaZLEyKqaLK6YsugkTMJaF2uMyfUZekir0LukppqmaPpWrCTw== X-Received: by 2002:adf:8bd4:0:b0:1ed:c1f8:3473 with SMTP id w20-20020adf8bd4000000b001edc1f83473mr11823700wra.435.1645930222106; Sat, 26 Feb 2022 18:50:22 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n4-20020a05600c4f8400b00380e45cd564sm7846077wmq.8.2022.02.26.18.50.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 18:50:21 -0800 (PST) Content-Language: en-US In-Reply-To: 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:227694 Archived-At: Hi Andrey, On 26.02.2022 16:54, Петров Андрей 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.