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: Wed, 16 Feb 2022 11:40:06 +0000 Message-ID: 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="9087"; mail-complaints-to="usenet@ciao.gmane.io" To: 54025@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 16 12:41:47 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 1nKIgt-0002AV-9G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 12:41:47 +0100 Original-Received: from localhost ([::1]:52370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nKIgs-0007EN-3R for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 16 Feb 2022 06:41:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKIgA-0006M8-JS for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nKIgA-0003hI-AJ for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nKIgA-0002Zj-69 for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:41:02 -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: Wed, 16 Feb 2022 11:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54025 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.16450116269843 (code B ref -1); Wed, 16 Feb 2022 11:41:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2022 11:40:26 +0000 Original-Received: from localhost ([127.0.0.1]:47536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKIfa-0002Yh-E0 for submit@debbugs.gnu.org; Wed, 16 Feb 2022 06:40:26 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:56938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKIfY-0002YX-AL for submit@debbugs.gnu.org; Wed, 16 Feb 2022 06:40:24 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKIfY-0005M5-1c for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:40:24 -0500 Original-Received: from mail1.itgrp.ru ([185.8.182.248]:28626) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nKIfU-0003H8-EE for bug-gnu-emacs@gnu.org; Wed, 16 Feb 2022 06:40:23 -0500 IronPort-SDR: hkk/WbOJpBZnOUQ89U+a+wlGDeVScA8jvKug6+u9O7LIYm76cqPjN/C0vfi4P2tOzgzwIT6A8f r8ER866DYX2g== X-IronPort-AV: E=Sophos;i="5.88,373,1635195600"; d="scan'208";a="159590410" Thread-Topic: 27.2; dired-do-find-regexp skips occurences Thread-Index: AQHYIyjXtspqEmtb7Emo34ft0KOoIQ== Accept-Language: ru-RU, en-US Content-Language: ru-RU x-originating-ip: [10.24.4.20] Received-SPF: pass client-ip=185.8.182.248; envelope-from=prvs=03926dc0d=an.petrov@pay-lab.ru; helo=mail1.itgrp.ru X-Spam_score_int: 37 X-Spam_score: 3.7 X-Spam_bar: +++ X-Spam_report: (3.7 / 5.0 requ) BAYES_00=-1.9, CHARSET_FARAWAY_HEADER=3.2, MIME_CHARSET_FARAWAY=2.45, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:227032 Archived-At: Hello, team! I found that `dired-do-find-regexp' does not show occurences in files where the occurences were deleted but not saved. Test: 1. Create directory 3 M-x + 3 [RET] =20 2. Create and save two files (1.txt, 2.txt) containing line "aaa" and the third containing lines "aaa", "bbb", "aaa": C-x C-f 1.txt [RET] aaa [RET] C-x C-f 2.txt [RET] aaa [RET] C-x C-f 3.txt [RET] aaa [RET] bbb [RET] aaa [RET] C-u C-x s 3. Now select the all in dired buffer and try searching for word "aaa": C-x b 3 [RET] t A \baaa\b [RET] Now dired buffer looks like: =20 /home/andrey/3: =C9=D4=CF=C7=CF 20 drwxr-xr-x 2 andrey andrey 4096 =C6=C5=D7 16 15:58 . drwx------ 48 andrey andrey 4096 =C6=C5=D7 16 15:57 .. * -rw-r--r-- 1 andrey andrey 4 =C6=C5=D7 16 15:58 1.txt * -rw-r--r-- 1 andrey andrey 4 =C6=C5=D7 16 15:58 2.txt * -rw-r--r-- 1 andrey andrey 4 =C6=C5=D7 16 15:58 3.txt =20 *xref* buffer contains: /home/andrey/3/1.txt 1: aaa /home/andrey/3/2.txt 1: aaa /home/andrey/3/3.txt 1: aaa 3: aaa =20 4. Choose the first occurence in 3.txt file and delete the line but DO NOT SAVE the buffer. 5. Go back to dired buffer and try searching for "aaa" again. Now *xref* does not contain 3.txt file although it has an occurence of "aaa". =20 /home/andrey/3/1.txt 1: aaa /home/andrey/3/2.txt 1: aaa =20 After saving 3.txt and repeating the search *xref* buffers shows all 3 entries as expected. Please take a look into `xref-revert-buffer' (g) inside *xref* buffer also. It seems that it shows only occurences of the first file. In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cair= o version 1.17.4) of 2021-03-26 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Arch Linux Configured using: 'configure --prefix=3D/usr --sysconfdir=3D/etc --libexecdir=3D/usr/lib --localstatedir=3D/var --with-x-toolkit=3Dgtk3 --with-xft --with-wide-int --with-modules --with-cairo --with-harfbuzz 'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2 LDFLAGS=3D-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: ru_RU.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr eieio-opt speedbar sb-image ezimage dframe find-func help-fns radix-tree emacsbug message rmc puny format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x pulse cl-extra help-mode easymenu seq xref cl-seq project eieio byte-opt bytecomp byte-compile cconv eieio-core cl-macs gv eieio-loaddefs grep compile comint ansi-color ring dired-aux cl-loaddefs cl-lib dired dired-loaddefs cyril-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 68400 9572) (symbols 48 8127 1) (strings 32 22571 1888) (string-bytes 1 741405) (vectors 16 14374) (vector-slots 8 182357 17890) (floats 8 37 22) (intervals 56 795 0) (buffers 1000 21)) Best regards, Andrey Petrov.=