X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 07:43:01 +0000 Resent-Message-ID: <handler.75626.B.17370997766621 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 75626 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.17370997766621 (code B ref -1); Fri, 17 Jan 2025 07:43:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Jan 2025 07:42:56 +0000 Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYh0J-0001ij-3V for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:55 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46730) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYh0G-0001iT-JH for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0001PL-TG for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0004IU-L2 for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=+dRq9nJ9moRZhgjrhPPxtjvesPunyH9LR/m2ZnCYnkQ=; b=KmYvQS0Aee4wee frCmEdLQdtZcChSVBJo2OgNkPZEqXHKJvOsOW5nYtRO/hKkAz35oOeqf4WlgZgSM01JaVc0oVulUz 6wKLPyjBbsuZbF4Yrpx5bK9IeW1MOU7eWRc/wq+LoKksm0cre6vre+xNKxN2ugAkQ4n2alghgvtY8 LNOCaHfO5W+RnRPVXHQH6USq1iFGcAOmK2PV2Q+yYKdi1WXlnLP6NTZRbHcP/QE+TmG3AEdxLhmzt tfihjluMogTyGr68JGH6qXkHDrBJe60leL23yMxAIfKLcVOO+4szevTt1qVsIA8k/TkInRiHbDgOF EaVuDm/cs1LbJCIBqRNQ==; X-ME-Sender: <xms:9QmKZ3Ioj1lXgJCsD8OiTs4OmnYFOGH6-vmlXNRRtOaLCipGvHSh4A> <xme:9QmKZ7LAWC0WRpC63I9r5TOWxO30KeAj6EMSgSeKxLqHNf0sVES-K36DgTU1w-vi0 4ysmU-MS8pZkA> X-ME-Received: <xmr:9QmKZ_tPYgNBDKnP8dIWyvX-ottk4jg2C2NfsrXoeCquIYjfv8I6QJkyg8tdjeIhF36K3JGLKAHW58SJyx68n_1Whxuf0pE> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeivddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gffffkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoeht shguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepgeeguedttdetfedvhfejue duteffudfgveekteekgeffgfeitefhudfhtdehueeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhph gvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhn uhdrohhrghesfhgrshhtmhgrihhlrdhfmhdpnhgspghrtghpthhtohepuddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhr gh X-ME-Proxy: <xmx:9QmKZwb8_m41XU49qyoJsN2d6m1KfgASsUtKepR70hz2VjXO9xUBbw> <xmx:9QmKZ-Z2yh5ABcQ6U_EbWaVhw9xvrLs2g3ij9vjeHaBZ91w-p9wb1w> <xmx:9QmKZ0Dg9ZOCxe-cM_KbFmKkDoIHe-34-bmzwtETvWX7SR5eEidT4g> <xmx:9QmKZ8aMx5RIioe5pN5JMxqzQyFI4u0iCBGQQPtVlou8MQsIwGXl9A> <xmx:9QmKZyqhqSTRfDtrxazjVbGMfaxc4yJOGP4USNRlu_2B4A4A0-BJT12a> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 17 Jan 2025 08:42:42 +0100 Message-ID: <87r051khsd.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I have a directory test/ with files foobar.N for N in 0 to 99 and do: emacs -Q test M-x auto-revert-mode RET % m .* RET ; mark all files Z ; compress them all Z ; uncompress them all again Z ; again and again... ... I always wait until the (un)compress operations are all done before pressing Z again. But even though, at some Z you will notice that your directory doesn't contain only gz or only non-gz files but a mix of both! It seems the reason is that auto-revert-mode at some point reverts the buffer at random points in time while dired is still (un)compressing and that changes the order of files so that it either misses files or processes some files twice. It also seems it is more likely to catch the error when the files take some time to (un)compress, so I filled them with head -c 1000000 /dev/urandom | strings i.e., random but long enough content. I've had that issue just half an hour ago with a directory containing similar gzipped large logfiles. There, the error hit me so hard that I basically had an infloop where the same files seemed to be uncompressed and then compressed over and over again, with just a single "mark all" and dired-do-compress operation. In GNU Emacs 31.0.50 (build 79, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2025-01-17 built on thinkpad-t440p Repository revision: 37b5b3ea91a4ed005664540091e5150d2454d8d6 Repository branch: master System Description: Arch Linux Configured using: 'configure --with-tree-sitter --with-pgtk --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: breadcrumb-mode: t editorconfig-mode: t global-aggressive-indent-mode: t pdf-occur-global-minor-mode: t diredfl-global-mode: t mu4e-search-minor-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t mu4e-modeline-mode: t which-key-mode: t highlight-parentheses-mode: t global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t corfu-popupinfo-mode: t corfu-history-mode: t global-corfu-mode: t corfu-mode: t vertico-mode: t marginalia-mode: t minibuffer-depth-indicate-mode: t global-eldoc-diffstat-mode: t switchy-window-minor-mode: t electric-pair-mode: t recentf-mode: t override-global-mode: t repeat-mode: t global-so-long-mode: t save-place-mode: t savehist-mode: t puni-global-mode: t puni-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t overwrite-mode: overwrite-mode-binary Load-path shadows: ~/Repos/el/mu/mu4e/mu4e hides ~/Repos/el/mu/build/mu4e/mu4e ~/Repos/el/mu/mu4e/mu4e-modeline hides ~/Repos/el/mu/build/mu4e/mu4e-modeline ~/Repos/el/mu/mu4e/mu4e-context hides ~/Repos/el/mu/build/mu4e/mu4e-context ~/Repos/el/mu/mu4e/mu4e-main hides ~/Repos/el/mu/build/mu4e/mu4e-main ~/Repos/el/mu/mu4e/mu4e-vars hides ~/Repos/el/mu/build/mu4e/mu4e-vars ~/Repos/el/mu/mu4e/mu4e-window hides ~/Repos/el/mu/build/mu4e/mu4e-window ~/Repos/el/mu/mu4e/mu4e-speedbar hides ~/Repos/el/mu/build/mu4e/mu4e-speedbar ~/Repos/el/mu/mu4e/mu4e-view hides ~/Repos/el/mu/build/mu4e/mu4e-view ~/Repos/el/mu/mu4e/mu4e-thread hides ~/Repos/el/mu/build/mu4e/mu4e-thread ~/Repos/el/mu/mu4e/mu4e-bookmarks hides ~/Repos/el/mu/build/mu4e/mu4e-bookmarks ~/Repos/el/mu/mu4e/mu4e-org hides ~/Repos/el/mu/build/mu4e/mu4e-org ~/Repos/el/mu/mu4e/mu4e-lists hides ~/Repos/el/mu/build/mu4e/mu4e-lists ~/Repos/el/mu/mu4e/mu4e-actions hides ~/Repos/el/mu/build/mu4e/mu4e-actions ~/Repos/el/mu/mu4e/mu4e-helpers hides ~/Repos/el/mu/build/mu4e/mu4e-helpers ~/Repos/el/mu/mu4e/mu4e-search hides ~/Repos/el/mu/build/mu4e/mu4e-search ~/Repos/el/mu/mu4e/mu4e-server hides ~/Repos/el/mu/build/mu4e/mu4e-server ~/Repos/el/mu/mu4e/mu4e-obsolete hides ~/Repos/el/mu/build/mu4e/mu4e-obsolete ~/Repos/el/mu/mu4e/mu4e-update hides ~/Repos/el/mu/build/mu4e/mu4e-update ~/Repos/el/mu/mu4e/mu4e-draft hides ~/Repos/el/mu/build/mu4e/mu4e-draft ~/Repos/el/mu/mu4e/mu4e-message hides ~/Repos/el/mu/build/mu4e/mu4e-message ~/Repos/el/mu/mu4e/mu4e-compose hides ~/Repos/el/mu/build/mu4e/mu4e-compose ~/Repos/el/mu/mu4e/mu4e-headers hides ~/Repos/el/mu/build/mu4e/mu4e-headers ~/Repos/el/mu/mu4e/mu4e-query-items hides ~/Repos/el/mu/build/mu4e/mu4e-query-items ~/Repos/el/mu/mu4e/mu4e-notification hides ~/Repos/el/mu/build/mu4e/mu4e-notification ~/Repos/el/mu/mu4e/mu4e-contacts hides ~/Repos/el/mu/build/mu4e/mu4e-contacts ~/Repos/el/mu/mu4e/mu4e-transient hides ~/Repos/el/mu/build/mu4e/mu4e-transient ~/Repos/el/mu/mu4e/mu4e-icalendar hides ~/Repos/el/mu/build/mu4e/mu4e-icalendar ~/Repos/el/mu/mu4e/mu4e-mark hides ~/Repos/el/mu/build/mu4e/mu4e-mark ~/Repos/el/mu/mu4e/mu4e-contrib hides ~/Repos/el/mu/build/mu4e/mu4e-contrib ~/Repos/el/mu/mu4e/mu4e-folders hides ~/Repos/el/mu/build/mu4e/mu4e-folders ~/Repos/el/mu/mu4e/mu4e-mime-parts hides ~/Repos/el/mu/build/mu4e/mu4e-mime-parts /home/horn/.emacs.d/elpa/ef-themes-1.9.0/theme-loaddefs hides /home/horn/Repos/el/emacs/lisp/theme-loaddefs Features: (etags fileloop shortdoc dired-aux dabbrev cape-keyword cape shadow sort expreg cap-words superword subword face-remap mail-extr emacsbug misearch multi-isearch eglot external-completion jsonrpc flymake ert debug backtrace cus-start view help-fns radix-tree tramp-cmds puni display-fill-column-indicator display-line-numbers tsdh-light-theme generic yaml-mode fish-mode cargo xref cargo-process rust-utils rust-mode-treesitter rust-ts-mode rust-mode rust-playpen rust-cargo rust-common rust-rustfmt rust-compile web-mode disp-table auctex-autoloads tex-site breadcrumb pulse project editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch elfeed-show elfeed-search vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view debbugs-browse elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib avl-tree url-queue xml-query hl-todo aggressive-indent rainbow-mode pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc pdf-tools pdf-view jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode exif vc-git vc-dir ewoc epa-file trashed diredfl dired-x eshell esh-cmd generator esh-ext esh-proc esh-opt esh-io esh-arg esh-module esh-module-loaddefs esh-util mu4e-icalendar gnus-icalendar icalendar diary-lib diary-loaddefs mu4e mu4e-org mu4e-notification notifications mu4e-main smtpmail mu4e-view mu4e-mime-parts mu4e-headers mu4e-thread mu4e-actions org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-compat org-version org-macs mu4e-compose mu4e-draft gnus-msg mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message flow-fill mule-util mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window magit-bookmark bookmark ido mu4e-obsolete hippie-exp auto-dictionary flyspell ispell tramp-smb which-key highlight-parentheses restclient advice forge-repos forge-tablist hl-line forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist forge-forgejo forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml eieio-custom forge-post markdown-mode noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler eieio-base magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor comp comp-cstr server magit-mode benchmark magit-git magit-base magit-section cursor-sensor crm dash visual-filename-abbrev rg vc vc-dispatcher rg-info-hack rg-menu transient rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep debbugs soap-client url-http url-auth url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp debbugs-compat bug-reference thingatpt kind-icon svg-lib color corfu-popupinfo corfu-history corfu vertico marginalia icomplete mb-depth eldoc-diffstat use-package-diminish switchy-window compat elec-pair recentf tree-widget edmacro kmacro use-package-bind-key bind-key diminish repeat toml-ts-mode json-ts-mode c++-ts-mode c-ts-mode java-ts-mode c-ts-common find-func treesit so-long saveplace tramp-cache time-stamp tramp-sh tramp trampver tramp-integration files-x tramp-message tramp-compat shell pcomplete format-spec tramp-loaddefs savehist smiley gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus compile comint ansi-osc ansi-color ring comp-run comp-common rx xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search time-date mm-util mail-prsvr mail-utils range ef-themes cl-extra help-mode use-package-ensure use-package-core finder-inf cus-edit pp cus-load wid-edit aggressive-indent-autoloads auto-dictionary-autoloads breadcrumb-autoloads cape-autoloads cargo-autoloads clojure-mode-autoloads corfu-autoloads csv-mode-autoloads debbugs-autoloads diminish-autoloads diredfl-autoloads eat-autoloads ef-themes-autoloads eldoc-diffstat-autoloads elfeed-autoloads ement-autoloads expreg-autoloads fish-mode-autoloads forge-autoloads closql-autoloads emacsql-autoloads ghub-autoloads highlight-parentheses-autoloads hl-todo-autoloads kind-icon-autoloads magit-autoloads pcase marginalia-autoloads markdown-mode-autoloads mastodon-autoloads pdf-tools-autoloads persist-autoloads plz-autoloads puni-autoloads easy-mmode rainbow-mode-autoloads rcirc-color-autoloads request-autoloads restclient-autoloads rg-autoloads rust-mode-autoloads svg-lib-autoloads symbol-overlay-autoloads tablist-autoloads taxy-magit-section-autoloads taxy-autoloads magit-section-autoloads dash-autoloads tp-autoloads trashed-autoloads treepy-autoloads vertico-autoloads visual-filename-abbrev-autoloads web-mode-autoloads wgrep-autoloads info with-editor-autoloads yaml-autoloads yaml-mode-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 1064655 204213) (symbols 48 58002 17) (strings 32 291793 11325) (string-bytes 1 8415463) (vectors 16 109237) (vector-slots 8 1246508 142280) (floats 8 918 970) (intervals 56 29636 1707) (buffers 992 35))
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tassilo Horn <tsdh@HIDDEN> Subject: bug#75626: Acknowledgement (31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled) Message-ID: <handler.75626.B.17370997766621.ack <at> debbugs.gnu.org> References: <87r051khsd.fsf@HIDDEN> X-Gnu-PR-Message: ack 75626 X-Gnu-PR-Package: emacs Reply-To: 75626 <at> debbugs.gnu.org Date: Fri, 17 Jan 2025 07:43:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 75626 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 75626: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75626 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 08:34:02 +0000 Resent-Message-ID: <handler.75626.B75626.173710279115904 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173710279115904 (code B ref 75626); Fri, 17 Jan 2025 08:34:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 08:33:11 +0000 Received: from localhost ([127.0.0.1]:35913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYhmw-00048Q-La for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 03:33:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58294) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tYhmt-000485-PT for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 03:33:08 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tYhmo-0003qj-Cu for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 03:33:02 -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=GRYewWTiSOLEwozwYlpufnZ2rbneHUpHVIYJwt7vyPE=; b=M81BWTgMxZf6 jLs9lrpVMbywSamkxqWh1gb5cE/E/aVc4g5ZS6cDMWwFgLrNHqNdLWQ8UnEXIcdfkNAd+YGhx6PHr u7dP/tCIKBegjH6lETW5D7d6wI0E2eYwFSD2pd0DVQ6qDezzMRSX1Re851mEJ3W1RjHai0LnRwN0O MF9TTIUzNMxAc2eghfrUc6Ebi7UD2M89lHU+zuANdoXR2lWeJOGQlJk2OAEbSE5WfW32uw46y4zpu Jex6c8nEeAA9dMAo53Nazimg5GbjFCuLNiy0oRboUvfo7I0RnGort11lOPQv3PoWTxPNNNuYLpcsH 74KOj2RrQkIYGTRt+ATu1g==; Date: Fri, 17 Jan 2025 10:32:50 +0200 Message-Id: <86jzatg7rh.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87r051khsd.fsf@HIDDEN> (message from Tassilo Horn on Fri, 17 Jan 2025 08:42:42 +0100) References: <87r051khsd.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Date: Fri, 17 Jan 2025 08:42:42 +0100 > > > I have a directory test/ with files foobar.N for N in 0 to 99 and do: > > emacs -Q test > M-x auto-revert-mode RET > % m .* RET ; mark all files > Z ; compress them all > Z ; uncompress them all again > Z ; again and again... > ... > > I always wait until the (un)compress operations are all done before > pressing Z again. But even though, at some Z you will notice that your > directory doesn't contain only gz or only non-gz files but a mix of > both! > > It seems the reason is that auto-revert-mode at some point reverts the > buffer at random points in time while dired is still (un)compressing and > that changes the order of files so that it either misses files or > processes some files twice. What happens if you set auto-revert-use-notify to the nil value? In any case, if you stop pressing 'Z', doesn't the list of files eventually become up-to-date? And if it does, why is this considered a bug? The fact that auto-revert-mode catching the directory in some intermediate state from time, when files in the directory are being created and deleted, to time should not come as a surprise, I think. Or what am I missing?
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 09:05:01 +0000 Resent-Message-ID: <handler.75626.B75626.173710468421679 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173710468421679 (code B ref 75626); Fri, 17 Jan 2025 09:05:01 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 09:04:44 +0000 Received: from localhost ([127.0.0.1]:35951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYiHT-0005da-U9 for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 04:04:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45172) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYiHR-0005dH-Lr for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 04:04:42 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYiHM-000054-Ao for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 04:04:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=U1Wd+qQO41lhecjkOaJ+z+OPqFgYgg50bg/3wpFhNbY=; b=I3+08AhmMjqCDHuWA8r6 9lMQ6DRedA9k0/3CXXZBYB64VlY9gDI1lB9UCWFG0859TZfpguvyWRYzDTKOBZxTh4cAWyZ6PzoMS ogVKZrJTpF1mGqvhsMQdAzl2sj7mT2Ti7Qsf+1KIpxdWwSg7+lZNLQW9mM/PwCgbuf3pYZaBrq87D mzp6sQAfZtNcKt+yzKAhK6dLXwdKuZyAdWtcAVBlXg3a6mIMVkKAAbap4NohmCakh4brS0SswIjvT 4tYMt53UVdMqEicwo9b6Jt9lz8taERirXtB2AsNqZxYPRT8TAxy3do2FLNAGR4DYVqa6zgXxi6fdG vy8bs8tl/L9QIg==; X-ME-Sender: <xms:Gx2KZ7KdMJ1KIBfYwqHfqDQ03mJwKBYZVnEaLJh6D7OqVWrsKKrZ8A> <xme:Gx2KZ_Isb5-mOrr986qXc0IQOik6MsF8wSxpZgBUZWDlW3RTSF2V42V7a4QRDN8cn djbKK4xH7NOsg> X-ME-Received: <xmr:Gx2KZzvnLwfaJ0EstAr8n1s8TxnSGT6T9Uf23ar_PVEIvj9-OI3NFm2jOZ02mPThwY6TLFFxotLbHTWyViDGiE0-Fkc60LE> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeivddguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiii esghhnuhdrohhrgh X-ME-Proxy: <xmx:Gx2KZ0bia7JDeRQUV8s3Upse_OvpWHqNimC7zDlIib6TEVj3URR87g> <xmx:Gx2KZyYABm5XOt1FCctxGGaGdL6JPK6MUMRlPA76i-H8Yq1ykiK-gg> <xmx:Gx2KZ4DQntTUZEghiL29yV3mz-m5QBsmZsqh24nSGGQ5rWTdbP4AcQ> <xmx:Gx2KZwZYj9-Qa-y7fziGzIuxPYpWG0l2ejc2dSOEqTj3HWADf_gCKg> <xmx:Gx2KZ2qrVlv778fmEXwRKwS8R9CxYEz4DKiOld_JBfzboyifxnmZrzzt> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86jzatg7rh.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 17 Jan 2025 10:32:50 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 17 Jan 2025 10:04:25 +0100 Message-ID: <87ldv9ke06.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: Hi Eli, >> emacs -Q test >> M-x auto-revert-mode RET >> % m .* RET ; mark all files >> Z ; compress them all >> Z ; uncompress them all again >> Z ; again and again... >> ... >> >> I always wait until the (un)compress operations are all done before >> pressing Z again. But even though, at some Z you will notice that >> your directory doesn't contain only gz or only non-gz files but a mix >> of both! >> >> It seems the reason is that auto-revert-mode at some point reverts >> the buffer at random points in time while dired is still >> (un)compressing and that changes the order of files so that it either >> misses files or processes some files twice. > > What happens if you set auto-revert-use-notify to the nil value? It seems that makes the bug even more likely to trigger. Out ouf 3 tests with my 100 files, even after just one Z operation, I had mixed gz and uncompressed files (starting from 100 uncompressed files). > In any case, if you stop pressing 'Z', doesn't the list of files > eventually become up-to-date? No, as said, after pressing Z, I always wait until the operation is done. And I get final dired messages like Compress or uncompress: 162 files. Well, there are exactly 100 files. So it processed 62 files twice, compressing them first and then uncompressing them again (or skipped some and processed other even more). > And if it does, why is this considered a bug? The fact that > auto-revert-mode catching the directory in some intermediate state > from time, when files in the directory are being created and deleted, > to time should not come as a surprise, I think. Or what am I missing? Yes, that's no surprise. But it should not cause files to be missed or double-processed, i.e., I would expect that dired initially captures all marked files and then processes them one by one. But it looks like dired navigates the dired buffer marked file by marked file and when the sorting changes in between due to a refresh, it misses or double-processes files. Maybe Z is special in that the files are renamed (.gz suffix gone or added) but keep their mark. I wonder what would happen if Z would not just rename but add another file that also would be marked so that the set of marked files grows with each operation. In that case, I assume it would never finish. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 12:18:01 +0000 Resent-Message-ID: <handler.75626.B75626.173711626025889 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173711626025889 (code B ref 75626); Fri, 17 Jan 2025 12:18:01 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 12:17:40 +0000 Received: from localhost ([127.0.0.1]:36250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYlIB-0006jV-T7 for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 07:17:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46288) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tYlI9-0006jI-FN for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 07:17:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tYlI3-0004KI-UC for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 07:17:31 -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=pImWLcCRCEpIlAb28OezKUe9N1YzmKxZgO3Ybn185tE=; b=Gjg2JJ3ZR7C2 4L9j0pi1Roi+kU5A2L5wKds4LVcEvrHNMYaCrgx8p4TecAl3bbbGFOjtek4AWqQvBQRux3HRukpKM 8BYyD7MvYYpZ92iAdXVTeBC8cCzuOlr3ODEo29Hx/NLm1ehzb9/tl16NpraJ7aEbB0+I7v/eRNqKj PisGa3u2Am5TYPGDDqqTHynkcL/JB9xKbsn7fVue5+b3x0oLnvrNRifxM0qiiS8pXHRUOWRBUZYR9 YUUkqorsPenw6k7p6OIySJez/NuHj3ba+nBB9wdhzQbtI0v1iqjkoh6t1q3ijpA46rpRG9B9pHlXT Tu5ODclJS7fCyNqrRPsNmg==; Date: Fri, 17 Jan 2025 14:17:09 +0200 Message-Id: <86cyglfxdm.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87ldv9ke06.fsf@HIDDEN> (message from Tassilo Horn on Fri, 17 Jan 2025 10:04:25 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: 75626 <at> debbugs.gnu.org > Date: Fri, 17 Jan 2025 10:04:25 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > Hi Eli, > > >> emacs -Q test > >> M-x auto-revert-mode RET > >> % m .* RET ; mark all files > >> Z ; compress them all > >> Z ; uncompress them all again > >> Z ; again and again... > >> ... > >> > >> I always wait until the (un)compress operations are all done before > >> pressing Z again. But even though, at some Z you will notice that > >> your directory doesn't contain only gz or only non-gz files but a mix > >> of both! > >> > >> It seems the reason is that auto-revert-mode at some point reverts > >> the buffer at random points in time while dired is still > >> (un)compressing and that changes the order of files so that it either > >> misses files or processes some files twice. > > > > What happens if you set auto-revert-use-notify to the nil value? > > It seems that makes the bug even more likely to trigger. Out ouf 3 > tests with my 100 files, even after just one Z operation, I had mixed gz > and uncompressed files (starting from 100 uncompressed files). > > > In any case, if you stop pressing 'Z', doesn't the list of files > > eventually become up-to-date? > > No, as said, after pressing Z, I always wait until the operation is > done. And I get final dired messages like > > Compress or uncompress: 162 files. > > Well, there are exactly 100 files. So it processed 62 files twice, > compressing them first and then uncompressing them again (or skipped > some and processed other even more). > > > And if it does, why is this considered a bug? The fact that > > auto-revert-mode catching the directory in some intermediate state > > from time, when files in the directory are being created and deleted, > > to time should not come as a surprise, I think. Or what am I missing? > > Yes, that's no surprise. But it should not cause files to be missed or > double-processed, i.e., I would expect that dired initially captures all > marked files and then processes them one by one. But it looks like > dired navigates the dired buffer marked file by marked file and when the > sorting changes in between due to a refresh, it misses or > double-processes files. That's not how dired-do-* commands work, though. So I think an easier solution would be to temporarily disable auto-revert-mode while the command runs.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 13:04:02 +0000 Resent-Message-ID: <handler.75626.B75626.173711902214045 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173711902214045 (code B ref 75626); Fri, 17 Jan 2025 13:04:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 13:03:42 +0000 Received: from localhost ([127.0.0.1]:36336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYm0j-0003eT-NW for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:03:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33464) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYm0g-0003eB-Ph for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:03:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYm0a-0003W4-UG for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:03:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+Egv5jN6k7uNyZeZODqrUvXUEZU9U0qdbi5y7bw0lEQ=; b=EyC020KasoWg1UH86Avh O81PrMJxqAdXJYM6mAmQiDe47fu31QJxQk6OyZey4yQxUBiEg5j3tgsaIc4YDT2jBa11juVQjL6TS EToHGNWlzC2UoZM8FlsmgWDpfcqxi5V7tgu/T4bGf+/K6It3I96ADumMvb+K/Wmb3WpgqmlSht7hT +4YunRDgDsNJ446AzD4EryS1It6t7M0bejTC5brG6CPiBNgOJi5fDOsQraWfH2DQVlMpdiSsYoUru tiUKRl8CNs9zOvrNkkW8riqhRUHeX+2k4eHrTDTNksEwQM2pPDxYJCRonW6PbphiFj6LGNj4UcWgg wmqUAyCf7DzfXg==; X-ME-Sender: <xms:GVWKZ1RjIR-hLFORClvwNt4oUcOsJUYLgescvBI20Ye8552Cp2vpJw> <xme:GVWKZ-ze2vFqN0y_yVN5Rz8AcJNdx4rV_nFP_sNFWtpkg2HcFKZoRs7mm6HbjuHvT TzZGehPPkk6Pg> X-ME-Received: <xmr:GVWKZ61Kab-kALLcW3_9bfScYpP_cJx9_29nz4McKF8CDP7QaUHtPWCiNjlfBthteftv2cvwQZLcaApKWcgLstS4bGAsxkU> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeifedggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhg X-ME-Proxy: <xmx:GVWKZ9ClSzvuj69RWEsFlkK_PpcawyuzY4gCRfSC8kzxkLEwpy7RYw> <xmx:GVWKZ-g9Mq64j6PbfVVuo0AnCpfhph3J00nVqLp1ObWLwnzMT5nXXA> <xmx:GVWKZxpoyRFucFiSDrlFlkYlFrBtoiZkduqC6SN-U06MFVBxr9r6Jw> <xmx:GVWKZ5hA3nzVgaVMjQVzhGVmaRL41pMh3LTT8vTF10z_vjmfPyFQgg> <xmx:GVWKZ5Tdej2g7t_xR8QMX-x8HncIRROBcsG9SBuP7deh0ynfLMnCdjsc> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86cyglfxdm.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 17 Jan 2025 14:17:09 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <86cyglfxdm.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 17 Jan 2025 14:03:18 +0100 Message-ID: <87frlhk2y1.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> I would expect that dired initially captures all marked files and >> then processes them one by one. But it looks like dired navigates >> the dired buffer marked file by marked file and when the sorting >> changes in between due to a refresh, it misses or double-processes >> files. > > That's not how dired-do-* commands work, though. Too bad. :-( > So I think an easier solution would be to temporarily disable > auto-revert-mode while the command runs. First, I wanted to say that this wouldn't help because nobody hinders the user to refresh himself. But apparently no matter how hard I try to hit g after starting the Z operation on all files, I can't reproduce the issue. I even ramped up to 1000 instead of 100 files. What is the difference between auto-revert and manually reverting? It seems that with just manual reverting (repeatedly hitting g during the (un)compress operation on many files), I only get one refresh initially which doesn't change the sorting order (or possibly only with very exact timing) and then Emacs is blocked until all files are (un)compressed. With auto-revert-mode, I get many intermediate refreshes during the operation. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 13:27:02 +0000 Resent-Message-ID: <handler.75626.B75626.173712041518693 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173712041518693 (code B ref 75626); Fri, 17 Jan 2025 13:27:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 13:26:55 +0000 Received: from localhost ([127.0.0.1]:36391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYmNC-0004rQ-G3 for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:26:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40440) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tYmNA-0004r3-6h for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:26:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tYmN4-00073c-PG for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 08:26:46 -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=YXAk3w8h9i9H7NOMic3GxETLogJ7Xmlndy6DGUt46GQ=; b=Hx/S2ggncoH6 /4PlbrfG7XwXDqkuWsrbLzUwETSL701Sgh6dh+YxNYDZNdhlGnAxvZXsT6+SRvMZqY3QJpsVAJBGS fJ+wT+z0W8sfaHyG1MKs0WRJtqlYIMdDvESh3cKvOljswzhwpzqxZvazhL36LvR+WsNoCSITuVU2L P7LYNLCBGxTyp/McP80ltMZD7ZVsWm4odZUbjtUFW8kMvWuCWcfT6PIWGmwA1KXU/tyOcMI9GVG14 CFtnxw6Rt70h3TTa3ilOT3nnXnnenEb5g58ZaLZsSi3CDiJKjkZ9xHqAOQAza9Lq+ButCCsrGRad2 E2/SvO7i1tMA2WrNJ69Xkg==; Date: Fri, 17 Jan 2025 15:26:42 +0200 Message-Id: <86msfpefl9.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87frlhk2y1.fsf@HIDDEN> (message from Tassilo Horn on Fri, 17 Jan 2025 14:03:18 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <86cyglfxdm.fsf@HIDDEN> <87frlhk2y1.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: 75626 <at> debbugs.gnu.org > Date: Fri, 17 Jan 2025 14:03:18 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > > So I think an easier solution would be to temporarily disable > > auto-revert-mode while the command runs. > > First, I wanted to say that this wouldn't help because nobody hinders > the user to refresh himself. Sure, but is this a reasonable solution? Users who turn on auto-revert-mode don't expect to need to revert manually, I think. > But apparently no matter how hard I try to > hit g after starting the Z operation on all files, I can't reproduce the > issue. I even ramped up to 1000 instead of 100 files. > > What is the difference between auto-revert and manually reverting? It > seems that with just manual reverting (repeatedly hitting g during the > (un)compress operation on many files), I only get one refresh initially > which doesn't change the sorting order (or possibly only with very exact > timing) and then Emacs is blocked until all files are (un)compressed. > With auto-revert-mode, I get many intermediate refreshes during the > operation. Yes, because auto-revert-mode works as part of the Emacs's main loop, whereas user input is processed only when Emacs is idle. Does let-binding inhibit-redisplay in the auto-revert function help in any way?
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 14:14:02 +0000 Resent-Message-ID: <handler.75626.B75626.173712322027373 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173712322027373 (code B ref 75626); Fri, 17 Jan 2025 14:14:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 14:13:40 +0000 Received: from localhost ([127.0.0.1]:36490 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYn6R-00077R-Ji for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 09:13:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42962) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYn6O-00077D-KV for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 09:13:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYn6J-0007T8-02 for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 09:13:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/iFkji4CYgL4bC1MpLVSqn3uSO6fRF83FbfvQoUVgfw=; b=jInRdTXobqYdJ9co7eV2 DHis33kU6pfDqeUm7hkPvbvkU16b+3E40ttXuw0h24qmxm+eW3IVIhRE12lFP7u5ctKaydw5cCEL4 8wr0g5exrS3Llt3eBLDxuZIC3HTvuYyUs/Yg+I+keW2fTsrl4NKJlAP7IvtXlL+r/8v0LGU0PUuKm I+tI95Yzfe1Cz2niCGg6FHNeDChSAzNO6AS6KmtTto0R8EUPvmF9WQPdoCciqAvGUrJOosSWHl4IR +g9ZV60rdVOQQRW6Fd9M5PpA2j3aWgsKYtA/5CLCiyURRldb73IdHV4pQIZbONsUd4jXWmv52VJpX zviCZd+yistGrQ==; X-ME-Sender: <xms:hmWKZ0ZqvTaaj6dGN8Z8wHTnRrIwxNpWYK3XcurFuiuZemcuHujz9w> <xme:hmWKZ_Y_n3A-da2jFdWPJVA4b9YAt9eexrh2F5XRJ-GKCDQVQtY5YiDVOROc6aKrs fck9lV82a83pQ> X-ME-Received: <xmr:hmWKZ--XbUlXTxQJyJvt_bPQZfOe2-elDKKTOQlr2BJ6Fu4ptTWJ6sd_KFSDfy12yej2jIksBlYjXalvnu8GIbsBb4PGgjk> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeifedgiedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhg X-ME-Proxy: <xmx:hmWKZ-rWYVF9cxZ8UfzjAK3HnabUPxxFiK5w0OSkVnUMldB7mnydgg> <xmx:hmWKZ_qButWwhffnqBjfhpgLP3fqUbKhHK_SSDqchf0yatMayMSn7A> <xmx:hmWKZ8SPjrAfLYkrmN6EWxWS1BeNHPyPCajeEb7NL64S24YSjtXZpg> <xmx:hmWKZ_rfKjXRhK5LY4IdDCUBkWD3qZptWNhAx4iWsBEsRd4VFajgBA> <xmx:hmWKZ07GpHdrbSGjO6WB_jafVkylIqfyvseLdmAllLiNHx9VYMGBPOhW> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86msfpefl9.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 17 Jan 2025 15:26:42 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <86cyglfxdm.fsf@HIDDEN> <87frlhk2y1.fsf@HIDDEN> <86msfpefl9.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 17 Jan 2025 15:13:24 +0100 Message-ID: <87a5bpjzp7.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> First, I wanted to say that this wouldn't help because nobody hinders >> the user to refresh himself. > > Sure, but is this a reasonable solution? Users who turn on > auto-revert-mode don't expect to need to revert manually, I think. Of course. What I mean is that I expected to be able to trigger the bug also by reverting manually by hitting g, i.e., without having auto-revert-mode turned on. But that seems to be at least much harder. >> But apparently no matter how hard I try to hit g after starting the Z >> operation on all files, I can't reproduce the issue. I even ramped >> up to 1000 instead of 100 files. >> >> What is the difference between auto-revert and manually reverting? >> It seems that with just manual reverting (repeatedly hitting g during >> the (un)compress operation on many files), I only get one refresh >> initially which doesn't change the sorting order (or possibly only >> with very exact timing) and then Emacs is blocked until all files are >> (un)compressed. With auto-revert-mode, I get many intermediate >> refreshes during the operation. > > Yes, because auto-revert-mode works as part of the Emacs's main loop, > whereas user input is processed only when Emacs is idle. I see. Can emacs become idle when waiting for a process to finish (like gunzip)? If so, the problem could also happen with manual reverts instead of auto-revert-mode. > Does let-binding inhibit-redisplay in the auto-revert function help in > any way? Not at all. (I've bound it to t in the top let in dired-revert which is the revert-buffer-function in dired buffers. That's what you meant, right?) Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 19:40:01 +0000 Resent-Message-ID: <handler.75626.B75626.17371427679320 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17371427679320 (code B ref 75626); Fri, 17 Jan 2025 19:40:01 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 19:39:27 +0000 Received: from localhost ([127.0.0.1]:38883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYsBj-0002QC-7e for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 14:39:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40084) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tYsBg-0002Pr-3A for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 14:39:25 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tYsBa-0001nP-Ns for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 14:39:18 -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=0e7DsPDuk5irkve4gsLMC8hHRX2EBfQU6UOQIbM5sAE=; b=MONOVq28/54j aze5D72Gsizc5I4cqVOBWC1MX+4Tjv0xizTbu7kBhrhP2fqbY0a8T5o1PpA6md1aXt4DR+ike99Mk nVwROAmiOWBzx4PAvaCZaM+Besx7DemgqWUeIl9GieRakGVrwQ5IHl8Ib7qJkjlgHh/g45jQdZb7M kwPb+PmyFy9W3ehwTpmUzhmEikLUj96/A55K52pgUOY8xAaNRKrTwXlKawBtTinFHngt0D8+2YWWf Bdpje7qijfVhepgo+ZUgAIv8MuMdRZdds881dir1qjLQmqNJg19SzTyGa/EZOF2PDfDzACvMM+mdm ZRjjQwx60BdzaT4mrIgJWQ==; Date: Fri, 17 Jan 2025 21:38:29 +0200 Message-Id: <867c6tdydm.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87a5bpjzp7.fsf@HIDDEN> (message from Tassilo Horn on Fri, 17 Jan 2025 15:13:24 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <86cyglfxdm.fsf@HIDDEN> <87frlhk2y1.fsf@HIDDEN> <86msfpefl9.fsf@HIDDEN> <87a5bpjzp7.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: 75626 <at> debbugs.gnu.org > Date: Fri, 17 Jan 2025 15:13:24 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > > Yes, because auto-revert-mode works as part of the Emacs's main loop, > > whereas user input is processed only when Emacs is idle. > > I see. Can emacs become idle when waiting for a process to finish (like > gunzip)? Not if the process was started with call-process. > > Does let-binding inhibit-redisplay in the auto-revert function help in > > any way? > > Not at all. (I've bound it to t in the top let in dired-revert which is > the revert-buffer-function in dired buffers. That's what you meant, > right?) No, I meant in auto-revert-buffers. But maybe what you did has the same effect.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 21:39:02 +0000 Resent-Message-ID: <handler.75626.B75626.17371499011954 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17371499011954 (code B ref 75626); Fri, 17 Jan 2025 21:39:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 21:38:21 +0000 Received: from localhost ([127.0.0.1]:39077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYu2m-0000VS-TC for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 16:38:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46496) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYu2j-0000V8-VY for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 16:38:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYu2e-0003hF-NJ for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 16:38:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/XhrxzEfLPxxijd2IrJX2AIzUhkfhRxCuRQ3plVc++4=; b=Vgup363Uy9ebiwRiiV9W JgVKnMyMerjrzNe4AJt2sLLtmPn45KeNjzhnOLvv7ZmTYZwtUOcZcbIPxLhlRx6DGl18N1lI92b7C RkCxipAhg8fnJtJhhtP4ZWQ41HzGQV2i/h1XbEOkN4AGon2SzH+l5DsY5wJivd4UB/iC6Zzp9CT+C J/U8jlVQkJxpp3J251/2MldxykhySq4xbSEbezO95K4WA7qoTipJqu6glGP/OJkyWhowd11f3PXaI QuiS177516StN8QN0QAGdzloLfXZs4ttK1TCiUkBjaVh1Wdi60u/IC5wvQZrRbKqcnSZW3BsrrvK0 DY5vjy0ykuTriA==; X-ME-Sender: <xms:wc2KZ8pQ-oTS11LtbQmgv81EnM-SYPwYgVXx8GRpQTmfle4rN4XgKA> <xme:wc2KZyr-V3Ew-X4HVGWr2BKWW7L5xIV0V37UZulNfC_lQDsPimlTm__7Gg7VoTCxQ EW_p5cwBXsMCg> X-ME-Received: <xmr:wc2KZxNM6QIbr7uGas0nT4jT8NB8-hfgL4swuRHxFjRIxmRZjN4PLBAceQcJiyy9bwhnZg0EmICQa912PLPHdxCUCHkyH8U> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeifedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiii esghhnuhdrohhrgh X-ME-Proxy: <xmx:wc2KZz7iFbhf7ZfI150izhyutED7uCCDyrCC0OFL6E-nUSaeyyDYxQ> <xmx:wc2KZ77MAJwlnKlg32QaM2S7zTBxj6Duhxsr40PgFtgy8152qMroog> <xmx:wc2KZzh9WCj4zvhpQ2NymrO_Aqp0vqgJ6wTtYNgyho-Uu_g_pQiuWA> <xmx:wc2KZ14yayBdPUnI-S_OwgVCsd9c2U71OSekYysHxs7DATHAWeF5QQ> <xmx:wc2KZ-KyPRg4OLcYo_g7pa9isLxgNu6yJw4xTikjg16Tp3i0IntQqXJF> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <867c6tdydm.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 17 Jan 2025 21:38:29 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <86cyglfxdm.fsf@HIDDEN> <87frlhk2y1.fsf@HIDDEN> <86msfpefl9.fsf@HIDDEN> <87a5bpjzp7.fsf@HIDDEN> <867c6tdydm.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 17 Jan 2025 22:38:07 +0100 Message-ID: <87o705i0jk.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> > Yes, because auto-revert-mode works as part of the Emacs's main >> > loop, whereas user input is processed only when Emacs is idle. >> >> I see. Can emacs become idle when waiting for a process to finish >> (like gunzip)? > > Not if the process was started with call-process. I see. >> > Does let-binding inhibit-redisplay in the auto-revert function help >> > in any way? >> >> Not at all. (I've bound it to t in the top let in dired-revert which >> is the revert-buffer-function in dired buffers. That's what you >> meant, right?) > > No, I meant in auto-revert-buffers. But maybe what you did has the > same effect. I've also tried to bind it in auto-revert-buffers with the same effect. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 17 Jan 2025 23:36:02 +0000 Resent-Message-ID: <handler.75626.B75626.173715690623369 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173715690623369 (code B ref 75626); Fri, 17 Jan 2025 23:36:02 +0000 Received: (at 75626) by debbugs.gnu.org; 17 Jan 2025 23:35:06 +0000 Received: from localhost ([127.0.0.1]:39306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYvrm-00064q-A7 for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 18:35:06 -0500 Received: from mout.web.de ([212.227.17.11]:45231) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tYvrj-00064B-BB for 75626 <at> debbugs.gnu.org; Fri, 17 Jan 2025 18:35:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737156894; x=1737761694; i=michael_heerdegen@HIDDEN; bh=mX0MIXTxQAkpX7/fLHLlAHsWXdaFEEqXdbGhsq7hGVk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=rkMGBnRxeMe4SlisvbqRYm0URkELu578bV86cyX5agfoOZ4JAR0v+36x+TiPglRs ewuYNxvqW61bp15+08WklBsZtJP6Su6z6wUuhboWMUTNRj+muzvMqfpq/xNJwJOVm xJXg7367/ox4b0q298TYJiaVMcLy+f1uQ8y8xHlipCOX0FrqJglMmdajJz1tiaT+w Y/xhdmpsqeyVS+UYZVEZz6NNMslNXGrfARpkEYuNwfxdpnndajp3P3rjVelkRAhM9 rFgBlC+sd239OSZubPNnf4zVuFf2PYt5Fh08Fu7pw52egiSQG4ciwPyIxIOyus+av 9QZn/6F2fW5YrZlCDg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MODiN-1tsweF19DN-00IMa3; Sat, 18 Jan 2025 00:34:54 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87ldv9ke06.fsf@HIDDEN> (Tassilo Horn's message of "Fri, 17 Jan 2025 10:04:25 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> Date: Sat, 18 Jan 2025 00:36:10 +0100 Message-ID: <87o705hv2t.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:hGcBljRJz3wzuvmus10maWb79XZco4ipt4U3AzOmqtEBwlS7ShW +IUdTJ58b+jADvitr5rnEexfS5VbqZK7GEtbXoZKaeee2R1ZtjUppNpChK4oFzHImbqnotr QFBh4ObW3TDCGDnRJuHu3fyUrDAAkFERNIAl0KjKD9aVBQc2e0lxRM519AyHtcxOAPWfqmR bK4YNeBIDeUWWHmjFBjKA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:I1S0ng3SZ/g=;WQcnWtwoA4DUyicVgylOHcghLPg Xty1SfQ9jJFYBLzVF3/oEM7Zfd62c3qABeFdxIZsRM05RQ9eJDVwrEEFyX+pVGje+p/q8h1VT HLy7JVy+zfq8UU+NwzWyYRUUSluGurNoEmcL5DPlK59W3I/XyFbTF3w/3GEA0gkYg3LhUVwhf JdAUXG8nbNK9t5mixSjJEFBigQLC6F4WwRiopCWmfrLmZb9gindfYmmk9DCSD6DWeaGk4KUnJ 2a4aACcT+WmOqfIQ8LES6rrBvuMKEEJMTJGDADfPTRq9PvgO3R/yWqf0omgcxTjHsk8qjbVbE 3/0dFafooyzPOsft0CI/YjzbWEXB0UcdYZRUpSlfQKWXsFCJkPfWcAWWaLCakSg/wx4e3bBYa FUlolfsQgaGqv+EHpmh8+bWqTGpHZjIwwUkaevYVLG1LQrR1ZINyPUN7JG0HIP1xHmqoWq+Sz 66QdEKfECbgH89Xbw1MabOzZW0j2Ob8PVhYeLLMmUWPxlesH+yQlwv2V5aSQK2CTMJTG9H2J6 8dl4dxuyUs7aqoZk6QrcGlzb8e8QSCpDpnWXbb+LKSGz0LHI2GEPPqcp8f3/N/I+ktvMIJJvs CsTEaTSoGFQjGBDtyZo4mkiEXM+wIle6SGWgC15t2WWJeQZC3meC9d5wSafmb0ZHDhd6WGJ7u bB4UhCdB6FYWiLCJ088BTLvSIn7UIHQAsm64O1ZnlAIgdJMo8/glFRe1nSbxL7sFIRpxVGCxY IdU4/k/c4Aoq9ZsLZPmcnygJYoe3JdGNxpPSHx5X5xZp3jVVJqAvSOfmpHQ++VECCK4Y0QCq4 J69uQgLc+cynDENPeig2dfQV7uSf2rBm3Vd7Zkm33m15g0xbsZ8poZoWoBZ0yGFiIQTTY73iW jkY7ifg4OhF2UCxZsyCI/xXWW/KpipQHw4OVIRc3CGNkMMq1zwFT1tC43r28ySoM1ZQ84KeEE pBPDjHAvxqAkqbNI9CQJ1vOJowkGFacVcEYamdCMc1388/1iGCcawB7Kvv782CYVf8zwdNsyD /JToYejMtSVYRATF/KjIoiowlfXJrB7ScypOE/tx9nepCEgBIvJJtYJHrINvRnM5fozn3H1S8 MZ+r/SqjC2eOCs4Zc2dxU5KUq1Zw9CZVef++8K/xv8xj9He5itDldzbrH8hmDGGx5K0c1jiic w0bM9qF3jOeJoooJQgpqxVoa9hdjflpx/bx6NT8AFpw== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Tassilo Horn <tsdh@HIDDEN> writes: > Well, there are exactly 100 files. So it processed 62 files twice, > compressing them first and then uncompressing them again (or skipped > some and processed other even more). It could be that the order of the marked files changed after reverting. But even if not: if you look at the use of the variable `next-position' in `dired-map-over-marks', it is also possible to get such an effect if the line lengths change. So the command `dired-do-compress' is not robust against this effect. Other commands calculate the complete list of marked files first, `dired-do-chxxx' and `dired-do-chmod' for example. So I think it is not unavoidable that it is like that. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 18 Jan 2025 08:43:02 +0000 Resent-Message-ID: <handler.75626.B75626.173718974929423 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173718974929423 (code B ref 75626); Sat, 18 Jan 2025 08:43:02 +0000 Received: (at 75626) by debbugs.gnu.org; 18 Jan 2025 08:42:29 +0000 Received: from localhost ([127.0.0.1]:40024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZ4PV-0007eV-E3 for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 03:42:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50996) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZ4PT-0007eD-IB for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 03:42:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZ4PO-0006YN-41; Sat, 18 Jan 2025 03:42:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=TNiqRXyeLuHiOoWK3/9uuoXX6+brzTtPKrGiReQlpKM=; b=Mw7poy9teZUcueKuvfUG VzbN1QB/21b4MqLzQnbLczKt1SrTtIkD6KB40yPtNr6r1asuoTqdrHOCf4i8eK+kAbjN7EfKzOVIw p3vskZS4kcOz4jonkn633ff6U3hFYfQMKNGOuBqI/++z0d4ZcB659DHS3OK3Fv6rdfiepkwscRjtl LZGsx6g0y+qRO+jhTZ8MRqxfNqjLG4DsT0dYYijHHwZHJVN2NG41gnhUdr3W7tZsPdPmUNIgk6Oy6 +ZWJ2/JpZBi8W8g+pnglLRd+i8q1rA82nIBMHAXSh2TqIAAah0qxclzkqydqJTz9UKvmGXFK6ho/Z Ehtbn0qKreKdIQ==; X-ME-Sender: <xms:Z2mLZwIBYjT5E8Go2Z9anwwDApuaoolQ-wrJUE6KQjAx31L-9oBxEQ> <xme:Z2mLZwJWcEyHmRtdm4jLPltdVBVakJoA--XbNIrzMZSNLTdfpsga_e33k6ntAkyh1 ucsbiMYm0Cijw> X-ME-Received: <xmr:Z2mLZwvDUnbm6MRHfJr4T0hng6uXMcjCiNqJcxl_r9QZ1JVGq-oHCMFyGkTsFa9BUk5UKx_g264-V07mGnSl0GzV4xceW-M> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeigedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiii esghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseif vggsrdguvg X-ME-Proxy: <xmx:Z2mLZ9ZZgFkHfc8JJAz5_A13N1AYJ_GdhqsdrI74FoeqNhPvLy_vPw> <xmx:Z2mLZ3ZI6A2n3pkf-COi5hdz7Qe3XiwLrvR9NYfw6AsdJVpFXTNmLg> <xmx:Z2mLZ5B6rz7Mzj92IFwM5mkCehdGE0Nu-RbgPPmXX9Wn-6r0xD1hng> <xmx:Z2mLZ9YgMqimY1vZY01PAvkufDCspqkN_oPAKoKqej9D9O8IjEXXww> <xmx:Z2mLZ_oL0YiC6lQ5HaR4toN1WSJ8BAZ1dESiAaQ6Spys2do0YYwyejzr> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87o705hv2t.fsf@HIDDEN> (Michael Heerdegen's message of "Sat, 18 Jan 2025 00:36:10 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sat, 18 Jan 2025 09:42:11 +0100 Message-ID: <875xmcpl7g.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >> Well, there are exactly 100 files. So it processed 62 files twice, >> compressing them first and then uncompressing them again (or skipped >> some and processed other even more). > > It could be that the order of the marked files changed after > reverting. > > But even if not: if you look at the use of the variable > `next-position' in `dired-map-over-marks', it is also possible to get > such an effect if the line lengths change. > > So the command `dired-do-compress' is not robust against this effect. > Other commands calculate the complete list of marked files first, > `dired-do-chxxx' and `dired-do-chmod' for example. So I think it is > not unavoidable that it is like that. What is the reason that there are two different approaches to process all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files? Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Ship Mints <shipmints@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 18 Jan 2025 11:19:01 +0000 Resent-Message-ID: <handler.75626.B75626.173719913117499 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173719913117499 (code B ref 75626); Sat, 18 Jan 2025 11:19:01 +0000 Received: (at 75626) by debbugs.gnu.org; 18 Jan 2025 11:18:51 +0000 Received: from localhost ([127.0.0.1]:40461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZ6qp-0004YB-Dt for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 06:18:51 -0500 Received: from mail-vk1-xa33.google.com ([2607:f8b0:4864:20::a33]:53266) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tZ6qn-0004Xs-7d for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 06:18:49 -0500 Received: by mail-vk1-xa33.google.com with SMTP id 71dfb90a1353d-51640f7bbd3so808277e0c.2 for <75626 <at> debbugs.gnu.org>; Sat, 18 Jan 2025 03:18:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737199123; x=1737803923; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=R6KXOBhBQCfhrkuNDq1VtcntPEVVmua1pvG2y18mz+Q=; b=MoIXPtpgbFY3scN97wK/NddeZ8SGDqpg58PV19FtWm3/hYNoktROKwpiq8K7BogWLZ njRSZGBO5bZ+EOYJBlZoPL4ZL/xWHt4HlQWAInMSDI7A+RJwhHKGu3J5k19gsEKCwpAb KKNwIaHZCuX3gwvVY+/oN9CBvxTT/7xeqkKN8G1lyl7BtBmpwedsI0sJ7FO5+gay4W5+ KUS+N/GHuWarYrbI8URMYkxNFoQQS8CUTfWcCtMMTbzfrplVmqOuZVfx+tkxIJtf17aI 88gRkgRfAhGofOndV9+YRFZoZ4HP2X8cjPHq14FACMzXNV3Z1fDAU2fjqHEilJopNz1u WT1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737199123; x=1737803923; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R6KXOBhBQCfhrkuNDq1VtcntPEVVmua1pvG2y18mz+Q=; b=GUz7cly6fDOCHfzbCDCut0GNLU9+9xyKQZrtuGAAqYfuq3kF/UgsI9ScwPCB6sFN3e 065NZRKXCNJTJU444p6VWhOKharnBtoC7J//wcZKPeQjleph6fwNivCLY4GeJVQAsSsE qPEujLDgMDVJcDOXdOQq8g8MS5qHa8A7gHNz5f+rQjlFiEztdI69tPw6FULgxt82uz8o OYs5v2rcHn2BJuXv7LBqY/Vfzeddx7yEA/9QxQyjKZ6fy6QftzmZenSdp85Q3k8iaFoR KC+6w/PSbRGhwx53eVN/3hLMEFSDyM6SvYie3CMRpaZDIGGlBcac7sDLo69bGFmyBt4e cL7Q== X-Forwarded-Encrypted: i=1; AJvYcCWhYIYwuyA6eW6B0RQhB2Y2bzwCjNAlFDTFbUSzrNQvm78rtQWj7pVQtwqtTFnQtdmoj/RBPw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzpzCFv7m0WEW2ssLQAtcOoYZ7WNl7di9Knw+kkrqdzfh/4M0Ba 10t6FSL7kH+D0JqwaoARgAfa2EniM5/BXiHI4NInI83L3vUDNdmmDw+rdSbXD/rf6vuxKmXDXBA NPCEvJuPZ8h7ucYQGTGMnmqkVh3c= X-Gm-Gg: ASbGncu9flD+CNm275jfWS+afzlze2nQjcJxy44zR8pPL/7SXFWIzGFsEEmmOQ0IoZ7 8mJ0KTr0Yl0jmu9BHZCpvQOSmu/HJ3p+JsdWW2lIhOmNZKa5T9jo= X-Google-Smtp-Source: AGHT+IF17+2NEpXIQ/ULHR+dbOoUYLYGqepK0N5OAdDoCSCrYWAAXGj5dQZnsGDm/7jBDb14cDsF8OFbMsdGyrGYAC8= X-Received: by 2002:a05:6122:8c3:b0:51c:baa4:122a with SMTP id 71dfb90a1353d-51d5b26cb5cmr5603063e0c.5.1737199123333; Sat, 18 Jan 2025 03:18:43 -0800 (PST) MIME-Version: 1.0 References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> In-Reply-To: <875xmcpl7g.fsf@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sat, 18 Jan 2025 06:17:09 -0500 X-Gm-Features: AbW1kvbZnXzFoZy1-5mOmxJIWHtmSEbvER_gGJvGyRHIa8pV3SBFjk3AdeAteQM Message-ID: <CAN+1HbqgEtQcYDa7dUAy0eJxrcKwBhZpax+SrXPL+wsrcvwx8A@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000a68cc0062bf930c6" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000a68cc0062bf930c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm sure you know this...you could add dired-mode to the global-auto-revert-ignore-modes list if you have global-auto-revert-non-file-buffers bound to t, which I'm guessing you do. On Sat, Jan 18, 2025 at 3:43=E2=80=AFAM Tassilo Horn <tsdh@HIDDEN> wrote: > Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > > >> Well, there are exactly 100 files. So it processed 62 files twice, > >> compressing them first and then uncompressing them again (or skipped > >> some and processed other even more). > > > > It could be that the order of the marked files changed after > > reverting. > > > > But even if not: if you look at the use of the variable > > `next-position' in `dired-map-over-marks', it is also possible to get > > such an effect if the line lengths change. > > > > So the command `dired-do-compress' is not robust against this effect. > > Other commands calculate the complete list of marked files first, > > `dired-do-chxxx' and `dired-do-chmod' for example. So I think it is > > not unavoidable that it is like that. > > What is the reason that there are two different approaches to process > all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files? > > Bye, > Tassilo > > > > --000000000000a68cc0062bf930c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac= e">I'm sure you know this...you could add dired-mode to the global-auto= -revert-ignore-modes list if you have=C2=A0global-auto-revert-non-file-buff= ers bound to t, which I'm guessing you do.</div></div><br><div class=3D= "gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">O= n Sat, Jan 18, 2025 at 3:43=E2=80=AFAM Tassilo Horn <<a href=3D"mailto:t= sdh@HIDDEN">tsdh@HIDDEN</a>> wrote:<br></div><blockquote class=3D"gmai= l_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,20= 4,204);padding-left:1ex">Michael Heerdegen <<a href=3D"mailto:michael_he= erdegen@HIDDEN" target=3D"_blank">michael_heerdegen@HIDDEN</a>> writes:<= br> <br> >> Well, there are exactly 100 files.=C2=A0 So it processed 62 files = twice,<br> >> compressing them first and then uncompressing them again (or skipp= ed<br> >> some and processed other even more).<br> ><br> > It could be that the order of the marked files changed after<br> > reverting.<br> ><br> > But even if not: if you look at the use of the variable<br> > `next-position' in `dired-map-over-marks', it is also possible= to get<br> > such an effect if the line lengths change.<br> ><br> > So the command `dired-do-compress' is not robust against this effe= ct.<br> > Other commands calculate the complete list of marked files first,<br> > `dired-do-chxxx' and `dired-do-chmod' for example.=C2=A0 So I = think it is<br> > not unavoidable that it is like that.<br> <br> What is the reason that there are two different approaches to process<br> all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files?<br= > <br> Bye,<br> Tassilo<br> <br> <br> <br> </blockquote></div> --000000000000a68cc0062bf930c6--
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 18 Jan 2025 21:18:01 +0000 Resent-Message-ID: <handler.75626.B75626.173723507019174 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN>, Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173723507019174 (code B ref 75626); Sat, 18 Jan 2025 21:18:01 +0000 Received: (at 75626) by debbugs.gnu.org; 18 Jan 2025 21:17:50 +0000 Received: from localhost ([127.0.0.1]:43947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZGCT-0004zA-VV for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 16:17:50 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:38242) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZGCQ-0004yr-AV for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 16:17:47 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50IIoNmO016360; Sat, 18 Jan 2025 21:17:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=+ZI1/FmeS3/T/OIx9IjFB6k82j2kx2moxEaqv+Jg6n4=; b= TcWb8t5KLfQe6c23lRU0cY33cg6qpP0dwyuxSmxKdWNLDAVesRzI1RSvPHQV6Aor KNtRWGhT/tA/0YOKacDdx3VxyLx7Sa4LPDY2pVXFeT0knAXfm0abY3CTKUolVPjx 49DwJPAKGcauj3xvyK5/F2Xm1LRhmTtp2VP/tpwZtz3xBCMGCr+X0KYXkcpnF0M1 uJK/C7f1dL6H3KObL6OuGaOk1bf5erI52YLnThjIcan9hNUiONLeLHrociYODyGj oHBg1op3hJHMabRVuxngTVbLeGrDXq0EysBwaN4dql8LyEwrO0Heo6ttOcDRS4mh KBAEoH0eaDU0BUHsQazNPw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485rd9kk2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Jan 2025 21:17:45 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50IIZXCH014318; Sat, 18 Jan 2025 21:17:44 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4482r71c51-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 18 Jan 2025 21:17:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YY+2zFxeMx1+yRG55FSUcvExpRvTmhp+lsFkvXSYAJ71fr31P94fKMHn3agpQ68UooU5gzWKWqD/caTbICFqzlpijphJZR2m5ZiVsPVdjZSdAtMu5kEtopwR8LAqW7Kgi+jyvWFQ/vjwa5QrOZ8Fk4hMf5LHxnGSs4tmQAFPRmEz8l3Z8M9C8c4RVVbwHlHcgM2FL6y+pY8k+k++GZXxQzKXXs23np6opmdv/OOvSQtbIZuYZPXkh4e0K6ifYPySGBZCtQmCc50pEVE+Qgu8/SEPE+KpQc/CLpe9dwn46IAYclDEqFTN5fr57yC4L2ZQzTcKITgZGZbuFxxeSFOa9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+ZI1/FmeS3/T/OIx9IjFB6k82j2kx2moxEaqv+Jg6n4=; b=s39f2Ml2YOcNu7vjPuH+EQb+vegJBy7+2xufUDmUllJI5Wzp4EhXiTEGupDCuSosP/PijjFARe7LCJIW9jaqBr8RggkxlQlABfuwYW8NHuJTZNeTv3swIJhpf03Lf2YF2NblD0CXSY6ZNMfovW+C6weuSAm3ew2fQZIJjm7481VHvIob95yz0VqR0kuaUyIwkuEu0dZoKaGt/INPOQoRiII9zIuiqlCDkoQmKhDG/MQWMlezN+zOPF0Trv/prcjbuvblTfbN4dKNMYW0uzSaAlTMjpbmBr8DZLu/Bgen36sxOW5pW+Fni5tGhajsT6wO4JNpnZWhJlGynLn8y6Bjyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+ZI1/FmeS3/T/OIx9IjFB6k82j2kx2moxEaqv+Jg6n4=; b=mspJ3T6gSIscnbYr8UsbSk+xaxWaTAB4Lc/ks9nFaSu0e5sZnt8IU8/tpiAsj6d1gkYqc8lMFr1CKc0+vViEMeYDsg//43SgDpxD2HYNTwoYzGnrfjfZAiSVFNjsJGGXE2hoU4uZuuuCdnLji2/hdUydTBBniOScYAcfGJjtn2U= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by BLAPR10MB5044.namprd10.prod.outlook.com (2603:10b6:208:326::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.20; Sat, 18 Jan 2025 21:17:42 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.014; Sat, 18 Jan 2025 21:17:41 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHbaYUR2AV+Odf+30mMqOXofCx5XrMdCGug Date: Sat, 18 Jan 2025 21:17:41 +0000 Message-ID: <DS7PR10MB52328A4E06369AA24A2E7113F3E52@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> In-Reply-To: <875xmcpl7g.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|BLAPR10MB5044:EE_ x-ms-office365-filtering-correlation-id: 3a04b94a-9a4c-43d3-c4b2-08dd38058aee x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: Yjewbpn7HjUGF9srkiWSQgQeBWm3nT35JgsEf0XIMtITuP3T9fiVfJ+7wSnCUz76rvS7HeNUiYAee5VTDpHvkxOeRPeBmZpa1PqLHkINCXEc4Pl5VtCHsoiTjinlOp6+Cstwxl7CDspUWUELavjcOutC5gCGSqXASUjV/RpzaAMEHCflkO60dD/QQwhNIgwJ1sZy5KcAu36OG4MdilVYwj6K01xWKlDx7KNuATrAiXoC/ZWZMy1lxMGyPLu/BDmg9XbCKJGHwaO9ydghNwQnpU5+/r7++2BGxnjfgi6wjPclyxFA+g6iamf3x4HWq5vXySx7mdT+0U/xbHj6dPNiucb5GHjdIkBO5NTGv29EZpWUI5HRgwT5k7CIX/1NFNyGidoST2nfdW3rOLargQdh1/IwAzo0+GyO9YBasps5V0dKv9LgHmQCWKHRtavOs4hURV+HePYdwAh2BamxMdbg6fe9duN2S2ItqDQcxBSHhmKcb0i+wUc1DsheZPv28WLT/Lu8TRUatFRZGTec8B02fAt3ehjSVbNH3Bo14y6EXu48pb5mpvVcfhIaSU5TUmEzs7lgkYBAeJrzBt/ti5obgBPltwjRZQXs2pXlPrwsdjRbVWyBlqirmzcDSvePp9Tqt39+OwNJwc5K6/guTqHMEQ6GXVCYdeWaqZ6d67/6znOHl7Hxz5w+e+LVbd107WNPqG/R5+bl3F2NPwy8/T2imATZ55Qo2DHM7aAIPT8p8qMZnblvjncEmwRs9QLEUUWbfTdTCEMPkLWtMplrmhb7XhhO2jdo4hYUNLL4cgVP6o/ENjqDrCyhCFSQU3BrMAHGlsQMQufPk1SneYnoKEkCnSRinsyCSAPhP7L44PriMQX6G+WTjkQNtlU/KudDalfvL3qiZlN2MkNyKTermI7875lOZ2gRqknEFC9nNEnWIfieGygzFAJYTv57h6aXUckPjgfAG+mVaWc7XOVMmjBxJzjbh8zjoCRXUiwxrOfF8L5Q90I6wKBX2W2iwTEzHAO9Pm9vqEVp5HPyzb5ueJI0KkRNElx9veuN1Jr6qNmBehsozU70tcJ3ol3qf4A98Lu9FYndjIlDT6rjGfgQCj2QZSZJHHVBOK/GNT3YrCaTGGeZi+tlWNensFBeGc3mk6LQYHql0v/PoDAQ57CPthLNEg9X5ACFUN8cnQCF6EFUcYFp5YZ7mwnJWsCt7v3kRTlZR+XaVmOkcu9rVU2PG5ybduhkS2FVOXLtiU3fVPRmQnvjHsYsnBQsDgIkPxQ7/bGurpJzEyIYLeCDdwzyk9lg9zIP+W+vkP5wJo6AfqbN0Oysh0NpCkW9zeVxSRFDaGuASOm5qsweTIav10GW3+7ArLeGqf+0r0xj2G/0Lw1nCSVZCnRYqgMlKaDm13X5lBztDsUN7g2zCT/KhlWPjfSOfrim8HoWzdNlq+oMlOlZw2Qz6owgVPrjvo370VTR28hU x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: /R1DrsqvLmAg8SxGJeP3MpV30zD3hs8Vjv2Rs038OR5yB/n0vYyjJI7gDOs5RzOlxFayPMznfuOc2fhEftoYzIih+1Vptlmy3gb1P3CgJyC9BevkhSyeqURTUxP4WCcqCxH3tfOuyaem7iAbD3L9ZKzOaHWEkSn9+4ZN0sA+zOLWP9WUdXS2qHgle/H1wAJjlkfFsTHKNKSe0J2KDOOEStMMOCxf7LOc9OxGt8i5U5KP/AtThCQLeXWVItV7L9gEnSN8gTGhaWcsdOk76A+HppGd8L9T3HIP/u+nYi88dNz4VFMh90+UATDv/XzxRLqlOHSzOPSwQs8Jiaose0c2m0Q7QUF/fslhQlL8svGBA42VhTnBYiJcelziTatDaOwq/bh3gvCzty0BIC3oYUoEyeDPML1ttdjPi8oiDJsJBSyqtfum0FC70+PbUKngxLgWDUPagCJ1dNg/1Of/2QuIdH3Ldijh6HdTIgBzABwUacl9Rp/HH0tddvUv0WXprw++lkZtCVKmb0mfzrfHuu1zOgQ+f+BdE22GbnriZJyS/OnDPdw8wc2mh8sRKfPFlfJLtderRqQxeFNK/a401Q5cIqwbxRawx9TkFLwnB4pWzmN+Q2+a70VaqfosxWIZ6lLnx13zL/CHHsTAc0/yV1rtyF9CivsrnFZFT8hCqIe1TOMttxaCWV0OLszG4jj1sVxrP46ct3UzEVO2hBK6yWhsEbpUwrpa/kAMSxQ72RMFxPjaiRH9QAMpvhPO9I6OGP5nU9CWiQsxd7JYXYt060enUuo+g4JXb+QSTUH4pZ+fdkLXvDQU4rS7V8GIDAHXTqf4ykjZPzsvoGl8+kt9VxLuCppCwWIXF9FW7O8nqzHfJS2hJ5ieTyd47t5Zuhty4IB0sOsqcrYzDP9bTeNvd4A+PN7ItqDK1RFM2QlbbbN6D09uI2/mCziuNIu1ZMZo0XepPgAzbzbYkBgB01X2bSJ1qnPvzePMZPRaP4+PjOMmvrxWUV5TUo+QUOccqkjy7phuOmTT41e9CEwrwNyEtL18TycNifzB8ZGzpNhtgwyHiZmMnwUbu5R2J2HWBLpPfVcRlosxEq3fms+QIzh1amU5Xkw6pZ3xH5Kba5yPq+lKgRzJYTd4V70v4Mdfrsu9GuoJADmSIIe2AYqfXmRw4G8Z1Ll2c8TKNRYz70lrJiGUzzDUvKnq334/3VzOsGhQSGcOvnZZUtHzgI88V1OY2Xid7uSNf3sPZvWC0bPuQV9bcKpuuyaGOl/uqAh3KKH1HrSLOQXr1ksyq/bNQ5b6H3xGocGAQdwc1XFz9eb/tQiWaiXVhzjhfsf0bGKyK2MMpmMcQNxhX2cSJtO3Hpx9LevFrJ2OqDKky6UmAbDrAoSzb4o+8mhg6YoiestqRDBNFFxYRK3r6xW65tdIsdgRRNWFMw8XfoUfdXZ6lawhtMeT2P2azpnb8E1TuZnFMOt3d0+sZieqJeyKdfyvPOSmETDQvMcy5gmnGC7CexXyvdvO63fmZ1Y8wEWsrj5Zx8jRxYZg1bPYd1zfisNmtWTYZUc1oIvrnPcIormep3T2Lqh3oJsZluvb3ZSHLUzpP9ttGuuS Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Rr3j925tmiR/js3JiCdFCmzANp2e9BhokLDqG58Ui7mysHaK4vt8idpK3ua+yXaIrLKi0GpCSAVBj0Zvxu9t+wND1cnAbvH+Dq2lpda3Op1xD2yZ6zsFzYzI1inlQ0o1oInUPop/9XXWRG822Q9phkLvN0J4daaZXGZW+4QwBAfja498OIDytw4S3kW80a4WkXJhM3+UUt0U23RhILbymDo97dY9aWUZK97xTD48uBaF68id1KtvUMPd4pvxpZmWM5HF0/+lUjrxXMnFjfbHWMJ+dQhCxmbGb9g3VMlXsEbGegs3cTJmR2EaW/ZzrLj5XAsOuWJZe5SEDcvo+ukZxa6QnmxEwtUWuVgiFBF199f61pAs7FpZrx2l9Ko3V5xVSnN2Frclw1o15PZVvQOi27fyZ1x82HEOoMIQ7i3rh9xuTKiSaKSc+9KWu7/uy3VjpcOYc1I7jK/GWZdbkz3ParPIauBc3Z3Wmy85LzU6+k8Hof+EJp3Gk/LnOx77rzrhWh6FTbvcughwChfgYB4cLzlSG7HZHrf3gFkv5u27ISwmFGvkcGyqoxLcqxIiJynCA68qtBObCB0ydkGbMqojjXuWo08VpfXbQTZTjFV2Wlw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3a04b94a-9a4c-43d3-c4b2-08dd38058aee X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2025 21:17:41.3326 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IFgsoJkba+LOpkGTbX/Vf1i8ujwWiDD7JQEIJydvqpRkFVPpNsWiieW/h54T+/GiRfgiE7L0U474TR0+7t5Jnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR10MB5044 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-18_08,2025-01-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 mlxlogscore=945 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501180176 X-Proofpoint-ORIG-GUID: y1hCCzfGOIa5fPnSDkM4sDMIT6XPKHKl X-Proofpoint-GUID: y1hCCzfGOIa5fPnSDkM4sDMIT6XPKHKl X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > What is the reason that there are two different approaches to process > all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files? (Caveat: I'm not following this thread.) The doc string, and how those two are used in the code, tell you the answer. `dired-get-marked-files' just gives you a list of the marked files. `dired-map-over-marks' is a macro, not a function, and it _processes_ the files. More precisely, `dired-map-over-marks' evals some code with point on each marked line: "Eval BODY with point on each marked line. Return a list of BODY's results."
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 18 Jan 2025 23:20:01 +0000 Resent-Message-ID: <handler.75626.B75626.173724237023749 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints <shipmints@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173724237023749 (code B ref 75626); Sat, 18 Jan 2025 23:20:01 +0000 Received: (at 75626) by debbugs.gnu.org; 18 Jan 2025 23:19:30 +0000 Received: from localhost ([127.0.0.1]:44092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZI6E-0006Az-GK for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 18:19:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49308) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZI6B-0006Aj-UV for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 18:19:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZI66-0006fS-0C; Sat, 18 Jan 2025 18:19:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yas3qR5Gl3IgMvRaAUMoIHV9KO9X//KkJURTpaOOavg=; b=LJXdSTCET8kXL0zvx/8A hmrpjxQT5dZ+07xDdnnxpPAB/CkYdILGOaZtXbzS/W7TKIhl9Rx7ZkaGGjj3vlchq6IJeTL0rfv8E a4uDpB9D2hXJpjiIGzyNJkfBG3v/WURdBB/Kt14wiLB0BG+KNjKWX+GE+ak5we9m4m6rK6Drltspl bHEdRfUm9fXHYe9cfOHw2vgi3lrly3fpISz3Bcz+NREtBv4YRavsYmfrXbSd1T1ytVBgLvuhgLB3c nrgifCfeeuqK97bheqviuy5ror19pzpNKzrSgtav5Qi0Yrdpc78LNBV48ndt6HOTv5fB0+d8XQoSC Z11NoGzyM0iGFg==; X-ME-Sender: <xms:-DaMZzzm6okde_ifhVU1c_HeGdlw_3iXf6tqGeTpwDNjrrjRrjG25w> <xme:-DaMZ7QLJFNR_qxx6Nx7cVWfVrTOpkdKqZmtKr8dMpiaPn3tz2CJ8sOVRyQf6JUBj UNvBrf0xKFaZA> X-ME-Received: <xmr:-DaMZ9ULLaJKkaCqgE1UumZTFa6IDupcIsS1gJNeouKxsxuxNT7B_tjvrchyJsNcEHxcLF9mSPrbmCYPSdGQtrbLD34vnfY> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiiedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopeejheeivdeiseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggvpdhrtghpthhtohepshhhihhpmhhinhhtshesghhmrghilhdrtghomh X-ME-Proxy: <xmx:-DaMZ9jTDmldeKpsO_263nnk2zDIptVbWGc559gg8aZ4ioxqrepf2g> <xmx:-DaMZ1AHCOXLBcvIQ2H9TyvCpNIoyb8791iKMha4YV0GkPnl1zeWhg> <xmx:-DaMZ2KZo1m0acLXhGQb64g_E4D1fgYs5-l08oN3OYBSOKC6CAQCDA> <xmx:-DaMZ0Dsa_telsYzphOSJ6efmufoqx7FeFdQ5zXFmLs-n_HKMPg7cA> <xmx:-DaMZxzk5Va42FBJ_fTP6G06mXBsIy-lOrtVEZ_zOsqQ-K1mwzBkivCf> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <CAN+1HbqgEtQcYDa7dUAy0eJxrcKwBhZpax+SrXPL+wsrcvwx8A@HIDDEN> (Ship Mints's message of "Sat, 18 Jan 2025 06:17:09 -0500") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <CAN+1HbqgEtQcYDa7dUAy0eJxrcKwBhZpax+SrXPL+wsrcvwx8A@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sun, 19 Jan 2025 00:19:16 +0100 Message-ID: <87a5bnemmj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Ship Mints <shipmints@HIDDEN> writes: > I'm sure you know this...you could add dired-mode to the > global-auto-revert-ignore-modes list if you have > global-auto-revert-non-file-buffers bound to t, which I'm guessing you > do. Yes, indeed. That's what I'm doing now. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 18 Jan 2025 23:44:02 +0000 Resent-Message-ID: <handler.75626.B75626.173724381229011 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173724381229011 (code B ref 75626); Sat, 18 Jan 2025 23:44:02 +0000 Received: (at 75626) by debbugs.gnu.org; 18 Jan 2025 23:43:32 +0000 Received: from localhost ([127.0.0.1]:44167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZITU-0007Xq-5S for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 18:43:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37818) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZITR-0007XR-KR for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 18:43:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZITL-0001YM-5f; Sat, 18 Jan 2025 18:43:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=3zwkrzs78Ln2i11JEDG4NGFwbp4j0h7/WAxZ3oRC99U=; b=b5ExizkePCO8HJ/CvkEC e0etL1TbhgIkhafjm5yg2rINeHAxUjGhkA8bORtolR0bVsN5AhLytfN4g3qTf02ULMDRkiUwpf61q 8cJdieaD3M7fZ+D4nVJp+uec/4UIPMoZ8F7fr4WCZSWO7N/lm9MywobyT1xqPCoUHj6jUUewCm4Db OTWL170RjvVTKpYA9ewwwmuC1OzdTmiEgIb8MkVisBIZy7F4MBDicgT1ZOVFEBG0NB6Lyd3HmxMrI 5ElA1Vjinh/rkvg7EuK6hkG8qCBDpFBGpNTNz2Bhefz8fwgBiAZcyyD2nNyuqZxFwmHGoy0vGs4IG ihwPbCmyF30C0g==; X-ME-Sender: <xms:izyMZ6FcQKxw1Yxq4TdQBvW4_nL3vDJBiSCjaSjxCo0zOegheW9TPw> <xme:izyMZ7UyAnXBFBbTIwXWQsUGvWdmAUH-vBg4ta25bPdpISBUrfypVg_nzd3TOqtEy Yejc3Uij0Y_6Q> X-ME-Received: <xmr:izyMZ0KNuncR0324OXRiHWvPqOR0i2Zq4uQK6FuvlepzPSyaDnx_yemp8C2I6PRtPcOBkbxliNpl94MIaupgUgGg2tjash0> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiiedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopeejheeivdeiseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggvpdhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomh X-ME-Proxy: <xmx:izyMZ0HdEk_5bd_tzd51YsX3ATWxtPWKSIu3p0is3kKoRrS1eL6puA> <xmx:izyMZwVfADDiym3R9KRG7scKvy_Z5pZYKBON3JU7NBXM_sIAmncgMg> <xmx:izyMZ3OPCTWlM8Z-jGtX8kXruagIDNG40U7PqIs7H2lya_l5oadz7w> <xmx:izyMZ333lJappMCre1uqk3-jh1YPZDHPyvX4X5i2IOKdFq_ty2io-A> <xmx:izyMZxV7tInYyoEIGnWpxC_TKN21cgf6ve-Erd0jsCHAJ9erwc5Qys4Y> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <DS7PR10MB52328A4E06369AA24A2E7113F3E52@HIDDEN> (Drew Adams's message of "Sat, 18 Jan 2025 21:17:41 +0000") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <DS7PR10MB52328A4E06369AA24A2E7113F3E52@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sun, 19 Jan 2025 00:43:03 +0100 Message-ID: <874j1veliw.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Drew Adams <drew.adams@HIDDEN> writes: >> What is the reason that there are two different approaches to process >> all marked files, i.e., dired-map-over-marks >> vs. dired-get-marked-files? > > (Caveat: I'm not following this thread.) The context is that commands like dired-do-compress which use dired-map-over-marks can skip or double-process marked files in case the dired buffer is reverted during the operation by auto-revert-mode (most likely because the sorting order changes due to the suffix .gz being removed or added). > The doc string, and how those two are used in > the code, tell you the answer. > > `dired-get-marked-files' just gives you a list > of the marked files. `dired-map-over-marks' > is a macro, not a function, and it _processes_ > the files. Ok, I should have said: why do some dired commands use dired-get-marked-files together with some loop, and a processing function while others use dired-map-over-marks with the processing code as body? I mean, both approaches do essentially the same but only the latter is subject of the issue I've reported. Is there some example dired command that can only work with dired-map-over-marks and not by collecting all marked files at the beginning? It would need to be something where the processing code marks files that haven't been marked before. But I can't think of an example where that would be desired. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 19 Jan 2025 02:05:02 +0000 Resent-Message-ID: <handler.75626.B75626.173725229023480 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173725229023480 (code B ref 75626); Sun, 19 Jan 2025 02:05:02 +0000 Received: (at 75626) by debbugs.gnu.org; 19 Jan 2025 02:04:50 +0000 Received: from localhost ([127.0.0.1]:44318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZKgD-00066e-Se for submit <at> debbugs.gnu.org; Sat, 18 Jan 2025 21:04:50 -0500 Received: from mout.web.de ([212.227.15.3]:41743) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tZKgB-00066M-FK for 75626 <at> debbugs.gnu.org; Sat, 18 Jan 2025 21:04:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737252281; x=1737857081; i=michael_heerdegen@HIDDEN; bh=JwcD7N0tuZYRaIQ9+gTNS4PZg8knaD4+1mra164CsA8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=oG+NKCfkrrKEFGKMy3SXI5Y5Ax7kJzlPVSaSzwZScgm6K3ibT0Mm/yOTf6v0f2f4 O4IdIhmcXh0QENp4Cjy6Uxooq7dwktnlTA05vUWP2pTLlp+3FYPyWdUhdMfCScoh9 zmIRdQhrc8khf8KNKeKCtog4Sl0XtTvT4C9f7SuD41ax/+GEGpm/XsB8ycj4uKhht 8mH6EyMHZCEnK7q0jWjXYzzv9ARssoEP0aVWn+RsUGYTFJhG8pU8FPcet7QZc5TCy vjK4GGC13DzKbiWTvWf3Ktg84aqFSk2fUmoyGm2RaDDUfNuFBaB5dKqrF/r3uJdk4 kGumyPaeBeArY4rCqw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M1aIB-1tXwxu0Jul-007bYf; Sun, 19 Jan 2025 03:04:41 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <875xmcpl7g.fsf@HIDDEN> (Tassilo Horn's message of "Sat, 18 Jan 2025 09:42:11 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> Date: Sun, 19 Jan 2025 03:05:57 +0100 Message-ID: <8734hfsgl6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:kB9wHdNMxX0PWBPrQIxPnnOuDKeJ1HhzlbikWcFk8WsatcxXUOH e05+gry3R3uVGvA51JHSVJy514huyW8YjGkdwWcTNIQS1UnLYABrDYatsPuY2ZGSMAEifiQ aWCevWGsgtmKgcH0z19mCV0m6I3oqPnaV14e3GyEyyyWa34mlbg1pWEPVeiE9hFEs/bBsKA o8ay1DGQTOrAz3L65UxuQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:8KiTRwS9utM=;TF0heVjuHxMJ9Rixclk6Y/38dK0 TfRGrvVw1aBDBf2P5ajcZMT1Mm8NtIJFMNJI75teygsBqnwiK0yT5Rddl1eMNe/3Jlw/h5PzO 66bqp090MwOlTixoqRrIWxNCe9C/6TFD/0InPIyZdeMXroc/5pxKE8a320GD0yYUfQjddEqMt 1QtiMqbv8WK+ajRIVaX+4VfN9+FY/H0gZ/t58Ut95Zo5evVYpg4DNrUMB6OENF86HuyucygSB /vayKgJzBKEWk2YnCd14tLniv6P7NYbAmiM3VBQisvLyKDl6T7XEntxR14ZsDyZwD/zezXauE bWM707AOL2R0SgvTqY1hKx9UG1xEMmt5oD5Zh6bI3atH/Vqb8C3kV/+GqRyv8yvxgAFDqE3FB 57dZvOCx1ctcmUTp7pceg5Gaio0ZRlocfC36MJc9DcbsQ5x7FbLiKaahhwwQVM4MrgfK6GBbX 4N8YoCgS0m7+nxiOH7b6JhRdwQUt7aopbTnEvQansTqrNAd8TDnQN5w3Zx51zJZYi4ZesrYAT JePxgKdoWMwFEC/PU6cLMqEaIYGe8yrlTmCkbLBPCnCKDvwW+9HfZNYoVi5JwYjZoIzA6KK2b Y8Bep5oGJahElXfOJRHzBgjNVLwH74gcYZwrPQejnL6Op9ly6dFnP56TF4bAzoEfMhCZ7fOix xTzuL8UwHqv62tIFAuOyh3YSq+IKf6zjfDh+HKYU1OA5Hdh/SGLDeIcx3n0PHXHlsslX26hkd i8rYEEt5/W6u+ZsEj/KRxiw2ViA0Vx3P6sG5EUBhl0IWfsL338X16vpKP2kaZTymK5UaZsgSh WUszpvpupC7TgIfe5sC6COc4ybsqe0+GA8tbgsxCUWsXpvZ/Vqe/3F2KhByxv3P2WK7mMSEeC HGCla1JTa/VY4RpvX/OLcikH5hs7h0B/eswKvivGaTfZdCebzdkYjJ340j40AShDuz1+htDL9 A+8zXaiD38ZWeX2/PmgOW5bjx2d8Wt0W2gYzaTyAzYhY6VjYH1J8LZRSN3/itqZfj8mK2TOM8 eTX7BIXSb8ESP3IAYtyAGfG73K/JqUP6wIVGA/tQcdMsUl4+8hwihAJuI6DMnyn1nND122/Ib 6Ab/SJiWUMqTUw7kUjnQuI5vH6DSUaJiqOuzPPrP4yMH7RBC5smsab7fwZy9Zi7Tl7VipBAR7 4xuYvg9LsAPNMTuRsPHlX7Mz6RZUwqU6UjxoGERDCug== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: > What is the reason that there are two different approaches to process > all marked files, i.e., dired-map-over-marks vs. dired-get-marked-files? It could be that it is just a historical coincidence. The question than would be if we want to reimplement the command, or if we try to make it (more) robust. We could, for example, remember the current position as a marker instead of a number, and/or try to prevent auto revert while the command is processed. AFAIU, `dired-buffer-stale-p' could be changed to return nil in this case to prevent reverting. Or would binding dired-auto-revert-buffer -> nil already be enough? Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 19 Jan 2025 10:34:02 +0000 Resent-Message-ID: <handler.75626.B75626.173728281713112 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173728281713112 (code B ref 75626); Sun, 19 Jan 2025 10:34:02 +0000 Received: (at 75626) by debbugs.gnu.org; 19 Jan 2025 10:33:37 +0000 Received: from localhost ([127.0.0.1]:45006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZSca-0003PP-UB for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 05:33:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59644) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZScZ-0003PD-Aj for 75626 <at> debbugs.gnu.org; Sun, 19 Jan 2025 05:33:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZScT-0005Gn-P4; Sun, 19 Jan 2025 05:33:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ebTX4+ShPeG/2T3p0OExkqdqKcsV++lKe89y7439dm8=; b=dUOw7IM5/uSzDIaR4U2X JXMRNnOAQO7C+jHVo1rU2Mt1GeM3r1t7v0/lsgjWekbz4dXJyiL7/fMgpInHCHmQ1GqT72hc5sNRT FkE2J0N8huGdZrOE62dbIHH++k4Pjqtky9so0NV2MwXGVPWFn6zOHlKV1G+3IQrZLvyuvLJSvqTtb 1NzIFVP5T8XpmNdiu/w+PpzM8XqpbRJW3fTJvKkN4TUL8dfv/of+RLggx+n4F2yXU6AaPprCTJd0O rsGDxpFTrnNAZMTup+PYULqXMoFAtnc9gZndhB2B6iCf9oCCyu0yZjKYFDnCxiXjQtmk9rJRviYjT Py2xDZYEMuVMfQ==; X-ME-Sender: <xms:99SMZ9TNOL0qqnzfm1_3d-39sjSeHBpvF8hiK4Z3Zi0k_ECp6ju3SQ> <xme:99SMZ2w3gnmREdkHTVklnMeNhRiGzzPwzG8QyyaJqvv5fj3TGpElinxsvdxH2mCR9 5kZBmeDZf5JDA> X-ME-Received: <xmr:99SMZy35LHEDTmd6dG_FDWq9DZU_0YYBJghAHU1wnMs3gisrz6go0i9EZXOnYbeTYT5YD56_Bg71oMOmbHPtiJXRad875MM> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeijedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgfgsehtqhertddtreej necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepveffudelkeegffdtteeffeehveeigfejvedugeekhedvuedu jeefudfgueelfffhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiii esghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseif vggsrdguvg X-ME-Proxy: <xmx:99SMZ1DyY5gPAi1nUhudA4djY1aTJjTkdJb6liv91ZaVRCGdUQ0eKg> <xmx:99SMZ2jQRaxuILbG9H92c_UfyBGCM7dnyWF9LzDDwEfDcTJJ8mxOAg> <xmx:99SMZ5rIveObEWgNSMijjzEQKtT90TXqgXGtpKYT85ftZbWWBNQHIw> <xmx:99SMZxhXnmaaF4ZEed6QyKUgX6fTIK5lWg7OhNit6vT2_Eh1xTQpnA> <xmx:99SMZxRyexZu1NLWYe3-UBc1MMSUZzZ-xRoR3nzvuTgpllYUq1qIxSVg> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <8734hfsgl6.fsf@HIDDEN> (Michael Heerdegen's message of "Sun, 19 Jan 2025 03:05:57 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sun, 19 Jan 2025 11:33:24 +0100 Message-ID: <87r04zw0sr.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: Hi Michael, > The question than would be if we want to reimplement the command, or > if we try to make it (more) robust. > > We could, for example, remember the current position as a marker > instead of a number, Oh, just remembering point as a numeric value is certainly wrong given that (un)compressing will certainly change the length of filenames. But sorting order is also a problem where even a marker won't help. For example, with just 21 files named 0 to 20 the initial sorting order is: --8<---------------cut here---------------start------------->8--- =E2=9D=AF ls -l=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 total 84 -rw-r--r-- 1 horn horn 70 19. Jan 11:11 0 -rw-r--r-- 1 horn horn 69 19. Jan 11:11 1 -rw-r--r-- 1 horn horn 65 19. Jan 11:11 10 -rw-r--r-- 1 horn horn 26 19. Jan 11:11 11 -rw-r--r-- 1 horn horn 60 19. Jan 11:11 12 -rw-r--r-- 1 horn horn 43 19. Jan 11:11 13 -rw-r--r-- 1 horn horn 79 19. Jan 11:11 14 -rw-r--r-- 1 horn horn 72 19. Jan 11:11 15 -rw-r--r-- 1 horn horn 40 19. Jan 11:11 16 -rw-r--r-- 1 horn horn 91 19. Jan 11:11 17 -rw-r--r-- 1 horn horn 37 19. Jan 11:11 18 -rw-r--r-- 1 horn horn 65 19. Jan 11:11 19 -rw-r--r-- 1 horn horn 104 19. Jan 11:11 2 -rw-r--r-- 1 horn horn 44 19. Jan 11:11 20 -rw-r--r-- 1 horn horn 46 19. Jan 11:11 3 -rw-r--r-- 1 horn horn 82 19. Jan 11:11 4 -rw-r--r-- 1 horn horn 66 19. Jan 11:11 5 -rw-r--r-- 1 horn horn 67 19. Jan 11:11 6 -rw-r--r-- 1 horn horn 82 19. Jan 11:11 7 -rw-r--r-- 1 horn horn 70 19. Jan 11:11 8 -rw-r--r-- 1 horn horn 68 19. Jan 11:11 9 --8<---------------cut here---------------end--------------->8--- After compressing the first 5 files 0, 1, 10, 11, and 12 it becomes: --8<---------------cut here---------------start------------->8--- ~/tmp/test=20 =E2=9D=AF ls -l=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 total 84 -rw-r--r-- 1 horn horn 92 19. Jan 11:11 0.gz -rw-r--r-- 1 horn horn 88 19. Jan 11:11 10.gz -rw-r--r-- 1 horn horn 49 19. Jan 11:11 11.gz -rw-r--r-- 1 horn horn 83 19. Jan 11:11 12.gz -rw-r--r-- 1 horn horn 43 19. Jan 11:11 13 -rw-r--r-- 1 horn horn 79 19. Jan 11:11 14 -rw-r--r-- 1 horn horn 72 19. Jan 11:11 15 -rw-r--r-- 1 horn horn 40 19. Jan 11:11 16 -rw-r--r-- 1 horn horn 91 19. Jan 11:11 17 -rw-r--r-- 1 horn horn 37 19. Jan 11:11 18 -rw-r--r-- 1 horn horn 65 19. Jan 11:11 19 -rw-r--r-- 1 horn horn 91 19. Jan 11:11 1.gz -rw-r--r-- 1 horn horn 104 19. Jan 11:11 2 -rw-r--r-- 1 horn horn 44 19. Jan 11:11 20 -rw-r--r-- 1 horn horn 46 19. Jan 11:11 3 -rw-r--r-- 1 horn horn 82 19. Jan 11:11 4 -rw-r--r-- 1 horn horn 66 19. Jan 11:11 5 -rw-r--r-- 1 horn horn 67 19. Jan 11:11 6 -rw-r--r-- 1 horn horn 82 19. Jan 11:11 7 -rw-r--r-- 1 horn horn 70 19. Jan 11:11 8 -rw-r--r-- 1 horn horn 68 19. Jan 11:11 9 --8<---------------cut here---------------end--------------->8--- So here the 1.gz will be uncompressed again if auto-revert-mode decided to revert in that moment. Just ramp up the number of files to 1000 and you'll surely get a (un)compression infloop in dired. > and/or try to prevent auto revert while the command is processed. That seems to be advisable as a first aid. Not sure if there are other ways to trigger the issue, too. > AFAIU, `dired-buffer-stale-p' could be changed to return nil in this > case to prevent reverting. Good idea. I've tried this simple patch and it fixes the issue for me. --8<---------------cut here---------------start------------->8--- diff --git a/lisp/dired.el b/lisp/dired.el index bab5e833a76..1152d85f149 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1289,6 +1289,10 @@ dired-buffer-stale-p ;; Do not auto-revert when the dired buffer can be currently ;; written by the user as in `wdired-mode'. buffer-read-only + ;; When a dired operation using dired-map-over-marks is in + ;; progress, inhibit-read-only is set and we must not + ;; auto-revert. + (null inhibit-read-only) (dired-directory-changed-p dirname)))) =20 (defcustom dired-auto-revert-buffer nil --8<---------------cut here---------------end--------------->8--- Probably testing inhibit-read-only is not TRT but the expansion of dired-map-over-marks should explicitly let-bind some new dired--map-over-marks-in-progress variable to make it more explicit... > Or would binding dired-auto-revert-buffer -> nil already be enough? No. That's only for reverting on re-visiting a dired buffer and has no influence on auto-revert-mode. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 00:25:01 +0000 Resent-Message-ID: <handler.75626.B75626.173733269410630 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173733269410630 (code B ref 75626); Mon, 20 Jan 2025 00:25:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 00:24:54 +0000 Received: from localhost ([127.0.0.1]:48254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZfb3-0002lN-S5 for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 19:24:54 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:45188) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZfb0-0002lA-PD for 75626 <at> debbugs.gnu.org; Sun, 19 Jan 2025 19:24:51 -0500 Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50JNuPV0011466; Mon, 20 Jan 2025 00:24:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=8oWdkGc1g7OAGrZxqYwxLR2Le/biwFVKi/1WnQ3lsy4=; b= T6tQcp4yq9MFaNW0Dn1Ez7FiZXmmwce6kcJEIn8Whns4OIZGQcLO8GAGq8pg3n0C jjHthfsuwD0BZFQNdEPktxTLW9rfycJ16SYyd6L+K23isJSiRIOfb+errDC3qHr5 S+TlIsJ8LUlH32GLLz72wQHMbAizYP3jq+VAq/D7D4qHEK6vzaR8o0+Z9nJo2K0G iavA6nnyYO6vTKXbqG//Kcrs3bzrk3CWauJGf6JLh+HMLyxhXrPP8TD31lWAZdBp yaoc16RXDrXhZAjXZX/dwCi8nOSw/XFz0MsgEpILyB/Neq6CcznO+F4lEKVOFwiw 3sRy3oXxfOnTGQgQLa5XvA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qktsp9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 00:24:49 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50K00995029402; Mon, 20 Jan 2025 00:24:48 GMT Received: from nam04-mw2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2175.outbound.protection.outlook.com [104.47.73.175]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4491fg1eqe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 00:24:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Db7/2oKDTPGJ319vZheuEmhQd8lkATsHHy2GaEZZ7raHzTbpX0s5QgApo/YCoP9vOd0swYboUBjCKzjD6RsANqlXmr4Dxc5Fp9Ck8Y5T9ZGyPDUoDLYbZmM6UZ6d37JdK45R0jGT+7cGK16wakygKcHwoZ1BKtomrPtLIVnP4T9j2fDScK1oKQRmhprJyQt2GuX+WSmK3DbwuHVtYw8sUcFczdeEsZkZ4REYv6B2XVtRWVGDKFYhKuJUkrOHL4kjK/VwVTCxCQMUt1I1ksVhdNoMFWym649O9ARCXskXqTwWY4HoVjKwKxgBUOd5Dy+MnyKqF4G5pAR3+KjeVeugcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8oWdkGc1g7OAGrZxqYwxLR2Le/biwFVKi/1WnQ3lsy4=; b=Y37/8jLvYb28GKsCLSlFwVo5AVM6kJ3uhsyVZmHR9aN652sMHy74uG/2FDd06nTSo0Yo4LDtmGt9bIqejhD1N4/hHRxW97bONWRU/kvBTfVb2sDdWETLsK2cvBe4I8yrDMib60qh3VrxyxKRVer5dNK/jH+oXUwkrs7nHJhL2eQDuJdHrVnvVW/KPWB9L6NZf7hTZvaefs78z+vw9EWqx2F4QhhMkHOSNDPFU7T+LGTgrn83hWrMDA3sa136Q4mKBvgZfGGQq3jkjjAftK7uFwSqJ4b1TCppBSyavYAxKTcyxXCdAa16X60NmgJB63/hi7UOtToDiwHAv6iArxPraA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8oWdkGc1g7OAGrZxqYwxLR2Le/biwFVKi/1WnQ3lsy4=; b=jeGnahEI/kwIQdl0N1FrShaapfDQVtuDoy3BUfeGsO230VqNEZ8H/pwwNVQGgM1kJTvQQ48vjetH0UoGnoynZAQLRQAMtl0rNbaLm0N1v3n3OR6CSE/mMCJB6ktrmdyAtsIHA3TgmaN3NPPIt3M9hVrRc8bNq7QorIXzP02Hwy4= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by LV3PR10MB7770.namprd10.prod.outlook.com (2603:10b6:408:1bb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.17; Mon, 20 Jan 2025 00:24:41 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 00:24:41 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHbagLHkRLrEyqZqUqBFNJ+UT9kCrMeumWg Date: Mon, 20 Jan 2025 00:24:41 +0000 Message-ID: <DS7PR10MB5232569C48F031BCA14DCB48F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <DS7PR10MB52328A4E06369AA24A2E7113F3E52@HIDDEN> <874j1veliw.fsf@HIDDEN> In-Reply-To: <874j1veliw.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|LV3PR10MB7770:EE_ x-ms-office365-filtering-correlation-id: 57d93336-9a45-4dfe-3d04-08dd38e8d4f9 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: ZciwkrxoSP6729jqB0qrjvj88+HHv+5G548bsu8SglOGXscz++GezoqZW36jgHQDIKS5K7NxqSqolMlaMgIYnhVnIudeLZpnQJC5U3j6WVCO+7FcyonwKEcRXimyfNVKkF4VXaV4JNpKg8Q4D1shaAc0R4rKr/PuxkrGq1SFhcaVgobDB1WrvgVbs4ER2KzP8huHEkRzXuubvX2ry78lVZZH0ce+NDi3Pusicj+s/NirJcpXIo7m0/Ko5qXpHwag1gniKE2oG9wOysY+gCGVS1qpFXnVEI39TM9r296hHqdMyBCVUrZMPtZz8ZvIvgCLx+z6Nxisq3Go4nm2r0fGbTGQqwP0INjNja/t2pU59hIOsToUDIbvFMhrxuEzAXotoR7784FCeVPwKvP7auEsPUUcpRf/f2YnzH6qx8gr1xbvPWgsM2SOtpUSZGKhHIGEVXNCUlPopzXD06XjF7awQLbcOp0XKy76yOW4Ec/2AlxDfoFLAp0hB0eP9lxgNNvQ7S8U/W7XNHh+av+tKMMHmNEHqtWervoUBWrDlUmEoiB5sHJRv8CN/07OIMq2aqCi60qPVl/QyMaGg89YlH0+7gQhqagfakcWrOH+tV1s0i2MO4DXymk86pOmKBacDZppRgJRWGkvpZO90WD4WbF7chToYtjp6SBMD5rwS9oh5h8eIPVqP3qpjS7vq9tb4wkNur+KB8GofgsewmNmV1AM7bFS6+ZvGpBk40Yzac7rakfoqxhI8+EGGfErX9xSTKcWHj6oGEaTVgbEScg3sLqpiXTogP6wDThzPUGkxhvkFDSiI9PZSn1DzVfY7Oeu+wnAt0Xc+lCAijpvjaaJRCqnsk0EUetDoMlOCq0NeAU9tJWFKAc3658vmqmqXYGk/a4Rl2k2rxPft5ezwCSrpmYmcOmIoFaA1rhajQqz15xu1AlxwgmKB+sBuEUaaBqbshJfffrYJF/JHJ+FbT7wds3cvrqg0EQMC3rkfWkMAGIdpx/dTikghkgtrHKiBCBAR7Vtc+tA/lIjkw0rtwjwBg/YSUghyH7AthAj4/MLKiiFGyLO3xzK4FR2bfC7VafOycCagS8u8YiUWkVjEJWrvqQikmyuRgvRLJhx6wc0Iwm0eFfL2IiAcGKT0dZhq77++h/NChkRG6WP8EWNMqS9B4IRa0JBpIT8/2O/MlL9gk1P6gK/J1503FnicWbY1Dp9eutFqeW+GhbWmlAfjTUKVNW6Rqw96BlHFkdQx54Kl9iqqMgOPS6JmkF0KJDAoAihMdG759LjayF5DordQ1xhtcB+MVpQRuwd3+97TrcUYWsuxRYQdBS2cr3+Yf9nkY/MidpGI5CPIPXOQUsBGtZU3tOsOTAeHTs31CIj2mqI5F5J0NYO6x4X9+hG7ovap5nIEBSdEBVDPj+ckqEaNLdYchV22+GY/mGCjYwn5V5vG+2tjXcGy34iRvdMYtAXoizvgN0d x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Pnq3kH9QREPfyTTSQadOr4WFfGeaJqooN8FI+GbQ0Oi+HT750qVQDDI2xV3/naMdIEnjjJp2c10f6RH7XHsVd75HlOLDZcC8dVshM7bAMGlIGWLrsSOTq73sJrtqS3+xCXeJWC0pKf7/xocNWg4Sxxc11xG6iUVSvbVTq9zHDlsRy2wA2oxZ/qE1JELpVcoaKrDruSAzAkG1IWzgxiUnE1NZNCfaW8DRp7+w/6B7jyRh0NDaGvpAjp+uuD78avpmiDTbsItElYEjVtyRNorZMEusa7tMirSTESqKbnp9FMQ38y7b4HZmAj40xZVDqIfi3ljlIpA08ixzhs9P+C7sbYycnvzOB0UuDxgYcPBCDrKjM0TOt3fvbxUVdlAwe7P05zp1fvwDNiyWzl8VaCRrYtavz8YPrkl3ncJvHI9K8JsGpo+uVrxfkpmQKOv9Dw4FE67Qcwub629Plfz2DdvLP4mExs2nmwTJGAzu7IvHT+JE4Glgou+k9ic/tCLsnKiyQmcy57Yb186mlht2fbA1W8tKr0IU3tKbvUIq6tE82AO7cDWaxZbEVowS6tj/DlLSSVFjcTsRXQ4g6PTOSiVFNHmSPxuJ44BweO2Edbt4p9t4rUXcND7ufo6saT7n4O7Fn+i9YYgvIwc9d8o2+zGbia0trekBkNlZL9E2JVK11R2rm11/EHKyxBS18k2FyZUw6MgRnFHMN7HXYfr9f7QUO6uNLeKyHrWcgz/SlWud9gpInLR7asMwDYqT8YUfy3ktoDDoPRKNcdnOfW6ITLsRj5AR6buOw6U7Zl0USib7bEsKZQPt/gDC0gjfMHKAtYej1Gj/YxKa4mSJwEpjA1MJBICu/w6MJbmXF3wm7w3a2OGzc2nr/e6LThtL3BNxuFtX746dk4vUGLFI8UovJRFpjBP2kvH895jJHvW0bZBU8Ij8xVuJSURjR2c+mYmuXxGgsIxsRYAN2Po/CQ5SVJss6TI3kamITiP917NK0yKpENCr2F1FrHkT5X62llsU8ND/C9TmHIISC/ucxH4GKwEkjYhdB67KFdceW0G6XQ+ZyCroS4Pz9ptUtxVEHDShxdSzbJeZMkj12GAvI4ex0X4t18HTnWXqgeXa+EKf0Wxx9/Dof7EyijfSNHPDUEa42MT1DwR9q92ffy7kfJo9gEgPbRshkbfllrtQud1vJvJFi5GfmZoDePjSg0gQZsPdhtfNmo63XyZHLGiOlGRCiEmilkFkXS01qxcfGOU7vsds8TSnlXsZjLLY9Sgw1C4hrr7Vi8mY0I6iHi+YnjZGCLWoKbUrTcT0i5f4JRylpBbcUWwwbfWHwRbFXjfsOrqvdfTfGzdo7+sbIEjZs03I6RJNKGAk3vUW2jeKa+UokqCh5LpluvfzgXY/VQoc1DaJGFIZ3sWnhk4J8WQjlHzHuonRHOT50d9i+M3bYvZ+YKivfWGMzvvZiNL13xbPu4wDl7zZ6jBsu73jpsNlU1vBLDK10aw/AD54TWHxnLJwYZN0EnUXGUEh9PfUsb5ihzFxz1uZKXGA/O4cqh71jhiT0ff/mKN5R5QeHL/J1vBFL+g7vJIdu8kcMhXHQjhf1j1vmjUf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: I3f+skEACsQ0NLQaN0a1uTM1PEX5etGOP6KsX+CSxOheb3UhCFjhvdtB3TRzMG259m0u/w1bol/I3Hw1p6XBxaad5FUd3VSFBiSntT0HyVu4uAhpV0/mKb7jxKd2g5cmdMWqq4bbSWO5xQ48ccgafm1JAXCt8zikBFopn7/5QZKVXDhnFdvclE4v7aVXHvZdRBvq6t4NnYjVx6Xd0bBlxZCP3/Nx+ChatYCaRUmYlpbWKHB8IOUS1e1qplv77iR1wJB2lr+jvL4h3WdmlK96W18EVW5926VfZgfYrUOBU8gxLKsSNj3PFWT679EymK63/Ti1iplSDpI3toeWi9mvXO/xU0dg32Z69YM85xnfwN9V780eOxlv/N8lHrD0xVyAp4VLz+hm+AK1CIH1DzDCvxaE6CN7y91wkymSkJM+fEyZ4hc2/Yz6ezZgXaAjAGCi2t0bu4BrDRNmKMgPy1RgdGY8TvrcQR6qM6dL/n0rKj1zdx+Pj6w8C8ooOYE+Yuf4hC7duAVoQWffysCMoM/jYVKfHS9Qt5lHIXx7Zjd1ZL/hT1oxJaXko/qRLdkEXOKglVR+rJtUW1t9FjD26fru+WmWAMGdYmzdPs21ymbwbLA= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57d93336-9a45-4dfe-3d04-08dd38e8d4f9 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 00:24:41.3085 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nXQ8yQ+yh67q2JdLV82CJN2KHONsBLQuUFTxQUQzzy/4X5jTG8uPBB8UUYVeg6aPMscs/9mkxXTAk8jiNbh7Yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR10MB7770 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-19_05,2025-01-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200001 X-Proofpoint-ORIG-GUID: Tzs2sijiVZo-x1LErzO1PgL0GiVG655C X-Proofpoint-GUID: Tzs2sijiVZo-x1LErzO1PgL0GiVG655C X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > The context is that commands like dired-do-compress which use > dired-map-over-marks can skip or double-process marked files in case the > dired buffer is reverted during the operation by auto-revert-mode (most > likely because the sorting order changes due to the suffix .gz being > removed or added). As the doctor says, when the patient says it hurts if he bangs his head on the wall: "Don't do that." ;-) > > The doc string, and how those two are used in > > the code, tell you the answer. > > > > `dired-get-marked-files' just gives you a list > > of the marked files. `dired-map-over-marks' > > is a macro, not a function, and it _processes_ > > the files. >=20 > Ok, I should have said: why do some dired commands use > dired-get-marked-files together with some loop, and a processing > function while others use dired-map-over-marks with the processing code > as body? I mean, both approaches do essentially the same but only the > latter is subject of the issue I've reported. `dired-get-marked-files' is defined using `dired-map-over-marks'. The latter is more general and more basic. You use the former to get a list of file names - the files marked in the buffer. The latter isn't just about file names. It's about the markings, and even the state of the Dired buffer. You can do anything you want, as you map over the marked _lines_. (But it seems from this bug report that one shouldn't try to revert the buffer etc. To me, that makes sense, since the macro is explicitly about the current state of the buffer - its markings etc. Depending on the revert function/behavior that could change that state.) > Is there some example dired command that can only work with > dired-map-over-marks and not by collecting all marked files at the > beginning? See below, for general info. One example is command `dired-do-flagged-delete'. > It would need to be something where the processing code > marks files that haven't been marked before. Not at all. It could depend on the sort order of the listing, etc., since it _processes_ the marked lines _in order_. More generally, it could depend other ways on the current Dired display. It's about going to the marked _lines_, in order, and doing something on each line. It need not do anything with the files listed on those lines. It could report on how the buffer displays their mod time or size... Function `dired-get-marked-files' just gives you a list of file names, which you can process in any order. > But I can't think of an example where that would be desired. Did you look at the functions that are defined using macro `dired-map-over-marks'? Functions such as `dired-do-redisplay' explicitly have to do with the buffer display. (I don't claim that each such function needs to be defined using that macro, but its not a bad bet that it does.) `image-dired-dired-insert-marked-thumbs' inserts thumbnails before the file names on the marked lines. Again, it's about the displayed Dired buffer. Function `dired-map-over-marks-check' processes the marked lines, in order, reporting on errors from invoking a function on each of them. The function need not act on the file that's marked at all; it can take any arguments and do anything. Similarly for other functions that use the macro. Another use is in commands that you want to act on the marked files - OR, if none are marked, on the file of the current line. Yes, sometimes you could use `dired-get-marked-files' for that. But there's difference between a currently marked file name in a listing (let alone a marked line, which is really what it's about) and a file. The listing might not even correspond currently with the state of the file system. You could use the macro to do something for files that no longer exist, provided they're still listed - so yeah, you might not want the command to allow reversion. (I don't know how to prevent reversion, but I suppose you could make and restore a copy of the buffer. ;-)) Yet another use case is wanting to do something on the lines marked with a char other than `*'. That's used, for instance, in the definition of `dired-do-flagged-delete'. It couldn't use `dired-get-marked-files' to do what it does. E.g., try using this command to get you a list of the files marked for deletion (i.e., `D'): (defun foo () (interactive) (let ((dired-marker-char 42)) (message "%S" (dired-get-marked-files)))) Doesn't work - it always gives you the files marked `*' (or the file of the current line,=20 if none are marked `*'). ___ You could ask the same question about using function `dired-map-over-marks-check' versus using `dired-get-marked-files'. And pretty much the same answer is relevant, I think: processing marked lines, in the current sort order, versus just getting a list of files. (In Dired+ I use `dired-map-over-marks-check' often. I use `dired-map-over-marks' much less often.) ___ BTW, `dired-do-compress' uses function `dired-map-over-marks-check', not macro `dired-map-over-marks'. Indirectly, it uses the latter, of course. ___ The point is that if you need only a list of the files marked `*' then you can use `dired-get-marked-files'. If you need only what `dired-map-over-marks-check' does, then you can use that. If you need what macro `dired-map-over-marks' does, then use that.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 01:14:02 +0000 Resent-Message-ID: <handler.75626.B75626.173733560219039 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN>, Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173733560219039 (code B ref 75626); Mon, 20 Jan 2025 01:14:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 01:13:22 +0000 Received: from localhost ([127.0.0.1]:48331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZgLx-0004x1-OK for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 20:13:22 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:30012) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZgLu-0004wo-Cd for 75626 <at> debbugs.gnu.org; Sun, 19 Jan 2025 20:13:19 -0500 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50JMDnsK008221; Mon, 20 Jan 2025 01:13:17 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=mqbMSxtph2DOcx9QqYn+uSH4YzB2olb8OpMOtaBsqr0=; b= cE1tq3iK6vUzhsbBwaAUsa+SWEu36wxVT/u/KwlQ6CBXEXlmzmPSPgEOzrmcQeP1 uRqEbZDA2NKq5QtpGiscZNCdD0BEwpF4tYhHUSm/iXVXxJSGTuTvP3MS5xYmtwIB naqVLZIzjjiZWAx7uGPCNphkaJA8d/QmcYqRV5ukjcje3PzWJqssrPi1YBXDdixs ksQHGhFGut1LBMD8JG3rIiAevVIa8drDUPwOi9XzfVwDiwwis3YjKJX+kXQBy3uO j3edl/umLqbJDK5o9kIhAIyD4+F0DjvaTSy1HgIBnYYkG0AlSLbvDFQnHZUdkGLO V5vqkv8oBOvT77yq2LEpXg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qktqev-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 01:13:17 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50K0BxDZ030292; Mon, 20 Jan 2025 01:13:16 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4491fg27p9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 01:13:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Nmz/EUjuYpUKOxVuwo8RD6eSag9+x27eCedCE8kaOQpRGXWtUobnUhYyPIiCoVJl1J/aN+E3baYC59XQHfEtvnYe2GoTHFayKlo53MsoaEoZ9OlZ93O/PM+Zszsh14+6XX4RoIj5GWgYPqa5xoqeXs8FZVbQ4xSu0+9JEaqxVUS+RetNYjI+nC23ac1usNpdQ6aAlXow0m7iUJRO5JUMFz8lOMoKUUpYKyrfyf26aXZlLcCJk2nhhw4FpTBRIZexOfICedniBLHezlBQn9fVDh3kvyExcCsQ62FqsOrhmvv50sHdfvdn0GEoor1Y8Ce2YGRv0kwTiTb7E1NO0aoIPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mqbMSxtph2DOcx9QqYn+uSH4YzB2olb8OpMOtaBsqr0=; b=kyxYSne9XMVlbX3GEdzMKz90TUanSBLyfyMxueSQvtRtBow5u6yt88bU+bgKz5GcBdfFm+kO20ijw6jnJE93wa5fyyu5zDsp90HKzqgxMW4k2Ka6qXC12ru1ApBPM78EQ75MhzZjIuF0/clkN0vDNIgwedxa0B4PWhaf6A7F9SOR+1VnqYDK5F/X4R26VhcDU45Bx6ff6kXRPeQXutonJlL5mXv/M7v3/8fMFlZBxysgVqb4pRKbwtmihm0tdvyqiGtUIBOYcNF1JgdvUTBfPJYVSwPv0GjCFIbIGySMOBEjW6gV/viC24Y/1U7z5FkPr+3nuQMdqMn6W1nFBB0qQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mqbMSxtph2DOcx9QqYn+uSH4YzB2olb8OpMOtaBsqr0=; b=g/1/+h/YqyKYWgiH4huhBdqjC+fRA5BnLyY2IyWfFoV0hpOAV6b3R6Oymq9zpTEzTXbYO92ubo7hlEFXs/oyHWoLqMDKQfTj0sXvFMIFz5hCIJ3evO7QTkb1tiAFPIYLordrw+CNIg/REK5hF0YRSlDWBtsE2Rfws2SfegIUuzI= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by SA1PR10MB6320.namprd10.prod.outlook.com (2603:10b6:806:253::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 01:13:14 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 01:13:14 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHbagLHkRLrEyqZqUqBFNJ+UT9kCrMeumWggAAh+OA= Date: Mon, 20 Jan 2025 01:13:14 +0000 Message-ID: <DS7PR10MB5232FD6898745105C1E73206F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <DS7PR10MB52328A4E06369AA24A2E7113F3E52@HIDDEN> <874j1veliw.fsf@HIDDEN> <DS7PR10MB5232569C48F031BCA14DCB48F3E72@HIDDEN> In-Reply-To: <DS7PR10MB5232569C48F031BCA14DCB48F3E72@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|SA1PR10MB6320:EE_ x-ms-office365-filtering-correlation-id: 3786288d-e39f-48d9-49dd-08dd38ef9d65 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: y4SWDrqv5q2qMmgpV6clix2TLT9CcZq44nbphc0FcX0w5emxD+tdl5w6zXeIuu1dm6t5O4uu1JgDiMy1UPHAZK0X5uCNpHZBHUHcDjxu+pFZPLsYLIkYc45jp32QTbsZvEzpDeJcRgZ7YXgVG4IPF94Jk6eXuke62n10QC8jE+lIAGBazMZ9gzzRD4n6c0AXvmHrYbUq+xqdpAuVjesy8tye3D7fffFk3Afd6mQ4+QSQkhayfDWTrw/Yv5lACmGB1Mru0Bs3sDvWNevs+eCpRZWBgfQtrWdNXZCaN7+J2h6I9+haosf1FZVlLL/83tegFyGiZmNhf7E6soWg3SnnPXWnsNKTU86Epm8RrThoDEdqzNZTvFfRXUsLpmR/9qYdasxHXlINzC4WxqEdO8iARTBrJwl7zS8eO8tBysx1/S1Zd7DNfU0wk/hd+jmBU0VuatKw5tXrSaozgw72q4d8KgKNcGyxaOWO+QWudYTn4hAGD9ym4WpryslwQDvITy1dqWTH5pBLKOIqAU5csZsBFeM0CNBugMSOdoUmau3E4kQj2ZTZBN2SJOz0YrF0mdrDNXatIR3gCXxrq//sOV4QevkOnMI14O5Bohl76kB7yPUoiWG6KP7AhYSEb8BpPiAWK0lXNxDL4UdOCmPGUILMO6Kl0ElBCE3higWiD+jWk7dvAZu5NL5mEZT8dof7uZiG5FYUZXo44mXXcGksgUtWk0nbA8SeMOZ/SXfO5qwuKbBWRpOKzMVyXysw5+GrEZOqEkU61IIqhm3cgyG90PURI8TkiHGc2OiPSIXQurOyW+s70n3UOKRl0GAyq5OG4nIesoAZ5RfHeyx0wfSL4vInH608cEabXvvSkBVhC+REtZcbDXcTolsidc9MJTHBV9kJ+7JkDzCNlMKJ/LfzKaNYDxKL9j6S1fsTnyGmWw7M1MPn0sjVcS1lUkk66hZFnIhnMeXOuF87mNER9Xh/3D9AExXeSfzhOxXaOTPMRqnvx9KbweMk+xzjGLMSeKl3N1TrROMgBoi2TyUM/TDYBxy+2hMQbVG3J9/50a69o5Fa+01ymbCesp/ihNOx7sM+XLENe+PLKqBANelsO/1OmiNkSNeikPN7AOHJK1HcV9z0a53LHMjm7VwK46PMtThJF/iJOX/CE+xQJ0emLQ4wCwki+yZMpwwAGu2JVdFg624brbpf/mdEIRAOr+5l4GmUoXFlMGQRFlAe+Vb01HsH9GXTOJ1mD9xPZZt9sbUZ7PUnYDZOI2viEs7BH0GDEs2h/ctKVY6XRXZ7ODxKUi3W2efMOYOXCeA7ejlw/DT23Jc56GPWr17Zaam/v7wmrzxRW+xiScdqvs97vudbfpRbf/KH80k1IBm3bRYTKVLPPbc+ar9XnkXIOMtHmm1/jFM8wENe6vcpwcjiebq8jzIfZ+miBTjYU6UrdVYZW3hpJ/jHmsuGgTpA3xYo75tfJjyHq+Ow x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: d02SYU6zNSecsI7uC91HPe9ssCQaS84HUiABwS+ClMLW3IMfkmGMhXCjW+IPlGs2Uqj+CnU/j/95Zh1lpY+pMfVoz0hC4lmsqYTKL6VYH44SqcXzrlCH9smB+5jSKb+dg+u96558uVHG3fBSJeOjX2bgn9SMeAE0muzfpTRVRDqBSelT8q20ecYiGKz667aFN2auQ5YeT9tqT9xv3uF4brluC8fEcHS6PBgs4w+FTxYBgalIQfJEoJKIcaSddf7IF/fuohTpmv53fdmazGIlbIaC2OIcubgznHAeZmS1MKqyduh/311TwD5VX8PS+58KDoBYOj02NffS2d8nQ9ZwZsJQjpl+lzvdRp7JH8bOhRly4HrDXBOxhUU9LJFBIP865+7WriG793u9lqauad/CN5YBy8LnnkYaab5D+tpMmUgA4uNbsBXzD4v+0WLVC9ykZATM0cvDHtonC+UTLbr2pznTj8RdY9Ol0unX5/6BRqalNnaPjLmfWPVYBjfUSCXmUeplhI6yQK3jdVQtbo/JKYcEiDsC3oC/yi3IAnVgRrgBOLkP8S1HLBTot8eTGqJRLaJhWdybxLDh2GG5lkrcShe1QB8LKsjwJvp7g+qUYOuh7bcVcFMrBmWyzWQhuO7k5MObYf80WVCwNpptiwSv3vYdWWVGnED/3enSsrFRS5kxkvzGGiV/Azo1tApBPumAnLOpFCWr9CI3mW/S71+63BD9DApkLUOfgYX2w2yvLZ4Z3pGCJztIHMZiprVw0AphOfuEyT6lgzjfJU/zybxwB+YdTwyxQJtf9Rpv1wCBF6SfKLZ4orLvgRIOK8VuS6OR7g+8aoDvV+1DB8TCcSkzXdSS31Z24DYPXzdsKzaWYXzncg2cVbrQYBZp/EvDc9yDmqLxBgsBypjyYiOPsN0uBTbaLHPZn6zjMBTycmq1bQ7mUgcDNBKtjB/p3wXsF7vfhIgfAPdQdgLu3ZByty/nnidxJBx06D94oF5FAJFpJIDYzcqJ12IfgUEGeBFSLBosGLyoNWRzgO1n2z2Mt+LxHdIOEQ9R2zz1FmAYLqxfkEpr9L9FfwGYAxp8msveOVjH01UAJwEn7JlIst+OEsxW8d/L1vwzj4kWoI/TEn+pJ0fF8yWscWTV9DDjvx1oW9n2Wuy4HbL57gy6W0ACy/NkIOazrsVFRjfhjiI68EqrRsorfpyFD/xzJLjxEpenOkLpqITv68OWREvwb+hIGmB37gYrzZEIecjNXwQ/XClBOYyLRcmaMVOPy7PjBhTVdOE1/Mna5RYZZnbofbheI9iGJikbiFmen+pF4gLonhoB9iRqeXtJSl66yDnjAgRZ8sw4qI/za0VqPghCGwRr1AcPghRrr3d9dfTc1aAcbIc9guoLHrLkVw80OaYAWpsFz4umucg3w5jLVA0PPhByh31/liv4dBvFPpkNyoh/UcRtXiZJvu4sAkniolnMS+pO8Zbpp5BZkIjzesKjXbnyGuwyTLvak5KMHioYTlMTseQMeHh56JKpbQJwTr8eG9BJwbphesp2Wc7ZkyDld/qHuG0ZzdDUUZeTZMtkJqjph618EAEjBDZs/lpwvnLCzzR7jHEg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: aWIV++yCW32xIPjRvJGIBRJDuIZa+4qA2+MJhdNIP63Qqy5xe6ObMw9gOlsmXgU8opuaxiaifdup4LBsKvEr0cR6X+yY1jCz/N9rqqMu7B0YBU+A1AmtzFjGxIQm3CIIOrtRdTRmf4Tf7PxtBa5qF72xyjY2532ZOzNWmJt08BPsC1BdoZyKeuBRddfb5MsqgmlEnSieYq4TV8b6Yvm1X/F527kFLKrcXcvrhTn5ftgIdWj+O7KWdoUPu1i/hmrLeKd8gT86Uz3G3IrAtBDh/ezafwslsUSqypFeRXYmQHaXsnSt6wCN4TUcjRZatxZwfY8znvkFW7F+fTk+jcw1qxGsDbcedrvndh364Ee2F8it6QWvYd55F3ealoXgOWQ1zkqBMg3fL9D5AlYN9jyXz9wMCT91fY5B24ddEChYVcMv9u133hSBVynnsoX1bBbIUoRndkTnFgVvay2M78h3j+pEKWWlvgp1WFkJpUsfN4T6eq89atR528loN7RtWb1ibHxoTwvJpWrl7qCDFUqefy6+WuFOnqEjX6bQJpxeH/f8YmnW2Dw7K0AdhnXhctRzOvZOhCXlVE+bgloL1V1z/XAeqoAI6ksSrKrV+KOjgKk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3786288d-e39f-48d9-49dd-08dd38ef9d65 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 01:13:14.5161 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: KV9jJcHOPVapBO/A4fORe2ulWX66VVOWvXF3vtKpZ1ovCpdhX1QSyQY29hwuaZJWyobc1Hpxifks2jFm7bXp7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR10MB6320 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-19_05,2025-01-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=961 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200007 X-Proofpoint-GUID: e711tn3G06zLNfXvSUhzkWuRMf6tleQG X-Proofpoint-ORIG-GUID: e711tn3G06zLNfXvSUhzkWuRMf6tleQG X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) I wrote: > (I don't know how to prevent > reversion, but I suppose you could make and > restore a copy of the buffer. ;-)) One could just bind `revert-buffer-function' locally to #'ignore.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 01:51:02 +0000 Resent-Message-ID: <handler.75626.B75626.173733781725860 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173733781725860 (code B ref 75626); Mon, 20 Jan 2025 01:51:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 01:50:17 +0000 Received: from localhost ([127.0.0.1]:48374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZgvg-0006j0-TP for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 20:50:17 -0500 Received: from mout.web.de ([212.227.15.3]:46197) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tZgvc-0006f2-QM for 75626 <at> debbugs.gnu.org; Sun, 19 Jan 2025 20:50:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737337803; x=1737942603; i=michael_heerdegen@HIDDEN; bh=Yr71a19Z8pNyySMxqU+IpOwO2nw9kgbNOy5M0ThDt9M=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=U5Ay1xrXeGhmPB7+kHRIMNRFrljQ6zK0gpJa0R1ZYtln3/fwl00YPea8xO+QH/Qm MHsWIywqxJskPTymiqcqnEJ+EfOzXG75kau+qgwVTnvPa36A3CFSB+p56fuMVgqoJ UMB1pFAbNY/oTtS1FYgpbyZht+Ku4+H8ZdRdMzPt7YzDoA+T9n5rNxEoeacEfo1ze VgSdOl4W5DmqPS7mgcBwYd4yppK4tvzWczu0jabdmtsJFSows1SirtLzXdR60qxuh 7hZH9r3qKueAXW2iXXR0DzGKrjBalTpzuFHAccTowRANIIkw0Y9I8D1h/QpOUWDGc pX2WcQL2YFIMv+wq3Q== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M6YJB-1tbcji2ZNB-001qNl; Mon, 20 Jan 2025 02:50:03 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87r04zw0sr.fsf@HIDDEN> (Tassilo Horn's message of "Sun, 19 Jan 2025 11:33:24 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> Date: Mon, 20 Jan 2025 02:51:17 +0100 Message-ID: <87ed0ygsmi.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:mK2iHaoikqbgsDT8VOjArxPU5a4N3ZtmBEtMTI5Qju97cizocg9 Q5LHFeFLcCEQq4Pr4+St5GXzb7caZ82qw336FEWDtwcgGDESd7riQBUO265wAWtttXrB6D4 MNRRMxlY/lJhzk7Zoc2Byj1an3VXAOp7RuW7PaV4El0Idmyj617jzgypxymxqxIPIUxOQK3 TsyiyJDzvp7VsZrlCBvgw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:LqeBiuMWOXo=;v2RyGJ6sjguIZ7/D4BW4y51DLkB CTGrZQvSNn46K+R5PXg+KAAoh64WfVTonoTRzAc5fpLaU9tPS/6buHA712gz6x/UVmxjUjLJ5 d8fRkQXzPoDd5fwyNkBDmFcuN9br4xHeBSePNF4Oq5oxCFVbR7YmG48z8mfnegkuDT9CDElSB M33f8pp7jlRsPPMBeTuiJsjWszXzkqhtzJpHxMFp31EUf3B4ooXjI4fdVTxX6/KdpfoBeWiVt VUazbuClPbMeUzcCGn6PrIfgYDNqJFv9px3nktopDtT9tSqUHcBygB5F1sfsjZaAR1Ti/zRnd qU6Kfcgb3QnkVgLLmH9jr68o79uu9U1O5cqr5AVkTPd7EEK7XRMe9Nth3VzXxv2C9YZmDfknE rOQYJslsafpT7HrxXzCEEGn1DbdymqAN0Vi/IixJlezod94uMg76n6gGtuxkRzqQrInfmU28L iDifpqJrIXY3g80OeVxP6sBYoDresVm1kQUOIvvnDd9vozfv/lvunX8bcHoTKNnTMvDs58KRI vQdgXUXS5gHsYsg5W0s4jPqPa+/mymKI3rtomCqeIrj1+7k2+DItLq86RtkoE0QDk9j86xLu9 kFN2TgYjr5IUDDkP7o3b5blnc+K7/xqq5+OzNmhfhTv3kQ2qRfn4uqbx89/G/nlIla7J+RzMv Pp8u5qQJdl25kXZrFTsgJtJiHNcMyDyiB6meTpyHkSpu6Y8HF/a6/Xnl+EtknQxWqbi4zBnLQ mzL8IKvcNUFaGgRAgsmRb39RWMwg4HUwAZTnjLy15X9UiWP4/LHw7H0Sb2YHNuJ5wMDNfLyxX FIvZ3L1m8vbrVZhO/DHNuvFe5LeBlXcJEesCUNZCP8WRctmXSQ4P4bqFKswLQkWIKcV9D/mi+ LVmhrQviNJ+jXA3Bl3udJwh19WwXihGgHXQ5cwMXqjlBWL4KQCIYk3VQxMXhYR9Y4ftZ4gbk+ 3aPMAP8DXBxo/Zwg9eFyj9wcoKzSYawx5udayAE96+Bn3F7TMuaU/bmk2jiG7xbtH/Iu8ClyE z0ryxZWo261E1H1dPwtlMiUVkJT0Xk8SBtXVQyARhkFzEUTZhi2gxt2nuGYQ/ffP55ZQn8jYW A/+WfkRXD83iC5+UwbpFveUhLVnkBwXsZsu+2e+B/wTbOiHbEBkF+UfEe8YnWRTkjekCySYB9 49r9n254LnbxPO11kmfVlgd1zVN0Fzj6/aQ2JBuYa4g== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: > Good idea. I've tried this simple patch and it fixes the issue for me. > > diff --git a/lisp/dired.el b/lisp/dired.el > index bab5e833a76..1152d85f149 100644 > --- a/lisp/dired.el > +++ b/lisp/dired.el > @@ -1289,6 +1289,10 @@ dired-buffer-stale-p > ;; Do not auto-revert when the dired buffer can be currently > ;; written by the user as in `wdired-mode'. > buffer-read-only > + ;; When a dired operation using dired-map-over-marks is in > + ;; progress, inhibit-read-only is set and we must not Better say "bound" please. > + ;; auto-revert. > + (null inhibit-read-only) And use `not' here, since we are testing a boolean valued flag. > (dired-directory-changed-p dirname)))) > > (defcustom dired-auto-revert-buffer nil > > Probably testing inhibit-read-only is not TRT but the expansion of > dired-map-over-marks should explicitly let-bind some new > dired--map-over-marks-in-progress variable to make it more explicit... Yes. OTOH it's not bad either. `inhibit-read-only' bound (together with buffer-read-only which we already have) is a good indicator for that some operation is running and we should not auto revert. Unless I'm missing something I would prefer this solution. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 03:49:01 +0000 Resent-Message-ID: <handler.75626.B75626.173734491414819 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN>, Tassilo Horn <tsdh@HIDDEN> Cc: "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173734491414819 (code B ref 75626); Mon, 20 Jan 2025 03:49:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 03:48:34 +0000 Received: from localhost ([127.0.0.1]:48575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZim9-0003qx-Vi for submit <at> debbugs.gnu.org; Sun, 19 Jan 2025 22:48:34 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:22970) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZim8-0003qp-2d for 75626 <at> debbugs.gnu.org; Sun, 19 Jan 2025 22:48:33 -0500 Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50JNfNAQ024262; Mon, 20 Jan 2025 03:48:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=rC3LHvKLPAkOtOeoNPlKMZsyDSMYAvWuNMEDNrHHTIU=; b= Vm6vYPps4TLnMblbI984hsjnBBEJDWdnHEwMv8tQ0r80YkPUsjvI7klMUYlrHKYY b4SgwHI+mUV9GwH2MdZBBv0EpdNhmnyZch0BTx4hBDRIUUv/LRsPMMhcbnQ/2D7q 7OPBK2CtT8ijAl9BK6ETXqPUQ4y8pFSZ1F7OvNpe3aozISEUCQXq3CmF5wfPlBDd VgMSz9HF1xW/+js4Lmpqas86NUTIoU2eELEQWL0FIvdQkehLQg4S/J7yFUwnD+cj b+HYq5hBJXjEybNonBZSXIL+Q6WpgxyoRQZPA5l6G9KiO/o6u6Tto1jjyOR6Fatv kKzq+QxIbwJyoeEsrU69zA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qktxsh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 03:48:30 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50K05j8w005553; Mon, 20 Jan 2025 03:48:30 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2176.outbound.protection.outlook.com [104.47.58.176]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 449192mmg8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 03:48:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tO5g/61bFj7M25WkH6QETOkdsQ29qIyURgJzZv/anwCPc0CnoB5LGjL7A6EXV1kIlkWF+qAgXZsg567Wt3r3WVmbWfhjnShVmduUD5xouZZx/gIrKuANV2kMCj1iZnz8xDO1YdHgRB+xUIyUy+kjHH+zZJOYBO8mZoc8xGJ7csV+jUfHlML1kKyTHcErEhg1YUYcxMrfUfuw1894vK/mrNF/jScsb6f13zT2wrIITd3+hB7RkC4PmYA6OO5wXMcrB3LU7/8aUJ74eldH7pjsZBSCNRXgclwV7vjotnkeUU20HHPeMyG5gweWVFc2FzvWH/NH9oEide95CNFcAFRmnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rC3LHvKLPAkOtOeoNPlKMZsyDSMYAvWuNMEDNrHHTIU=; b=EeQH/+kEUZoWr6Vub1XoJFg9GqqWlryNTVgjjfswDYYOz3gDpavj93OHc1u38lLIDiEmBAU4Oo7fYNkJGI9h09KdyxPjJVcsPOv2VNx7pkIhWXvvGNzTiTNGpG9jCdjSIWyfhsRwf8zJPk8kDLGPkgdikltSe7IKqeQiS6/CiNqys06ROcgADGzuHnOX8QsIlZk+ONh8MmZmbU8zfM1ZJmSuJwLNisUrg1DCTn2EXQnjTnMG22Kxu6u0yRMHZzF91IocF5LjzRxeaQWX6Usvk/U7mdvst1xZxuQnrOuoGKA9c0o4slv1PseOz0v8BWL38iTxCvvloeeEHBA2wl7W8w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rC3LHvKLPAkOtOeoNPlKMZsyDSMYAvWuNMEDNrHHTIU=; b=lrQi9oP7vopbYVcyegcMnCnRA6dtnN6VHV9ZkC03uQDtJ/6otNhNQGoApfvWMxR+OhCHJ3f7vXz6sKwqx0iUK6hPg27fPaKH+fr3/mxAfIfXqg7ngsMVSLPJUQr77or9PEIjw52jC9i9+C8GMtJdypr4BwvsZIPlJyEnlt2AaG0= Received: from BLAPR10MB5219.namprd10.prod.outlook.com (2603:10b6:208:321::22) by DS0PR10MB8224.namprd10.prod.outlook.com (2603:10b6:8:1ce::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 03:48:06 +0000 Received: from BLAPR10MB5219.namprd10.prod.outlook.com ([fe80::8179:21ba:b158:7d50]) by BLAPR10MB5219.namprd10.prod.outlook.com ([fe80::8179:21ba:b158:7d50%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 03:48:06 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHbat3YFZjJ4fcn1kabQUZNOqWNIbMe/7Ew Date: Mon, 20 Jan 2025 03:48:06 +0000 Message-ID: <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> In-Reply-To: <87ed0ygsmi.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BLAPR10MB5219:EE_|DS0PR10MB8224:EE_ x-ms-office365-filtering-correlation-id: 86395135-4c71-494c-fd3e-08dd39053ffe x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: 4VKy9dnj5TL/N/0oV0CpI3sYoxqjwDrE9/L7cvEqI37slxtWOAbPA2O3oLQO9qql2H4C5oRzT4dza3Nr+Nx1xVUHVJSPxhXiK8e8Ua9AC3ibdrBK95rCm71xhMbyRs0GcWK4uRI2QF68g0QOA/CTlITxs4FDH1XYbw7zK5VHlAZqSW+nlRVMu/vuXyvml2O4u1L23gLu2UaoZXC0fdv6tLToLo3+KAGG3IJaApYDBtS+q68NiMm7tAjRsEFhrpST6C/J4e7lG9twv0hYX+ZRbPbq7EWSceUDJv/XSxrwLFsbpyQpyCUQ1tPxMw+6eIU+/PllSB6iDAGBWo7SBbdGEAZM8MNZIOGmD/Xq/xdaBajOGphZdX0lckXkmB8f1b/N48x7TtJshLyj+xrG1xdRnVpB99t5rU3QpzacRCRbhKJukaUu70Hbk2BGuXS//LNB/1fYchZbHEDbBjlvoTMeNiT2INk8ClOk/DOBXaTMod51nYb3dRIgi5WFwNMykCBWCEgDxpxsTqM5yPzjl1oM1BB0E63FhFeA7i9e7mJq/PedpxfUd+yHTj/XSqzGLXFp2wa/ghZg9LLOQt/lUMoKMrjRMSoCS4YT0mtOEuHYNGjZI9i3Q/v1B219HKvbKRRGUG19kzIf5nwdnNDjGApsP0OfaPGkWLMZbpXWc8zPhuvsud0ZjBYWjUEklNDs3RkxUJvfkjisicm3XtNeF/2yXYoQenL1jLdyKKt2XOcTKTpIrWGfHYqpATQP6xtOFRHLXqIiofD7V+JjAY/JMoretUZ1GblAt3Qmn9SYDrMhOLDeseJnUWVRfTFt7S0g3pH9w6ReaFeZNDvmxwPJ88/Yp+J7u5g/qlbhdr2Kep9Ws6uLVtV9mWSE4ZXaKuPf36rpF3z2RYwZ6kixSi9niti5IMcYJm4rf+fMm3uAcOn1X+HzWxofIlxmvs7eclrPQaj+PSxsdsV3TwVIT5GL574GIRnx+rNLvwDAeMUKG8KtuAxy05cb0rRghzvS9cxq478zGvq5mGInJpung8tU0tkOUsdm0JVgNOBMk6mTO1emvtWEi6zuxjrf598JYzmhcIClHlX+YTPIbeeKZjrfTlW/rgu+QUNJmulWOn/ObdIK6kka+hZwqKkzK5n1oCGkWb0zfksyRTZ9p36IFrgZT/qvpG/MDQmIGP3b91FddvYKm/meLeXlCv7B+kqDZP5p12C846cBzue8PJsmw5M1e21CXLK2UY7n0xoYPbEi/ro2o+kNJTcd81xC+CWXNvNYGxfDgKtRZTUl9Jqx7Z3hzo1N3kfhd6pcpe7FwLg4SzeC9j0KsBSVRQyfzMma2YvMCiAW43R1Z+m84UzMawXF0sR/MoeiGMmHY7xZnX4YIo1jfXi8l+lW5EKcYK39WaptJ//vBJuboLQvuAE010vIINl3/oIT7KECrx315sYdY7U6gG5w7MfC8EOPPgqfWf4Miv0L x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BLAPR10MB5219.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: P1oYgweMb9otxgSnBw7KANXqhRoHfLYpfxVjb/WnLrq3lSDLHl8MZyeIwBcF6Rc+UIboMTtV2n0x2vvamiOILxzVEGbh+yYwgkc6DpRyNwTeB2Y4JI8YZRJbteiJsDkBwb5d7ktekcG9xdPD/Bhflot1rn1CrpAHwhi6YZf1Zv5IwHnW5Y9BgPbvkJiBMbvV3wX4vnVYepq6y8tfOvDAKP/JwZWhA+XOKnvnIpLv6eflzFb/dPPEMfsF3sOlXHYj/jjes+dnce9KqV6R7lnZDZj8UL9nMbzD6LshaGKZTpM4LA/BndEdEdB7cjWB91oZiasrMamp4hvXAyonJDdGQioOz3zIeu64a1zQbtCTe2lIe/X3/ugzlg3T2GLyPErintobdiOwf8cuXck/ibG23SHvraGjj9jWtDNaroU9FfYrAhMLSZsTgmDlrmwMS2IOZvsFPd/e04Z/ITRIyXMqtyt59wblaxAHZzfeMSOcupwF3n0CNjsiKZovA9Nj31vEdjivSqFHn3DBFBm95OjunXN7LkydW6xRcT4oqID0AhEZUbMOLLgHXcmjLD2zA5bItSQZWwctXlX4wmWUXkzuIePmztjb2ntHuSEi0loP4Tv4FcTK21/cdwcxEHtkhLGw3gnQLIobniBQSC9UWXNjZcQIxHfaztC+5GQT5OkkHoouVsl6FYswvIBDBzAdqt4+okZOIa37P1xN1MSbNAroDEXvteD2lMKKbjzoVnoSI8eUSRV/cpwe4PNdbvdOP9Yx8X5khQq8ELZ5CnGSAxL8r615kT9c5a9y9XSiDGT3QSFDsfbnbFBxZtWKxST8jX5DyaVnmG6MtpmEsPT/EChs87Wu5hcLzV1mTBE+XdjYKYpEt19r8/2izQUSjfXFLbC2LeWQCcJV974pdaQH37McAAG29L7jRDcpB0uAcFQgkHcQx78gZ8FMCmjrfjTQHcfTPDKaHd/OvWSGn0qxN6e5aQ88hNujvXWDDPEvIK4gDTRzVDFhfvmIrPgt1k8J0j8Gum5mMHn0wFzseO7HaSiyr++cGZArQkSGP0dXli9PlI00tZYFb/cjL9F5Id0U9lV95jRE+Qx4dplQa7sEkAxkQzxi69R21g5URU5yP+u3sefLF/U9Lzkfj8lm+nVpom8RMQgb52ulvtQLjESO+0RbFmTWPVmmZ4kmXoADHA8PwLlzNZA2mfQC5A5Wz5HMOFM4cAWyTtZzzB/6J9h8Uum5ozpLfyIW+56wJVNhI6O/T/fTMRRZEjeXIZ6Qs04tqbtymUzK0CoTYiIVXIY3i5DFDcAV1S8SueL58AnSIxGhAYUU9aKjczv29tDPmhPM88JmVWDHx981q2bts5UDdRfChufnqhwsb5LHrE/46KHzv4Z7OzQeFwj9HfNfnCgiRDcXN2PP2CZua1JLQoOr69n13QgUhaRgGyEMVKRvo84wKBe99pPHR0/HDx+HHkWyZmrYPemdMDRbH2itPMWB/aenYOmxq9hFYbxgWYJdB7iRv/wqFUjf5EjkSrMb9KgIadYABAM4mCX20njlgrx3aTSrodzhX3/keW2PHb+wBBYVafip1Kmro3/Vr/nNfh5PAqOS Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: edEFNUhkCnecis6fIh4/fJjAElNu4DLG0RzmZljIfAMfWupqajSNEbHoheXsQixGp1ZT8lzqn7ivi83SxMbRo7aOPezDVxGOksiNrNNeXFrjSyTqhZqH3Tn3VX8sYSQFFxR3Mk+Q1zkpUSra0C1douINlkCyB55xBLXLgBE79mrWjwLrBA8VxwLAqMFI1MHmqBWMNkR1ut3Qf2+USq/6oH+hFn+MB01gQPCBrbUqv9S50mw43Di31Nsq4Jq1VHFbGMnlge3BzMn3srsETP7wFMOdDsHXB/+qVgL9Jrm+H+QvBJ9cdDn3mZaaZerB1KFqdC8tBJghCJzq6V+izfnEPwnutvjVuGjHi8vDrV8OQuKm/E8lQMIGeQu76y/nquuwSpUgyV/gWVx1NLt0oFAh3DsY1pf1EX/pYeuTPi3GArKs7bQ2KKcWjrs6rZwDgNlBE7XOov4U411ByVqxhqxz00LLiyMsokbOBGpbl5oemhxzCT6f4mPNPYMLD2CMbh59PAlCZwKie2Y4ujsqfIUxhA12p+6TMtm06EZTgCZ6JquSTDD+rIyQuQd+tgchkYjPTO0qtrmlJdnrr0BmXSPJv4e/aJYnIpm5CHpJxR+aKJg= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5219.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86395135-4c71-494c-fd3e-08dd39053ffe X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 03:48:06.7464 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wRC4PSqGL8ifunkcHJbDOhNZatKMjcrhPwFEe3ARKAcLlq+h9G9y4CozKBFtjb6MKyWbW3Jv0oQKXKa+1VyjNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB8224 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_01,2025-01-16_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200028 X-Proofpoint-ORIG-GUID: Ec0ge_hcYNr5beA9oj8NDNBvMeRn_2Zr X-Proofpoint-GUID: Ec0ge_hcYNr5beA9oj8NDNBvMeRn_2Zr X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Still not following this thread. But if the plan is to make `dired-map-over-marks' prevent things such as reverting, then a priori I'm not in favor of that. A priori, I think that macro should implement no such control, and make _few or no assumptions_ about the context in which it's used or the purposes to which it might be put to use. Such control is not its role. If some particular _use_ of the macro should provide some such control, e.g., should not let XYZ happen, then fix that function instead (even if that might mean not using the macro there). The macro itself should stay general & unassuming. Yeah, what I'm saying is vague. And I'm not following the bug thread. But it smells/feels kinda like preparation to throw out the baby with the bathwater. Especially when I see questions about the difference between the macro and `dired-get-marked-files'. If you need some different behavior in a more _general_ way, i.e., at the level of a building block and not just a fix to some particular function, then consider adding a _new_ general function/macro, instead of changing `dired-map-over-marks. Please be sure you change/fix only something that's specifically broken, without redefining this longstanding building block based on unnecessary assumptions.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 06:07:02 +0000 Resent-Message-ID: <handler.75626.B75626.173735320216766 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173735320216766 (code B ref 75626); Mon, 20 Jan 2025 06:07:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 06:06:42 +0000 Received: from localhost ([127.0.0.1]:48715 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZkvp-0004MM-SU for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:06:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52144) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZkvm-0004M0-1t for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:06:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZkvg-0002rA-Md; Mon, 20 Jan 2025 01:06:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MwRa3K4zbj3ewrxIOouOINFPO1qM9H9FcumKOFEtC3c=; b=k1rLNF5T113Y2jpdy+PO tZ5AnEaAuJGKg/OJRT4nejQNA9UAPxKzKdcz6kwUtoNWMqFe+HXuJhnLXg5mN9QkMxB1/Gur+2c5d FjtP4IrdKG7Iatm4FXG/ZNH1OMrtzW/f/1ESTIpHia+BFuXteWT6Y2tSaIwE4b68I6pVdUt/EYyo5 IgknlB1DEhj45K/CW34wV9mspgMLKyG+W+zztO+jfLepXuAt17eMyy1l/idXCjlJKdvOi4KktbzKO ZzmketrH+K0MgiVedEhrZWZZ+ks+7pb0QRapIaKXPnaCQLHf1jlmCxfZ8OOCPrIdgvrVy0RqjNOZF 43c4JuYQKxKh5w==; X-ME-Sender: <xms:3-eNZ3XdmPLRdAiQLm5i7ISZWGivr9ynYRDI833yXqgfxZ-r9RUrPA> <xme:3-eNZ_mE34e1sRE42Y3cdtaZDE3gApIsdPdRBCiICoSxD_7798wgyYj_QTqajwirY I74u8LPfzF52A> X-ME-Received: <xmr:3-eNZzasjybPxsdgUP9hSNJSdahkU6BxY7JY5zRc0meaD6cDkKtFBOql3SkspKthz5cQFtQsv19IY7a31sGbRx4Tb8WBxas> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeikedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggv X-ME-Proxy: <xmx:3-eNZyVDkFqZHnjaolfG2IcQRXKZteHLVN4f6Zrd1GOlViMKlkpPyw> <xmx:3-eNZxmZH2SuieRBiftT4c3pczKZCDGgXuspG1E93h5fhKtBFnfzmg> <xmx:3-eNZ_dB81aO50viC5rKXRzw5q4Lgo9CvHOWM0CtYj5EzX4WKY5WLg> <xmx:3-eNZ7GRKAevKLH7M_Ial37zKfSEtNHrbZ_l-tNl39whvg60i0uczQ> <xmx:3-eNZznbB1WfvsoszdunplkRdcY_ClZYSUc8IubNCDNyOvvIJae0kHQk> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87ed0ygsmi.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 20 Jan 2025 02:51:17 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 07:06:20 +0100 Message-ID: <87r04yj9yb.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Tassilo Horn <tsdh@HIDDEN> writes: > >> Good idea. I've tried this simple patch and it fixes the issue for me. >> >> diff --git a/lisp/dired.el b/lisp/dired.el >> index bab5e833a76..1152d85f149 100644 >> --- a/lisp/dired.el >> +++ b/lisp/dired.el >> @@ -1289,6 +1289,10 @@ dired-buffer-stale-p >> ;; Do not auto-revert when the dired buffer can be currently >> ;; written by the user as in `wdired-mode'. >> buffer-read-only >> + ;; When a dired operation using dired-map-over-marks is in >> + ;; progress, inhibit-read-only is set and we must not > > Better say "bound" please. > >> + ;; auto-revert. >> + (null inhibit-read-only) > > And use `not' here, since we are testing a boolean valued flag. > >> (dired-directory-changed-p dirname)))) >> >> (defcustom dired-auto-revert-buffer nil So like this: --8<---------------cut here---------------start------------->8--- diff --git a/lisp/dired.el b/lisp/dired.el index 2087a6f6f21..c78a13800e6 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -1289,6 +1289,12 @@ dired-buffer-stale-p ;; Do not auto-revert when the dired buffer can be currently ;; written by the user as in `wdired-mode'. buffer-read-only + ;; When a dired operation using dired-map-over-marks is in + ;; progress, inhibit-read-only is bound to some non-nil value + ;; and we must not auto-revert because that could change the + ;; order of files leading to skipping or double-processing (see + ;; bug#75626). + (not inhibit-read-only) (dired-directory-changed-p dirname)))) (defcustom dired-auto-revert-buffer nil --8<---------------cut here---------------end--------------->8--- Eli, good to go? And if so, master or emacs-30? >> Probably testing inhibit-read-only is not TRT but the expansion of >> dired-map-over-marks should explicitly let-bind some new >> dired--map-over-marks-in-progress variable to make it more >> explicit... > > Yes. OTOH it's not bad either. `inhibit-read-only' bound (together > with buffer-read-only which we already have) is a good indicator for > that some operation is running and we should not auto revert. > > Unless I'm missing something I would prefer this solution. Yes, you are right. Whoever binds inhibit-read-only in a dired-buffer is probably doing something that won't play well with auto-reverting in between. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 06:15:01 +0000 Resent-Message-ID: <handler.75626.B75626.173735364818573 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173735364818573 (code B ref 75626); Mon, 20 Jan 2025 06:15:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 06:14:08 +0000 Received: from localhost ([127.0.0.1]:48726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZl31-0004pV-Jc for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:14:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55702) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZl2y-0004on-US for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:14:05 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZl2s-0003SU-VC; Mon, 20 Jan 2025 01:13:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/FWfQ8h6GILvuPOUi5U76ckdyXsIsPE7vk0YCjDW/+g=; b=RdTvS/BjF3Jbo/FK/nAs BiuXuJGMhqFpAV9jZMXAnaS4LUxrxKwBeRYkVCHu2xICJ1wIBm8OzJwARJ8GfnZT/yweeLSut6L3X ZwEKukj0kKciSZjfDy6kxD1/4QybBXaNoaoNgWjQ7vxVPHDVbKY7VrNEigYn6IMKYwFRq3ySxT2W/ odDt6JsW/DN6Vl3rFO6UiXXazKjNqXLhQ3NC8P1RKvVF8qY+KJzhG1LknrZX8llTvxMDVmUo2LxvS aqBgj5GQn/JR3O9afIPvOv/vMwy33AQNRSgi8PFbQAZLKSbh/JtW/VihqNXNLsiWTXOatHhpzq7Rq 5AGg1YpS7SgJCQ==; X-ME-Sender: <xms:n-mNZ-2tLv49fALdSTxnCzdJZ3RbpoQ7lBJKLJYulvHl9h0Mga1ZfA> <xme:n-mNZxEYlU7uhM5h-XfqI4wdXjf_D0IiVJsP60EcltPnUSkaoXMTEnsl5ddXB0srx dikQ5Jv74oNOw> X-ME-Received: <xmr:n-mNZ27dJk4P54isqMRs4Vx-HLyGJNv5DePC-bECrKB7E88SttQ1JN01xjUBm4LbYfRIPQY3wkR3GTqLj_-ixP3f11baNLc> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeikedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopeejheeivdeiseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggvpdhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomh X-ME-Proxy: <xmx:n-mNZ_2HyPvFjB_whFU9bOLRm8kIGOumcGWVD0KTYqPQlFI50pQFkQ> <xmx:n-mNZxH5Dl5maw1tavt5phre_izjkIxOz6jBvbThKIwxpzWh4uZNCg> <xmx:n-mNZ4_ut1qHaapJODwMmtt0ZiwyIFNcFIa3qSq08WbM4l5HFUoztg> <xmx:n-mNZ2meFkEEqzenpNegD80GZM1mZbnKrJGYNiGlPzPrbDM_9ZMyIg> <xmx:n-mNZ5GVcChfDwnmGPLHRtzcYNvmVDgIrZJDUVW2LXaYstzQVVAtgKj7> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> (Drew Adams's message of "Mon, 20 Jan 2025 03:48:06 +0000") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 07:13:48 +0100 Message-ID: <87ldv6j9lv.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Drew Adams <drew.adams@HIDDEN> writes: > Still not following this thread. But if the plan > is to make `dired-map-over-marks' prevent things > such as reverting, then a priori I'm not in favor > of that. A priori, I think that macro should > implement no such control, and make _few or no > assumptions_ about the context in which it's used > or the purposes to which it might be put to use. > Such control is not its role. > > If some particular _use_ of the macro should > provide some such control, e.g., should not let > XYZ happen, then fix that function instead (even > if that might mean not using the macro there). > > The macro itself should stay general & unassuming. The plan is to change dired-buffer-stale-p so that it returns nil when inhibit-read-only is bound to a non-nil value which is the case during the execution of the code generated by dired-map-over-marks and might catch other cases, too. The macro itself stays as-is. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 06:43:01 +0000 Resent-Message-ID: <handler.75626.B75626.173735535124208 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173735535124208 (code B ref 75626); Mon, 20 Jan 2025 06:43:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 06:42:31 +0000 Received: from localhost ([127.0.0.1]:48756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZlUV-0006IO-Cy for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:42:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35112) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZlUS-0006I8-P3 for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 01:42:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZlUM-00079H-AL; Mon, 20 Jan 2025 01:42:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=43cOyjQORJnrCFMkHLt+W7axETSbWibNPzJRhPE/v3Y=; b=lxe4eB3PuEq+bcwp4cRV aEIEQQ72iiYhP80DpMP8owC0xWE8aJLXiBiohwACAh/Gr51i1tip2VunqjQIBZ/hqiGdkKKz4D5zZ Z2A5Kf6Lh88FdoWRE/Vr1oxheqGFgGY2758xCa2nhMPp9h3htzxJTaW4JCC5skXz63FALRb7XvNSZ e0whhYJNJanzeJ7lu87myHxUSYApusVzwO4c8j4T9dZMw5yZ/DSd455DjuE3iKaTqACIB6TsmEtFd 5p2cA/D+KsLPioEwAw4AZ8oHNBG+HwenKuXEmdj+V2G9AlxaMsopOpKrr+xpgrhRbw7EW9sFMWxY3 dgQjenM0zvHODA==; X-ME-Sender: <xms:TPCNZ7rNKEauk0ekX3MzaLIvOzLrKA6-a5BDuVjDE2t0uQEFC9Zd1g> <xme:TPCNZ1rQosMnbaAQbAlN5oH_AMPuTvnqdA0puvB0UemMgnPD70XDkprRxsXmjPARV 4IB6CTeGjNLjA> X-ME-Received: <xmr:TPCNZ4Pq26lG1Yu8Bkd-IZzMN6Eu-ADFWPfkwUCgUEiRW1H0bCF7y7j7dmy3ztjp_W4y5izATAfT8aV_dGaapdjx6amikVk> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeikedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho pegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopeejheeivdeiseguvggssghughhsrd hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggvpdhrtghpthhtohepughrvgifrdgruggrmhhssehorhgrtghlvgdrtghomh X-ME-Proxy: <xmx:TPCNZ-73-_ZhwocOKLwGkFH0uMGdGquXuRnAtIW-jtWd98Nzovn69A> <xmx:TPCNZ64otLnPUWatKcWX0o-C6l11fJEZNpVa31erQAFLSLfsYLc-7w> <xmx:TPCNZ2hCkNPl8Cl1Ti0ojwipCSXYCOkfmkM3qx0SP9K2QGEJ4O09Rw> <xmx:TPCNZ85Hk4rL9pe0V4fr1E2_8KoCPe43a6qSiixm_U9Q4I8lJ4weQA> <xmx:TPCNZ5Jz0TGXXD681H4HnKpcHM1BWtDuVeN3q8c_wQE91-ClpVkhGtrU> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87ldv6j9lv.fsf@HIDDEN> (Tassilo Horn's message of "Mon, 20 Jan 2025 07:13:48 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 07:42:18 +0100 Message-ID: <87frlej8ad.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Tassilo Horn <tsdh@HIDDEN> writes: >> The macro itself should stay general & unassuming. > > The plan is to change dired-buffer-stale-p so that it returns nil when > inhibit-read-only is bound to a non-nil value which is the case during > the execution of the code generated by dired-map-over-marks and might > catch other cases, too. The macro itself stays as-is. The missing part: this change hinders auto-revert-mode from reverting the dired buffer during an operation on marked files. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 12:52:02 +0000 Resent-Message-ID: <handler.75626.B75626.17373774917872 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17373774917872 (code B ref 75626); Mon, 20 Jan 2025 12:52:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 12:51:31 +0000 Received: from localhost ([127.0.0.1]:49299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrFa-00022u-K6 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 07:51:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36020) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZrFX-00022h-RP for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 07:51:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZrFS-0005cg-DG; Mon, 20 Jan 2025 07:51:22 -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=jZoSOKWTqBV7XUjaQpU/shdFleurs0rE7lgQE35Nh8U=; b=RPCRPMKu/hhk 0O4gxLSV0O3tdu91UjogjKcLPAXWcGyLToNbhQ6w83IO+SlWpALhMANNhuu6dXyPx93bJ2h4hVNt3 thttTVcoBV4v8c81RZueYJKY0ljRS8RLf8O+GOWNYzBZZXQsLPd6NVl0xiBx9s1PLHBhW77R1F/OM r/XOaMHaes1f8vu7zr0fWhGav7ECnb36ZwEdSbO9pZe8zZKETAkGpMc0f8u5r3e/zxT/bQz57oN56 kd1NhKSDXMVnaFsMMejcdsXA0W8p1SDGnnyzx6f4IoXvjNrshm1w/BOGsI5crFLPeUtV4PQkpufsn pPj+loX34HSoxSGhPTykAg==; Date: Mon, 20 Jan 2025 14:50:35 +0200 Message-Id: <86ikq97ip0.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87ed0ygsmi.fsf@HIDDEN> (message from Michael Heerdegen on Mon, 20 Jan 2025 02:51:17 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 02:51:17 +0100 > > Tassilo Horn <tsdh@HIDDEN> writes: > > > Good idea. I've tried this simple patch and it fixes the issue for me. > > > > diff --git a/lisp/dired.el b/lisp/dired.el > > index bab5e833a76..1152d85f149 100644 > > --- a/lisp/dired.el > > +++ b/lisp/dired.el > > @@ -1289,6 +1289,10 @@ dired-buffer-stale-p > > ;; Do not auto-revert when the dired buffer can be currently > > ;; written by the user as in `wdired-mode'. > > buffer-read-only > > + ;; When a dired operation using dired-map-over-marks is in > > + ;; progress, inhibit-read-only is set and we must not > > Better say "bound" please. > > > + ;; auto-revert. > > + (null inhibit-read-only) > > And use `not' here, since we are testing a boolean valued flag. > > > (dired-directory-changed-p dirname)))) > > > > (defcustom dired-auto-revert-buffer nil > > > > Probably testing inhibit-read-only is not TRT but the expansion of > > dired-map-over-marks should explicitly let-bind some new > > dired--map-over-marks-in-progress variable to make it more explicit... > > Yes. OTOH it's not bad either. `inhibit-read-only' bound (together > with buffer-read-only which we already have) is a good indicator for > that some operation is running and we should not auto revert. > > Unless I'm missing something I would prefer this solution. But inhibit-read-only is also nil in WDired. Do we want to disable auto-revert in that case? Why don't you prefer the new dired--map-over-marks-in-progress variable idea? Or Drew's suggestion to bind revert-buffer-function to 'ignore while dired-map-over-marks runs? Both sound cleaner to me than relying on inhibit-read-only, which is used in gazillion places.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:08:01 +0000 Resent-Message-ID: <handler.75626.B75626.173737845010957 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737845010957 (code B ref 75626); Mon, 20 Jan 2025 13:08:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:07:30 +0000 Received: from localhost ([127.0.0.1]:49331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrV4-0002qe-AO for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:07:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56148) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZrV1-0002qG-IJ for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:07:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZrUw-0008Bg-3m; Mon, 20 Jan 2025 08:07:22 -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=Z37fl/vYDVdODyOmo5ZTv9A9ttvcWoDVatuszbwTFig=; b=o09qlEhe9emy us7H9fTirXMFy3xCIBMxagBUZyqZMJ8I0DApSFZk0II6FwmgaQiD0gURzB8y3MfXh8H2raZioAmlw yMtrv1zma4HdROr/sLd7+TfLpKa4XEhA6B7zENvoLQL5+3wK1FwUJ00xSsYNfGkF7LWD8Rc5J4Jyr xtX8XOOrYyD92ta/LPU4uepJdfCecc5IQTStf5of9ZFJwzYecOOQ1LLgI40tM1c96SMrT/dLAgg6G cnRtxwjT8IV7GtCtDGaQJJ1cdFhZ2CJrx1YUVJM61kjFz+MpYbR0Hjgq4K2lU/WbgdlZMut9GUR11 GnqrluAcSvW8hoIb0LvLgQ==; Date: Mon, 20 Jan 2025 15:07:17 +0200 Message-Id: <86cygh7hx6.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87r04yj9yb.fsf@HIDDEN> (message from Tassilo Horn on Mon, 20 Jan 2025 07:06:20 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <87r04yj9yb.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 07:06:20 +0100 > > diff --git a/lisp/dired.el b/lisp/dired.el > index 2087a6f6f21..c78a13800e6 100644 > --- a/lisp/dired.el > +++ b/lisp/dired.el > @@ -1289,6 +1289,12 @@ dired-buffer-stale-p > ;; Do not auto-revert when the dired buffer can be currently > ;; written by the user as in `wdired-mode'. > buffer-read-only > + ;; When a dired operation using dired-map-over-marks is in > + ;; progress, inhibit-read-only is bound to some non-nil value > + ;; and we must not auto-revert because that could change the > + ;; order of files leading to skipping or double-processing (see > + ;; bug#75626). > + (not inhibit-read-only) > (dired-directory-changed-p dirname)))) > > (defcustom dired-auto-revert-buffer nil > --8<---------------cut here---------------end--------------->8--- > > Eli, good to go? I answered that in my other message a few minutes ago. I think we should find a cleaner solution. > And if so, master or emacs-30? master, of course.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:25:02 +0000 Resent-Message-ID: <handler.75626.B75626.173737946014042 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737946014042 (code B ref 75626); Mon, 20 Jan 2025 13:25:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:24:20 +0000 Received: from localhost ([127.0.0.1]:49370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrlL-0003eQ-Kc for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:24:19 -0500 Received: from mout.web.de ([212.227.15.3]:54493) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tZrlJ-0003eA-6v for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:24:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737379450; x=1737984250; i=michael_heerdegen@HIDDEN; bh=RiNC/gbY5EScE2m/fadwIwlJsGHrtHIPO1YJ6MQR4iE=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=wJ2IZPgEHVyF2ID+mZaosp2eSuaiO947oLxMYbjlYJlHklSPeJgn8XN4LN3elImb MXRYfAi7F5GPQ/GFlPK/KW5x7/ZcRBZLBkn9b2paEIVgRGthK/ALw3SLzpOOATiOP BDfvdmBydjIxSsd7OJukb22zcREMqBrh/FPH//2xcyT644Lo5XVHPu8MOFQrUcvFS kdvDJvjOZrixjgivNh7la46pyFctujwIs3scV/I8rKZjaQfb2k2I0TkV1hvuwV7FA pRIbbtpCG9+UN6OuHecQll26Y3mKPqFim1e3GaRQa5uCwFr0NjJeR4btYk7LWkQX9 aOW+HBKwMJbMep/EPg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1Mty5w-1tF1WQ1Glo-00ybpq; Mon, 20 Jan 2025 14:24:10 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <86ikq97ip0.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 14:50:35 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> Date: Mon, 20 Jan 2025 14:25:23 +0100 Message-ID: <87a5blhb24.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:pMwVjtYeVR4D7VDY8wI5szFXln+srQdriH6zlcDRpkrL/AtGTVL aWNOHWLoTirDAtdUagoRU2exs2Zj7GU1HCvL5CK6C85C6XAlbGVy7TVaIMTMqCYjPTXds9x /Wid/4CFHU8ujwQq6zCSf4Xf3NXXoIy4ytV0GlLw4xhilkNw3TUCK2AQg3bpPXvjRjDEvc2 vWGSFE4omZ3wReAlJhzRA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:cAJcZmJzyDQ=;IKjrisqQPIQFDEa80G1Hhc8zeA0 9lsbtdXPTs5HLY1/QwHSkfHhBIxrR8+oiSyLSaZIKi0l6UpGTmA3Itzbs7Rfi1WlpKmQwja2d uABvqD6kl5Iqh/RZEda4kxDjcsvTDURYylKkv94wPRPYCgH3XCgvIf8hWx158oQDLJYG2TWdw vLLyGiXlenL/AjINxhVSN8ifsFjwWB1sSDjFHmvYGc/0nK6ttpCPVkl7dkIqt6OFvk2CNv0Vk YLLQkixpyQUv//+8iqgPHUOTtNXOgLc669XmyOLNlel6hB8AD7NSG5UrYRgx5Gin7bRXNQGTM OmKEieS1o26JjIR68RlBE3MWWpdCHcEe7rkqitpszHURkmULPN7DcOYUX688GpGHRDwrHiLOa ve2aSSOhaSGdOjqm6jXcbKuMZJKjn8v60Y7rTmeDloLmuOgBRIteFZ7oSlnwMcr3p74HCxmYe rMsKNuK1MHAozeuJqizOntNISzgD8t40gxJtzliA5jxu2oqLVXAaYIC50CNVDBu9WJe8FRGUp 04P1URNESM38lI6YD+/fU+CFvDavH8MqT9LGOzxFNKzx5NIeAAJ0RN2YSQ3pmRG36g8WFTqEe HerIx3+LXkGPwTw2LI3J5vBsngt0oVrEFWn/9MdojoEm3T5JT00RtSEahR1ifCzUTa4IJzCNY LAtR1F0ERZGaDRiuTMgqlIq+5MwYJY4jOAAx7NC62uBAXWkz9hWoLfNpPL1kxUmjyKoCvvrgb ee7m2Nk8ZtCLTPVyIlqk0qj44ue5RbExPyftZSFGvh2+KfrcU8p0LAAcG6FrhAbIw1th9RnUG qs3idzqwUL+ZtujAyvosvdcfPqO1e52EfpD2ufWJmT3FnzRe1XkYCiMkqw7Ji2fHxAa9yfPes BMsHcbSkX65Rk9+1iOFwPxu3R9q/1OthJuRGlqCzdQrr1jJDy76PGHyWdm7Y6IcKKYq0dwvbR 8O7D8PvN5fYWNt3yjOuAj3BaCvfAIwC20QxZExgfmdDewGNKKLYlDF54SXFyN3Gw/K708gNlu UaoB18+9RsHo/bthme/jTndhP93wwPqZHCanQim3J2FpAOlbXu+9FQpAaO70R6Zi82Mi1fEWW PzjluE3aYxzjaSNXiUirvCx8qa2khx6zu5vykxpc0PtRyaK1yUg8TlNGJPuOGZXXTEQdCM7mT aLtM5Fu0FxAWBl7PSSPcNO3wFgI3pu/9X7KFCuubKVQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii <eliz@HIDDEN> writes: > But inhibit-read-only is also nil in WDired. Do we want to disable > auto-revert in that case? It already is (via buffer-read-only), and everything else would be a catastrophy. > Why don't you prefer the new dired--map-over-marks-in-progress > variable idea? Or Drew's suggestion to bind revert-buffer-function to > 'ignore while dired-map-over-marks runs? Both sound cleaner to me > than relying on inhibit-read-only, which is used in gazillion places. FWIW, I have checked all of them appearing in dired. While it is very likely that it is good to prevent an auto revert happening in the middle of any operation, the considerations of this being bad in some case seem quite theoretical to me. If we really go the `revert-buffer-function' way, we would need to check that this doesn't have side effects, because the code that auto reverts still is executed and thinks that revert has been successfully performed. We should then also check what happens when the directory is remote or handled by tramp, auto-revert-handler is set, such things. Introducing `dired--map-over-marks-in-progress' sounds cleaner to me than that. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:26:02 +0000 Resent-Message-ID: <handler.75626.B75626.173737955414561 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737955414561 (code B ref 75626); Mon, 20 Jan 2025 13:26:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:25:54 +0000 Received: from localhost ([127.0.0.1]:49379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrms-0003mn-95 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:25:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54492) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZrmp-0003mZ-KM for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:25:52 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZrmi-0003N6-90; Mon, 20 Jan 2025 08:25:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=yH8TKIOo/cDHeNENjsT8XjtUBPkzpCAzzCjFcsTcGPY=; b=P2dnErWSZzYJwZ73UIzL /Jxa/nBaepelW/o4EqbMld7ONGLm2Q9bULSi0dEU2LnkoM2gaE9MgsZjVgCDZ44CQUCwKpNGYrRai fEpEhzJUrW2w33a/Zk2p3Kzfr53YFNfgNtdjIVd5vhXiha7BzN+SumrKvaKVTrh48G66V4c9KDihf eUNRPrkZra0tc6z2A7ISsjZnaX+Lcx2VVukP689vnRiePHnvgd1NIiSoIE5dci38hFeYQ27k4clAA NaDd3iDnc1KILV9rwczgrRKQzXCC/NdmX1Ou30bnp6rN3ABXNbAU/DDUd/DIT9hD1PhbZNrONw6fq S929iVLJiqtJ9g==; X-ME-Sender: <xms:006OZ6hcRkOgoMy6rqHeSViYrbeH7RWzKf2IHKGL0twIGeUy8tECuw> <xme:006OZ7B_Cj9lvLVTtbq4kDfcw_4A1lEsm5DX4cpedu9vZyu_DTKP8SQbGv3FDTWc0 4ZH73k5TRREuQ> X-ME-Received: <xmr:006OZyHW0JM23qJ2lS8By9-6Pye7pWxCSKafNHLJtSIq3eDRSUWBJoiafxTv4RuVeenqTzp4QX3dzhH66EF7kr3tCE73B60> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrg gvlhgphhgvvghruggvghgvnhesfigvsgdruggvpdhrtghpthhtohepvghlihiisehgnhhu rdhorhhg X-ME-Proxy: <xmx:006OZzQ-nNlGKoS1o3Fq5Hd5qS0B9lak9tw-nS6hb__g7HrgW_QtHw> <xmx:006OZ3z4nLOKRINXVAfj_FzZs2cLeMKKFu1SxGPWvh112qf0IocaHg> <xmx:006OZx7RS5yAo5LwqQuibySmd_iQPN9cmkNYTYNfe6ppgDB8xD-U5g> <xmx:006OZ0yPbuhTLFvYaZXpOi72nra3aaD12DBbl7QEj7qbJvTEqx1iKQ> <xmx:006OZzgYklb-amgUr8seojNm6m9KPUyq9MnA9vIFzzHQxVEM1708gbLk> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86ikq97ip0.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 14:50:35 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 14:25:36 +0100 Message-ID: <87a5blk46n.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> > Probably testing inhibit-read-only is not TRT but the expansion of >> > dired-map-over-marks should explicitly let-bind some new >> > dired--map-over-marks-in-progress variable to make it more >> > explicit... >> >> Yes. OTOH it's not bad either. `inhibit-read-only' bound (together >> with buffer-read-only which we already have) is a good indicator for >> that some operation is running and we should not auto revert. >> >> Unless I'm missing something I would prefer this solution. > > But inhibit-read-only is also nil in WDired. Do we want to disable > auto-revert in that case? Almost certainly. > Why don't you prefer the new dired--map-over-marks-in-progress > variable idea? I can't think of a situation where inhibit-read-only is bound in a dired buffer and auto-revert would be welcome. Just to be clear, disabling auto-revert-mode like it's done in my patch does not mean that you don't see the progress during a compression of many files. dired-map-over-marks redisplays every now and then. So I don't see a loss here. > Or Drew's suggestion to bind revert-buffer-function to 'ignore while > dired-map-over-marks runs? That would also work. > Both sound cleaner to me than relying on inhibit-read-only, which is > used in gazillion places. As said, my gut feeling says that inhibit-read-only in a dired buffer suggests that auto-reverting is probably not a good idea. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:29:01 +0000 Resent-Message-ID: <handler.75626.B75626.173737970014868 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737970014868 (code B ref 75626); Mon, 20 Jan 2025 13:29:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:28:20 +0000 Received: from localhost ([127.0.0.1]:49384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrpE-0003rk-9O for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:28:20 -0500 Received: from mout.web.de ([212.227.15.14]:55873) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tZrpC-0003rT-JT for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:28:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737379690; x=1737984490; i=michael_heerdegen@HIDDEN; bh=J8x+OH4P7FSK6DkmZMy4ywyMz5h/IY3Nrqqr5+JRDG8=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=w6SzPXinLvPgw7DKhkQtNjb9RjySgX3r95xhaxKalrIEEb7lsfm4eJlI9e/TescE Ex36/tRfsqreRCXKrw1kpydqQu8lmt5UbvO7TtOYbRCrsjn3xJUL9RWEncB/ckTnD d4Ou/uAva7pzEE4wsdY56eHOC4kPUr+/PsJcCkfNNFKIE14hIj4EN+/MZakR+aIIY l9My5ULQaYsGZIs/EMfsqZdyGNRr/Pbil/5MMkWxbqBlCzaKp5IB+plEqqL53dIU/ voMpCnxuTjg7j7R7njpU2/hjlghAOjnf5gMoDmfo3xvcAw25wp9/uBCEc2bc2/A0w ZMDHNLnV3tsnTZdCeA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N2jWK-1tNrGv4ArE-017NdI; Mon, 20 Jan 2025 14:28:10 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87a5blhb24.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 20 Jan 2025 14:25:23 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> Date: Mon, 20 Jan 2025 14:29:27 +0100 Message-ID: <875xm9havc.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:aWrpNmDGmnOSv1XYXcLH7SUg2MNj3WPZTQ6SjIv1manxHKRZUeH zOqJjus0RX/kzWivD/f2WMOaYdX09QWyL/tVYvUum9r6xIyFDOT5Xf+5/SumEJf2bYovRe4 wTURfHHLzZasH8e9Oyd3BlzDOycfDcypxqMUsYgO3r1hY3zhISMCt/WC8l+rMg4y328Ajiu 4WQSqDdy3hHL7GsEp7/vA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:i2Wy4fpzWJE=;JodTwTDUimNYRgfw/hB8uhPt4BI lnG+KBkkG5VS3NYPArIm/O0XcrDIqVuSiMWhuzkPymn1dot57W8MPgu7U9fSnjwB9dGmfBx9k zfhjFodagPYoamB6itoIqrGKgUqtTz3weruew/VASRJDuKNKukFo+UabT4qzIyceiZLHr7xKF mNKfX4UTAyr7SzVmhTu1OVlE/b9bGRJF7PhykrIAK+Lc1rbGrxd7Qh2yF/kFzs4Kmo4N7pKcH uynH83/haQPWfo3Rs89VmQtJxmLTa1gjsxo7zO6JfeMITYqK4RoJFUai2l9lo6cvpodS/yjp4 Eum5hRm2GdxvN1mH2LYANvELxKcOv0qFd18vKfAsfQXo2L/7OJV6BmyCeLo+V84SX1iksnzDZ s6+6G1dmb8SZZxWq1gVTOtsud7xJLjEg1nYPe4R8bbyIndBQWXlFgvKnwweM6dkWs9R7rzjnN rUcb9KoKOLjEpJi2BN+Bzl3Eg0sX0DuuSf07PIU5ooJu0hFpJR4YROgultpSDt6fiOBZ4XISo BYM6RErbxDza9vD28gmJgJDEWT3wsaBRpE+7cMUdLzcmC+D0639wRzoxV8Fb5EQSLbG7Mh42y aggKh4YEiFTH5483P89yQe0RaU3sYIdZXBvFIuSN17YHLgjHtThEAjG15wtxYvUBHxbWH9F39 BCOZdpOIfREwkg1icyytU4R4LmYnrbfSvMRJXNQ49hgbd2Q7A0MKt/tQZGweKNX6jExQ508kh iC0BlkIZe5O1Qv9uZy1FG0AyD9eU20Fvp1F0aVUfQHx+MrJ67tGJzk0az3VTCOO1MvFtibbm7 BICmwWEZVlyeUWpMzJ0qMlOzlYllxw09zUEvHm2MOY2gs7/CnrNm/42yvZmj4nUXg8ZHmxPmN C2XuEl6a3ZevVyhunnDymd6THKT9f91ULCIWB4gGehuEeXymOhco5gJho5wehXKI2EGBhz9x3 2Jdi8dSy5fsM50RCuMU2CRJ7LhmZJouW2Sn9NGOwFQKjE5PnJb35cCeJHgJy7bQD8hA1yX4Lo BCCTWhR8Gug3g8dprVae+p+JtkV87XI9R9g3plpWjNy9Np4YORL6AACKMzlfDFh7lIZUhEAjt wLVpmnVcuk0FUzAvjCrX46j/pgT7MTLidFYZhEcXnlClzuB5jMqMfXwdeO7WE+vJhC3gqzlEX 1cs/gC5N5RwAj8FPkceH7HO1Ud8pWVkCE6DbkY+oTTA== X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.7 (--) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > than that. But it probably needs to be buffer local, else we would prevent auto revert in all existing dired buffers at once. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:31:01 +0000 Resent-Message-ID: <handler.75626.B75626.173737984615543 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737984615543 (code B ref 75626); Mon, 20 Jan 2025 13:31:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:30:46 +0000 Received: from localhost ([127.0.0.1]:49392 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrra-00042d-2s for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:30:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52060) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZrrX-00042P-Hm for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:30:43 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZrrS-0004fu-8K; Mon, 20 Jan 2025 08:30:38 -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=ju21y3mDPyA4Naro9Yob3QidkGk2sgaKAlhd5jJ0V1c=; b=IsxlLns8QTwA 29xYFgylPCgzKn+JbmoMYBPVHnarqggLYjzbnh494MtsMZmF0I3KMiRw7rRTXMT7LmD8Z6FyRVVc3 pmFevTzDUv0GzI/g6gRyGsMQxv/dQaVCGGtYpnyR32Kj7hkKqUGhm8nR9xSJ5s6P+mVHQSNg96NGZ BicUuKhjC3hEkSN0gl16JswNCiV4mnO1ZsWuilTYEpa4rkAQ496af2RiLJ2jYCiBgjDF7w6pO3asG jkxdFq4odW5qKUD69xt8exp/CfzPBWfX/GPW5o3IPtI3H06GmPXDWP3sRrSKRLf9EpKmHPshQ1KEB DjpaaP+McpS+RfQyuiBtSw==; Date: Mon, 20 Jan 2025 15:30:26 +0200 Message-Id: <865xm97gul.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87a5blhb24.fsf@HIDDEN> (message from Michael Heerdegen on Mon, 20 Jan 2025 14:25:23 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: tsdh@HIDDEN, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 14:25:23 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > > Why don't you prefer the new dired--map-over-marks-in-progress > > variable idea? Or Drew's suggestion to bind revert-buffer-function to > > 'ignore while dired-map-over-marks runs? Both sound cleaner to me > > than relying on inhibit-read-only, which is used in gazillion places. > > FWIW, I have checked all of them appearing in dired. > > While it is very likely that it is good to prevent an auto revert > happening in the middle of any operation, the considerations of this > being bad in some case seem quite theoretical to me. > > If we really go the `revert-buffer-function' way, we would need to check > that this doesn't have side effects, because the code that auto reverts > still is executed and thinks that revert has been successfully > performed. We should then also check what happens when the directory is > remote or handled by tramp, auto-revert-handler is set, such things. > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > than that. Fine by me, thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:32:01 +0000 Resent-Message-ID: <handler.75626.B75626.173737988915683 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173737988915683 (code B ref 75626); Mon, 20 Jan 2025 13:32:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:31:29 +0000 Received: from localhost ([127.0.0.1]:49397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZrsG-00044s-Me for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:31:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52666) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZrsD-00044N-UN for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:31:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZrs7-0004od-8b; Mon, 20 Jan 2025 08:31:20 -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=5XVXRf1IKZOWO0tKn8UIBkK73JJO5qj4bB7j90cu8Sk=; b=DJXnUOR685FK KnbyVgZHFKfysB32W+lJiqmWELRAsOjOapYaJqGREwMd43/3dRgrijxkCq52dAsTFmoxE+k5HfvpK AudUdbFS6Wirw1/zEyHt0S2BI6bGgkXVryJ9mWUX99cQYjjavloDDEanYec8nlT3uhYL/RBvftL2d Dogs83mqia5buuuaMVFShOUayZ26zZq3skHXiCT6aK0d0weTtR/0nKu2vwpDLHhVoE7v78GGP5Xze 6jYrFq/A0Rz/+dhpBJy35c8wLrg3OUCXMokyLKSMjguhFiW81yc5w1oS9reIFjIScaK2qjl/17xdJ L9BKlAdwBBgWBCUSMqO6wA==; Date: Mon, 20 Jan 2025 15:31:06 +0200 Message-Id: <864j1t7gth.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <875xm9havc.fsf@HIDDEN> (message from Michael Heerdegen on Mon, 20 Jan 2025 14:29:27 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: tsdh@HIDDEN, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 14:29:27 +0100 > > Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > > than that. > > But it probably needs to be buffer local, else we would prevent auto > revert in all existing dired buffers at once. Yes, of course.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 13:58:02 +0000 Resent-Message-ID: <handler.75626.B75626.173738147320267 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173738147320267 (code B ref 75626); Mon, 20 Jan 2025 13:58:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 13:57:53 +0000 Received: from localhost ([127.0.0.1]:49431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZsHo-0005Gp-Ln for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:57:52 -0500 Received: from mout.web.de ([212.227.17.12]:50197) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tZsHl-0005Ga-N9 for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 08:57:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737381462; x=1737986262; i=michael_heerdegen@HIDDEN; bh=EIy/KsfCNZSa73G3/jAfzgIRfu89hWF5aqXwnAhwx/c=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=bg52KLGdPccSGCU2RxGh2yp8yHgHZStl6lf+muFSv4wyshiaxBYpnxOVTdrFwfDC lzf6/a0MfEi0twQhIul7g7yj/0ztcU/29KcMwVnShgiLXc+4jeyryrZ9fJyOtHorO w70SUxyqk3T9uSupzEu3N9bH10WjkfKQ6sNWxC6/EuQNOY6Vk4gKOtUqrUD3a0iMK IEITnFFUHXhkgv+14DS0bZdWUfZjf4Mu7ext96SL3n/WaKCPncSFx8yhegkydwktn xyfUt2WwWDl8FxAMPKUXjPzFSxe9fEqQtDyOKyttLshfq6tcrV/9FJKcPGI6eFDWH f8xeajBC9bJCWE9LHA== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MxHYA-1tKXHy0zn6-00rheo; Mon, 20 Jan 2025 14:57:42 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <864j1t7gth.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 15:31:06 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> Date: Mon, 20 Jan 2025 14:58:58 +0100 Message-ID: <87wmepfuxp.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:LN2C42tOrk5iZQtiyr7E6SdoyR2+atU/FSg19BkHMSt5bSMVOpB m0/JW9YRVzf/SoxmAT7pwABc8JCksBWCG9g93uoM90W96WPm4W14/zvhAkNnBEA+CdAVg9A Owk5jgOv7LaRldp8suVb1H4GrpaN68AJkdFTtracGarQ9KDD+zO/4EFGxaq9cXxupj8y/WF xpWq6nC21qJM1mS42eXvw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:AWaYFLjjBB8=;8p1XcOCjlLOK1ljRRuZkQAagT+L apCuJ/CXYDLeOut8e8qGbIcVhcREDmXVo/VKgzQOLkcWghlr1Lnil6irspKO8egD3WK+DpJR3 44DHdC3w7Rd9Pei/yfU/xWQMDuANw0z2Fsxo840ETyZl/rSndXwTHIjXJszTSKCvw1W9bMKj3 9lAAst/D3id/dWe3bZwx+zKw2YGPj8agtsqVi0KtLSjY/ddqnSYHdnsgrKahGP6Etg1ugzAOp TkXPDL1LCkq0l4uAa3SplEH8B73MkrcftAN1K7RyzTI6JqaPvAKzd/wRo0YhevzgElqc2PLBo L/1z2JWQusbjubaBDCnd2UHjqsSrKp3DRpofQLfn2MONoRGXk2ADna9jEia7aPXBD4bo6KkzW mMIVbdhzmATJ0A3hJpnSUr3S312mat17VB8jQQAalS9Z6IFSeR3HmL+yztD5AFfrsNw/+6SwX 1PMzrlXIwJz26uTegWSlzsQkp0iyoWDDpPiqLHEdLIECA6xM2BvHrp+eLQAhb5q240LNEK0of bG0vxHvORSgQQGW7qYmsA62cYoKYb/+mrFUioT93d5eyvNjpjDeUtBwBjtoXVXcqLXHgQr6pR 0Q7XoHyPg+1CUSlyXvYykwDJkOZDgBT6nwdVp1rD3hPS1Mysyh0ojDNjbcXDMs17JyYp6NKa3 2RbaZJYJcquUUVMUAoW7HP8Vo8ndhwm1hLhuvOaATEtlvQ8m/ZFHSmurx1PYpnh4JSdfFENvK YJlc3vJrWSMGyVvaLKebQKhlACOjxTW4iw1grfqJy0dP73JOhsVVXi8ccxuWzzQ1zq7pOmThl rQ5I1auisG0HdetSGuwYE90BGcAaljJ9bJ9xUzCkHwGCYeVbONNnfn6N8yKlGn3XRx3/4NELE +KpUWXIsdkisR6I6WarCcdss09ICrnrZQ3CofHkTHca7sVpmcs4FCYCONBUD+E3VPqV+QXIdM fEwwtKzIgTa4JbtOoQIZe60xt5I9T3ZDX9FHZlqcBvIc/TEkV/VI2skCxR2FOnsh2mRPZs17A Yg0Sl+nGllVWB34xPGTSghsqlI6NfvfOG0+SFv85ujSjOqTeXXXrajtw/QnYRBPRaFbX/D3gA 5NlVzfGComsvspy7VRzdMaTY3st+qIL0VLKa5o0lsMWi7RoIrdCT8f/3cxFDBVfAY3VvLxZip bTRxmP2hMruqJ5/CzWX90p+lAuxWwiLpb5j/BKgwn1g== Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: > > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > > > than that. > > > > But it probably needs to be buffer local [...] > > Yes, of course. Then, finally, I would name it `dired--prevent-auto-revert' because this might be useful in other places as well. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 14:05:01 +0000 Resent-Message-ID: <handler.75626.B75626.173738187521643 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173738187521643 (code B ref 75626); Mon, 20 Jan 2025 14:05:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 14:04:35 +0000 Received: from localhost ([127.0.0.1]:49446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZsOJ-0005cz-58 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 09:04:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52400) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZsOG-0005cj-QE for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 09:04:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZsOB-00014A-7t; Mon, 20 Jan 2025 09:04:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=4WuunJIf5OI3Xb9HcyivffuftHAFou1964Jh8z20QxQ=; b=MrQ53+5PLTu8Ck0HszQI Sxc6sPn73yZecxTHWc/qfAL9qIxsTU4QZh/JI3QtREahN8xe87dKYJqdvwLrK8wKWIt6FVDWnGcD5 6URGBuRSgNdB/ONGWX+GJKc0+spM9vhXKErXt4+76jqNudYRVW9x6ASuMC1waVywWHpcHB3flZzDL cAlyyPFag8VNhxs2zj1TOrYn140DaR/eZucvxej4OiQJ2eBeqzH+O9cHJOPDNne4UoR3pzjQZthUl htw6wf47hEx2Tjdje4IVZ0AUNgBl5QsVyjRH/Rseqch710a6E5d0IAHLqCouiRmnE5pc1PQgLna1+ 6zMOJHoCCE+SFg==; X-ME-Sender: <xms:6FeOZxgTbGOW_e-Jw2313oBl4lLjPAdGMKE_TDEKpiaPJAqpRttFGA> <xme:6FeOZ2DNQSB7j1tZwj90JeseDlvSnYVhTqfS1UIehMpMy_RvUdc-Z0aDsXug-39f0 Z3FM_TdseYBqw> X-ME-Received: <xmr:6FeOZxEKaWZnKHtxOPlf7FWuDz45Iw19JY_qbbwcRZBse2B-yrfIeDtXu13tmXuLwze_7m5hTnv_vCHG5kfcns0FfdPrI-k> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggv X-ME-Proxy: <xmx:6FeOZ2T7U0Q7WMrcIrDjR5xMpki-7jXGaR7laMxf8pahBL31kEszXg> <xmx:6FeOZ-ylEUCB8NiCI065rqftGSvLGLr6bqugChxH2RhfaoyZ_HqvRA> <xmx:6FeOZ85JDEEOtueivYfgdcLK1AyLZrPlpuPMojS_VmysQ41e_nPwmw> <xmx:6FeOZzwSEN0bv_MAsDjn5PJBgVkDeCbNAPc65bmfBlgruvo4oa1C6Q> <xmx:6FeOZ2h4OnAro4jEHbEDIT4nswsPnDMPXnp3lyiGTR5FFyZi79x1YDOf> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87wmepfuxp.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 20 Jan 2025 14:58:58 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 15:04:21 +0100 Message-ID: <874j1tk2e2.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >> > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to >> > > me than that. >> > >> > But it probably needs to be buffer local [...] >> >> Yes, of course. > > Then, finally, I would name it `dired--prevent-auto-revert' because > this might be useful in other places as well. Sounds good. I'll make that change, maybe later or tomorrow. Thanks, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 15:33:01 +0000 Resent-Message-ID: <handler.75626.B75626.173738713710359 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173738713710359 (code B ref 75626); Mon, 20 Jan 2025 15:33:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 15:32:17 +0000 Received: from localhost ([127.0.0.1]:52007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZtlB-0002h0-Ap for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 10:32:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39816) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZtl8-0002ge-4j for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 10:32:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZtl2-0005iu-FR; Mon, 20 Jan 2025 10:32:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=xwFU8/TrTrEivE77vtrBiNocYt+FxVxlBhbQZ/6PMG4=; b=F+VnCYgE1ce85kN10IWy bzDeAbZ3zaBsEEV1O7wgA+n1tw0fGLaRSOX61i22QpPzQUWa47FNHOIvPy+f/VaQFvyt86m6XsRMp dbV8nhrqjZGhOG5z4yIUTJIPl1j0Za1yLzFtuqJ02Olpb9Jdd0XlwOH9tcs0EqTzvrO/ZyS+4FQSd sNLEpVR1xZwHWyjkq9rlY/3pUzGXxSgmkU9Fg2yQYs1b7P68rHvCp5kor704LabqSNULRU+TCFQlJ 1269GzFX/esJhHFYTfFgtYO3idAkndc0nHYUxTosKYKt7TTZw8vtPAOLcO39vacHtlju5a45s7XHc 2AWsavvSWiDJww==; X-ME-Sender: <xms:bGyOZ3zBfIVO3dYieU6CsIKT6usUOKrqNfR2oriXF4BNc-llo5HE1A> <xme:bGyOZ_TlORqkMDuzT6XL0IiOGIrq17pF4DS4qommbc02f-lHZt8J5vrU8L-7uwsX4 fboWnfXisUnwQ> X-ME-Received: <xmr:bGyOZxV5kLvgy0GJY0Mnpa-mcloslhMvFocidIchdzPcFxOR-fpOCCFpKHECW94SgNhIjXI4AsoTctzLztTySzaRXhjA4Kk> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiise hgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigv sgdruggv X-ME-Proxy: <xmx:bGyOZxjYi8Pt7EmdSen4lNcyWlQ4Fl7QvYbxXvO38Rb451opTTpDBQ> <xmx:bGyOZ5BWFCnWyfqCv__2YOngdpMtCJSJfdNtjlKo8mDaraHqHdZvlQ> <xmx:bGyOZ6LXFPFPIsTxjOR-kPcV2QFl9XrW3ZNf0acia2LvQbjiz5TZCA> <xmx:bGyOZ4DtkBeqBoc74n3d0N-Tdv_sAMzGGlr2KZNeLFdvcQCEHjtUng> <xmx:bGyOZ1zsxjhRS2XP7nFHKj4JaWRoBkL7zOXfadLOGr1aWRwqyyEGxb8p> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <874j1tk2e2.fsf@HIDDEN> (Tassilo Horn's message of "Mon, 20 Jan 2025 15:04:21 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <874j1tk2e2.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 16:31:52 +0100 Message-ID: <878qr55wnr.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Tassilo Horn <tsdh@HIDDEN> writes: Hi again, >> Then, finally, I would name it `dired--prevent-auto-revert' because >> this might be useful in other places as well. > > Sounds good. I'll make that change, maybe later or tomorrow. Here it is for a final review. I took the liberty to name the new variable dired--inhibit-auto-revert-mode because "inhibit" is well-established in the Emacs code-base ("prevent" is only used once) and I wanted to have auto-revert-mode in the name to make it clearer that it has nothing to do with dired-auto-revert-buffer. --8<---------------cut here---------------start------------->8--- From 1c90086e90967303db0409a828e4514fc5235305 Mon Sep 17 00:00:00 2001 From: Tassilo Horn <tsdh@HIDDEN> Subject: [PATCH] Don't skip or double-process files in dired with auto-revert-mode (bug#75626) * lisp/dired.el (dired--inhibit-auto-revert-mode): New variable. (dired-map-over-marks): Make the generated code bind it. (dired-buffer-stale-p): Return nil if dired--inhibit-auto-revert-mode is non-nil. --- lisp/dired.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lisp/dired.el b/lisp/dired.el index 2087a6f6f21..47f6fd7c4ce 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -944,6 +944,9 @@ dired-mark-if "")))) (and (> count 0) count))) +(defvar-local dired--inhibit-auto-revert-mode nil + "A non-nil value prevents `auto-revert-mode' from reverting the buffer.") + (defmacro dired-map-over-marks (body arg &optional show-progress distinguish-one-marked) "Eval BODY with point on each marked line. Return a list of BODY's results. @@ -980,7 +983,9 @@ dired-map-over-marks ;;endless loop. ;;This warning should not apply any longer, sk 2-Sep-1991 14:10. `(prog1 - (let ((inhibit-read-only t) case-fold-search found results) + (let ((dired--inhibit-auto-revert-mode t) + (inhibit-read-only t) + case-fold-search found results) (if (and ,arg (not (eq ,arg 'marked))) (if (integerp ,arg) (progn ;; no save-excursion, want to move point. @@ -1289,6 +1294,12 @@ dired-buffer-stale-p ;; Do not auto-revert when the dired buffer can be currently ;; written by the user as in `wdired-mode'. buffer-read-only + ;; When a dired operation using dired-map-over-marks is in + ;; progress, inhibit-read-only is bound to some non-nil value + ;; and we must not auto-revert because that could change the + ;; order of files leading to skipping or double-processing (see + ;; bug#75626). + (not dired--inhibit-auto-revert-mode) (dired-directory-changed-p dirname)))) (defcustom dired-auto-revert-buffer nil -- 2.48.1 --8<---------------cut here---------------end--------------->8--- Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 16:50:01 +0000 Resent-Message-ID: <handler.75626.B75626.173739177416386 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739177416386 (code B ref 75626); Mon, 20 Jan 2025 16:50:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 16:49:34 +0000 Received: from localhost ([127.0.0.1]:52130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZuxx-0004GC-UU for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:49:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51044) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZuxv-0004Fz-JZ for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:49:32 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZuxp-0001NZ-Q8; Mon, 20 Jan 2025 11:49:25 -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=kF4RDh4PC5Gm+CjzRnOJainL3SbkS/+Fm4y5Qh03B4M=; b=VUMm2aUw3AiG qflFNVbuQdfY++62GI+FfpyygwJ7zEH90SD0mY7G7gWEj20mel7djfiNzOpZJQq7WiPFQR4L2rV2e MNs5kJpv07FYclHj+CFIZufRJ0N1bnQAQaVXRhEuLOw5p8GaEVePOHIUCS6qYiYAHdmb7wr0w7Zbg t2hJJuYuKBvqTYdFVwEw44O23ub7qTdHPNUK06J1nenJ+IWAvZUMee2vTwk+5butL+bVN4O/FFR0P rSFWFSpdIqau23jot/cEtcTdwPZ9ig4aqTRJ1zJBqu/QQwt4i2SMk6VlefItRLhJ8PQBaDh2bm3rh ysLfPeTkgG0PzU77OogBVQ==; Date: Mon, 20 Jan 2025 18:49:23 +0200 Message-Id: <86y0z55t2k.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87wmepfuxp.fsf@HIDDEN> (message from Michael Heerdegen on Mon, 20 Jan 2025 14:58:58 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: tsdh@HIDDEN, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 14:58:58 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > > > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > > > > than that. > > > > > > But it probably needs to be buffer local [...] > > > > Yes, of course. > > Then, finally, I would name it `dired--prevent-auto-revert' because this > might be useful in other places as well. Let's use dired--inhibit-auto-revert instead.
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tassilo Horn <tsdh@HIDDEN> Subject: bug#75626: closed (31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled) CC: tracker <at> debbugs.gnu.org Message-ID: <handler.75626.D75626.173739215117757.ackdone <at> debbugs.gnu.org> References: <877c6pmnlj.fsf@HIDDEN> <87r051khsd.fsf@HIDDEN> X-Gnu-PR-Message: closed 75626 X-Gnu-PR-Package: emacs Date: Mon, 20 Jan 2025 16:56:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1737392161-17791-0" This is a multi-part message in MIME format... ------------=_1737392161-17791-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 20 Jan 2025 17:55:36 +0100 with message-id <877c6pmnlj.fsf@HIDDEN> and subject line Re: bug#75626: 31.0.50; Dired misses or double-processes f= iles when auto-revert-mode is enabled has caused the debbugs.gnu.org bug report #75626, regarding 31.0.50; Dired misses or double-processes files when auto-revert-= mode is enabled to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@HIDDEN) --=20 75626: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75626 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737392161-17791-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jan 2025 07:42:56 +0000 Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYh0J-0001ij-3V for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:55 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46730) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYh0G-0001iT-JH for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0001PL-TG for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0004IU-L2 for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=+dRq9nJ9moRZhgjrhPPxtjvesPunyH9LR/m2ZnCYnkQ=; b=KmYvQS0Aee4wee frCmEdLQdtZcChSVBJo2OgNkPZEqXHKJvOsOW5nYtRO/hKkAz35oOeqf4WlgZgSM01JaVc0oVulUz 6wKLPyjBbsuZbF4Yrpx5bK9IeW1MOU7eWRc/wq+LoKksm0cre6vre+xNKxN2ugAkQ4n2alghgvtY8 LNOCaHfO5W+RnRPVXHQH6USq1iFGcAOmK2PV2Q+yYKdi1WXlnLP6NTZRbHcP/QE+TmG3AEdxLhmzt tfihjluMogTyGr68JGH6qXkHDrBJe60leL23yMxAIfKLcVOO+4szevTt1qVsIA8k/TkInRiHbDgOF EaVuDm/cs1LbJCIBqRNQ==; X-ME-Sender: <xms:9QmKZ3Ioj1lXgJCsD8OiTs4OmnYFOGH6-vmlXNRRtOaLCipGvHSh4A> <xme:9QmKZ7LAWC0WRpC63I9r5TOWxO30KeAj6EMSgSeKxLqHNf0sVES-K36DgTU1w-vi0 4ysmU-MS8pZkA> X-ME-Received: <xmr:9QmKZ_tPYgNBDKnP8dIWyvX-ottk4jg2C2NfsrXoeCquIYjfv8I6QJkyg8tdjeIhF36K3JGLKAHW58SJyx68n_1Whxuf0pE> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeivddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gffffkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoeht shguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepgeeguedttdetfedvhfejue duteffudfgveekteekgeffgfeitefhudfhtdehueeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhph gvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhn uhdrohhrghesfhgrshhtmhgrihhlrdhfmhdpnhgspghrtghpthhtohepuddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhr gh X-ME-Proxy: <xmx:9QmKZwb8_m41XU49qyoJsN2d6m1KfgASsUtKepR70hz2VjXO9xUBbw> <xmx:9QmKZ-Z2yh5ABcQ6U_EbWaVhw9xvrLs2g3ij9vjeHaBZ91w-p9wb1w> <xmx:9QmKZ0Dg9ZOCxe-cM_KbFmKkDoIHe-34-bmzwtETvWX7SR5eEidT4g> <xmx:9QmKZ8aMx5RIioe5pN5JMxqzQyFI4u0iCBGQQPtVlou8MQsIwGXl9A> <xmx:9QmKZyqhqSTRfDtrxazjVbGMfaxc4yJOGP4USNRlu_2B4A4A0-BJT12a> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled User-Agent: mu4e 1.12.8; emacs 31.0.50 X-Debbugs-Cc: Date: Fri, 17 Jan 2025 08:42:42 +0100 Message-ID: <87r051khsd.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I have a directory test/ with files foobar.N for N in 0 to 99 and do: emacs -Q test M-x auto-revert-mode RET % m .* RET ; mark all files Z ; compress them all Z ; uncompress them all again Z ; again and again... ... I always wait until the (un)compress operations are all done before pressing Z again. But even though, at some Z you will notice that your directory doesn't contain only gz or only non-gz files but a mix of both! It seems the reason is that auto-revert-mode at some point reverts the buffer at random points in time while dired is still (un)compressing and that changes the order of files so that it either misses files or processes some files twice. It also seems it is more likely to catch the error when the files take some time to (un)compress, so I filled them with head -c 1000000 /dev/urandom | strings i.e., random but long enough content. I've had that issue just half an hour ago with a directory containing similar gzipped large logfiles. There, the error hit me so hard that I basically had an infloop where the same files seemed to be uncompressed and then compressed over and over again, with just a single "mark all" and dired-do-compress operation. In GNU Emacs 31.0.50 (build 79, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2025-01-17 built on thinkpad-t440p Repository revision: 37b5b3ea91a4ed005664540091e5150d2454d8d6 Repository branch: master System Description: Arch Linux Configured using: 'configure --with-tree-sitter --with-pgtk --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: breadcrumb-mode: t editorconfig-mode: t global-aggressive-indent-mode: t pdf-occur-global-minor-mode: t diredfl-global-mode: t mu4e-search-minor-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t mu4e-modeline-mode: t which-key-mode: t highlight-parentheses-mode: t global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t corfu-popupinfo-mode: t corfu-history-mode: t global-corfu-mode: t corfu-mode: t vertico-mode: t marginalia-mode: t minibuffer-depth-indicate-mode: t global-eldoc-diffstat-mode: t switchy-window-minor-mode: t electric-pair-mode: t recentf-mode: t override-global-mode: t repeat-mode: t global-so-long-mode: t save-place-mode: t savehist-mode: t puni-global-mode: t puni-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t overwrite-mode: overwrite-mode-binary Load-path shadows: ~/Repos/el/mu/mu4e/mu4e hides ~/Repos/el/mu/build/mu4e/mu4e ~/Repos/el/mu/mu4e/mu4e-modeline hides ~/Repos/el/mu/build/mu4e/mu4e-modeline ~/Repos/el/mu/mu4e/mu4e-context hides ~/Repos/el/mu/build/mu4e/mu4e-context ~/Repos/el/mu/mu4e/mu4e-main hides ~/Repos/el/mu/build/mu4e/mu4e-main ~/Repos/el/mu/mu4e/mu4e-vars hides ~/Repos/el/mu/build/mu4e/mu4e-vars ~/Repos/el/mu/mu4e/mu4e-window hides ~/Repos/el/mu/build/mu4e/mu4e-window ~/Repos/el/mu/mu4e/mu4e-speedbar hides ~/Repos/el/mu/build/mu4e/mu4e-speedbar ~/Repos/el/mu/mu4e/mu4e-view hides ~/Repos/el/mu/build/mu4e/mu4e-view ~/Repos/el/mu/mu4e/mu4e-thread hides ~/Repos/el/mu/build/mu4e/mu4e-thread ~/Repos/el/mu/mu4e/mu4e-bookmarks hides ~/Repos/el/mu/build/mu4e/mu4e-bookmarks ~/Repos/el/mu/mu4e/mu4e-org hides ~/Repos/el/mu/build/mu4e/mu4e-org ~/Repos/el/mu/mu4e/mu4e-lists hides ~/Repos/el/mu/build/mu4e/mu4e-lists ~/Repos/el/mu/mu4e/mu4e-actions hides ~/Repos/el/mu/build/mu4e/mu4e-actions ~/Repos/el/mu/mu4e/mu4e-helpers hides ~/Repos/el/mu/build/mu4e/mu4e-helpers ~/Repos/el/mu/mu4e/mu4e-search hides ~/Repos/el/mu/build/mu4e/mu4e-search ~/Repos/el/mu/mu4e/mu4e-server hides ~/Repos/el/mu/build/mu4e/mu4e-server ~/Repos/el/mu/mu4e/mu4e-obsolete hides ~/Repos/el/mu/build/mu4e/mu4e-obsolete ~/Repos/el/mu/mu4e/mu4e-update hides ~/Repos/el/mu/build/mu4e/mu4e-update ~/Repos/el/mu/mu4e/mu4e-draft hides ~/Repos/el/mu/build/mu4e/mu4e-draft ~/Repos/el/mu/mu4e/mu4e-message hides ~/Repos/el/mu/build/mu4e/mu4e-message ~/Repos/el/mu/mu4e/mu4e-compose hides ~/Repos/el/mu/build/mu4e/mu4e-compose ~/Repos/el/mu/mu4e/mu4e-headers hides ~/Repos/el/mu/build/mu4e/mu4e-headers ~/Repos/el/mu/mu4e/mu4e-query-items hides ~/Repos/el/mu/build/mu4e/mu4e-query-items ~/Repos/el/mu/mu4e/mu4e-notification hides ~/Repos/el/mu/build/mu4e/mu4e-notification ~/Repos/el/mu/mu4e/mu4e-contacts hides ~/Repos/el/mu/build/mu4e/mu4e-contacts ~/Repos/el/mu/mu4e/mu4e-transient hides ~/Repos/el/mu/build/mu4e/mu4e-transient ~/Repos/el/mu/mu4e/mu4e-icalendar hides ~/Repos/el/mu/build/mu4e/mu4e-icalendar ~/Repos/el/mu/mu4e/mu4e-mark hides ~/Repos/el/mu/build/mu4e/mu4e-mark ~/Repos/el/mu/mu4e/mu4e-contrib hides ~/Repos/el/mu/build/mu4e/mu4e-contrib ~/Repos/el/mu/mu4e/mu4e-folders hides ~/Repos/el/mu/build/mu4e/mu4e-folders ~/Repos/el/mu/mu4e/mu4e-mime-parts hides ~/Repos/el/mu/build/mu4e/mu4e-mime-parts /home/horn/.emacs.d/elpa/ef-themes-1.9.0/theme-loaddefs hides /home/horn/Repos/el/emacs/lisp/theme-loaddefs Features: (etags fileloop shortdoc dired-aux dabbrev cape-keyword cape shadow sort expreg cap-words superword subword face-remap mail-extr emacsbug misearch multi-isearch eglot external-completion jsonrpc flymake ert debug backtrace cus-start view help-fns radix-tree tramp-cmds puni display-fill-column-indicator display-line-numbers tsdh-light-theme generic yaml-mode fish-mode cargo xref cargo-process rust-utils rust-mode-treesitter rust-ts-mode rust-mode rust-playpen rust-cargo rust-common rust-rustfmt rust-compile web-mode disp-table auctex-autoloads tex-site breadcrumb pulse project editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch elfeed-show elfeed-search vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view debbugs-browse elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib avl-tree url-queue xml-query hl-todo aggressive-indent rainbow-mode pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc pdf-tools pdf-view jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode exif vc-git vc-dir ewoc epa-file trashed diredfl dired-x eshell esh-cmd generator esh-ext esh-proc esh-opt esh-io esh-arg esh-module esh-module-loaddefs esh-util mu4e-icalendar gnus-icalendar icalendar diary-lib diary-loaddefs mu4e mu4e-org mu4e-notification notifications mu4e-main smtpmail mu4e-view mu4e-mime-parts mu4e-headers mu4e-thread mu4e-actions org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-compat org-version org-macs mu4e-compose mu4e-draft gnus-msg mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message flow-fill mule-util mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window magit-bookmark bookmark ido mu4e-obsolete hippie-exp auto-dictionary flyspell ispell tramp-smb which-key highlight-parentheses restclient advice forge-repos forge-tablist hl-line forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist forge-forgejo forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml eieio-custom forge-post markdown-mode noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler eieio-base magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor comp comp-cstr server magit-mode benchmark magit-git magit-base magit-section cursor-sensor crm dash visual-filename-abbrev rg vc vc-dispatcher rg-info-hack rg-menu transient rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep debbugs soap-client url-http url-auth url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp debbugs-compat bug-reference thingatpt kind-icon svg-lib color corfu-popupinfo corfu-history corfu vertico marginalia icomplete mb-depth eldoc-diffstat use-package-diminish switchy-window compat elec-pair recentf tree-widget edmacro kmacro use-package-bind-key bind-key diminish repeat toml-ts-mode json-ts-mode c++-ts-mode c-ts-mode java-ts-mode c-ts-common find-func treesit so-long saveplace tramp-cache time-stamp tramp-sh tramp trampver tramp-integration files-x tramp-message tramp-compat shell pcomplete format-spec tramp-loaddefs savehist smiley gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus compile comint ansi-osc ansi-color ring comp-run comp-common rx xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search time-date mm-util mail-prsvr mail-utils range ef-themes cl-extra help-mode use-package-ensure use-package-core finder-inf cus-edit pp cus-load wid-edit aggressive-indent-autoloads auto-dictionary-autoloads breadcrumb-autoloads cape-autoloads cargo-autoloads clojure-mode-autoloads corfu-autoloads csv-mode-autoloads debbugs-autoloads diminish-autoloads diredfl-autoloads eat-autoloads ef-themes-autoloads eldoc-diffstat-autoloads elfeed-autoloads ement-autoloads expreg-autoloads fish-mode-autoloads forge-autoloads closql-autoloads emacsql-autoloads ghub-autoloads highlight-parentheses-autoloads hl-todo-autoloads kind-icon-autoloads magit-autoloads pcase marginalia-autoloads markdown-mode-autoloads mastodon-autoloads pdf-tools-autoloads persist-autoloads plz-autoloads puni-autoloads easy-mmode rainbow-mode-autoloads rcirc-color-autoloads request-autoloads restclient-autoloads rg-autoloads rust-mode-autoloads svg-lib-autoloads symbol-overlay-autoloads tablist-autoloads taxy-magit-section-autoloads taxy-autoloads magit-section-autoloads dash-autoloads tp-autoloads trashed-autoloads treepy-autoloads vertico-autoloads visual-filename-abbrev-autoloads web-mode-autoloads wgrep-autoloads info with-editor-autoloads yaml-autoloads yaml-mode-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 1064655 204213) (symbols 48 58002 17) (strings 32 291793 11325) (string-bytes 1 8415463) (vectors 16 109237) (vector-slots 8 1246508 142280) (floats 8 918 970) (intervals 56 29636 1707) (buffers 992 35)) ------------=_1737392161-17791-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75626-done) by debbugs.gnu.org; 20 Jan 2025 16:55:51 +0000 Received: from localhost ([127.0.0.1]:52146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZv42-0004cL-Jx for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:55:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50518) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZv40-0004c5-If for 75626-done <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:55:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZv3t-0002MM-Tw; Mon, 20 Jan 2025 11:55:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Sjyp+QE/7e9HRrluQWTQD5lDbsUI2vbDVIXXGcba0xk=; b=gYDSsBO4ZTxZRsQdmYD5 wpsJCH+bCvpWEn8s32cp+Syg/U7VdCT8CJQmG5wzMpQLFlilUJV0kuwzEmrL2WjBdmq8porBfTKuh 608snIrmmY/kl9lgQnvoyPt7EXqa7AeI7EU/COJlGVkaeGx3ikbXUzLafCdjveepLDpUvRB0EYZiS /DkuQgmO8yRv9wdadjWkNZqEnTqYCUB5uRjFM0xBIVxyzHSLfz6+OZQhiRQllq3C2Qxj4PdAFvcxv aS+cf+G/N1lqVa6MOzWTUxduFPK6eewR/jIeXfx/J2+U+cyqnfVHuCDVHY7IPEyrcVaqGMVml9Vf2 4cdV9WpaggsVPw==; X-ME-Sender: <xms:DICOZ9Tbt7ob1l7kUX_Nk3uueW9IOe_yDTJj-OU7svPgVi3T9mTiRQ> <xme:DICOZ2wtL3dfSIRAxRinngKW98zs686vdzvYXBCwJdSeftOpbvAW2JoqKRqx99I2z Tso-5xismLpDg> X-ME-Received: <xmr:DICOZy231aCx4KZ58zedhl5XmNmzaWke1dSQ_LBv5OX9eoYDDuzzRWl6nvWjeXHjplL3gMFsCmgSUMD3z8FyVGq_5ENCCG8> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiqdguohhnvgesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhope hmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhi iiesghhnuhdrohhrgh X-ME-Proxy: <xmx:DICOZ1DY8KUWLTJMSo6Bf1o0dcYkDdt0J6Zc47IP49bVUFxrpIKqLg> <xmx:DICOZ2i-5w9haAevHHqx83hqJuT_V7_ief50cLeSY3g3h7FX5Fwe2A> <xmx:DICOZ5oehDPSxC3fHq7K1P37M3QBaXctRhyKnfwomKig5Y04XDaFhQ> <xmx:DICOZxj1VNfz09CzlsuQn_pSmP7bD-QBz_2LKJUEnPHzxqmvNF4rwQ> <xmx:DICOZxS4MM7izaUbSMVkrM0VpxnhLf2Y4DizjGl8okPEvhBqe6W9doD2> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled In-Reply-To: <86y0z55t2k.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 18:49:23 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 17:55:36 +0100 Message-ID: <877c6pmnlj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75626-done Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> Then, finally, I would name it `dired--prevent-auto-revert' because >> this might be useful in other places as well. > > Let's use dired--inhibit-auto-revert instead. Alright, pushed to master as 40d5ff01e51. Thanks, Tassilo ------------=_1737392161-17791-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tassilo Horn <tsdh@HIDDEN> Subject: bug#75626: closed (Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled) Message-ID: <handler.75626.D75626.173739215117757.notifdone <at> debbugs.gnu.org> References: <877c6pmnlj.fsf@HIDDEN> <87r051khsd.fsf@HIDDEN> X-Gnu-PR-Message: they-closed 75626 X-Gnu-PR-Package: emacs Reply-To: 75626 <at> debbugs.gnu.org Date: Mon, 20 Jan 2025 16:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1737392162-17791-1" This is a multi-part message in MIME format... ------------=_1737392162-17791-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75626: 31.0.50; Dired misses or double-processes files when auto-revert-mo= de is enabled which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75626 <at> debbugs.gnu.org. --=20 75626: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75626 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737392162-17791-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75626-done) by debbugs.gnu.org; 20 Jan 2025 16:55:51 +0000 Received: from localhost ([127.0.0.1]:52146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZv42-0004cL-Jx for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:55:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50518) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZv40-0004c5-If for 75626-done <at> debbugs.gnu.org; Mon, 20 Jan 2025 11:55:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZv3t-0002MM-Tw; Mon, 20 Jan 2025 11:55:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Sjyp+QE/7e9HRrluQWTQD5lDbsUI2vbDVIXXGcba0xk=; b=gYDSsBO4ZTxZRsQdmYD5 wpsJCH+bCvpWEn8s32cp+Syg/U7VdCT8CJQmG5wzMpQLFlilUJV0kuwzEmrL2WjBdmq8porBfTKuh 608snIrmmY/kl9lgQnvoyPt7EXqa7AeI7EU/COJlGVkaeGx3ikbXUzLafCdjveepLDpUvRB0EYZiS /DkuQgmO8yRv9wdadjWkNZqEnTqYCUB5uRjFM0xBIVxyzHSLfz6+OZQhiRQllq3C2Qxj4PdAFvcxv aS+cf+G/N1lqVa6MOzWTUxduFPK6eewR/jIeXfx/J2+U+cyqnfVHuCDVHY7IPEyrcVaqGMVml9Vf2 4cdV9WpaggsVPw==; X-ME-Sender: <xms:DICOZ9Tbt7ob1l7kUX_Nk3uueW9IOe_yDTJj-OU7svPgVi3T9mTiRQ> <xme:DICOZ2wtL3dfSIRAxRinngKW98zs686vdzvYXBCwJdSeftOpbvAW2JoqKRqx99I2z Tso-5xismLpDg> X-ME-Received: <xmr:DICOZy231aCx4KZ58zedhl5XmNmzaWke1dSQ_LBv5OX9eoYDDuzzRWl6nvWjeXHjplL3gMFsCmgSUMD3z8FyVGq_5ENCCG8> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiqdguohhnvgesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhope hmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhi iiesghhnuhdrohhrgh X-ME-Proxy: <xmx:DICOZ1DY8KUWLTJMSo6Bf1o0dcYkDdt0J6Zc47IP49bVUFxrpIKqLg> <xmx:DICOZ2i-5w9haAevHHqx83hqJuT_V7_ief50cLeSY3g3h7FX5Fwe2A> <xmx:DICOZ5oehDPSxC3fHq7K1P37M3QBaXctRhyKnfwomKig5Y04XDaFhQ> <xmx:DICOZxj1VNfz09CzlsuQn_pSmP7bD-QBz_2LKJUEnPHzxqmvNF4rwQ> <xmx:DICOZxS4MM7izaUbSMVkrM0VpxnhLf2Y4DizjGl8okPEvhBqe6W9doD2> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled In-Reply-To: <86y0z55t2k.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 18:49:23 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 17:55:36 +0100 Message-ID: <877c6pmnlj.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75626-done Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626-done <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> Then, finally, I would name it `dired--prevent-auto-revert' because >> this might be useful in other places as well. > > Let's use dired--inhibit-auto-revert instead. Alright, pushed to master as 40d5ff01e51. Thanks, Tassilo ------------=_1737392162-17791-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Jan 2025 07:42:56 +0000 Received: from localhost ([127.0.0.1]:35848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tYh0J-0001ij-3V for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:55 -0500 Received: from lists.gnu.org ([2001:470:142::17]:46730) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tYh0G-0001iT-JH for submit <at> debbugs.gnu.org; Fri, 17 Jan 2025 02:42:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0001PL-TG for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tYh0A-0004IU-L2 for bug-gnu-emacs@HIDDEN; Fri, 17 Jan 2025 02:42:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=+dRq9nJ9moRZhgjrhPPxtjvesPunyH9LR/m2ZnCYnkQ=; b=KmYvQS0Aee4wee frCmEdLQdtZcChSVBJo2OgNkPZEqXHKJvOsOW5nYtRO/hKkAz35oOeqf4WlgZgSM01JaVc0oVulUz 6wKLPyjBbsuZbF4Yrpx5bK9IeW1MOU7eWRc/wq+LoKksm0cre6vre+xNKxN2ugAkQ4n2alghgvtY8 LNOCaHfO5W+RnRPVXHQH6USq1iFGcAOmK2PV2Q+yYKdi1WXlnLP6NTZRbHcP/QE+TmG3AEdxLhmzt tfihjluMogTyGr68JGH6qXkHDrBJe60leL23yMxAIfKLcVOO+4szevTt1qVsIA8k/TkInRiHbDgOF EaVuDm/cs1LbJCIBqRNQ==; X-ME-Sender: <xms:9QmKZ3Ioj1lXgJCsD8OiTs4OmnYFOGH6-vmlXNRRtOaLCipGvHSh4A> <xme:9QmKZ7LAWC0WRpC63I9r5TOWxO30KeAj6EMSgSeKxLqHNf0sVES-K36DgTU1w-vi0 4ysmU-MS8pZkA> X-ME-Received: <xmr:9QmKZ_tPYgNBDKnP8dIWyvX-ottk4jg2C2NfsrXoeCquIYjfv8I6QJkyg8tdjeIhF36K3JGLKAHW58SJyx68n_1Whxuf0pE> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeivddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvuf gffffkgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoeht shguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnhepgeeguedttdetfedvhfejue duteffudfgveekteekgeffgfeitefhudfhtdehueeknecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhph gvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhn uhdrohhrghesfhgrshhtmhgrihhlrdhfmhdpnhgspghrtghpthhtohepuddpmhhouggvpe hsmhhtphhouhhtpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhr gh X-ME-Proxy: <xmx:9QmKZwb8_m41XU49qyoJsN2d6m1KfgASsUtKepR70hz2VjXO9xUBbw> <xmx:9QmKZ-Z2yh5ABcQ6U_EbWaVhw9xvrLs2g3ij9vjeHaBZ91w-p9wb1w> <xmx:9QmKZ0Dg9ZOCxe-cM_KbFmKkDoIHe-34-bmzwtETvWX7SR5eEidT4g> <xmx:9QmKZ8aMx5RIioe5pN5JMxqzQyFI4u0iCBGQQPtVlou8MQsIwGXl9A> <xmx:9QmKZyqhqSTRfDtrxazjVbGMfaxc4yJOGP4USNRlu_2B4A4A0-BJT12a> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled User-Agent: mu4e 1.12.8; emacs 31.0.50 X-Debbugs-Cc: Date: Fri, 17 Jan 2025 08:42:42 +0100 Message-ID: <87r051khsd.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) I have a directory test/ with files foobar.N for N in 0 to 99 and do: emacs -Q test M-x auto-revert-mode RET % m .* RET ; mark all files Z ; compress them all Z ; uncompress them all again Z ; again and again... ... I always wait until the (un)compress operations are all done before pressing Z again. But even though, at some Z you will notice that your directory doesn't contain only gz or only non-gz files but a mix of both! It seems the reason is that auto-revert-mode at some point reverts the buffer at random points in time while dired is still (un)compressing and that changes the order of files so that it either misses files or processes some files twice. It also seems it is more likely to catch the error when the files take some time to (un)compress, so I filled them with head -c 1000000 /dev/urandom | strings i.e., random but long enough content. I've had that issue just half an hour ago with a directory containing similar gzipped large logfiles. There, the error hit me so hard that I basically had an infloop where the same files seemed to be uncompressed and then compressed over and over again, with just a single "mark all" and dired-do-compress operation. In GNU Emacs 31.0.50 (build 79, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) of 2025-01-17 built on thinkpad-t440p Repository revision: 37b5b3ea91a4ed005664540091e5150d2454d8d6 Repository branch: master System Description: Arch Linux Configured using: 'configure --with-tree-sitter --with-pgtk --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB Important settings: value of $LC_MONETARY: de_DE.utf8 value of $LC_NUMERIC: de_DE.utf8 value of $LC_TIME: de_DE.utf8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: mu4e:main Minor modes in effect: breadcrumb-mode: t editorconfig-mode: t global-aggressive-indent-mode: t pdf-occur-global-minor-mode: t diredfl-global-mode: t mu4e-search-minor-mode: t mu4e-update-minor-mode: t mu4e-context-minor-mode: t mu4e-modeline-mode: t which-key-mode: t highlight-parentheses-mode: t global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t corfu-popupinfo-mode: t corfu-history-mode: t global-corfu-mode: t corfu-mode: t vertico-mode: t marginalia-mode: t minibuffer-depth-indicate-mode: t global-eldoc-diffstat-mode: t switchy-window-minor-mode: t electric-pair-mode: t recentf-mode: t override-global-mode: t repeat-mode: t global-so-long-mode: t save-place-mode: t savehist-mode: t puni-global-mode: t puni-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t column-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t overwrite-mode: overwrite-mode-binary Load-path shadows: ~/Repos/el/mu/mu4e/mu4e hides ~/Repos/el/mu/build/mu4e/mu4e ~/Repos/el/mu/mu4e/mu4e-modeline hides ~/Repos/el/mu/build/mu4e/mu4e-modeline ~/Repos/el/mu/mu4e/mu4e-context hides ~/Repos/el/mu/build/mu4e/mu4e-context ~/Repos/el/mu/mu4e/mu4e-main hides ~/Repos/el/mu/build/mu4e/mu4e-main ~/Repos/el/mu/mu4e/mu4e-vars hides ~/Repos/el/mu/build/mu4e/mu4e-vars ~/Repos/el/mu/mu4e/mu4e-window hides ~/Repos/el/mu/build/mu4e/mu4e-window ~/Repos/el/mu/mu4e/mu4e-speedbar hides ~/Repos/el/mu/build/mu4e/mu4e-speedbar ~/Repos/el/mu/mu4e/mu4e-view hides ~/Repos/el/mu/build/mu4e/mu4e-view ~/Repos/el/mu/mu4e/mu4e-thread hides ~/Repos/el/mu/build/mu4e/mu4e-thread ~/Repos/el/mu/mu4e/mu4e-bookmarks hides ~/Repos/el/mu/build/mu4e/mu4e-bookmarks ~/Repos/el/mu/mu4e/mu4e-org hides ~/Repos/el/mu/build/mu4e/mu4e-org ~/Repos/el/mu/mu4e/mu4e-lists hides ~/Repos/el/mu/build/mu4e/mu4e-lists ~/Repos/el/mu/mu4e/mu4e-actions hides ~/Repos/el/mu/build/mu4e/mu4e-actions ~/Repos/el/mu/mu4e/mu4e-helpers hides ~/Repos/el/mu/build/mu4e/mu4e-helpers ~/Repos/el/mu/mu4e/mu4e-search hides ~/Repos/el/mu/build/mu4e/mu4e-search ~/Repos/el/mu/mu4e/mu4e-server hides ~/Repos/el/mu/build/mu4e/mu4e-server ~/Repos/el/mu/mu4e/mu4e-obsolete hides ~/Repos/el/mu/build/mu4e/mu4e-obsolete ~/Repos/el/mu/mu4e/mu4e-update hides ~/Repos/el/mu/build/mu4e/mu4e-update ~/Repos/el/mu/mu4e/mu4e-draft hides ~/Repos/el/mu/build/mu4e/mu4e-draft ~/Repos/el/mu/mu4e/mu4e-message hides ~/Repos/el/mu/build/mu4e/mu4e-message ~/Repos/el/mu/mu4e/mu4e-compose hides ~/Repos/el/mu/build/mu4e/mu4e-compose ~/Repos/el/mu/mu4e/mu4e-headers hides ~/Repos/el/mu/build/mu4e/mu4e-headers ~/Repos/el/mu/mu4e/mu4e-query-items hides ~/Repos/el/mu/build/mu4e/mu4e-query-items ~/Repos/el/mu/mu4e/mu4e-notification hides ~/Repos/el/mu/build/mu4e/mu4e-notification ~/Repos/el/mu/mu4e/mu4e-contacts hides ~/Repos/el/mu/build/mu4e/mu4e-contacts ~/Repos/el/mu/mu4e/mu4e-transient hides ~/Repos/el/mu/build/mu4e/mu4e-transient ~/Repos/el/mu/mu4e/mu4e-icalendar hides ~/Repos/el/mu/build/mu4e/mu4e-icalendar ~/Repos/el/mu/mu4e/mu4e-mark hides ~/Repos/el/mu/build/mu4e/mu4e-mark ~/Repos/el/mu/mu4e/mu4e-contrib hides ~/Repos/el/mu/build/mu4e/mu4e-contrib ~/Repos/el/mu/mu4e/mu4e-folders hides ~/Repos/el/mu/build/mu4e/mu4e-folders ~/Repos/el/mu/mu4e/mu4e-mime-parts hides ~/Repos/el/mu/build/mu4e/mu4e-mime-parts /home/horn/.emacs.d/elpa/ef-themes-1.9.0/theme-loaddefs hides /home/horn/Repos/el/emacs/lisp/theme-loaddefs Features: (etags fileloop shortdoc dired-aux dabbrev cape-keyword cape shadow sort expreg cap-words superword subword face-remap mail-extr emacsbug misearch multi-isearch eglot external-completion jsonrpc flymake ert debug backtrace cus-start view help-fns radix-tree tramp-cmds puni display-fill-column-indicator display-line-numbers tsdh-light-theme generic yaml-mode fish-mode cargo xref cargo-process rust-utils rust-mode-treesitter rust-ts-mode rust-mode rust-playpen rust-cargo rust-common rust-rustfmt rust-compile web-mode disp-table auctex-autoloads tex-site breadcrumb pulse project editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch elfeed-show elfeed-search vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view debbugs-browse elfeed-csv elfeed elfeed-curl elfeed-log elfeed-db elfeed-lib avl-tree url-queue xml-query hl-todo aggressive-indent rainbow-mode pdf-occur tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet pdf-isearch pdf-misc pdf-tools pdf-view jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode exif vc-git vc-dir ewoc epa-file trashed diredfl dired-x eshell esh-cmd generator esh-ext esh-proc esh-opt esh-io esh-arg esh-module esh-module-loaddefs esh-util mu4e-icalendar gnus-icalendar icalendar diary-lib diary-loaddefs mu4e mu4e-org mu4e-notification notifications mu4e-main smtpmail mu4e-view mu4e-mime-parts mu4e-headers mu4e-thread mu4e-actions org-capture org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src sh-script smie executable ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu calendar cal-loaddefs org-compat org-version org-macs mu4e-compose mu4e-draft gnus-msg mu4e-search mu4e-lists mu4e-bookmarks mu4e-mark mu4e-message flow-fill mule-util mu4e-contacts mu4e-update mu4e-folders mu4e-context mu4e-query-items mu4e-server mu4e-modeline mu4e-vars mu4e-helpers mu4e-config mu4e-window magit-bookmark bookmark ido mu4e-obsolete hippie-exp auto-dictionary flyspell ispell tramp-smb which-key highlight-parentheses restclient advice forge-repos forge-tablist hl-line forge-topics forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist forge-forgejo forge-notify forge-revnote forge-pullreq forge-issue forge-topic yaml eieio-custom forge-post markdown-mode noutline outline forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler eieio-base magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode track-changes git-commit log-edit pcvs-util add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor comp comp-cstr server magit-mode benchmark magit-git magit-base magit-section cursor-sensor crm dash visual-filename-abbrev rg vc vc-dispatcher rg-info-hack rg-menu transient rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep debbugs soap-client url-http url-auth url-gw nsm warnings rng-xsd rng-dt rng-util xsd-regexp debbugs-compat bug-reference thingatpt kind-icon svg-lib color corfu-popupinfo corfu-history corfu vertico marginalia icomplete mb-depth eldoc-diffstat use-package-diminish switchy-window compat elec-pair recentf tree-widget edmacro kmacro use-package-bind-key bind-key diminish repeat toml-ts-mode json-ts-mode c++-ts-mode c-ts-mode java-ts-mode c-ts-common find-func treesit so-long saveplace tramp-cache time-stamp tramp-sh tramp trampver tramp-integration files-x tramp-message tramp-compat shell pcomplete format-spec tramp-loaddefs savehist smiley gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus compile comint ansi-osc ansi-color ring comp-run comp-common rx xml gnus-cloud nnimap nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util text-property-search time-date mm-util mail-prsvr mail-utils range ef-themes cl-extra help-mode use-package-ensure use-package-core finder-inf cus-edit pp cus-load wid-edit aggressive-indent-autoloads auto-dictionary-autoloads breadcrumb-autoloads cape-autoloads cargo-autoloads clojure-mode-autoloads corfu-autoloads csv-mode-autoloads debbugs-autoloads diminish-autoloads diredfl-autoloads eat-autoloads ef-themes-autoloads eldoc-diffstat-autoloads elfeed-autoloads ement-autoloads expreg-autoloads fish-mode-autoloads forge-autoloads closql-autoloads emacsql-autoloads ghub-autoloads highlight-parentheses-autoloads hl-todo-autoloads kind-icon-autoloads magit-autoloads pcase marginalia-autoloads markdown-mode-autoloads mastodon-autoloads pdf-tools-autoloads persist-autoloads plz-autoloads puni-autoloads easy-mmode rainbow-mode-autoloads rcirc-color-autoloads request-autoloads restclient-autoloads rg-autoloads rust-mode-autoloads svg-lib-autoloads symbol-overlay-autoloads tablist-autoloads taxy-magit-section-autoloads taxy-autoloads magit-section-autoloads dash-autoloads tp-autoloads trashed-autoloads treepy-autoloads vertico-autoloads visual-filename-abbrev-autoloads web-mode-autoloads wgrep-autoloads info with-editor-autoloads yaml-autoloads yaml-mode-autoloads package browse-url xdg url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty move-toolbar make-network-process tty-child-frames native-compile emacs) Memory information: ((conses 16 1064655 204213) (symbols 48 58002 17) (strings 32 291793 11325) (string-bytes 1 8415463) (vectors 16 109237) (vector-slots 8 1246508 142280) (floats 8 918 970) (intervals 56 29636 1707) (buffers 992 35)) ------------=_1737392162-17791-1--
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 17:09:01 +0000 Resent-Message-ID: <handler.75626.B75626.173739293921120 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: michael_heerdegen@HIDDEN Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739293921120 (code B ref 75626); Mon, 20 Jan 2025 17:09:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 17:08:59 +0000 Received: from localhost ([127.0.0.1]:52167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZvGh-0005UT-K1 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:08:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53814) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZvGe-0005UA-PW for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:08:53 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZvGZ-00045G-A0; Mon, 20 Jan 2025 12:08:47 -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=NPYXbY3rBl4ucVHf31rHtx9nOm1byfLS8bOzaXrr3/0=; b=gtSHsI7RRCRx YRP6wrQIOT6HBCrpNl3bi6Joz6+jjRm/g0+3472eyRFRDiwYxqrZICF1ysPf/6Rew20j4uoRm9q9e RWT/0hsO6TnxJjjedBTJVyVRFhdHJVZvxqbNrc0ctAL3vmIjcfEbneNAu8aOhWbR3Y1VFL8BhiDtz tiD2G6Q+M3PB/BIOHP8mVLZqH0ieK1NuyhNoCuheOaligouM+FRdAPXMtP1L/F7BDCKSn8CjEumlx /p53V3fPWoooF78/MDWYBQIRO4uObMEwb9bfW3v15rIr5YTfDTGLK4lJDRhRerJjrpk1WLLRKJORW AaJZjU2/HRicyWRzz1it1w==; Date: Mon, 20 Jan 2025 19:08:44 +0200 Message-Id: <86r04x5s6b.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <86y0z55t2k.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 20 Jan 2025 18:49:23 +0200) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN > Date: Mon, 20 Jan 2025 18:49:23 +0200 > From: Eli Zaretskii <eliz@HIDDEN> > > > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > > Cc: tsdh@HIDDEN, 75626 <at> debbugs.gnu.org > > Date: Mon, 20 Jan 2025 14:58:58 +0100 > > > > Eli Zaretskii <eliz@HIDDEN> writes: > > > > > > > Introducing `dired--map-over-marks-in-progress' sounds cleaner to me > > > > > than that. > > > > > > > > But it probably needs to be buffer local [...] > > > > > > Yes, of course. > > > > Then, finally, I would name it `dired--prevent-auto-revert' because this > > might be useful in other places as well. > > Let's use dired--inhibit-auto-revert instead. And, btw, if we want this to be useful outside of Dired, we need to make this variable public, not internal. That is, call it dired-inhibit-auto-revert.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: "Tassilo Horn" <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 17:20:01 +0000 Resent-Message-ID: <handler.75626.B75626.173739356922993 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Eli Zaretskii" <eliz@HIDDEN>, michael_heerdegen@HIDDEN Cc: 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739356922993 (code B ref 75626); Mon, 20 Jan 2025 17:20:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 17:19:29 +0000 Received: from localhost ([127.0.0.1]:52183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZvQv-0005yn-DO for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:19:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48928) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZvQt-0005yR-8A for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:19:27 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZvQn-0005EY-Md; Mon, 20 Jan 2025 12:19:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:References:In-Reply-To:To:From:Date: MIME-Version; bh=YvusrEZU4uiCEqTwMbvHzGDXptJGwUP/76hE7Q3UavE=; b=gKpgeGoIFbKt bC7NQ7tbVrHh0niYqOipkdaW/UPO1wdxre94dT4Sk2wmOpMPCApzRDD9ISEjk57fUdr2tH3TeD6Te HtjHoPc1+tAEgRC0b6e04sD6XlBrvSo3ymmto2ydUz9cng8ZhAHe1ZfT3hBkvwjwyFmWvL55CHkLa yRcTTBBC9FyQ7V+Lt6VPOYtTT9SV+XmLC9DC3HbqNnfevYNNYU4V9Xw4Pn0NYuyr5LOCMPRXTONE3 wWgeouXN2+MTokDglggkIWntGlzSq0fNF8oTzQan0hC0PceK+C1xhWDHPCF8LhIqTKNOONyXZpJ4n NDKcxS7QJ68DY0FxC6yz4g==; X-ME-Sender: <xms:mIWOZ8jexmXSppWLSbet5BZR8jPUA-fNF-QmrS91Oyr63aBZo_0UIw> <xme:mIWOZ1CnKhq_3rNqtoGIuPxZi5PyplozjWTYhsOaFyW9r_3KKVu_LiVCjm1H9el7C kQaYD_HXLA42w> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepofggfffhvfevkfgjfhfutgfgsehtjeertdertddt necuhfhrohhmpedfvfgrshhsihhlohcujfhorhhnfdcuoehtshguhhesghhnuhdrohhrgh eqnecuggftrfgrthhtvghrnhepueevgfeggfejgfelkefhgfehhedttdetieejjeehteek keehgfefudeltdejiedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidq keeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmh grihhlrdhfmhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlh hiiiesghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghn seifvggsrdguvg X-ME-Proxy: <xmx:mIWOZ0F1mws5zIExyobpHRMmwTq5iSw_WK8t569E68VZxDDxuh4sQg> <xmx:mIWOZ9S-WFfmftkB2bFuTq08dpEF8ANz21e61j3EPdyKFFIAR0glvg> <xmx:mIWOZ5x87-vstez-ePw9SPD2_-cWI6HFDI1PTpG-JOXcDargERiwVg> <xmx:mIWOZ77SokcI1IvRhK_ZYxAHZuH_Fn2g9DwiZLaWAPQwS21W3pmueQ> <xmx:mIWOZ2wAcEcFbsQD6xkNPr3QtPYdSkkwfUqr3J8RO9FQr_dvSzyWBMIk> Feedback-ID: ib2b94485:Fastmail X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 X-ThreadId: T911380abf4911ffd Date: Mon, 20 Jan 2025 18:19:00 +0100 From: "Tassilo Horn" <tsdh@HIDDEN> Message-Id: <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> In-Reply-To: <86r04x5s6b.fsf@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Am Mo, 20. Jan 2025, um 18:08, schrieb Eli Zaretskii: >> Let's use dired--inhibit-auto-revert instead. > > And, btw, if we want this to be useful outside of Dired, we need to > make this variable public, not internal. That is, call it > dired-inhibit-auto-revert. Sorry, I can't follow. Why should a variable named dired-* be used outside of dired? Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 17:33:01 +0000 Resent-Message-ID: <handler.75626.B75626.173739436225711 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739436225711 (code B ref 75626); Mon, 20 Jan 2025 17:33:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 17:32:42 +0000 Received: from localhost ([127.0.0.1]:52210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZvdi-0006gd-7T for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:32:42 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:53416) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZvdf-0006gL-SJ for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:32:41 -0500 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGMuqa027544; Mon, 20 Jan 2025 17:32:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=5Y4Jy9u+hAAYT1eAL2FF5H6G7RAh6g8tbgDlNR5RysU=; b= gUOKth3Atueds0BvucNVU3FY2yO7/sAIe8IdG8E+zOyOIyO1aZXYVxkKdQWg9BZJ PCIwxOtu2slJ0qtSuotv+bQUm7w6KtRbtM/Ci5x2Uts6k6xSIxJyTES79p+92xOC P6xzvTw4IlepZS/xR44vn+coaTv/6n9W7XGAQeHyv8dVDqSItyz3uqzzfPqK80py CdpyL5sUAg0yM1rUK+uCNB1sBC8j6dO7yo6bDzitR/ugEirCB7p6iSgQVxfynXxu XFpA4p2ldyAUU1SjfbpAk5jkgEcNlVWdoiYjU0tPn9Ss4trM6HdxqSoQ+7rBbocx FPnCbXP/bnTKLwgK4aNpWw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qam4a5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 17:32:37 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGCCoL031369; Mon, 20 Jan 2025 17:32:37 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2173.outbound.protection.outlook.com [104.47.56.173]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 449191jvsm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 17:32:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vw37P9jJBSu3E+LSu3/o9FbjVVB3bm2pu5Qd7wi9VLfXR2L6NGEsfriZf5CgO6s4RKsRWeBVrZ+K4cnrTxhnC4nALqc1g1JmA7R/xXTV71UD++FSKL2u9hD1Vic6QcRvWvr7aNnw8Lb6NAd6LVa5kqPYw7OsvKrqN9hY41vxMAUZfvp+CVThW6pi9iUi+wk0LzI0Rkt5PLRTC22DuanNm9+JRqgq35JVAX0P7+9Zil8886/Yh5y6ZtVwLWf3858aEk9a/I1En1XXS2E8tEOeisG+hajWjT1g0bhQG8DTwuJCAoypkxENZCLcmO/O3o/Pmu3i5nkuUExla6dztLCGQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5Y4Jy9u+hAAYT1eAL2FF5H6G7RAh6g8tbgDlNR5RysU=; b=eVhf5SlPBKmkIwr4XqvBHP/7JZIsli1eQpIIhHzowFmC4eOlpaDnUq/wCx+yoBdC5hqG2c2R45sacebktzfQ0F3esp+lQ2fNauGrqpcCWv6/18NXsGGPkIK3z6hw8hAFwRdEG63lUOlWeqyhlFUnbW/4bbMgL6CLxTySR0bllqV10flXd9rR3YTW517cajpzj+yJ6x0HGGM6zavbXNwCn+38U78x7isgRN9KJIMi5koy2PtSGOJKsCC0GIYJp+h/aEkVdjN/ByjJr1nEjCAXFc0PAAougwGmJT5iWVo5PVmqIfINq9rimruGXX0vICuxH6YAjTBGipE7FmMqUa26pw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Y4Jy9u+hAAYT1eAL2FF5H6G7RAh6g8tbgDlNR5RysU=; b=fJ/vOYQDC9b9TGA8Zcg5E5LKanMSuqMryDd2sNDk1gxT/2Uclrq2KJ+5daAfGX5CzS+h0HL9fBvLj/I6N5J8QMxwJE35AEE05eiEd/2dxbtwWnL/peOWypDzAjp+GUBekVLwZHGQH8vNxya4t8hxd8mu6iuNWvLs+Ua1k5vacTs= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by PH0PR10MB5894.namprd10.prod.outlook.com (2603:10b6:510:14b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 17:32:35 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 17:32:35 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba2FKonUMhgiAp0WayuXd3rE18g== Date: Mon, 20 Jan 2025 17:32:35 +0000 Message-ID: <DS7PR10MB52325D4B7F48836005461F1CF3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> In-Reply-To: <87ldv6j9lv.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|PH0PR10MB5894:EE_ x-ms-office365-filtering-correlation-id: c4917d10-2b21-4194-d055-08dd39786d7a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: NRnu8DtX7MOhLQRbesjE1JZvtX8bCY+xl88oLDdiXxrEDnJRbVRTLzXjaL2YrwZLCXOK2PKvBe998xY9iietAl8gmJ7Y1q6rTUT+Cn04rS7zhhDHel2Nd0tIBiFw4FUPlOMYFOM5KA+VCaG6+2GCFKxMTK7tOBFLEePfxdjEQz8U0TCL8OpdzxZz7q2zTzo3UueM+RztNWqkffSfdq6UWpJ7P8oWEFW5lTVBKYYgxpTh534R5q+pQaYZ3ke/Rc/Z++z6V5MrRAtlerNgj+4J8pJCa2GerGg5oKmvEl/LPy3LsYT6OoyXYeIWXdnGHPE6hN9jxrcss59bRr+br4irj9vdhmOBlGq5DPqDu3D7NyyFqXv1boBrjIRFj6dnMQiZzAHCGB5s67B6K5/3pvXCK8T0DJYW7rPguh2CEJ3Z9y8NrHU4vaRWZbRpa0QeXY0UufF5Qj9m7lJYBbDa+i8iROlgjOYxXv2ovCE5vZcSVIJOqZ3bqVNdRmddpyWtuCBGyArx85nEkK/rMWcjCINTYToNqMrQYJcYzkcwo0a4Zyw6HLu+fkjuFTrlUs97PT7G4utChYpmV+Bt1l3XyM7wdRk7HJnrrljQnYlmCWM8bzATlqse+hNKokO6e/8uD3u1q6t11+SCdLl3VoCFLI/ySRtld8L9lzbyDSHVxz5M48WOdPJ4nB/IJY7Kk2LJkEAimBtRZ2DUTfBcZh6BdP+l0VuhG7Cx726+uyWgtELu6D7C3TPYL/o8DI2uwLWcPjKBW+DnKbeko5C01HDa2bIELjOr2grblgzFoRo5DsVg9qxqqAWayRm4lkA8CaBua1I/xlch1JqxcpE0F/Q8KQd3r8g+tCc9khYFKii9uvCWIj4p4bkGLq4bzRfL2sCnZGMKahIc+wH2P//5Xj8PZpaU0y+6NZuTdcRsUAiUYqVGN744aMdrJ2zlZ/x7mbzvWE/YjflLZ6WMCa/24ueU1N1kvhyAiBrDI76Mq7iALOKTv4OQ99xN0RJAK3MqBAy/+j0hY7j5DNGnSWQvlZPASY62yOndMzoEp2IY6kcnGQXhNxHcbsQC8gCs97oHGiHpbyCR4xgXrmlkySaqcBO4pBA6dg5Qbwzv5kUupHI7sv/TGDBKuFS1N89R2mobzOlOnxk5HDTE7rKruQXLTNuRHg6KKhgI6rr4L+hOfnhrycc6z9JSjGl/I9o6ejYPWRJ3qpW2DHTtNcMKf9GeehJEATRvt45Az9q2ih6js19O+fyXzrjoLsWmOUeYSDWPJlKaXcvn2w1B623REYkogqd2mmwvRmY1YFSAWPnCGgTjDw1ZFsanHHPbRoLtJecj4Ljd+NWeyyM2mWbCtlBi77Ov+IColTMwzxx4NjZkMuEqlwIavUZTj8iaOjYl0oG5/cunqjkbgUS0am8JMOnXxpfDnzfcaiP5jynHtoZf5V3lQmo8M0m0WfmYEZyMqy5ULFjk2jvc x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: uWIixEZAboXp8iAU0JS6OXrdc74VuTTTAEORi8hqVUcNtpsGGAJ/PHhQnLqko8nXOBdl5ZPHsybSpH3p1Hw82tDKjSTFoVM7HrBrONW5+RS0u/K8NpTL8SGFZnnyu7ebjxJI44TLxoVF3E3kQ7yOLa7bXcYDg2uqnp7nKC/m82zzZTYk/1gTGyzay/LjGpKg5peejOZhh73C8B2f1xDh5JuYuySQHCwZwsBdO0A3CMwhEhci4QWCI8SjXtmxym/bkDjwKtkl0CwcHOP0gHq/bi5tFmeZq4/B1QfbBbAsQPULFp9ct4x7CuZBJUilNbLfMUNFZO8jjDO+dq5XqE3ps7DxyWcmWVAWhCUcHqAETYY2A5f7X9MJiSpLOkqZDRhZQ52t9xKMeXis+ZHut0KpJ77y9Z/iaIs6g7qvR6tk6NIKI8Jw2LECjMIHZyhsAPzbkAc/wrRKaU5IbpdeZ23u+6zUB1d4wXF63wYE7R4Tj0LiHQ2bgSmvDS+M82RDBAWrOhLjMbCXLVkwlL7ntON7g/TMEfO1QUw9nUiIFRPI4Z73V2FUKktlFrgXk6T/LYAf0g7DIlPQcKEeRkOlLP+NBhZ9rJJRoAd0bZzyI1ut9MZKUIxtLQ+YeKRCaKtWogT8tfsiUZacYnWRe7jlw/nxhrzWKxyq11T9qUYmHbhpUK2YCMPkVTizbS6i543ucWULdqzlqZid3zIXJAK0J7PyXw3fbKXY4M9xmVycWRke3jfCZmsTe3uHNbx+HkknMWmarfpCrcRhKllUh5VuHXVPW3/7zyd/vZoEQ0OWlcMl0h8JRuVjGuMyh30FVd6j0mS0HPq9Jwwl1FB6Op/YgcwoJl1R6Lxc6N5N90ogZoot3dWDhlx1J5O6MNWNwphdbj83OnhWiECof16jPEmq9eb4aY8IJWm3P4vthPBB95qT33YnF4uhP1eNfMFFv2/aq+JKRd+lUFo2XmfghWi1kKO7D0hrr4oyfs1xZWwIsIoS7Wo8TKjV/RpcGaceCCdWFRS82CcMySt6icD1mxKYKMIP+BRNQzGEw+1uqfjJgcr387nDuRjtLtBBLTNq8PAiesLpA3hEwrdOxyMGUCbalFn/19Ftkr/4Fy8rqK88O8A9wyDnZ7ENCzZSXtvA6M5i7hNX9Skn7jl10OItg6FTXe82hHHXRt+q8e3hgAN8/hPRXS21olsmtBi70GJnPEsjk/UlSa/vQYwnE59JDyCVXS5UxnfzjOsvTXYCOfEP0iN8kxS8bGqnswhsFiUhl7Enf3mwCV5quKc3bjtMd1CfsqhdFPqJAKv554R2t8K61QTu06LNQVj5IllQWeT3Ezpoj0XgWjRF+O6QGf8FZNkH0iQ5y7n3w/YsclsDve/j2Isi3KuWwYul8AiGTvDvkR/X1r3mJIapP1/JqmZ3GflyCFmZgDket9WeZRfWpj6M0ysy5O6QwLgXgJP5vcAvZOOil0PZRgdV423rQtAueQn6+NAnC1ISf+Ed0ae9V0Ok50/JhmRJe5UAtWQapUNgAeLG92ZbKSOYumnyWrUtuJ+Leck80GSujMFj/lvAuReID7gvNvpVN4YFfjwUK8F0aCVNeXOY Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: K8eH2ykdTbsTytmn7RcPOoEayahxrUy5w+IAF0f609sXm3vhvjN/bkHjb72ruMPDFj00sI4nU78JLS7zdMSKJ9HevL5om1NddiXrrmNZoDj+YtM5VlpqqLLME5QXeb6Pi4jc4+B4L5HNVCLAcR3aB+2AOPkM8OIbg746enaJSAQC/CuCj7UupyB0NXzSqVyWjvbeGnlGtGNFQUK4HRiT+MTNKP6oyzl2k5R9WHAURlu30ZovkSr4unIdPAGyIGgqKSUrK5M0Ug/7N5zDB5t0fr5nSemtu5PtbGp2SR6XtaakX3bgnQbx5olUp4BUdz8BCSaW7rtbV9vm6z2NB5i0ptC9HEGV7sG64sDxfg1fhqI3VE0hd49jDb7JUpNciPKL2kVZZkRIOhFlj3VI5Edq/CNr1u9yRAQbp1NUI/cKTYxlFxwy6603ojcYdQeawnNqldeUiSDrfuXr8eQj1fbCUZML1V5FZ1AwUpUer571IHt11BNwRWimuhf0d7dOERuRqH8ep0L5RfOm7in8io57F29wTC4BIVaW4froV+iEdXlBHRSm2UNPb5ayzVsfeLnsOcpYKNhB4qP7DWV3rVW3u9zatnrUPWe8j1IakvtFA30= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4917d10-2b21-4194-d055-08dd39786d7a X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 17:32:35.1976 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: TOBtzHaVyE15QvIRrcrRtLJ5mvg+ZS+iOIEPhq9rSjE4lqzMogybqo7hKGuOtHx34MrxmxU2kRBra+MHkN0KBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5894 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_04,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200143 X-Proofpoint-GUID: UAe5YhwuJ3jOaqF385lWaKtSg_f4bd7T X-Proofpoint-ORIG-GUID: UAe5YhwuJ3jOaqF385lWaKtSg_f4bd7T X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > > The macro itself should stay general & unassuming. >=20 > The plan is to change dired-buffer-stale-p so that it returns nil when > inhibit-read-only is bound to a non-nil value which is the case during > the execution of the code generated by dired-map-over-marks and might > catch other cases, too. Doesn't sound right, to me. > The macro itself stays as-is. Doesn't sound like its behavior stays the same, whether from `dired-buffer-stale-p' or otherwise. Let's not split hairs. If you're changing its behavior in a _general_ way, instead of just changing the behavior realized in some function that invokes it (e.g. by binding some vars around its call), then you are, in effect, changing the macro "itself". Is that necessary? I can't see why it would be.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 17:33:02 +0000 Resent-Message-ID: <handler.75626.B75626.173739437225736 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739437225736 (code B ref 75626); Mon, 20 Jan 2025 17:33:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 17:32:52 +0000 Received: from localhost ([127.0.0.1]:52212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZvdr-0006h1-LI for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:32:51 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:31286) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZvdh-0006gR-8O for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 12:32:42 -0500 Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGMrZD007845; Mon, 20 Jan 2025 17:32:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=755f/pQGBaqh3wq983nT2EJ7CKPM7jFHvWYlxn+Hn68=; b= ZETm3RCX3b40j7zvKSMA28m9I99FF0PsK+0s5NConhkcDt0jZ+AIlj+nCi6lpgVC Z5gMjCAkzDoaTDVo84U6bV1XgnLHcZTHWAjSnudZuIO8UKgwgz9/a9FtUCr64N4x OH9OL8NNW35Xjf3pxg4iaA06dOfLdOr6C5ax8SkLxT2iFpADliJeVAtw3yfbZPC5 Bzc75zRF+C21mLcTdgk2A+7lE53pcN2tlLRP2y4UcU2SB62Imx/xhyQUL+FZ4Y2b pFaNMjW7wJyv4B+4b5jfpDetxVfzCeU8aDlrHkrF8D4hqMf93dZHkxD8e9YjnyjS 1EdexQjpqnltZACW6ZHBjg== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qkv5be-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 17:32:40 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGZ39a018784; Mon, 20 Jan 2025 17:32:39 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4491c1b7m6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 17:32:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FO0gaQNSbD53wCTG5n2I1uEsRqYUzgWiNFk/sJiajKzG47M+gqrjLsyhfrtAXuF2hZIaDfz0xk+1l2zE9LUD7VTtS2r6Lp+WDwM5wBbJJkSsUi9dKC7g2Fdz/vXleegjCf8Fj2whTjTXLN5X8yphgpopu6cczBr1gPzDlIN8E0mhLIF7u8zWLVdEkOoXpjK7Pacy9SKVeE4ubgFXxLqi1oPN55jjrlVvZng3lV5BtkCtNt0NlanC0YxQO2NvXvJMCMzAvYCTO6shXok61ssygeTT4KWvDbiPTQYCgGATf5lzD7dNvOK3KgaPeW0MoqykRALgdEUV04nx+2kuq9fCgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=755f/pQGBaqh3wq983nT2EJ7CKPM7jFHvWYlxn+Hn68=; b=SrehEfIqpm9IRjCsXNsIXnQKUBqVl7vm0L308bIqXkYe6cZoSa4fZ7kMXtGsniLcCfudD6b58/P6S2bCGNfglACPt+/sn4br5TA4LSrlCCpuNjNKNAZS26woOoUD3bWbOEL9zu+LpMZ0tEzDzj4mrSjklswuVar3go+nZ/OloBt9Fqi55qkybbfVPjeNKfnf2BERqN/l7WMXbtPGNhB8usy8EnCNpdUHUu7T4kORWz5WmQ7c5kGmk8g7N/5vBZ7pHptRoInAsjTOAnqq7r6gtMbsMzR+Uq9T8agc87DxZPxxEflrdgiZ/o57VwWkpUtq7O9soUEZjAltRsDEO2HtUA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=755f/pQGBaqh3wq983nT2EJ7CKPM7jFHvWYlxn+Hn68=; b=L0vgUvrasJL+50Dy2o+sa76jXtJ0Xtun+RQtzX82++mH6ki6dT9+Z+wZbyt8G1oO7hx7C1uNSWaWeUUPnYrI/GsQYa5MvPXC4cg0AF/L9mZzW2rfiDcuBQue8jXNniRXjyC9UzbraZ3bUnEGj5nxL4vO3ZYobQF9aZ9/FsXpaok= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by PH0PR10MB5894.namprd10.prod.outlook.com (2603:10b6:510:14b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 17:32:37 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 17:32:37 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHbawZ5onUMhgiAp0WayuXd3rE18rMf6EVA Date: Mon, 20 Jan 2025 17:32:37 +0000 Message-ID: <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> In-Reply-To: <87frlej8ad.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|PH0PR10MB5894:EE_ x-ms-office365-filtering-correlation-id: ac8de2a2-cf73-4c86-e222-08dd39786e98 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: FUQH7u45kdrYQnUZvlW1DCMQZu/mge/An31+oxiVFoGaiIFPaffQ6jG3RCJiANmklNGLb5XttDaMbTIix2joBXq3D/9Kw8YRE8O+3PfRWmBmTUeN7Tcf+pPsHxa3o2wEF9XsICOTbkDpS4yiKzvg5avEDHC/4cgFedUkh5NuE3ztqo2aNreBy9c8lqO+dMXrQNHc7KTWzIu4GxjH2zGcaGSDjf/gUaIbms6D7d6SPKhTY4z4nJtzu8pGmRzm40wIC/ZKLaL817x5NohpqKdGX8ukgULaFsV3vNzHSzgnILGIaY2HN5KH0T81MvFS96KNrnu+dfwBIu+zReCVddIM113kLESpGn27a0Myj3g+F3f1sKD0MGXXRyOGFO08cWJ6W28dLR0K5XlE+Fp8I/VhmluYHOMrEJhH9ceBcqB5PgAKAoeyAopRrPuYLMWHX7qeUyJCaDQXdx08TGHvSvJP6vkW55gl8xRmqcvqxY1GvuhyMHKwumhVZ3s3WxYGRhLDZZlFWLJLksVcg9Uv2LH7/64rDK/P3/hiYSsu/hhJOJ4BNTpafFOQoRdp+jYLX9YqDd2LCYms2uYcvUa9kk8xnQdCwYmPzOYLE0LE1WjyGuEhbydFL9rbccZCilAD+B73g11arCCAwfhewgdZEHHGwNHwUJzejrqHPtR9BxpaZ7dPqFyiNBJHi6f1D9dGI3rjoJWm0B9DtJZGxH6r5LrwJ2spDOw4rUPeATRLUCR00fX12+XAD0g96+Znh9UzjqTOncagrZPolItayYtCi7+LD9WC558NlksDFO65zmXeTt7kuJuOwHtvE7YSvrg2VruBCSDIc4MTEWwByfwtHUKNw0GqCrjDcSJ7Wptr+3J82E6Ba8ripd96ChSxqMNHz9qO2VDOpmDPH9F9XD/s6tyh6eTG19yoI9tMXYjlibXuvujfa30DuUxgjwtVIaTvBPOYDw77catDyh0u1r+ZFGeavPeMRWHF1B2/jmNvC/Cv/DArc25RODB9SYNDwA90hvMtkCz3XDHYBDcIrDq/wDN50JueisqiehElCSkvQObQZZBHJWdwWkPCu/bp5aLqYBUcHi7O37puQweeXLYV9p5C+5irvr4X5ccmrINmuujK8JLnvcas8WCapxPDWILjYr8tZQQoOBXJX7CSaXm/tSH2TmNrZ0Jcoba2eQAlUYOHvJOQUtq417Zj9E/1o69+PNjIdB9vNM6f49dNZI0D5iIPQi2pQCqJgNlbc2S+NumKgwVJYKPONnEvomSM3CeYGwp2LgxmqyqiVkJjRZDVqwXFV+ziYmmsdcvnUm44BlJ6241Q3cBaJ2/3dkGUmI7DR2SQWg21I1SGIqAEPFAXXiPaV5mhU/9tW3jNB8Ph//rotL+CQvIF2RImHyD2mr9TD/KbVtsVIANGh6gaxW1Lza3eKhPN89tOeYxz93nPSZGMuI/8T2hfJbuZn4aF23X8KWpL x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: l6enHrboTLOsW+fYQf5c66SKvb8KdJOahEfRYmzwXMGo6b+0lp6tbsI8iRpuQNwKv8O3U5rIZQ34pN1LiB++5930QprJRqibHQzQCltGauv6Cndv2SzfSZveJEGFttx5qKx+LKNccO/1cxRmIvoecpapIoDYnhbdxvomOn9Tk1IntUT9hbMsAuuzr1kMTFBtDERVU0x+wXhQuMxmFy4/1zvismAujDV4JUBlQ1uiCZN707z++7TqyI9D6+nOLBSGvFU5fC0myH5SSjgvYmrpPMjpXiWXzyNzLt/08iWJv/zPNtA7wMiuGV0GQqSjpOv/z95ZElE55hoBeXbjfYgwrgpnt5opB1zR8icSF2MtHTo22udR+kurfBnyMMX/nD7a5KARqmtGu6vSrZJ3peWp8GJts7JwThhcpAuoXSZl+vFZAt+EHkvBqYFVu2BoazSaX/GpvsuTY4h30prN2Tmg0fYwKsQCasmm4p7Blg8sjjC5BKwPUhBSn2cy9nFifWrF9TRDf+doAjHRslbFDa2+mPT7RfHt3qyV6MIDF8FHjaBNYa/viNWW/FVTvehz28a3UfCRBLyoUaUKt5ZVgnLqh6SRl7DY7gOC07VsEBqKztrAjaWTx9e12MMgS0d5IbTESGMqRvUp01Jl92whFLr6UfmS7wofg4a/XIKfbycHxLxv5BItE6dHD0gW9P8sRyQo/XWi5tCzaQKwqqMcfG3iIHaGn/zfWd3uyybX/a1bB2NPYpAmuoXAPvA9isbkod6p2mle7VKN6RP+14icoFfrk9EtdMevjKfcVmXuk4a/A45Ukqy2G/JIsJAkXIaiMbod8AqMteBt1u8gOvu1QFFobeltrxWV4dSIVqUcOAC0/Kb7Tg9dSssczLL/A04ylKf6K24ja8HnrnLtn1RnckUcnd0eKcx1CpNjPuphFxBU4s/jL41C8EepZZD9dPAnWXO/w+uDWwS7t8KFMqQ+GpP/5MKHrrg11+lY4LrNrH2hsC/Yf3qfIuH62WQvCwcGH51yUd+k985mIj+yv8oBsu2RfZpbdD9Iu5Ucfp38a23f3Kpscg7Njavf6GNs8mHM6LoGkon4Ipy1mOFM6Rom01f+r8VDvczCw7LD5TYatVJIUgbptzdxdpsbbLXtu+rvn345ywMkACuRBdPDuU1JBVjNiktvUrrPAGtIwVq58w3UR92e8g+OaFoQ3kaTHw6sWP0LsOdcyNDf449TdZmM4VZkSYlQBu4ZJihYgS6VkBiomYRGnxdp8j3UnqroEQo7kCVlklHEeF5Iipbj2KTVOXUAQ2q/k47CntA/bqDqkT71AJbE6GcZmOpts8X+N1NRbVlbvidsYxIfhN0dxtPjEZxnMq/mGRlpnBQ/ylC/dlgeNXOsIXiO5ubqXwfuqpSRxVKYb6qwNIw0H5UdNOHAwFt7FuHrNTqRRMaSHmfnbrlUk+9M73PdljLhUS3OqVauLC4J+NMzjOrQok9ZKSF3DT39LRQocwn4QIETkpBDa7uTdocE99aoyZuXXJf37z/Gj2EVAnpSQGU55Re0PWGn943ewx/r70EMPkwpz4RatBiM17C6AEuy8Q9/e/mYFyRI39kj Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: RggKi4D7MREhmNKVWMQHVbWTHep+z4iq0J41gsoWkBFmubnI6dYo9wQLqdrsYYogjY+3InFIfwiR5Ws4GdQen48w06aUPju63Gxm/GB1vqA8i91adSnjxV6vZj1GvYHOqxMKw7d7j09ELTVhEZsK35to1TgU+TMYHy3dwPKvnFx7aEt4ITKKSTKC2EG3iQbYp+jPZF63B7Wj/ymYCGpTwYxgl2qz/uXo/5+HKU+vM60Zn3cpurMKhxSDi4e1UpFmEtn+oiG8B6x2BI1pLzZ8njk59yClS46k39uuZWs14tDo51y2r4jtPacv70J9f4jh4UqCA04iatE0s3EhFTkfe5tQJasA+CU1hs9fykq62PdUx2k81d5sL4jGPUrUGPJNV64NJfvhHCJicf5z34F56DP1VcRIP2JgI/HhpSVylYXVSONjx+B2kLnj02RCmPBAA9HCt+STZDoxoSfZ8utCTUu+zyNX9aRqQqwRahAj+WJ1BpqC7DlSl49gosNCHWZ0pI04dlqpOCy67qMeAMgFFib/XwBis1RBfayh5Zc24ERFAnB7x9qbiw9Jfa4iEANVLy6Eyx7cb+HnwHGOPOBJvyvKmCWTZP8GWXRePJPjUiU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ac8de2a2-cf73-4c86-e222-08dd39786e98 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 17:32:37.0284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: WnvFbYEIwEnn6BoM7jdHEAUKSKV8upXh1mfP4xL74Nwt/0ZnXhlw7PpnZtgZ94boOdtPXFhS4wRCWVjiMXWXPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5894 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_04,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200143 X-Proofpoint-ORIG-GUID: y_cUf4fmyXG6MO0jU5eZrxfQ4uASXVXP X-Proofpoint-GUID: y_cUf4fmyXG6MO0jU5eZrxfQ4uASXVXP X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > >> The macro itself should stay general & unassuming. > > > > The plan is to change dired-buffer-stale-p so that it returns nil when > > inhibit-read-only is bound to a non-nil value which is the case during > > the execution of the code generated by dired-map-over-marks and might > > catch other cases, too. The macro itself stays as-is. >=20 > The missing part: this change hinders auto-revert-mode from reverting > the dired buffer during an operation on marked files. That shouldn't happen, IMO. Too general, and I doubt it's needed. One might very well want to allow reversion during some particular operation on marked files. Let's not assume otherwise. An operation on marked files - which really means, for this macro, an operation on marked _lines_, CAN DO ANYTHING. Whatever you might want to do to, or with, the Dired buffer display/listing you can do. That is, you could until now, it sounds like. We should not be making _any_ assumptions about what use of the macro can be allowed to do or should do. The macro and whatever affects its use generally should not control behavior of the function that it invokes. Instead, code that _invokes the macro_ can, and should, do whatever it needs, to get the control behavior _it_ needs. I'm repeating myself, and yes, I'm still being vague. But it really smells/feels like we're now going against the generality (and utility) of this macro, and doing so just to be able to fix some _particular_ uses of it. That should be a no-no. Can you not fix those uses in their own contexts, instead of ____ing the macro and limiting its uses?
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 18:02:01 +0000 Resent-Message-ID: <handler.75626.B75626.173739611131452 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173739611131452 (code B ref 75626); Mon, 20 Jan 2025 18:02:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 18:01:51 +0000 Received: from localhost ([127.0.0.1]:52251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZw5v-0008BD-1D for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 13:01:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60412) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tZw5s-0008Ay-G5 for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 13:01:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZw5m-0003GU-RH; Mon, 20 Jan 2025 13:01:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=cgUBHhqNal3x31At1Kx1ApOTr38vHyo90h4Vj2NiqKY=; b=IZ/mxChLlTgkMFVZ1LAu bT6uouzEPnhyrMnSLvuWkB5AWGvE5tI+lW1Js5i/54RcE3g2cK2eAAQoy0NJqlQj/VYvw/DAiGtjv AFIlwgIER6jFeh0wK3ATC6kqmZ6yB7hnO7q+522i6qBTSTfh3EEIExHpjeCks3UxRsBglF+k374yx FqEsIsMgQf9w/znv/e5OfVSvwG/nAIJjy6pw/Tpk5/OBGSmNt95k5Wr3xeyTfMbM5Jkf8Fsz+lGgg E/7Q9wkWpQH1EMgV3h5G91I5GG+ypdMo2/B0w9DQai0ZJ4xKdCXmgFSuj2AMb4b+gtD2Hepw4qUkE vF1XwVxHJA33Uw==; X-ME-Sender: <xms:hY-OZ2GHkBq8_hZ48eO9cl0ASPTAiyu2z6r9tHbEbRwg63YnX1GUCw> <xme:hY-OZ3XmjFzUZXbWV77eFEHx2gygdS8TPWNlOk_MM54PbgTryD_mfAU7HGlBlBWYT ujJfVC9rqKr6Q> X-ME-Received: <xmr:hY-OZwKWR-ADm6k9CYGuWnZCgNWAd1PLRcxtW4rdaOIEqlv38tHkzKJ7jz4zxw-9p5l1k7QK1HklqV8sNm4rp7k2S-9wGVw> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeehiedvieesuggvsggsuhhgsh drghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseif vggsrdguvgdprhgtphhtthhopegurhgvfidrrggurghmshesohhrrggtlhgvrdgtohhm X-ME-Proxy: <xmx:hY-OZwEX_BlObrZrh6AR4EhC2SC69qNy4FEmlhU0E10fbkt3ogK0NQ> <xmx:hY-OZ8V1MNyVXTlJLvFhJT2-Ggc7b93RL9-9sVWCPEGjvoaB4zHgQQ> <xmx:hY-OZzO_8zKfbYvlQ5-ruR5CLJNDVvLsklCTQv4uW2ZjgRhOzr6n5w> <xmx:hY-OZz3MMZ-IEgxsGTosaWinOXd-IatikMajNhW-tLCsVYXY2poS-Q> <xmx:hY-OZ9WQn7zTCvUScckYHm1k9dmxDuXe2iF2HaK6YKj1NsVoXgu2V6NG> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> (Drew Adams's message of "Mon, 20 Jan 2025 17:32:37 +0000") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 19:01:37 +0100 Message-ID: <874j1tqs8u.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Drew Adams <drew.adams@HIDDEN> writes: >> >> The macro itself should stay general & unassuming. >> > >> > The plan is to change dired-buffer-stale-p so that it returns nil >> > when inhibit-read-only is bound to a non-nil value which is the >> > case during the execution of the code generated by >> > dired-map-over-marks and might catch other cases, too. The macro >> > itself stays as-is. >> >> The missing part: this change hinders auto-revert-mode from reverting >> the dired buffer during an operation on marked files. > > That shouldn't happen, IMO. Too general, > and I doubt it's needed. This bug contains a recipe showing at least one ocassion where it is needed. > One might very well want to allow reversion > during some particular operation on marked > files. Let's not assume otherwise. Sure, and that's still allowed, e.g., the code given as BODY of dired-map-over-marks could explicitly call revert-buffer if it can handle the result. The point is that auto-revert-mode reverts at _unpredictable_ moments where chances are high that the dired buffer contents change in a way that the processing logic goes wrong, e.g., a marked and not yet processed file is now before point and will be skipped, or the other way round, an already processed file is now after point and will be processed again. > An operation on marked files - which really > means, for this macro, an operation on marked > _lines_, CAN DO ANYTHING. Whatever you might > want to do to, or with, the Dired buffer > display/listing you can do. That is, you > could until now, it sounds like. I don't see what feature you think I have stolen from you. We just prevent auto-revert-mode from reverting the dired buffer as long as an operation on marked files is in progress. Progress is still visible (SHOW-PROGRESS arg of dired-map-over-marks), i.e., the dired buffer is periodically redisplayed showing the changes so far because that has nothing to do with auto-revert-mode. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 18:29:01 +0000 Resent-Message-ID: <handler.75626.B75626.17373977323611 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17373977323611 (code B ref 75626); Mon, 20 Jan 2025 18:29:01 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 18:28:52 +0000 Received: from localhost ([127.0.0.1]:52272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZwW3-0000wB-QU for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 13:28:52 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:35920) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1tZwVz-0000vy-Eq for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 13:28:50 -0500 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGMtQs024733; Mon, 20 Jan 2025 18:28:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=c9b64pF29HdJ5xC62ag8rlf8DneT08BjEtAeMFblEDE=; b= A2rvfoZs2xJA9iFEcJFZIrZvvtczDf0e7Cd0sSou/45Y/HtlmJdelmL4zyLZhAMY 2ihQwdsq1FK+knUi4knrPVVrQjFoBraPyoBDAlMILx3RryusiiumahGXFlyDh4EU PT2Cs45OEFhO85NjntJAs4W1lUlsscgDIA+RiDE9C1dcdxiqn+Exw/1gVg/Mzu94 0Ik/EBSqcl2OZqk9roxD3YmTKQwcAWBnqcBlT17guf7iQE/vJeRkovkOcyFfXKa5 l3jhtJ9xLXyTC/4DEJUvYUIDwuod0oMGue48gbDeshO2KLAo+BCbapkTeCM2Qihe PUVTMXTg/rEhjiaTCJnggQ== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485q54710-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 18:28:44 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGPGhD030336; Mon, 20 Jan 2025 18:28:43 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2171.outbound.protection.outlook.com [104.47.57.171]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4491fgvtqr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 18:28:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RQQlClb7j+etlsYa2MqZIuuO01sBlbI48rgNoxZ8m/Ufn5x6UM1W7ObSCenk5Ir3uNzKfRKhl8GjEcB4Np627pSdTHxcqVTg8KYqLyQkcsXbHxUjisl31hY8ON5OpckRd9OdYOJO3yQp4JmAabGLsco4H356yoPEE2zVrASIpF6B9GW6zy21/cX5/utTPa5IO3zmusQxnTP3MBij2llkuvEBdWIeVj9f6e7gOjsnB5XC3DJOlrjaEG787GOLZWm0QNQmZNHNWUn+oFp+1X2NrKebcCcLY4o/hIt4rCXCES5rSwD2Jfl53syEDHtDPXOlx53kSkW+zycsKihUjqbMNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c9b64pF29HdJ5xC62ag8rlf8DneT08BjEtAeMFblEDE=; b=shYfKayUq6muDrRjh8hnDcIhKtKkSr8uDpNnW2chzJ1oTA/vuRUDCXGmJnRw4/M9Lz38uoi1WGWxRrlebakpwSqzdq59EMI3GyJSJJYtAbfst6q8QjJ6yLexjSxrqW3jr7o6hobYLHLK2GLPI5TPcSTLO24I2Zii9zVRdI0ucSN0xO3XRKLWEcIGwTv+xe0LKCqdc/kn+1PtyA8sj7YSe4/xWIBncGpsyhb0h6sTDSz4FocPNDteO4/37ur0BEQTKn7gnkfadjdCLq54y+G022Mmg5KZQyjtlpNsw38pe8tUngmVmONx5zZcVPHtWixCkxvOKzu8RQhXS4+riY4IoQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c9b64pF29HdJ5xC62ag8rlf8DneT08BjEtAeMFblEDE=; b=J74kWQblR5fyDRws7/CPwaJ0/IJ41XKO03BHsa3spU91LDpUWlw48sw+7C6hxetrNy6NLnKjH4RDlv8nqrsq4goqm+MPJ/MVl8VwyqIDRo11Bi2iU060wCAd2GIiKuFvA/vq+L5IgvvbMUVUBxi1EXhnOSfudHcIylQiC2Ni4lw= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by CY8PR10MB7171.namprd10.prod.outlook.com (2603:10b6:930:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.20; Mon, 20 Jan 2025 18:28:41 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 18:28:41 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba2VhSDUI6+6qRE+lT3Q3+SCJ87Mf9rxQ Date: Mon, 20 Jan 2025 18:28:40 +0000 Message-ID: <DS7PR10MB5232928C1A95CB516AA33D85F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <874j1tqs8u.fsf@HIDDEN> In-Reply-To: <874j1tqs8u.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|CY8PR10MB7171:EE_ x-ms-office365-filtering-correlation-id: 5c01eff7-f296-4048-b97e-08dd398043a1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: wnUH2GIjbDvCFB8X1mCxaRuSByabPbDJ9VOk5U5LSvYqQ6g0xfYlw4z6Dazk88gz7IFwH2A6U2HTIVrOeHa5h8akfosqODzOm0syKT6lGONL/Gz9VoqO6EE91gPf8jemudIBMSIczE4tt0qiS33RBWbV6cOkfQfa4iiOb9OgGn6NpXZpq7IspNHidAOhL3QniT+Z5k1GOO8QR0QJ0A6AplUApUJtkO0RMMidX4qR0ZwUbwJvW86u74FiXT/J4VaP5LqD5mo0jQUWeEBApNrmZBKDgIzuQKAhpxTxLJaPl2dHYH2ykAjrOTgn7B1RGNYWz4JvygOueOxAgbJMcJvOu6geKrnHTjN2qTJ6RV2LHiTUQheNAJ7jThGr9ZJqWEOmobO84Z3CDlipcO/JohweyFBhlOD7JuvziE0siCAmSoCCf+8RzINorAWWNIyjJa2sjsq5wTKM1em6i08VVcjvuVCv4LvZXQ2mB9qVYeTpoptD0sG7orwP2bbFJEoM50M4SNS1DH8ZK1bZ5GiDTRr7aYSf1npyEhQNjMZ/qCKkY0La153Lb3xw3jqY2BOMQ67/4UgvjnQJLtZAultitKbu7SzlD7RlkC1U4nkC9mZ9/lT93WqN395ZSHZfEFpwHjRwtKW8EA1YN4KVkVykCE0EGrbzu2sD3zFmplprkpbUwG0NEZeg2kdxWbm0LC+ZYK6K+rROKv3iAvbu9zg8tHA5E/DV86ykydNQz2oKtqj+i7USXbCZeVGOrCYnwpLRPaLvkxtcA5McjXSNcikgZum5vR6UP/XtER3mP1df42taGB8t7HRbB5y1rAB5GmushL2c87sZ8Ufd3Z56WxtL8bQIZASF2/Lb1TwL77RD4GuvAW6R4vt/LoD/AT389/DXVl+z/KnYcL9uNmLFAUVN6gRDa613Z07EZ6Rc9SH8DiOmVfRu942fFkpeLlyEuHoK87oQdZv7N+UM/13GMqf9wshMRWJi9bMfhnDtOaj2Rre+Wco0r6DVGz7DwIs2oo51yBPLfFwGFbovQhjqyPn7hFKf+fmPYsfQ6xQnXxqiS6u+DQC2nBPbTIB5oXEqdPPhU0VLnlmaM7euEudk725JQ28agUPdSJxozjN75qschTGPjiRGhOveodg+T4mvhhJFDLHf8o3vrxsxUcXYZanhXkkJjWj5Pj/1m74wf6F8AR51GK1CW6Xe/DFfM+LdEm4+Zix8cjeiFuPaCCmc1AZyj3YiKPwMjeSZc9vucGYI8bZRJSdeqEK3TF1UrtIPlUj1FAiSgZTzME4HdR6xzPFUzw24480ExnlEKJGLdW8Uv/86g8PNT7q6r+Z4YIf9pkgHlv80jA9nuAqL9ruhXCet3GqD0B/RdWspdZJ6qQoyN9rBDwXnCKkVB5+mJ822ZKtcX7DVTwyIdfZJnSXCcHvHNlpRI6eV1/UdbF3829NZMY+pKRB/59T00uqFmEcARJCZLjAR x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: G8Xen2XC3yMsUIp4gzzP6HreSanGVLOlRGAtcCuR3xwbxuyPuEF9Ps5bQPEj3dtRE1LQf4D3FddwdVwSiK7qHzjHxCQYxGOmHi7/+cUjEgHueeFP679MJlt3tq2d0csS0Tqd3+C/fuyL4pzODjf2AbKdiWZVdDFK26m7mfmogU52fcOxMZ6b+1moDzwjQYdIDQOdFEaCPmSxI12r7Eg+m2xAGd86yj+SVSxM22AgTaNwShi2zXSU1qeqFuhkTX5FdOC3dwuarT4G2xWMRVTdeyQbr9AoI0qdOQTFuXP+LnOBx+qitPX/fQwvVToOzx03bAp/s7oAMLB4tXdOBxzPS6E+YowmTHsiRy5aDhATL4DrtdWXQFInXxvdgCmI6nF8/TWg58qKEPdAupPysZhWZ68OaRVs9Bswc4oC/xeHaqbkYjv/d1iAB50FLXCg80eMy0ny/KM0ob3HMXaO34heAzEZRWX3VXOqe5Itkf0c4Oz1Dn/a3cCDi5oKa5CD6nPikvoVmb2J8Cv3OzIfVxsn1f/bFJNd5wXtPr4KzwOtYiSvbSiHRTmf5tuRL2mg7RbQALcJgAbPy1xNblD5i/EnKeDsgTCTyHh8dOZgLd9cfHA52OThAiAhmJJs397HF3O1EGS6hULRUJuElSpSAkffLLt9WiCDBaXn2zeMIpuvJiJclztvz6WUDqc5i0Xeb5sX95KW46wCL19lt6YL89zRW5xaeQPLPYwsm6ANhyWxVbTxC8DNpmZhbhRAcSQy1Kv012xLjIr/8uwX/UBqzduRe5bJpelhEHhF+PY2DI8y5k+lvLRBRTfic6TP4mctA3b0UyM9ifh6aejb0YBdZm57lDRFEBl8mpOhGhV50AKbJGUeJMUyNmPd0/4gK1zn8BuzxX/xmRz2yqGR1r/eyWdBsrrBG7BbYaw2MBk12Wa91ZAhDv/4wNdVaDa4n1tQ1RnVq5i4TpwfTD5AKBqgC5Jje88CDJLSBL0j96VsWQWHxvMFGHnfkb3M0WMmSt8lrhlU5v1pDNWm5Iln0I9vNr0xoChB9tBP5gmFNSTy1CYaca09ALYGIbiVkKMXSsi+ucDZXxvIdsNMPTrGFzah5e/8uABBmdFkE+E5cT3YeZiC05+5CQqIIq2lbeFM3PicJRpICuoDt9LfseN+QF9x80KXelTwPzj0qKWrooATXDBEVrVe+7HaCJmn59x0MhbJGnzBNc7tjV8qze4djd+YW32U3Uw+wSs2Fgfn1bBQW/auz6x5TSwKSoTXqhBa10cPM+ILJoWPiErsYuujdjEd7CnqK9AusBKPNnpPZHmN549o/Hv+MiVYEyYEKDSjhl65D7swzevm1IPIJbIziWmjt2SjmrMUu92H1Vm5mGg6xQcHIQ7vVOtlERnqr0O1L5ab8Pzncc/xcbD165qGAIxw2NAC4J0jiXXrLbcaSXWW4IK7oriNfhzHP/26WINFd2+fdqzvWB0VFCgQhn7pxxHC7Rb5jLyHt2o6Vq8YGKA0Q5KUagBuPrO3NGgdgbtPf2DGogVgXmAiyPnJW/wl4xNzld9HLx99CPCRZq5/ypWSs18TzEo8TDMbtOXwV2VMBmvPB/A7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: D52sn0tWxfao4/5rvS05iHu9DFhiYpMnjW05B2GFPULuydbKxt5RU0SS12g49aNbDIGQz0Sal0hUyRnGvqcvnawuVRSzjhq/r3mZlE3XIF5AzpidwVD29yVeZTaTVtUvIjn0JCcrEj/fFJv/mCxQO7CDscxN2T0kg6ZFnb7J6gqTAM0CNOM7y+MkM1LL/dtlEQlckKpxGMGHGdTuvfzgbgJJaUspVXj3RNBER5dMyf4rDQHfpMEohY7hubA+HtVFAIp4BoP5337D/0dojNlk7JnbDIAaBmnUdGKKHSK8uJ8dufnuZvSCxyxas4P1xzdB044oK9s4lwQGtrGSosNt1/RJUsfxBi54LEy/2P9rtXRogXTTZO9u+JtA7P0oAT5Z89vnPAIap/1kggqLOKX2SqK+uFOxigzkhzdUzg9zv7nokPkU42pjY/2agG9QZzGUu1Jm59EdnzIzeynVdu5I+906pZ2y0k8W5XjGniOA+UowoDfRA7nzCneppGseeaInvJJT7CeA0RpkLycRYSAemI6vrVt7OWToaDaKx1yJV68DnkrX9lSyDpS5Ih5j4cgbU8ey6qmoMtXiUdfRUkEVi7k8GnfLQ3H8e5d+sDuiIqw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c01eff7-f296-4048-b97e-08dd398043a1 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 18:28:40.9687 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HnYefcwaV/TYENqOAxhhYarqzeVqTdD04g4p4YochZW01wlTGLU7McXcRxQDEz+SMyyZgtmBjtsdaCHMNIuPPw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR10MB7171 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_05,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200152 X-Proofpoint-GUID: 3NwlfsT4mI-vGQdHwuUh2pscrilAwKI8 X-Proofpoint-ORIG-GUID: 3NwlfsT4mI-vGQdHwuUh2pscrilAwKI8 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > >> >> The macro itself should stay general & unassuming. > >> > > >> > The plan is to change dired-buffer-stale-p so that it returns nil > >> > when inhibit-read-only is bound to a non-nil value which is the > >> > case during the execution of the code generated by > >> > dired-map-over-marks and might catch other cases, too. The macro > >> > itself stays as-is. > >> > >> The missing part: this change hinders auto-revert-mode from reverting > >> the dired buffer during an operation on marked files. > > > > That shouldn't happen, IMO. Too general, > > and I doubt it's needed. >=20 > This bug contains a recipe showing at least one ocassion where it is > needed. It's needed for the _macro_ to do? I don't see that demonstrated. An occasion where the macro is used and you want to prevent XYZ should be handled by the _code that invokes the macro_, not by the macro itself, i.e., not by expanding the macro. > > One might very well want to allow reversion > > during some particular operation on marked > > files. Let's not assume otherwise. >=20 > Sure, and that's still allowed, e.g., the code given as BODY of > dired-map-over-marks could explicitly call revert-buffer if it can > handle the result. When you say BODY, do you mean the _function_ passed to the macro as its ARG, or the BODY argument? In any case, how is an invocation of the macro supposed to override the denial of reversion? Can it simply let-bind a variable around the macro call? I was guessing that, with your change the macro code itself would override that, e.g., with its own such binding, making it impossible to control the behavior from _around_ the macro call. > The point is that auto-revert-mode reverts at _unpredictable_ moments > where chances are high that the dired buffer contents change in a way > that the processing logic goes wrong, e.g., a marked and not yet > processed file is now before point and will be skipped, or the other way > round, an already processed file is now after point and will be > processed again. Yes, I made clear that I understand that. And I explicitly agreed that that's a no-no. My point was that, until now, it was up to a _user_ to just _not do that_, i.e., not to shoot herself in the foot. IIUC, Emacs is now preventing her from reverting the buffer, including, but not limited to, via `auto-revert-mode'. If so, I'd prefer the original, more general behavior: leave it up to the _calling_ code to decide whether to limit the behavior in that way (or in any other way). If it's important for the particular use case to prevent doing XYZ then the _calling code_ can, and should, prevent doing XYZ. The macro shouldn't try to guess what should be prevented - even in the case of buffer reversion, which, I agree, is usually something to be prevented. > > An operation on marked files - which really > > means, for this macro, an operation on marked > > _lines_, CAN DO ANYTHING. Whatever you might > > want to do to, or with, the Dired buffer > > display/listing you can do. That is, you > > could until now, it sounds like. >=20 > I don't see what feature you think I have stolen from you. We just > prevent auto-revert-mode from reverting the dired buffer as long as an > operation on marked files is in progress. Why? Because usually that's a good thing to prevent? Not good/general enough. Leave it up to calling code to prevent that. Add a note about this to the doc string, if you like. But why have the _macro_ prevent it? > Progress is still visible > (SHOW-PROGRESS arg of dired-map-over-marks), i.e., the dired buffer is > periodically redisplayed showing the changes so far because that has > nothing to do with auto-revert-mode. No one questioned visibility of progress. Dunno why you mention that.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 19:09:02 +0000 Resent-Message-ID: <handler.75626.B75626.173740009011452 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Tassilo Horn" <tsdh@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173740009011452 (code B ref 75626); Mon, 20 Jan 2025 19:09:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 19:08:10 +0000 Received: from localhost ([127.0.0.1]:52336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tZx86-0002ye-14 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 14:08:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57290) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tZx83-0002yK-51 for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 14:08:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZx7x-0002nR-Lb; Mon, 20 Jan 2025 14:08:01 -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=2dNl2MI/hLiALM09YE21q2+0ePXynoHlR5qJZSHQAPM=; b=lYUh1bHYPjwa mDVJUX8pbQLI9u2ZoO9Ua/Bcf0m/KK0wjrtonvaFPmaQLG4uIQOhAr1M2Stk/UfWY+MKjvW+rPe6A urii9ZMWzX5tlpydoCmYcPFPBBbzJJqkPNYrVbB6+BZLfQHBS+nh2D2voDr4gA+AWuS4ZdNV0OWEr 3NsyfAEhF4nRYdMju44KgI+uNFiAfnYkYKk9GQR1WzA/7XBg8bSthe3VuolL2cmu8ozk3/3WLgmEh 8Y0/lxKtbGbpfuBZkf641PzI2j+LEh/Ts6laCQy3OZB9C029UdlmGi6Dzsaruh0kQVW9797RhHLBs q/AmZw1ybFi6PCEtHcw3Fg==; Date: Mon, 20 Jan 2025 21:07:39 +0200 Message-Id: <86plkh5mo4.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> (tsdh@HIDDEN) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Mon, 20 Jan 2025 18:19:00 +0100 > From: "Tassilo Horn" <tsdh@HIDDEN> > Cc: 75626 <at> debbugs.gnu.org > > > > Am Mo, 20. Jan 2025, um 18:08, schrieb Eli Zaretskii: > >> Let's use dired--inhibit-auto-revert instead. > > > > And, btw, if we want this to be useful outside of Dired, we need to > > make this variable public, not internal. That is, call it > > dired-inhibit-auto-revert. > > Sorry, I can't follow. Why should a variable named dired-* be used outside of dired? Not outside of dired, outside of dired.el. There are two other dired-*.el files which might want to do that for some reason. Anyway, that other places could want to use this was not my suggestion, it was yours, AFAIR.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 23:28:02 +0000 Resent-Message-ID: <handler.75626.B75626.17374156732752 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17374156732752 (code B ref 75626); Mon, 20 Jan 2025 23:28:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 23:27:53 +0000 Received: from localhost ([127.0.0.1]:52041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta1BQ-0000iD-BT for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:27:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44374) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1ta1BL-0000hh-DJ for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:27:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZy1c-0003Iy-HK; Mon, 20 Jan 2025 15:05:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=9lLJAos26ok13InaKcSPdHqKONEKUa77AXaAMKaW5cE=; b=LXhf6RGQXkSMfD18kqpx vWZGdkWsp5PimSoVaaTIQJtMRmpFKiGNwAaeHlMhCy9OMr2dzohHytHEELCnoT65UUODicM3n5isY JDy3lB8AZSRwICtKeBlUZNowqAYd4dV4nl4duLW5K6s9BOodmNZ889dAG4qpYkBONxgqnycmHakEk uIxsyGLvCEOyuGujpFEiygAeKZB77wInLHoYX1UgoTF/snNjq1wZRqHBNdyGKJYfBXTZvyebUap77 Pfm4py0Ybho5+3WS9UDINTkPaHPu2csu9eHa6kbI5fdLw/2IeIo3JfPjScpaCKCtQ/SZDIYguspwY 7bYeLvJFLXmMTg==; X-ME-Sender: <xms:g6yOZy_ZeYU6TnkkhHPia07123UDK8w9_Rs_269efg1enkoN_VdSzQ> <xme:g6yOZyvPS48Ss_tAsp2tiAxFCqp3rPTHVyWrMsqGyMxgdpnpb161_II6hXPdj9SIY GlbfSBmjXupPg> X-ME-Received: <xmr:g6yOZ4AvbFxo6Ym3QkMK-o1lriYiIeuAi-UMSVsVAQQQXUkojH7IaMFJUOdaZFp-xDbV189XK57GpB3_mTlwqxh5m_cqKW8> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlpghhvggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhiiiesghhn uhdrohhrgh X-ME-Proxy: <xmx:g6yOZ6eloJvtLPqbt_11KjPVYM8lH9CuUw8GEvCI2_kViolAc9TYng> <xmx:g6yOZ3NWclwfToZAKbJv1Yxijx247JSgvmfBRYmu16bpJ01QZM4XKw> <xmx:g6yOZ0m9RAOSt0CsfJkNiBHvjiX-f-VnlKPXdAzoO4kEY2KdFUAugQ> <xmx:g6yOZ5u_PWYUy8DHEapcfB78S5oj1CGWuy-wnswu_FCGc1cpm_dyaQ> <xmx:g6yOZ9ujBBiiyz9QoicRaVgxFGQN5CQONEUa4oQ40uOYnSHHkl5na9a9> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86plkh5mo4.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 20 Jan 2025 21:07:39 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 21:05:20 +0100 Message-ID: <87plkhb69r.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> > And, btw, if we want this to be useful outside of Dired, we need to >> > make this variable public, not internal. That is, call it >> > dired-inhibit-auto-revert. >> >> Sorry, I can't follow. Why should a variable named dired-* be used >> outside of dired? > > Not outside of dired, outside of dired.el. There are two other > dired-*.el files which might want to do that for some reason. Would you get a warning when dired--inhibit-auto-revert defined in dired.el was used in dired-aux.el or what is the problem? I've though "--" variables are only private by convention, and usually not private to a file but to a package. > Anyway, that other places could want to use this was not my > suggestion, it was yours, AFAIR. No, Michael's. Anyway, after thinking a bit more about it: we could also have an even more general inhibit-auto-revert in autorevert.el and bind that in the expansion of dired-map-over-marks. Then auto-revert-handler would test inhibit-auto-revert even before consulting the buffer-stale-function. WDYT? Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 23:36:02 +0000 Resent-Message-ID: <handler.75626.B75626.17374161494833 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: "michael_heerdegen@HIDDEN" <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, "tsdh@HIDDEN" <tsdh@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17374161494833 (code B ref 75626); Mon, 20 Jan 2025 23:36:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 23:35:49 +0000 Received: from localhost ([127.0.0.1]:52153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta1J6-0001Fs-Jw for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:35:48 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:58842) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1ta1J3-0001Fj-GW for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:35:46 -0500 Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGN3Q6013753; Mon, 20 Jan 2025 19:20:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=yx2UOhBijESzXyjVd57EjuSYKP/yP2AEmNN49t9xvpk=; b= arW+JuaLK3h/tRQX8hFPC7eF4PgLbiKdjHc/SvHmxX+HQ9/zEqFsfbp1XR4pQcU0 jDZU0nOY+04G0UY+cR7MAkIezByGv4He180ScNukx0GQqhdNuaU1jj7suSfFdXgu HzDzUatPCsom8yQTscL03++tVYqY8lFw+xsEVImTu6geMLNOVgMVccIWgKL2RYC6 MZywYfj4BwY/wqGnfR/YQXU4moCF2Ax293FmqwD72mJQeSXOCHmyP8AtPTUCDcJO HZnk9OtWV+6gDicbypGqGgsa4IbZqldWviGEXJ5ECL1gpq3tjQOv7tn5a5yboubo QKhX2eSUZn//UW/ejAUzqg== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485rdc678-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 19:20:13 +0000 (GMT) Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGeVI7030442; Mon, 20 Jan 2025 19:20:12 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 449191n7h9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 19:20:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XdxO0Bt73DRnm47Yi9l7Vp8wT2kF0hlPeUEGoFzhrxbsOblmYln3e9W3IyzNjtxB8F+NhtE9mDRn8hgXffdEX49WuA9W9kuDEqFq9uy1/LiaaeRYBVDg6nP6/l7L8RkM2iz9PrsY8zqrfvYZ0TTJFkZzI8Zqaa65OsWq3G76OIaCk9YhaVL0aL7OsgB4D11ZCe8YBJKDvZYPLirBTk84fUPQWV/6aKIoKehZBgoCD1XVb5H2UE4J4DuEQPAv89a0/hhiFHnB45OO/v/GboMYPvOwIiWJX09Cg2+wgHc6kUgxbYC9GcaacDVdOyf+v4QrEZw6Cb/gmiG/uGkNtuAPYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yx2UOhBijESzXyjVd57EjuSYKP/yP2AEmNN49t9xvpk=; b=wyS7vUIA0RMbt5OeoUSA7DskCmwWpp1iUsIUDDR/AKYBFsJs8w89shmnDuNi2wW39K+Psx6OC/23MNJ+x8f5YbKuttGbbaD8SAC+yO9TtiSZLuKh/5/v1toQV5mXpMOArvxSh89dFqQ+UKS8Mz2Qn0yS1lbHcsrV8THd4VpERdUIFWG4Ls5QYsEbY1D/kn6WvEueFxYsAwnyX/fBEBXlJW+SBXQ1dWn4GkXFTMBbrpGHlvOhvIxkTPUXdDUZuN6welozIgxdLOLl0Bju3KV+JcN0Tj2zSccufZbVzumXpJdw6x7Fg3wm9loGXHFcUrxZujA6jXprB+7U7C3PonvPVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yx2UOhBijESzXyjVd57EjuSYKP/yP2AEmNN49t9xvpk=; b=xrcsnbtzSR7UiIdYnn8TqhuBdZdwvjn9mmTxyb58erx7WKKApky9J/0NwI596x9O7y1JGgmcJIMPkoDU5SHhMcIoCrpI4gHZXpeEMy+WaYIYeyDv2HJsmKGUcabqQrZzF2A+TDi6ukLFjx6KIB3aAQN45naES9uJL8Rmif/Jhfc= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by CO6PR10MB5553.namprd10.prod.outlook.com (2603:10b6:303:140::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 19:20:10 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 19:20:10 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba291sphwUoLo+U+L4MN0Bqj9B7MgCFog Date: Mon, 20 Jan 2025 19:20:10 +0000 Message-ID: <DS7PR10MB5232530004531237BEED00DDF3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <DS7PR10MB52325D4B7F48836005461F1CF3E72@HIDDEN> <86o7015mf7.fsf@HIDDEN> In-Reply-To: <86o7015mf7.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|CO6PR10MB5553:EE_ x-ms-office365-filtering-correlation-id: 23b34f66-ad54-46f9-8fdc-08dd3987752b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: jtUYXmtyVgWhpEJyJrgO/FUudjXgNC43Jo+a+QHD9dgHqUs2qrtlZhrnJQnoBdh8QbNiloIRy2shQQA9ZgJFZ+xvTU7L3+NCORvRLMu/nhls01U4Ycl5svG3uugN0IuLKXpOlTwHB9gMKHTIGLrkKe4zvlt+HpcxJZ4u0VFrJEUPwtaftc8VHPSU1dFpDzTZxI5Wv4OdtkhZ3mj2rm+CR8pCuxVLVC5O3EvC15lFU2A4o7uOAdS0nKcbkBansPYv8RjXbuc5rqR0z6axKpJuwuzkIV2YifFjVy2sVxtNzqWoIVNMbio6hWgwnIUx9PEdbRu9bLVbYHThK3UOX+leeGFWx+Uh3bObzgZ13caFmWE/jBxzL2e0TTcPSdn5aAckGg/HqhGGY7DAncd1tN44JmbkfwLamMFvkZVJ2v/V/S40H86rUkv547DO7MUgpcjy21ctPxIPhhytfAg1/WSU3n9cFHwiUlf7EiGhi9DvnwOOx2oExC7D/MsMUrVWox9UffqBBzyuD3Ghf5NrFMrA/hmNwmEd/gfPM8cudOTv+GCI5bY/7Zv5os8IgXrdFU9EJsYHEXglZwN2nrBfcqvFU3Z9b/UMeWY/xL2e/1kskKFATsc1RQf7SQ5CrOymphIfQ+Uxv4LlHIOlgnD0lDvT6dlqwrny1AMiNe3nnRavFOVLxJ4rBZkbL93N0adN/K8gBpkmVzNPOtI/6w5MrRzs2kz0/MdeRIskfRZIs2qC4JiSj6neM9gGS+y/MyHtDT8nbY5v3TtCbCtvYODWPFy8N+5YLT/vZeo6RsOBJ0izW6gNrLvOPN3yAybUJpxpUs5ngRHbR6wj+1Sb+uFMn/c2i2TRWHnztZpmDqBn3E5PYcWUeKfRBkKHQLqa5dyN22Z0JFM7CSL1n5xxz3Jo0L5NyQgKoNHRxfPvi+PgqX3N+Zo8MlGPyn5l1vKJOEyxz8q0wCQvZZwYzIAmg5dPOVeoO7Lixb4YPaWr2+Q3N1FRA6TO+oqlWy04oLE+StfSHSX0xTNdKlCsa5FV216Un02oJAETtjPIxtornteGsgBbnlGYDl8C6kziGQgMK/JPtKBWk1wuyPTxG0IjnY4MsS/5YQvYnjIjgiIXrj6oZs/Y6/79kVhY8b8OYBvgrRpxZ3ARoF22WR1zDbpel8JAuJN1D267Jslw/pR56Jk88+WxY3/3MOTLT85CEvMOBcwLYJ+hmn8zhuc7jfjMhuUMnKk0F916fWW3dH0GUNI54R7Ikc7qNb30QvBuLnuBQ4iU/yGJictEGkFsZHv80K0sRCCU+HTJQcpG+8pPRmEa/m//Xz5AjpjO6r3dGnHnDlnJ3QRghIEtU2/7+z3IyK8t/T3hfuMa32uCxH6IBorql1y+QLMYBlO+NGIU69DVruvIxy3y+5oTiZFA5xN87FnoXGU7LZqbL+8Rj2Le15nUJZiCyzId3hHpHikmAcaaoDTDq0Jl x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: QWeTF2NQfDL07rp9I6w498M4BNWzT83n2G3jLszZ8yoDv2HeITC2WOrviesWPHn/5Pq9/untNuPD8lpi4O/hn7tLUobsU8y0GJdA0h14ddYUmlSXb4ZXXwbDDO34WncXcdDRXALSmjFLFEkLrD1rEAjs+tkIvbKQ/aTGBeCRD8lDKVRLq3Yjve7PzkbKHEXojUv9zDpJoBOuyRLIFsgIVVce0zEtzIoFZgbV2JuDP3t9jX99Cuzv4jbXbXiMT4pnvHIkSTBBECsQEXezWOfuftiEKor4k598WefQZY0UUWm6NXaSR5isVbqpsSs4H6UPgf+V1NOtRqOut4J5mYlPxyAzOyFCr1/WpNulHjCDGpfPEvcQqGCb3rOsJt4zuhFsNuYpHeOUXhLveNNOUZbvEB/eNF79GcL/Bx/e4JUQfs1+Qf2YXPUrcNVQBafWzRh4m8koFDuD7COwPxvHYkslwE1xa9gZG0b3K3awsbjCD62Wm4iAh3DHcs2/+CFN6QEM82wcofGx3y7gPAza+hgc1xS3BAH9j8k0lO7eEzYSm3bHDbiylhYUQWHpBzhgdMXNGFStHAFWWwLYDZhfrXs55lb/ad7etwopdbT18E1HMFHJ6RBl0OPJTIudkJQb/+5oh70MbO3Z/Koahhcx5cUqN5ETkjaYmCu9I6MtRRqiwH11CYXOJ0mhvvzte2xOw91b7TD1xZxcwnEs+EG/yTogRk9OiNyA+BaBxwCKe0p80B9BAqr/bXx/MvhR4t+QM1cj0nm+5e3ROzBDH5sPYQgqwMS4qqVeBin1GWuMq8FqBt4ezUT8DBS8UG9arFriBJvU7ESZGTkyQjwz+EwRCPkzuXBIYXZXAXku/IsQHBoTSKYoFU2d6cWb80rfeYfgKdLyuRdF01haUHucGmZwXF1Cf639D1J1OW+tcX0qqhNPsg5XPc0XhfIALssurdz6vr6k55OXe1PCsiLOoGwj0gvbusJYgEC29gNpEzj7hpPa4sRffHCmM22O8LVdYJcAa5brrA7BVB6bpiLHGFZ074JLkB6zvd9fC1pNoDqkSMNZu9F10+4+RuxOF8gD8McPwueFuQqFoseacTGqitKjI1HjsfP362g+xRiY9x7t3gJV+KzZjAfXIrZ4OBwwSgkZzNy9zSfdzszQgYxmG55BB5D5+WFnjk0Ef4TOGlc061YF0Sjp2SGxqNmJAmodv70ROTmLVcUr0uQV/H3r+A4E2vt9BXcVmGDE6bI8Qu9YbzciaDyIiZ1QZK/AL1fZLiIdbj4N4c+tp4ainYQ4Pf9pJeHqGR6NJMmOGMp83QgtlT3BzgKV+9xofmQjSkBeUOtYBhD5159p4+2JK8LInyKKkUnXWKXjEAaLMq4DupJYGbk5W5wWFcP9tVvyNUFQqHtb1gsjFOH+KxXmzHId1Ahzrjoth/rZ4wtZyEGC/YoP3qdQw2j4VpRp9kUcEcGbPsq69PgSZ42P5ewU/6nYFhxL+ElVHJwTWp2bGXXmmdOgiZ9etGzNBPU+9wcrlYeXuz1agF0vsZz/0DnkTqnRvkyceh43BdaTIKr4KBnO0vcRWwlQyqiv0idydT2WyVcUegULdFQa Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: NfUThNzUnk2f0Tl6Js3N9oOAEhUW8TEfzDk32U6+avOlZsus6dnCaaKMuO+4edXK89m07mf1jEs7ahcKtVjo8iXq5aEmT6gRHYiPrOktZ49myDGu4gCZ1N5v/CapeT0eDpzS5rRojZkCcy+BD2lFVOpdYKPzj6HsugNfupBZqFk6aliGR0gLJ6H1HQc9i1cuBPMB16ruTJ2Kw5BdbBKMUuVYyuLMqy9jzEAhsJEXHU+dUY7qM1sbg3m6xJ9XwVKjkZgZaW/HEfGpEgpVIvYPlvauOPTupKR4MqArajf6kPCKmCMADKtO/dWnX/Zu2ng2eBF6ES7lR5z6GqK5hPXqrgwggDXIHSHpRtlz4QzPxC5N+9a27fCB/C3g+0XMVTe1t0HBP4AY0ZxzOohihOquXSnpdV8PuPHYr6/CqDZRUyWgGAN88DbnLAvuZMKf2sTbADja+TuI0CNEleMii1KD7VsvDjTayxHUQKOiu0GSQCfxgRuHSW0b/VrU/THOjeoyfTMRP73pCwK3DJQ57izblYPANYN4BsU6z8fzJjcKnPRKMo5V7Vb8es4LV7nrznRBX+lo+brM3u8RB2fi9VAx70wwafc+hSkCHk2ytASQNGw= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23b34f66-ad54-46f9-8fdc-08dd3987752b X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 19:20:10.5210 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HkftxgYbI9rGmXctzNJqJWLQ+YTlWuFDH6hdnF6P/j6v4FDlNJFpI12T56TH2j/MweO9K7KVNaB7zUi81bm0ow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR10MB5553 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_05,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=919 malwarescore=0 adultscore=0 suspectscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200157 X-Proofpoint-ORIG-GUID: ogcGrc1zxUebHoI4D5vjuIugiljdbn5g X-Proofpoint-GUID: ogcGrc1zxUebHoI4D5vjuIugiljdbn5g X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > > Is that necessary? I can't see why it would be. >=20 > It is necessary because the macro must "freeze" the marked file while > it maps over them. Otherwise, the macro doesn't work on a snapshot, > it works on a list that could change under its feet, which is not a > good way of writing programs that must give predictable results. The macro _doesn't_ map over files. It maps over the marked _lines_. The macro is all about the displayed Dired buffer (listing(s)). It need not do anything with or to any of the files listed on the marked lines. I do agree that normally, usually, most of the time a _use_ of the macro will not want to allow the display to change while it's processing a particular marked line. What I don't (yet) agree with (or see) is the constraint that the macro should, itself, prevent things while it's iterating over the marked lines and invoking a function when on each one, in turn. I don't understand why we wouldn't, as always till now, leave any such "prevention", or other control, up to the code that invokes the macro.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 20 Jan 2025 23:59:02 +0000 Resent-Message-ID: <handler.75626.B75626.17374175289019 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17374175289019 (code B ref 75626); Mon, 20 Jan 2025 23:59:02 +0000 Received: (at 75626) by debbugs.gnu.org; 20 Jan 2025 23:58:48 +0000 Received: from localhost ([127.0.0.1]:52262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta1fL-0002LM-L6 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:58:48 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:24066) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1ta1fH-0002LB-Ro for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 18:58:46 -0500 Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KMPMSE001342; Mon, 20 Jan 2025 22:32:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=dOwyXuLySyQv/TfDYuP/LBq1x0yvJiGcEsOrJn7h9po=; b= f3YWjrs6ng72JDisDZuAFtqNRb0D2M7El1yHUsnNKiWz4PECYIRidK+eDL9kGzfI iGKHc4VR2gxz6M5ToMbMzGj8xvgqfQEf7AYH2WvVkCoCZx/AomcA04BruiWjFYYr 4WsdV5OXyieSLj+oQwUvEopOrrIvYt9fWSenGtqqIXnrgllsOtDNYJUSY6CNaNVD Lvoy1Zek2RCV3YRWe2pXzBOO0FxBUJ4OFd7xY8tMjdM2YQiv59OVVZ1tabYxvkyt DfUH+gQA+stzEvC5mlysFH358/qyofOESmR4O+Z8J1MAg5DPWpsk9AyJwZYg5C4h 0skD549HM0XVaNYBC2rrQg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qamd04-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 22:32:51 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KJ9Ma6036493; Mon, 20 Jan 2025 22:32:51 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2177.outbound.protection.outlook.com [104.47.55.177]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 44917nsnp1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 22:32:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BcqMwmgR3a/pgA4bF1EMFe11YDenJOMXQ9bHeJBeTjrLfBLy40vutREfi9uQXbGmYcqStZfgD34tXAsNxaT9HgqZO3hH0iGt0T29aoBZbY+qy9d/uZJddqCQLxZRzNuXPbefD2x8/8rs3DVoAPkUHNfWQ6o6lO3geW1h7/NkJX6hKd4dw64jS/vD4O0VSCRjIZahtNzYGkA8yg1cc3S71BWj/8yGrg7PVn5McxsUQlBW3SJPcnwwpo+QJtrfildKNU7JSdEytglbpcqQbDSCBFVnkf5zFJg2jxUlRipb6rLMGdnimoGpxBVDhMeul9D7ZCUeKvtxY8bVhrRh6U+VYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dOwyXuLySyQv/TfDYuP/LBq1x0yvJiGcEsOrJn7h9po=; b=NI5FyrMniEVBhqRltt/aQdYQOAoP+FwrApBF1ZVF2t16MLMn6t6qfDirw110QgwFoLBgMv884a2LE+6/+6zNvYNNb9FY/BWJkYNaPYITKgnAkCrM51aCIrw76P9AnEdl4tfMvz/Ar75hyOgF94/KmcdQGY3a6eEVpMldFb+Hat7NAibQku80RaIUnsoL+1VoURKcIuXyFn3cOAtGMte2sSk6vo5csmBmdDD7MPBwVb/EuyaUT418UDFGY6fjr6impYKXbVH+v1P40v4OzdKIPGw8N2atHxPHGH1TT8KfyyEGijlAsH4kY2K/DeEi6oVzLtwenlie1W7De3DPEpoK9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dOwyXuLySyQv/TfDYuP/LBq1x0yvJiGcEsOrJn7h9po=; b=jg3jz3pl3HxSeJyXt5P5PqBa1Mk3TZV4ICsYOiuwlylo6k8RBtOvvoZSpgTN3zbgnr8AzE82t3Fq5iSKVDOwizdaKU53rgcpzfIJKCGnCxRkrfzLJ1Pu+JXyP9RPbf1I13VKqFlHDhzrtU4e51PUQ9NNzWvzJyIyFVv7QgdsoPU= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by DM4PR10MB7404.namprd10.prod.outlook.com (2603:10b6:8:180::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 22:32:49 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 22:32:48 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba3MiMboR74QzPUO0qc3VGrxwRrMgMnVQ Date: Mon, 20 Jan 2025 22:32:48 +0000 Message-ID: <DS7PR10MB5232BE383540AC32DF77F647F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <874j1tqs8u.fsf@HIDDEN> <DS7PR10MB5232928C1A95CB516AA33D85F3E72@HIDDEN> <87v7u9b7g1.fsf@HIDDEN> In-Reply-To: <87v7u9b7g1.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|DM4PR10MB7404:EE_ x-ms-office365-filtering-correlation-id: cd5ac75e-e367-4f97-5112-08dd39a25e6f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: edW8jGrjz0KRrWzG18usFf+2xHj6jMBAKtb9KD8JAPUDg5c4cBZWw1irDcb/hHMUnGKi7sbSMJA+SBK6ox33yiR647L54bAiLF5gx0xYHRmciZxOCq1qstGasdwcsgoY/sJtUQHTeWTzrXBsETTwenx/SuJGADciHyQ/KQNxUEMXHEs0mra+f2hurw9z5jYHWOLPdjN7Sd/O4Joe1NBvOSNtedkynZWMDnv4LjoHMjHo3HAVBZLhRtXxrrAaDRQ2mhRuieokp4BGTCT+sfhHjElTlJMFCygZhIJesldOKu1jZ/zstP2iewJbAzNNxBkGiqkMHVgYGRWf/5A2iHX34rDCTD2aLwa7C9nm/XSV8oarK6l52xFed5dBlyJxDwm8WWtyrVnBETBDQVtHg0yro20LQQR5JuUV1WxKaujMgdRDxjAcAntr+gdfDcrmztjv1k2MnWQ/K7mYgb8YPmAszjNjiZ2ATWO8d40E2IEQgFNbPdABg8HcshQ3jlJrp7XwmB99phGpTGD7BsuEsGhAGcE9IDA2XfZBw74y/RTuoD9bV8GAKjLDRar7I8+jfwjCaQzPTZWgHI37cGWfrx3TMTyN/oIwLzvkPiHrl0WHE9wiCP8Vck53zLU6BymIUH5fT3dHroiFHcnI/prJvrMQdOFoLgJTmtiKLlXsBY97tQ41XiXDApOgxdRRBfa+AtIosBuyyg9GJZ5dXFwq4Bf4LRegE14X8PHI3yJIXwnEt4cE1AzXpSSWkpfXeDgdqx3f0PfHTstcV43pWXsBfNPP9T8Nn54oOVfZ2w92gRFuUuHLFOQBV1PCdspDcRXNYQ405QXAsJHGfaWpQB7RwWteeGDudykybigUBDx2SXfA0WfrP7GGg0CoXZgyTgk2fyBUrJCQHDZ358fgAff+nRKlz0ut/0NXRWFYs4603vGgfIXW+Ic/nOYJkxFvcaz76e/SpVQqnHylQiq2amoQxQu22ifLYLBkdLfcrcTrYgvQ89SjAFqfbUv1K8mmINF9VfU3WS+OTnSLMGZaP36EqLYDNcFUotsW9X9asmYnfJJpwCmTOEzt1cyDjnkW6BS3Jq5wCuoykL1A9djrj29QxNzEPYPOiHjy5qskmfIYICBm9H8tHJgp2j2FSun4mNZjjMIlIj8oD7c69UvjR0qCkk4azWLDMPMF9Zsg7y/R/qgRuccbPfdXRDlfqgcpKS4Abksgn0jhBaOQDrWZEB5KJE3COto7Rijw5q7eIC0JBHMmqtvvnZNPxC9jN+CrU4nk8CYUESkg8/00txLDgNvQ9wcHmKF8TQVxgi40I279j04hIz05eV3X0jonpksW1pjeTrh7J/uKty2pG6uUoS6BDhtK0fsVi6gOXCL3cEZxPV107xYDHcdU2Fqvzh0vMgss3/Fn4NJh3OoAvNZSMeXUCzYXuso8z0gnORGZXujSfQQO7BWQlBmiZGqRzvQQJGDIr/cI x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 5wGdcKjckp+FlF2zNemrSwq7cMC3Abdn09jVrNLXGiMuwsiqyWfqHbwOq4kzjbP9blnhOpzJic/ye6hMbFNQcjG8e/tMqeUnL9FnltolAPHmoTJoAtuN03dWb6G5ezZr8UpnsZTg6Y92GjTOxLhaaluBGwmDcA+tv7eN8wkawdL6G2Iu0jsNA6KKD088quDPBqKX+X5dtvTdqK/GeSz4a30WYfSaiad5RrNaBm99y8QHjYuSTwjz74p7r9GWvBse+4nvyh8bcNCeKtkwWNL+0oknd0+ruCxmIC4MP9mK6iQZ2b6cJBLJedDBSA9XkSRHKCE+IHKOKftXR/qIq/eVWf5km7/vz+NoRuU8Rt80LT2cUUGYQmagGgjKzFAcTp94LKS9+6V3l8oYgYeZy+DAu5xvgNi1cfYonrzL6XdGgEkP5Qe/tyUAe/aDZDp0gmAF7/xbcqipuLPdzX/Z0KKZICRShwPPJ52L9VmqWtov/BKXq67ypYtvol1IIc8uq/8hQQuKYMgKFWh5mCecanJCkJIOcKX6GRYk9PCaT25DjVoXwdTe7ePt5Z+SQqHPxrSHEsCnlMS5iQgoBgiswwzWWnWwz1pJFycIpoAOPIeKTTC0qZA8Ydid6CYLGZ5yQbZFXy6UJorUUtepApbM4uL/p6ox5t3RlqSy9aqW1rfFi+6VjRsG1SuIuRNjYD1h1gRh8Wst9QI68myD235yIhRVfzBk+OgKfQ3VwpXxb3wgvJB6gtBXKw/wnuHUuVDDoJ6UdfswexDWloJKXPmxVZv1snoySLwSWWv7SkUlBS8qfRh85ZQQLYu8XAyMS2HHIU2Edm63w33eUsfsIP0z7VI6sDuUyvj0zLqR4n1b5jsDg+iC0OaNqxfOan6n7Vo60RX+Vr4aiaTE2Nr5atEUh6Y23TDE/hcsGC1LGxIYMuvPT40sZx3F9FWZiwWnjhN1DmTDT2FuOJafP9yWiqk6PKR8PXhvFS5xc/EcKOX3TxdI+n8d6OUzH1Wxj39yVH2sgO3caLUAt6o+aLpzm1PDc+NF53iqu4yROt0mrMIFMnEDPlgU5+330iOgKms1y75TfFLgVKXJa3/2Cx2cgYWonRKFAm1jxgoduBDISLfPzebUVEGaRAUeZP+4IGfQ7cF1xSoxAOX4KeBQpz044slN+fgeKOTFJbuusTNUUNXc+fCmI301JZJG2C6mkX/kl5fD+sj3jr0VL6zqwXH/RvHA0fhEKeKpTZgIiOSS/ezUQlpMlXeh18GbtWkPXtpXLXNs+I8GPo5JTluKiHwAcsx7NVbhAqrfGPYGq3go+Qaq6ar1rBFSsnw3QiT1tRK6RjkPwu/OeGNCPSLEX5m5of4RkwV0KEQUCsPzXyfqH/baeXGOqojgsk3qg6WdR8maqI1i6+tnE6QCvn2EECVJIO8u1FxRrUxmRd1lWecd4mS7wz+5XOpumcQNYV6fdaALHcNKoVrmB2z65dAMG5cfqGXVCsXPZ/BPlZ+z+cElMFzxjhht7gvxBK3H6ExvuM2DFr3Hl56Sw2Q/d/+OcKYWkKjmVxijWro7FN5vZlDZh50GgtKg3qBMks/gjzuMD6yho4a3vx8K Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 9/QC/VoL1GznrLz6M1fQzyzXzJVgJZ1+pr+cK7/uOggjpfUmFirYxmYnKU0Tn5exDHzQC+NAO5OAQ2omk0Z7wPa8buMURF047Z6z2jnP7oheaUWgWHyONpYPt+XhmO/r+zvehyw5D8tMX/sfKqkFi6omc0qLgO3TiGQKvJz87KvXss+hsaQJq3q0ufRrPcz9QWDDoKpFBen2FMwHkyjDxBD4JYDC4pBp++YQVv3YoBf+LniLe4W4DB6C3XUuXoshoXhg2u0+Gu3VnUh6TiflpIfSIFzm7TxIUEo0Ny8cmhtGGRT4S7E/ENzl/niMkM8DBP1VqlE6VPLCEPxeVzWlbSxUQy0CR2yGGwzrNad1zvEexjafg9lEOG9i/SHS2sswQLgNacigBToO8ipB71kEmZqTFMZZZDcCbIBsE3WXeu2MiIG1sTvl0v/14OUPgZbfaKqyhn/VJ2Ean65SeVFfeklN7aLRG4SPNg7HgdNgZB9/Fglmgrjt9Hb1Ie9Wnx6Tgtcd6+M3eQgUZ2nIvyUleRqfXNc3NsRJTqtaiiKS8T1jWA//lqxzybm92An4pvyVb6m/W7vSlngi/mvLoljQvqlFK5bxO2dcbSvCjtz31/o= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cd5ac75e-e367-4f97-5112-08dd39a25e6f X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 22:32:48.7783 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SGqLvQjAXrU6dzUEoig8aXulc9gpgCCPKys4XYytyBNVpto+GXu1WVdFqQm6+R1BnWWLN/Xziwyjfq8pH9ziIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7404 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_06,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200184 X-Proofpoint-GUID: I-_D8Zs8s943UhLhQKDetDn1iQ7E8eao X-Proofpoint-ORIG-GUID: I-_D8Zs8s943UhLhQKDetDn1iQ7E8eao X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > >> > That shouldn't happen, IMO. Too general, and I doubt it's needed. > >> > >> This bug contains a recipe showing at least one ocassion where it is > >> needed. > > > > It's needed for the _macro_ to do? I don't see > > that demonstrated. > > > > An occasion where the macro is used and you want > > to prevent XYZ should be handled by the _code > > that invokes the macro_, not by the macro itself, > > i.e., not by expanding the macro. >=20 > That would be possible, too. The difference is just one change to the > macro vs. N changes to different functions like dired-do-compress. Requiring a user to change the macro is not what I'd call "the code that invokes the macro" preventing XYZ. You seem to be saying that a user can always redefine the macro. That excuse could be offered for _any_ change to the Emacs code: don't like it, just change the code.=20 > >> > One might very well want to allow reversion > >> > during some particular operation on marked > >> > files. Let's not assume otherwise. > >> > >> Sure, and that's still allowed, e.g., the code given as BODY of > >> dired-map-over-marks could explicitly call revert-buffer if it can > >> handle the result. > > > > When you say BODY, do you mean the _function_ > > passed to the macro as its ARG, or the BODY > > argument? >=20 > It doesn't get a function, it gets a form like (funcall > #'dired-compress) in the case of dired-do-compress. You could give it > somithing like (progn (funcall #'whatever) (revert-buffer)) when you are > certain that reverting after the operation is safe. No. It gets two (possibly 3 or 4) arguments: BODY, ARG, and possibly SHOW-PROGRESS and DISTINGUISH-ONE-MARKED. `C-h f'-it, or check its definition in the code. > > In any case, how is an invocation of the macro > > supposed to override the denial of reversion? > > Can it simply let-bind a variable around the > > macro call? I was guessing that, with your > > change the macro code itself would override > > that, e.g., with its own such binding, making > > it impossible to control the behavior from > > _around_ the macro call. >=20 > That's true. So you admit that a code invoking the macro can't override the behavior you're now hard-coding in it. > >> The point is that auto-revert-mode reverts at _unpredictable_ moments > >> where chances are high that the dired buffer contents change in a way > >> that the processing logic goes wrong, e.g., a marked and not yet > >> processed file is now before point and will be skipped, or the other > >> way round, an already processed file is now after point and will be > >> processed again. > > > > Yes, I made clear that I understand that. > > And I explicitly agreed that that's a no-no. > > > > My point was that, until now, it was up to > > a _user_ to just _not do that_, i.e., not > > to shoot herself in the foot. IIUC, Emacs is > > now preventing her from reverting the buffer, > > including, but not limited to, via > > `auto-revert-mode'. >=20 > That's not true. The user could not manually revert before because as > Eli explained, Emacs isn't processing key events during the long-running > operation on marked files through dired-map-over-marks. We're (I'm) talking about user code, not user altering the behavior interactively. It's not about "manually revert"ing. It's about letting `auto-revert-mode' revert during `dired-map-over-marks'. And to _disallow_ reversion (auto or other) during `d-m-o-m' user code can, now, just bind `revert-buffer-function' to `ignore', around the call to `dired-map-over-marks'. If you change `dired-map-over-marks' then user code can't have any such effect - you're hard-coding prevention of reversion during `d-m-o-m'. > > If so, I'd prefer the original, more general > > behavior: leave it up to the _calling_ code to > > decide whether to limit the behavior in that > > way (or in any other way). If it's important > > for the particular use case to prevent doing > > XYZ then the _calling code_ can, and should, > > prevent doing XYZ. The macro shouldn't try to > > guess what should be prevented - even in the > > case of buffer reversion, which, I agree, is > > usually something to be prevented. > >> > >> I don't see what feature you think I have stolen from you. We just > >> prevent auto-revert-mode from reverting the dired buffer as long as > >> an operation on marked files is in progress. > > > > Why? Because usually that's a good thing to > > prevent? Not good/general enough. Leave it up > > to calling code to prevent that. Add a note > > about this to the doc string, if you like. But > > why have the _macro_ prevent it? >=20 > Because it catches a category of (potential) errors at a central > location. It's not unthinkable that users wrote their own processing > functions which are also vulnerable to misbehave if auto-revert-mode is > activated. That might sound reasonable, IF you also provided a way for user code to override that prohibition of reverting during `d-m-o-m'.=20 > And keep in mind that the changes that make auto-revert-mode revert > don't need to be "our" changes. For example, assume you have a dired > buffer for /tmp, do some operation on marked files, and some other > process creates files in /tmp causing auto-reverts. That will produce > new lines at random locations in your dired buffer which is currently > processed marked line by marked line with code that relies on the > position of point in that buffer. How should processing code handle > that? I'd argue it can't and we should make sure the buffer stays > stable during the operation. That's why I agreed that usually users will want to prohibit reversion during `d-m-o-m'. That's not the same thing as hard-coding that prohibition and not giving user code an easy way to override it. > >> Progress is still visible > >> (SHOW-PROGRESS arg of dired-map-over-marks), i.e., the dired buffer is > >> periodically redisplayed showing the changes so far because that has > >> nothing to do with auto-revert-mode. > > > > No one questioned visibility of progress. > > Dunno why you mention that. >=20 > I had the impression that this could be the reason for you vehement > disagreement with the change. No. And I don't have a vehement disagreement. I'm not convinced that the solution being implemented is required. Seems like overkill, to me. At least provide a variable that the `d-m-o-m' will respect whose value you can change to not prohibit <whatever>, including reversion. That costs nothing, and you can even tell users why they generally won't want to change the variable value. > Anyway, can you come up with some concrete scenario where inhibiting > auto-revert-mode for a dired marked files operation could do harm or > have any negative effect? That's the thing I don't get. The negative effect is in removing the possibility of allowing reversion during `d-m-o-m'. What's the argument for hard-coding disallowing it, not letting code allow it, conditionally or otherwise? I haven't seen an argument for that. I've seen only an argument (of which I'm convinced, and have said so several times) that most of the time it's better to disallow it. Disallowing it always is too rigid - not the same as disallowing it by default but allowing user code to do whatever it wants.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:10:02 +0000 Resent-Message-ID: <handler.75626.B75626.173741819111294 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: "michael_heerdegen@HIDDEN" <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, "tsdh@HIDDEN" <tsdh@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173741819111294 (code B ref 75626); Tue, 21 Jan 2025 00:10:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:09:51 +0000 Received: from localhost ([127.0.0.1]:52332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta1q2-0002w4-9D for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:09:50 -0500 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:23212) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1ta1q0-0002vt-JE for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:09:49 -0500 Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGMtfN024742; Mon, 20 Jan 2025 22:32:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=DdK5GQQwNzzUdQUXgeLGWTzkjm36LXrGSiUYEZmCDGU=; b= jXuvgOOjKNTT2y4qvzRs9w8Q1xPgavV8+c6Zi6sNSjPypM13HoQMf2sqbZBl9N20 kNz0+Btas4xYL7QiE9/H2Y1y7vpZXzXB6uwfYVi5JvK4bo0JqrwUW7AcZX51gtFM YBjFQPakS8A3Uz3oKDWfqPdASekI7LVc0yx0NrkXo0pDcEIHJEYJlHLp101wxVWs Epmw+PGWM3CcjuWEOMzzr1a+mPLYxznO204JTHxzhzDMEe1Z9y1Qnl+hk+V8a0lG brt6WgxCqbfWG16f/RXdfGd70d4nt1VX9um9vYRyGCCb2Ae5Kf5oTU6CYtXY6Rxz 0hVniS0TYYopwOoRrCItCQ== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485q54dn4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 22:32:55 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KMJLXC005536; Mon, 20 Jan 2025 22:32:54 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 449193j0vq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 22:32:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HAzHksfvQnqrBRJFwkFYmXKaapi3B46NEGDXg60A17+JD7NW1teqo+evEA9L6/X+RusQBaSzI7Rs2ssRrncbIg+a/bVpitUS9uamgmgqj7tkNMGjqBsPgTRuHHB3xMp5J1626w9YKil+v8hmgPhxbgfvwqF2sT0mZA0WOrEUTX8n00FbudcPRdDAvGtiTQFnHyeJLi2imgwMC031ocz7gosjtmXibB40+27VhtWnYW3EyXGXm68VtZEN8Qrfh54qc4/uAffcvr5841+7ScHzspsESzxeqr3TNV9Daxpu+6Vbu+0N4JHGlPiFjF3olDOGebjYpr+Pmsh8hFA1vSADKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=DdK5GQQwNzzUdQUXgeLGWTzkjm36LXrGSiUYEZmCDGU=; b=jq0/PuUi950ri6ulPwOvwH2upOSeB8ypSmq9S0p4hk42Bla4FRNQDtbJ3ADKKZIeL6Olr9YusBHjx/6e8x9bRSEMkwyEd3r9r8Xh9jJpmXmDpZVHt03OVtgQdoNPRo25sX/lTu6WzUBhYpvD9f71ZhRO6/xGpLYVwMaWtAyDUspY0flwjtUKqxLL2JnKUmNAKjZ5PqEqDCXcHK+WkxKUOHJpbiQmmoDbx0mZrwo+DThfBqI4uJAHjGftD6Uvmdht18D7db7eGofBmlcA9ZXeZ7ARexsGjSJDeZO/5SJ5RT7F5DYYsVXzUVpXRcHxHffT1i9LauH3QU1VkGdKLKpDxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DdK5GQQwNzzUdQUXgeLGWTzkjm36LXrGSiUYEZmCDGU=; b=Tpd1R25kXuALU/iUJFVo2OxdyBanobYuPzHDrGCfuHCYisfEM7qmHbU5w+IvYlOdLeuVvO/j2hM61ip2oGbFAEn8JylMETFJpCSF0zwuBYAxEEYBBS1Lo0SLKj1wT44ZutBqgD7dK9jav7RT3mu4CEtksE/MCbjyvlEgALAYw2o= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by DM4PR10MB7404.namprd10.prod.outlook.com (2603:10b6:8:180::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 22:32:52 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 22:32:52 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : Re: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba3PJOOaaaQAyGUaPPIOt5QMpHbMgOQ6g Date: Mon, 20 Jan 2025 22:32:52 +0000 Message-ID: <DS7PR10MB52325CADD149C0FABEC61D90F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <86msfl5mal.fsf@HIDDEN> <DS7PR10MB5232C63F3899991F794E80F4F3E72@HIDDEN> <86ed0x5ky9.fsf@HIDDEN> In-Reply-To: <86ed0x5ky9.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|DM4PR10MB7404:EE_ x-ms-office365-filtering-correlation-id: 324accde-bed1-490c-bd09-08dd39a260d1 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: PmU5AAMgIetM84wVwh4qvEZis0rPlEBRRFI/M4V3mseOUiEWNCNkCGUSTu2394ovdtmJFXwEmTO5iPl4njCm2xTBFiupAbjkkti6v4lGEhmNC/6RxRRrl7Y8ArVUmgXfMwbeGsdVf/WDOOvGSlC/sFtisYPasH7fOOoFK1fyF/atbmbL43UuaPHSJn2ptS1qCVLo3vYi82fmJklq/y7Hrr94JoC94ArsXhla9x4drrHRzeP8yV6PwJj/TEA4+Gy8G3eiZ4XXTa5UhP7FoTywJcEIt8S2FqztmDE/+otMDu9rWvhEEKrX1NJaZvl6PsYfgDVjGvAsKIXfTRl2s8x8YiFeg8ccGn3y/CJ3+uuhC99ywpQl4tUoQVrwYuX4dcQTvGRtrzTR7DTdKThFNz6qSBjYveJtUMofrYAt7l4TO4k1AQzoki1/3Q13jrE6/BUEgNVIY4ek9qX5eHlSFY0MEg+EwZRalC4czZETrVtkHmYR+8yorpXCqNViCf9phEhkFcELP7Qa8ECfDy7vjs9ZvXMiPf374RJdBEVrQO+ptGNKn4Nz1USZlZrOu1HFMkmB5+daV0cyjzmN5b9+VENXsr7S9R3Ji0rjF04wCQ+gH4DI4EaopxbC0A1lu2oOvDmTV5CwwQcqPRi2mR2D67KJauDUPeCivHLQtoG496iBVNfAkntJcu7zyQ8ymZb+ekyo5uXPWrII+hzfTXw4sPW2Ii1xoI8U/ufj+HlsODw3G6L8fw1cCo0IHKPrIjqKbyLY9m/WEw1csZTbBbdDmCTU6+FpPxEwYUVlymPgsy57TTQB3zB3n9JOt4QLyi/V2aQvIJOTLD2mPHmJaOoveqYG2NarWeseo4OvovnBkr/BCWPp1GZn2CkZ/IStUhDmV2h7L+vOTRpb1WMhPuJv3YK1mnf3PMeMQdH/HDtLaWDtHzWTV3dvGc2YKjAN36KUaIPa3YB2beXXngMoNH+c18XoCsFSHhsjietJNWYpnZ/avppT6dgHSuAOOA6kNs8kRLJoKyZPeT/4rPjqkRSRfV82y+X6K/xICjxrXCywaIy7uosnDBjUq5w74+K1AvxR57g9suN09iy/oRc8V/+j4OQCO7a1MEGIXg27ImFwPfyY6LxjNQbHUC1rCFauKEHBRk5k636ww7LRx8VY0YFJvo3BIhgfR7dHlStQ2jB8s8sSljHjElINQ4rqmZ/B9t2i7UO/I5lsNTllAmkEfNf8wh7PIsgSQwRDvVcXChH0AR24vFX1SyO5mdjlQIn/bPZkUYS4aphP44ovDZZ17vdhFyHRQgIS+/1ywv46fHU3nBSQdBiF4X0+qXkS47xenQRvQ+KbpUreKZPVDhhwFuVyvHsBLk7tLqadUGVLLDME0Aj65W7sbeP7KePqozmQFuttGTiSBCKYuveKdJLidNByBGr++fk+Wu9F3APd3V6/HGzExMa0y7AeqMw6o2+VjXPhvAmy x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: Xi1AuOcJ4KG5yWIbeHdYJ7vsVHM7BMav+9eA11wXdgNJGhhntiSkFu/LmzKt8Qjmm9/CEY3Y61/mAnu8KbgoFdw5ZsRBZ/bpNru8hzS/qrM2shYc84pVFHJRyKVtSeMPUyixy3WeOTWHQx8jxDZsxLhlQKFuLXb/iFYhQxM/nkInizovBCV2qnjnH30Za8/PUkYEYKb9gkPSKsDZWZPyB6X1+b0E/bU9rJDGDZa0q0iDQ2oAhsXEe2p2t5OC8vqRkBKcidp0eoG+ceqDKClv+2Eexf5u49Wz7i2LoEa1LE/RqaDTnuCZgJlwtClLYnHkSI/bvAKeYHsnwH74ERi1EOECAgH4oucFZwgT2yhASK3diSp0AMO8desFR7J4myrPK+Lh503+eaNHu1tohcKcSwPjzRFHcy6CsGeEJn+BicxlC7P4y4/uMYzEcqWvdMW/uDrCU2MvXrW8jE0YTr/rGAkjjNl+EygV1F5o3LKfziDQoYo+iXDs//27CQMxNfidjOugFsZmJBV5aIc+jonJQEG/Ju/GRxcc2XeSgX9LoOCKY9tM2128OtoCF/ZmNgKRo5HIB24zqKebfJ+9e0GhIE5sqR9ckTk6C63BkQ8N5Ong6FE4HJUaNqBA6k61Y6sMG0ZG8HJSrJ1JDxdiTNBCw0C2i4p/pHyD4qQ3dG7n23fcMAkmVzwCsgqezZLMp75CGETXLzyTufpUw2dVykLRKHBAJbmw6Y/IE5HBsRxIdoFaETvhS8JQz/XEFgfT3UcCOxDF7AKPMkdXTe5Pgk4h1zgiT5fiTnxjPjetVsY8O1VRYSsUonc45oQynjYqDg9hro9zBvMm+RgIleS7RCQdndZBLyHBUCe+EljFp7OhxT73XGYCTPNty/kOuG6kHLf0zquNmQgO7znGGzB1wCXLYv2J/KSGpnyrG+47iZkrGrQCE7Dznvmrg0E/XEoiRpGe8yr5XvbNiwTTsK5gJjKYg0upstCXXyCFBlPhJwmUNqVwzHnT8Yh+i9dQIWMh4DvnQpKRTrLT92ckM18CTaa+aR9BfULqadGR9QIQJKa5vx8HgKMrurZkvullN1rR0Gan07VPUSf3UwB4pcTgNM84x5dElY0PErsOw6bTQeYfn6C8rebH8WMFGf9STt6b2mLgGgG5Pdg+8WrtqYNW75dP7Fx4Cgy3o+MFlOADwB+DXvEi7CaguhKpxJhq6fOW7nTdhVKRwX8d0MlqT2Oucpi+b9ahyzLOr658ua8lpaYGZikbCxkZIkyVwAJeb9SyayblV4xIS5OkuI3VEnt0JHaTusH/UmURtHJIBf4O5SolFbUU5kOhNRotU0srcpbXOD7TcPePsYANXATkAT2lCV5CI+Y7BlIZRiBj5B4lvidFavWy7Godj7cp5bVWp/JxksV7/gNQxaf/uH/GHkCE83p5T2vabZcsDJV1UYCubUEunriiR24S25TYzOhO1sCYYu8G1OJmLvxKhPrjIKN9a1UF3tabN1TC+H/IArLc3KeVs7peA5frTa2dLHop8RTc8uzVTcUsek8/4pkGyTN63I5NwE/3Ds3uiu35qoWB88j4JWZeZV1nx7lyWsXt4N9+8AgA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: jVybcpVZPopk7AMISisUruONZzvfV8JHJulxyrwZXA0cXtjmjBQS5QDICC0/Am6TNW50nvziNcVn7LGFAlSdRV3ASu8lS3luIaX26gRPsWUrE+gByuuAJP+7TX3YYVBphvkF6axpkZHZ3bp3ybvNZq7yb50FkC1HHDhCRYDQvCPHIyXxNEUWNCogjGL9Scm3NA8EaK/3s6M1vZO/BXVHFz259tNgrNQ8RpGS+PgMgOSCZge+b1v2czuoooHZVIT9XAyVAmUSNHifMyNuzXFGdx4IoZXHAn35Xu7sXEw9BMCdtVkACrx8oDOWhjWOJDxMjOR/a7YKdzNumGw+Kx+pYe8e1VmPJuvnWCJxTaBwFu9X91XyVlApC5dgBezrtXNi8q02bGZwGFTizZdnL4pizLT3hIygfTNvjIFNvn3W74966iLL7CXwU/cZZFE6JtiQ+Gcyct2nhobbfBKtD9j6p7Vnb+BECR2DGs6OEUvdpp0nhHDi+nbj5caFYVzee6HHRKHHL+tnjWFYaFoy6mfEzyDpNAfUZw4uC/GQBd32LrUg35yeieo5P8W8K0omWXap/L6YYUQbuSDS1bvvhbXjqaN9Lr21OqypBTcoAMi0EUo= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 324accde-bed1-490c-bd09-08dd39a260d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 22:32:52.7707 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +RRFJiyJgVDsKcwEQtklP6ANSyCL2RQqutKGXGM3oPvN4FYcKiWmHE1AFYMM0fHQ3mUXCjRFmq42VjT6qopATA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR10MB7404 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_06,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 mlxlogscore=999 malwarescore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200184 X-Proofpoint-GUID: j1LWi-Y8pKCEoccSJHpYjjfbnXVOmJ2I X-Proofpoint-ORIG-GUID: j1LWi-Y8pKCEoccSJHpYjjfbnXVOmJ2I X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > > > > An operation on marked files - which really > > > > means, for this macro, an operation on marked > > > > _lines_, CAN DO ANYTHING. > > > > > > Auto-reverting is not something the operation on files does, it is > > > something that happens behind the operation's back. > > > > Yes (though the macro doesn't necessarily invoke > > any operation on files). > > > > And auto-reverting could occur while the macro is > > iterating over the marked lines, and while it's > > invoking its ARG function with point on a given > > line. > > > > And yes, that can be a bother, and it's usually > > _not_ what you want or expect. Agreed on all of > > that. Is it _always_ not what you want/expect? >=20 > Yes. Because the only way this macro can work predictably and > reliably is if it works on a snapshot of the directory's state. It > cannot allow changed in the files that its body did not cause and does > not know about. Again, it's not about changes in the files. The macro carries out an action on the marked _lines_. Not the same thing as acting on the files marked on those lines. Sorry, but I'm not convinced that you can make such an "always" statement, logically. You can make a "usually" statement, to which I've agreed. > > > It affects the list of files that the operation > > > wants to map over, and could easily cause the > > > operation to never terminate. > > > > Yes, I can see that. I'd suggest letting that > > happen, by default, and add a note in the doc > > telling you how you can prevent that when/where > > you _call_ the macro. >=20 > If features like auto-revert are allowed to run during the macro's > operation, there's _nothing_ you can do to prevent these problems. > That's what the discussion of this bug reveals. You can bind `revert-buffer-function' to `ignore' around the call to `dired-map-over-marks'. Yes, that can't prevent some other code that somehow gets run during `d-m-o-m' from, itself, binding `revert-function' to `dired-revert' (or to `foobar', which sparks nuclear war), but I don't think that needs to be worried about. It's not what this bug report points to, I'm=20 guessing. Isn't the bug about preventing auto-reversion (or other-provoked reversion) during `dired-map-over-marks'? Have you tried that: in `dired-do-compress' or whatever other place you feel there's a problem,=20 just bind `revert-buffer-function' to `ignore'=20 around the call to `d-m-o-m'. Doesn't that fix=20 the reported problem? Or am I just being na=EFve? > > That's my only disagreement. I don't see that > > fixing the bug requires changing the macro's > > behavior in a general way. >=20 > Because otherwise the macro itself has a bug that cannot be possibly > fixed in the body. Not in the body, no. But outside the `d-m-o-m' call: wrap it with a let-binding - a common idiom to affect the behavior of code within the let scope. (Likewise for `flet' and `labels', and even advice, if you really need to get into the nitty gritty of the function.) > > OTOH, if you make that change, is there some > > way for a user to modify the behavior for a > > given macro call, to _allow_ what would now be > > prevented in a general way? >=20 > No, and neither should there be such a way. You haven't given a reason why not. You've only give a reason why it's _usually_ bad to allow reversion during `dired-map-over-marks'. > That way is a way of introducing bugs into a > program, and we don't write code that produces > buggy behavior. Sorry, but that's hyperbole. As Eli Z. is wont to say, Elisp provides lots of rope for coders to hang themselves with. Intentionally. To give coders more flexibility. =20 > > If there's no way for a user to override the > > behavior to be newly imposed then that seems > > a shame, to me. >=20 > I challenge you to come up with a problem whose solution requires to > allow auto-revert to modify the list of files while the macro runs. I challenge you to prove it's necessary to=20 _always_ prevent reversion. Not just argue that=20 it's usually helpful to prevent it, to which I=20 agree wholeheartedly. > If you can come up with such a problem, we could then discuss this and > see what followup changes might be needed. Otherwise, I see no reason > to continue this discussion, since we are talking about problems that > don't exist in practice, AFAIK. Today the possibility exists. Tomorrow it won't, even should someone want to take advantage of it for <whatever> reason. (OK, they will of course still be able to redefine `d-m-o-m'. That's not the kind of=20 control by code users have today, which is what I have in mind.)
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:17:02 +0000 Resent-Message-ID: <handler.75626.B75626.173741859112785 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173741859112785 (code B ref 75626); Tue, 21 Jan 2025 00:17:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:16:31 +0000 Received: from localhost ([127.0.0.1]:52356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta1wU-0003K6-Uk for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:16:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52790) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ta1wT-0003Jq-3i for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:16:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZxDc-0003UR-Kt; Mon, 20 Jan 2025 14:13:52 -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=QBxzyb0qUn5EGRgs6JyLhPyCGh75Z08Y9Tg0bEO2nzk=; b=DtrAFID14Erh WRoB3OaeuEE1VWcmwu+tS6QQgvwhW5c5/YEixytiH+gZwbFnBwzOtZ+xH6EyJi3nlCGMunkC/YK0y bWMyn/Dxsu+FF8gtKJTeq9NQ6bXO0IJHlHWQuSNieR3UfdHh8tYpDUfxfTtVDM3Db1WRrQNOemmxK fRPY1yECksWG0Qwf2Q9CncdTCGZZA7xmGoS8mQuNkUTfjpWJl9rRcUcHyLG3GauXr1GNxt/DytVbl Js5NDNuUhZSNbXk4Ee1db3bmmR/ewA7mCtcZo6Fl/uDNbx+5Vlwfqpwuwh4BwmCDgMjNqoTJfw81x g5CqYL4xi+5D9YI0Og0bzA==; Date: Mon, 20 Jan 2025 21:13:00 +0200 Message-Id: <86o7015mf7.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <DS7PR10MB52325D4B7F48836005461F1CF3E72@HIDDEN> (message from Drew Adams on Mon, 20 Jan 2025 17:32:35 +0000) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <DS7PR10MB52325D4B7F48836005461F1CF3E72@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Drew Adams <drew.adams@HIDDEN> > CC: Michael Heerdegen <michael_heerdegen@HIDDEN>, > "75626 <at> debbugs.gnu.org" > <75626 <at> debbugs.gnu.org>, > Eli Zaretskii <eliz@HIDDEN> > Date: Mon, 20 Jan 2025 17:32:35 +0000 > > Is that necessary? I can't see why it would be. It is necessary because the macro must "freeze" the marked file while it maps over them. Otherwise, the macro doesn't work on a snapshot, it works on a list that could change under its feet, which is not a good way of writing programs that must give predictable results.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:28:01 +0000 Resent-Message-ID: <handler.75626.B75626.173741927814878 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173741927814878 (code B ref 75626); Tue, 21 Jan 2025 00:28:01 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:27:58 +0000 Received: from localhost ([127.0.0.1]:52399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta27Z-0003ru-Qg for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:27:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57464) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ta27X-0003rd-Da for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:27:56 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZxFs-0003uy-NK; Mon, 20 Jan 2025 14:16:14 -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=mXeOOj2yoWMlHhWUPt1EbPgChZ59dExE+ZKZskgYiSs=; b=RNMSqHmNx8qw 3E1O6J103rsRruM289yn5x2GFbcHsTWIGBhuPawFpC0KOi0NsUIBH80GB2DhfpNxuOg9nqajTXHlI BIVavSpPF0urhZjXWAyjM/X8Yp4wH0ClqLfg14dlI/o31yiq2Go+XDqfeaVjoNJwzT+eeM3QW/61R 5NUgPlAVRTTPvbEE2+n0EO5s7nsAP8QI+VnMFNPURu75YCZzvOcMOV0Qrrsv3FidSLLXpIJJzik5J uNvDITgUNk38NNY0/uajB844yAl1iYvm6ElykdM/aq7ZW3p06om9zkXy0AWgIS4Y7cFK6qT/lydV+ T2DdPhGoKZ+niAmTlSZl0A==; Date: Mon, 20 Jan 2025 21:15:46 +0200 Message-Id: <86msfl5mal.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> (message from Drew Adams on Mon, 20 Jan 2025 17:32:37 +0000) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Drew Adams <drew.adams@HIDDEN> > CC: Michael Heerdegen <michael_heerdegen@HIDDEN>, > "75626 <at> debbugs.gnu.org" > <75626 <at> debbugs.gnu.org>, > Eli Zaretskii <eliz@HIDDEN> > Date: Mon, 20 Jan 2025 17:32:37 +0000 > > An operation on marked files - which really > means, for this macro, an operation on marked > _lines_, CAN DO ANYTHING. Auto-reverting is not something the operation on files does, it is something that happens behind the operation's back. It affects the list of files that the operation wants to map over, and could easily cause the operation to never terminate.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:36:02 +0000 Resent-Message-ID: <handler.75626.B75626.173741970927712 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173741970927712 (code B ref 75626); Tue, 21 Jan 2025 00:36:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:35:09 +0000 Received: from localhost ([127.0.0.1]:52424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta2EW-0007Ct-P4 for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:35:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51868) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1ta2EU-0007CF-FK for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:35:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tZxcy-0007JF-J1; Mon, 20 Jan 2025 14:40:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=215bANAIkoAvdA4uHFXn3PuC1wDPOS2KA0YAkV3tnCw=; b=TafO7+I9j3QBfDhzDmSe AMA3GRWUMqhWgCXGI3tlsFbCY5e7C1Sasl7gow9ZaOiJV9BPuT8uSOrtJJcoNPmY1M6gjevgS1qsl rNEgYuv2Fe0eDOV968mH9IbKhhHKEnxtVQ86uYiZxnKghQQFdeoWuw9smCUPfoGNfQ1VVkmHnhqy0 qd4BfSV3+vO00YrWN5c7J+ZucggmXpMcDNXXnRHZCxzgoQ2qconHpXZyvtQEVgFs7fINQ475qqwfl LyzSDSHEO5obWcJ0eHbaMAsCByAKqhOf+9ZUpGUT3FMx4eq4dW+btMQ/3yVA5ASl9clyz4zZSDA6+ 5e/63rO+e+CfhA==; X-ME-Sender: <xms:kqaOZ3uETz7AfdgcuLv0-Noszkq8tvW4UqF__bPK4vUS_ZqtOgti9A> <xme:kqaOZ4cGPAzuv7ZruRehE94DU4ysNVJg78vSDbL77JdGVDDpJtfSs3UemX10ppzY4 5ULFtf_q_4UlQ> X-ME-Received: <xmr:kqaOZ6xpQDFtuJDmGUgKD5zbUob2O6HPqySMLUZZItnLsRVqsdiJPG4Q9w4RSyY8wHeC7QqtG0P8872y6ujv6tGLwtnQp14> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeiledguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeehiedvieesuggvsggsuhhgsh drghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseif vggsrdguvgdprhgtphhtthhopegurhgvfidrrggurghmshesohhrrggtlhgvrdgtohhm X-ME-Proxy: <xmx:kqaOZ2Py0K7TOlrR2OcuLVrAui6gdg3VBJEfFimFxRbzPsPfs4m5pQ> <xmx:kqaOZ3_qQ7KhZppOfJbif9N1O0efRbEIxQNIpvCBnG16KwN0a75hzA> <xmx:kqaOZ2WOk7t2Ye_kOhDin-NelLK6UsK5CODPkMOS_GwVFEgRfOHrbg> <xmx:kqaOZ4fwe72kTHd4n3EWgbn70AYi25LUEhcPFWFx4Oj_gSNJoEuOaA> <xmx:kqaOZ1eAA9_o9j2H4xSnak6Ev78voBTEg_gPCfs85W12sACckkghXqwH> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <DS7PR10MB5232928C1A95CB516AA33D85F3E72@HIDDEN> (Drew Adams's message of "Mon, 20 Jan 2025 18:28:40 +0000") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <874j1tqs8u.fsf@HIDDEN> <DS7PR10MB5232928C1A95CB516AA33D85F3E72@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 20 Jan 2025 20:39:58 +0100 Message-ID: <87v7u9b7g1.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Drew Adams <drew.adams@HIDDEN> writes: >> > That shouldn't happen, IMO. Too general, and I doubt it's needed. >> >> This bug contains a recipe showing at least one ocassion where it is >> needed. > > It's needed for the _macro_ to do? I don't see > that demonstrated. > > An occasion where the macro is used and you want > to prevent XYZ should be handled by the _code > that invokes the macro_, not by the macro itself, > i.e., not by expanding the macro. That would be possible, too. The difference is just one change to the macro vs. N changes to different functions like dired-do-compress. >> > One might very well want to allow reversion >> > during some particular operation on marked >> > files. Let's not assume otherwise. >> >> Sure, and that's still allowed, e.g., the code given as BODY of >> dired-map-over-marks could explicitly call revert-buffer if it can >> handle the result. > > When you say BODY, do you mean the _function_ > passed to the macro as its ARG, or the BODY > argument? It doesn't get a function, it gets a form like (funcall #'dired-compress) in the case of dired-do-compress. You could give it somithing like (progn (funcall #'whatever) (revert-buffer)) when you are certain that reverting after the operation is safe. > In any case, how is an invocation of the macro > supposed to override the denial of reversion? > Can it simply let-bind a variable around the > macro call? I was guessing that, with your > change the macro code itself would override > that, e.g., with its own such binding, making > it impossible to control the behavior from > _around_ the macro call. That's true. >> The point is that auto-revert-mode reverts at _unpredictable_ moments >> where chances are high that the dired buffer contents change in a way >> that the processing logic goes wrong, e.g., a marked and not yet >> processed file is now before point and will be skipped, or the other >> way round, an already processed file is now after point and will be >> processed again. > > Yes, I made clear that I understand that. > And I explicitly agreed that that's a no-no. > > My point was that, until now, it was up to > a _user_ to just _not do that_, i.e., not > to shoot herself in the foot. IIUC, Emacs is > now preventing her from reverting the buffer, > including, but not limited to, via > `auto-revert-mode'. That's not true. The user could not manually revert before because as Eli explained, Emacs isn't processing key events during the long-running operation on marked files through dired-map-over-marks. In contrast, auto-revert-mode reverts from the Emacs main loop. > If so, I'd prefer the original, more general > behavior: leave it up to the _calling_ code to > decide whether to limit the behavior in that > way (or in any other way). If it's important > for the particular use case to prevent doing > XYZ then the _calling code_ can, and should, > prevent doing XYZ. The macro shouldn't try to > guess what should be prevented - even in the > case of buffer reversion, which, I agree, is > usually something to be prevented. >> >> I don't see what feature you think I have stolen from you. We just >> prevent auto-revert-mode from reverting the dired buffer as long as >> an operation on marked files is in progress. > > Why? Because usually that's a good thing to > prevent? Not good/general enough. Leave it up > to calling code to prevent that. Add a note > about this to the doc string, if you like. But > why have the _macro_ prevent it? Because it catches a category of (potential) errors at a central location. It's not unthinkable that users wrote their own processing functions which are also vulnerable to misbehave if auto-revert-mode is activated. And keep in mind that the changes that make auto-revert-mode revert don't need to be "our" changes. For example, assume you have a dired buffer for /tmp, do some operation on marked files, and some other process creates files in /tmp causing auto-reverts. That will produce new lines at random locations in your dired buffer which is currently processed marked line by marked line with code that relies on the position of point in that buffer. How should processing code handle that? I'd argue it can't and we should make sure the buffer stays stable during the operation. >> Progress is still visible >> (SHOW-PROGRESS arg of dired-map-over-marks), i.e., the dired buffer is >> periodically redisplayed showing the changes so far because that has >> nothing to do with auto-revert-mode. > > No one questioned visibility of progress. > Dunno why you mention that. I had the impression that this could be the reason for you vehement disagreement with the change. Anyway, can you come up with some concrete scenario where inhibiting auto-revert-mode for a dired marked files operation could do harm or have any negative effect? That's the thing I don't get. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:36:02 +0000 Resent-Message-ID: <handler.75626.B75626.173741973028114 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173741973028114 (code B ref 75626); Tue, 21 Jan 2025 00:36:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:35:30 +0000 Received: from localhost ([127.0.0.1]:52430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta2Es-0007JO-CI for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:35:30 -0500 Received: from mout.web.de ([212.227.15.4]:48529) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1ta2Ep-0007Ir-1r for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:35:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737419720; x=1738024520; i=michael_heerdegen@HIDDEN; bh=cyi7IJ/Yf9QJbI7pSq6Q0ePdWU2s48Lq+y/rrzgtC+o=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=KaXtE9th+5Mmt0/IYTIwi8RYq4HVqRtv6RyrMlL60w0a/3RsxcKgrsJyddMcBJLl vvrcu3eMr061gyg9DcalQp3oE/Tv9JJYnSR0Zl8hb0jLvI5t6/eY5STXVYVqCL3yu MATfz1I/ynEyD4LsTjraDkeDEumPdLVZJLRy80DmhzaZCRzHhncTtD1NbhcRRn3F+ 8YPctOqJCWAqhPKa0bXL/+PVOY0bcvIrz+fhRyvY/ttMw6MaPsqNkexisZT/l0/sQ cu+9Mym77A52TmAABXGsakpMGS4SqgpiBkJKTQ3yKX2NBpfxw+K0oI+cdGv6y+U7S 8IbciKmAzIepC9q9TQ== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MT7aV-1twkQa3cat-00Z8px; Tue, 21 Jan 2025 01:35:19 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87plkhb69r.fsf@HIDDEN> (Tassilo Horn's message of "Mon, 20 Jan 2025 21:05:20 +0100") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> Date: Tue, 21 Jan 2025 01:36:37 +0100 Message-ID: <87ikq9f1ey.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:/6sM3Rv7kEGRMFY7jY6Ya8n7GxQJZ7WjnTrqnIUGKYeOMX3B1hQ L5azWDlcqS3Nb+bX7AdDqQoflzZp9b7eIAoz/78wMRG9yzZNygR04xSY+eBZsPd5w2KY78B LJCoAhb2OyPQq9O5EanNlmMD1AepLyrsDrI9TSRVb8shst0vs012EOzC094YBoJ9juJAFaC 4OtzeF/lEIAZjtV4qn+jw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:BXvepxQbI5k=;yqF+vTlErsu4wDIPPmS2CRD+fnE 1nO1F2lPq1jJpJh3Nu59dotIn3AgrS8UBN+ObznY2gZtqT82bER/qkz9Rymq4bw/Ix8IBadpc snw0zHAsZCLMf9pG3pIsWG4r1kz3QF4HV7dOfs5E6UxJaAIiO90O4tKbglb+KY2kLqp7aesz7 ndDEVHA2AUJQWg9xHXCGaFzCsaYn3SDk9UOxvCEUsYSRfS//+/m3BK55u9Go7/G4ESV1ZWIL+ zss9MmLejt4DMdZJOpYINPvAgcyCLZWhzRObYur547T90ZOW8jDo5SzkDd1pA6uoT4FfMk3ZD pVpnAI22nDrD50IhCyIDe7Le/AxjuMgxu3ZQL4odlfmx2KbrsGhpbOG6qZZ4hg+ugQZ2OgP6X 2hE7vBxRgnN1O8AMr4DGdvBYbKF4i4WbVBtuMjEtLZUNw26rEpOWHbqDwh3yx958E8TKBEP0/ atfGB/FjxvAjM5dqxrT/DojN+DQjpdcyz6EAlkX1RCxUzcR0nMUMzuFLFg8netaP2w2KmGxsT /xF6sDHjPXm3GzRvdgA0dEOGKd6M/vsmW5B1q2+usz2krzEIBktUaykQuNQO2OWp1hm/o1/Fc ITN/dJiHK2BgX2S6NkMMZUasihvEnjeo/ogzW+WgPeFPc3aXfhFBrZWC9e9gApbc2UK32toq5 1Rb8ap9Iw0AoqeYVHnHXW96EQeHThBzuV7AWoFRv8Cmf4SnBOwtN9jAbLpfqtZ68N9uWb0JFe EdIq7KwRb2thW4BEnTf9YWT98IziA8TH3+/JEvf/MgJUX8YGHB7p28z1zLFHjairAk1+Jzcgt sLMMyE1Sp3A6GVriDxiYjSPIAr1WZCpUA2vUlCuoy39dLPqQ6oXRGL8s39Ec0fLl5YZPNYSP0 3WxThTpKzpdeKoG9HFYCpXBr4g8DlaT0w+rrD+LNKjVar/k6R03MRvy7XAxgdzW5lJkGLxYJW mUs4XqtznpM00b1+6tearXY7uI/Wsu8Bk+ih0oMxKQopgefmGPTjm0Ni0cc+GwGaE4ocqRoex xQvvf82gvMNsclLnAbTRDg2ZmNEIJA93AMj4LPAo4et/tbUzTgXYNEo2U8GGi6fGHBiFRyq10 TMqJ8F7jE3ppQhX4WyE5CYkhJp6y0LQvmapkykoDZQCtTPahewivzlvd5DgYS6NT5nWbFPlL9 RP2ToeHNM14ag4g4wQ8QvUKuZx0YKug/7FTMAXItorg== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: > > Anyway, that other places could want to use this was not my > > suggestion, it was yours, AFAIR. > > No, Michael's. Yes, I wanted to bring that up. Though I don't understand the naming convention thing, too. But I also have a question: can it happen that we prevent an auto-revert, and it is then not happening delayed, but completely canceled? Or will auto-revert-mode always try again later even without a new notification (or however that works)? Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:43:02 +0000 Resent-Message-ID: <handler.75626.B75626.173742015329402 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173742015329402 (code B ref 75626); Tue, 21 Jan 2025 00:43:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:42:33 +0000 Received: from localhost ([127.0.0.1]:52451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta2Lg-0007eA-Gp for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:42:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33142) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ta2Lc-0007dm-Pe for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:42:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tZxhY-0007iV-Mm; Mon, 20 Jan 2025 14:44:48 -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=teIaszEVXje4XNMFNOLOMOwci4j19S5/uDOZrO7hZCg=; b=NvSPin78j+si 1J/S+jPf6ZIrIjawGKv+jFqlh0QUE1mYJhvd+UGbMScN0FNAOd55sVTUGnNRibHRODoNgS+PO8Vje GZaoHwIGZYXDIQB7wRDdXq0eA579PTDpuPquBpFFexT6bdT79vDOxt5WF8TOSmv0RvBDaKzDIrvbj 4hVGkh+3AmIMsmCSAP2HKNs/yyRHMdmzp3KQm0qmXBrI2moQ8phUhiu8gguEYdWpW/u71jPnubjal h48gmt1PBG8eu6psa7FRQOYFBLsoLohatIXmTazH4rDNeSfVCbTyrANOC0yHRZQru/nCLG2oGRGYQ +dOECjr2hZ4PytF814ugAQ==; Date: Mon, 20 Jan 2025 21:44:46 +0200 Message-Id: <86ed0x5ky9.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <DS7PR10MB5232C63F3899991F794E80F4F3E72@HIDDEN> (message from Drew Adams on Mon, 20 Jan 2025 19:31:34 +0000) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <86msfl5mal.fsf@HIDDEN> <DS7PR10MB5232C63F3899991F794E80F4F3E72@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Drew Adams <drew.adams@HIDDEN> > CC: "tsdh@HIDDEN" <tsdh@HIDDEN>, > "michael_heerdegen@HIDDEN" > <michael_heerdegen@HIDDEN>, > "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org> > Date: Mon, 20 Jan 2025 19:31:34 +0000 > > > > An operation on marked files - which really > > > means, for this macro, an operation on marked > > > _lines_, CAN DO ANYTHING. > > > > Auto-reverting is not something the operation on files does, it is > > something that happens behind the operation's back. > > Yes (though the macro doesn't necessarily invoke > any operation on files). > > And auto-reverting could occur while the macro is > iterating over the marked lines, and while it's > invoking its ARG function with point on a given > line. > > And yes, that can be a bother, and it's usually > _not_ what you want or expect. Agreed on all of > that. Is it _always_ not what you want/expect? Yes. Because the only way this macro can work predictably and reliably is if it works on a snapshot of the directory's state. It cannot allow changed in the files that its body did not cause and does not know about. > > It affects the list of files that the operation > > wants to map over, and could easily cause the > > operation to never terminate. > > Yes, I can see that. I'd suggest letting that > happen, by default, and add a note in the doc > telling you how you can prevent that when/where > you _call_ the macro. If features like auto-revert are allowed to run during the macro's operation, there's _nothing_ you can do to prevent these problems. That's what the discussion of this bug reveals. > That's my only disagreement. I don't see that > fixing the bug requires changing the macro's > behavior in a general way. Because otherwise the macro itself has a bug that cannot be possibly fixed in the body. > OTOH, if you make that change, is there some > way for a user to modify the behavior for a > given macro call, to _allow_ what would now be > prevented in a general way? No, and neither should there be such a way. That way is a way of introducing bugs into a program, and we don't write code that produces buggy behavior. > If there's no way for a user to override the > behavior to be newly imposed then that seems > a shame, to me. I challenge you to come up with a problem whose solution requires to allow auto-revert to modify the list of files while the macro runs. If you can come up with such a problem, we could then discuss this and see what followup changes might be needed. Otherwise, I see no reason to continue this discussion, since we are talking about problems that don't exist in practice, AFAIK.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Drew Adams <drew.adams@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 00:44:02 +0000 Resent-Message-ID: <handler.75626.B75626.173742023529609 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: "michael_heerdegen@HIDDEN" <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, "tsdh@HIDDEN" <tsdh@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173742023529609 (code B ref 75626); Tue, 21 Jan 2025 00:44:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 00:43:55 +0000 Received: from localhost ([127.0.0.1]:52462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta2N0-0007hU-Sj for submit <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:43:55 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:23710) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <drew.adams@HIDDEN>) id 1ta2Mx-0007hK-Qy for 75626 <at> debbugs.gnu.org; Mon, 20 Jan 2025 19:43:54 -0500 Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50KGN9wr008108; Mon, 20 Jan 2025 19:31:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s= corp-2023-11-20; bh=EvlSqNI5SdMA9FmFxNtdBszgAaJyo5KSb/k6+NLANRs=; b= XZsV/4Id0EskB+W7hR+DIjLnjFVZ87I3D1RqKfzL31EXL3HeSjLhTSsKUAkfFuzr HxYDPxa+4jegVDVwue97dPtGGzxIa2ocuYSNV/cyA1gyMPhpX4Bj/dnj905tt0Ln aagg/tAyJ++LfIKJV4m5KOJ2HsV6tMh6/Vf5lItfGz3aSSalEo3MTXfw+yK4v8Op IPTm5ZQRQrZMZvfKSOW68wtgYewr/foEpQbhOkwY62T5bNj2UjqqL5gq8jNQjKBY cQAWeIAXB2uZJnyocJc4K2AJAuS5Dv+QSMJbj4ii0gK5EAumrs0Oz+zfKId4DDKA QjaCg97wrJe1tX+B6V0g8g== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 4485qkv9tt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 19:31:36 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50KJKsbp019489; Mon, 20 Jan 2025 19:31:36 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2176.outbound.protection.outlook.com [104.47.59.176]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 4491c1dvnh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jan 2025 19:31:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WvgKLmuQ4QWUeMIzEXoX66opaboD6Nnq+nkWRULOmUIG5pOPdDANUuixFHZX4njyoVp2XwRSCFMxvHkOLhq+FaoXbrVHv3wsQyH7vnh7CtdJiiQaC4wks8eWOebgxnj0be4IzdEm0MQ/YC2/Q0zfTc/L97QXolT5mtnf6Xe1Bga+EkhM7R4Nva5NciJkjEnWSgXHdstRSs9j2nnoEKWi7aO8nk0acgQ+LIrij5ApqSQ2Y5422+sDQq5R22yQ9hZB7/qqVggB2DDQOpmL9zoaTOu2l1YCdMtpGD5r2MXoDCfhHWxqJDXuTzjbTR0yH5pLJi/5d/hkXczZ0ZYvUVUlXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EvlSqNI5SdMA9FmFxNtdBszgAaJyo5KSb/k6+NLANRs=; b=O4fNkwlmOJ1nGV4UcHuWw3Et7tOPCBvQcdVRg26aQxzFLA5oM/vUrj6xjrsJjxCL3jezwYUVrcZ7m/38B6CGmQhGvP+xBJF4KU9OavgNiofhYRfakPdGrGb2q/2aZqqRYkO9bC/X8FHaFhl1dBeCb8E66QWCH3QmA/zLSrYmNgUXk585qqP9tMJwtakqfoNXxyL+vXS0nYEmN5vx4vRiEhb0YofagiMDMqgIbui1WpussBxUZM4LLqWJiCW1KK0R5KTWG8SVVyNu2HAsUfVPkIIsIDuIwrAup7VK8PQdVAGrHGWH/FFoRDBpURqcwB98JX3+IXIISHxjrzeWhMqa3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EvlSqNI5SdMA9FmFxNtdBszgAaJyo5KSb/k6+NLANRs=; b=kOEVIWvKX2DeW3NOlT13ypv90cDnWDrj3ITzcYCPe2iIhShK0ByQFcIJGcqRDT/DFDuugC35LIBA7EeLKTemCmHIEn5RP5vUTdQXmZGRhppixdNrCNMvhpAtHkmEDcybWTofPnzg5hgtKUBiGyuMcRXPsMlFri8lVemEosuhvWo= Received: from DS7PR10MB5232.namprd10.prod.outlook.com (2603:10b6:5:3aa::24) by IA0PR10MB6817.namprd10.prod.outlook.com (2603:10b6:208:43a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.21; Mon, 20 Jan 2025 19:31:34 +0000 Received: from DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324]) by DS7PR10MB5232.namprd10.prod.outlook.com ([fe80::8303:658f:14f8:2324%5]) with mapi id 15.20.8356.020; Mon, 20 Jan 2025 19:31:34 +0000 From: Drew Adams <drew.adams@HIDDEN> Thread-Topic: [External] : Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Thread-Index: AQHba2/KXdf8cyxNs0y1Zneqlt0Gc7MgCerg Date: Mon, 20 Jan 2025 19:31:34 +0000 Message-ID: <DS7PR10MB5232C63F3899991F794E80F4F3E72@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <86msfl5mal.fsf@HIDDEN> In-Reply-To: <86msfl5mal.fsf@HIDDEN> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR10MB5232:EE_|IA0PR10MB6817:EE_ x-ms-office365-filtering-correlation-id: 181bc440-2f32-412b-0147-08dd39890ccd x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: JRhY6siFO4l4oABCdEQBvcu9qNdxmcufgCOmdh/f21Mv9CdSgOGVeOBP2hATWbGkOIFCPLrCWKsZiZSHfzfwzQqEXcXB2jk/q6xt60ozdRN9pb5IfSKvy++eMulG4WqE5hG68F7DM5leXz9jXgvgl2s6Rt8FQsW3g5oOhlxuWxowhSKJkBrjgvmBaqAfDYeeX424HfgIAJwgJQ1KBQyppYPtmVXmHgYbvhXnDjrcKdoyPBaw3tD3Do9/rmXelKWd7zkXMuPLwd1ZRfFeQFvWQTSWg9bTLjtNcMEoJRmpM722nyp6UNPd8Mw9ZSn8oK6VnwWCJNtEgh1cWMAMjMdGXQ5t083BQlwQOjZkcmH4CTXWFTyjGlqJOkhXjKRnCP0MM3xMBVcIAdJCd7i6Of8WmA8EYYCiBjj0JI9Xfb4qoYMdDVHu//FU+X7VC6eotZh7691kTfPH0l24Rbm8U+M3FPmQ73pxEQum7rLQ7ZtJVD/s6G/G5p/bvyFkY3OyRnNtzLSCsNHmzAzqPvAVrUNNuRe5uST90OiY9bjgk6G1z6eaxdozJcPQmahJcqWLriBwc6YjhNrnStu3n+aUIssoTNjD/YAq99Tiya28Q9Avlfr3bm843Ot38e/x5YiDcZfpZxbt4ASzCoSJXr0HsNoizN1wuyDKHTelIQT1Ri14OIwrl6T4yzKnCZA8H0M/hkJ9VuqzvA5nJKd7YYfeJAoyhQwxFRkQU2H4+bqDz6YzJYEbRRgwvvUr3IIxasbX3LnxiM+3k+PVJmNdEWgpgWYgadCEV6IpbBl4r5llNYE68+rlpm65NYl4LRgp2+Sci7okRHgSlQXBaejAJf8RTnDVlMqvwfzIdiOIDbRmLZl9a8BEBuupengEdL9WY+L+suwBPl9pfwFZbtcBORGroTnxlawn5tWH91QU74gKsVlTDSvUrHMo54yAsPbuuXraq7HPK0smZgSbSWEn5z9TURZGs0Wx7DV6D1WyAxSJUxwi0I1Z1VwXI9ncqILXtfm9if45Xp2/MP1tDvzKY5Wyf7Ulc022SXlK7ZnBi4z3LrTv3f8nNM/tV7r5ZXKDny/ChkJHhVKjSbeIwk0BffT0JNSfwRgcjwiTo5XTHU4BG6I5TB/h12jHRX8L/S9HnZKJONbDnU+L8LO44P6i/UZgQCylyotmOWv1IfoFhtdNmqugZX5c6HyXF2Zq65Dn0HdFC+jwPYS7DErwLIDvUiiDOiII36C+4qBhnUjdyGxEYVg2N18PBmDprQyRaghlIVlfwAlvh/wpnCfkVRgs+M+HOs45Lrf1SIWp6kpX8tekms2QtBjg1CjnOsvqlNz+dCowi3eZRwcM1f2Kwd7r4dUKdFiNGxBW4uJSOIZhb3ERx8LUQ6fjfbN3NYrkPqUYZEpfxjnB5hfFk+z7hziOUMAtaL3KBZWln1IQwrd2EgOcYu9/cd9Wn7/JRn1F+plNCLJbOehV x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR10MB5232.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: 1WGjkN0d3BZe3KwWO/Z31QPE4O8JtQlVlbJzLEojsWECP0VoaxxzzEidcmxvySw0Er6JBIUixEGi0iAlkQqs6OdcCc+/ZSAaohryjkseB6F3kQnn8KnB+/BE97e3HiQOXfGOatIkM5Qq+azQhwOdmGibvBsXRSKWytFdNGSYIsc5KyVhyWM+/s0elQvUUO+9FH6jwdFGz8wjLSCb88+AzpMq46wMQIy0gz+fLYtXkxJ5UBVq61pO7CCAzjRXO3dRH2vWCxmEmlzODFNbLWzb2mfwIEti+e2sOzPaGCs3evz1ZoXMMDgQKAFzVPk/Axm1O0D4LOyB/q8k7LdwMsjybu0t5lVrbkilIKAduF95auSrFYLYWGRrxEtdwCWT8/M76BtqkiaTRPWiUQkM/G/Ro3ZZ+/FwkP9mCEVsv3SvRj+SKxSWi/i8lP0V/zsWlvSYN3892R+KJw5PkHaJoGinecYGmcYmcq8re0QkHrmomoElIo4TszluI9KdocxQg5799N7R+TFMfAn0PeaEgS70kcijj2zf4kXnJijeChm/8nD2wPfNfvknfI+JeewmxvcCFShe2yDcDMpeqJHHHP+SwIacWbK15A+LADMwuwxOy0MYYFcRw5Q3Jvj1hcJG4Y72aOwgUQVdvhkO/H2GbqpD4qKg2MA/Ugkckuk5dyVxuRPlnQNLvnUee2+r6lAGrSQzDaYbAKzXpfulMHQ3lu2L3Ce6BLwq+lUROv0LWPkKCnahIl7LHfWsRcm64aFh6OEow7oAfa57nDX1P0jB72gOAaA6SWG2jG1d+JWbN4MBvR0S+R+wdvcQd2X6q3aoYS/zouBwtOJIM+H8GIr5wLJ8VAFsYjEG1vqnK8Vdtp0REzqJtoEPe412/L3sjW+FAj/rbA6+G4SPwP5wKU0OV4x9OKdc1QCMRDl7VIx9swfKGl/qQc+Tvz4CZm5Wb5rUDiiiuOqx9f01OhGMwy0jEPDEG3oMJwZz10BD48OIGOquQLowNV1Ntn1Y8bR0bAONheCzHFDL/EqFrzZXsUlSfzHwYvXGmeZm/7vrhAW7HGdzt+xubrd7J3QBhjD7Vlcwn72xRvDumXRtq0+8+8f6wH6xqkyq7d6p8O5Hyw1kotID+UV22QpXd49tpZZBIRgErmeJoMH74O0WeMgEC2RMG6i/gPnASmK9DggbR/hw8Ctt8PcqRWOjbrROeaScknUlE3JUu0rT/WXYUZZ8xIzadI7sSv48gcQMhfKZm3AJ46iwiqA+xMFlZKOFlQ12q74jdwUSNyaZATr9mHM0+DHHmW6H8basZsxPZiCvzCm24ZN+Z9qAIwBF63lcaeG6UVbkqxf2yP0W4EbFu1ZU/NcPrJ6jsYgyd0QDIUyHENUNcnAiCO8tzzW0pHAA3dI/dL2QSlGBPrGxtkFpbYPFkl+4dCdGJ0dlfvNvbtGFUUn6H5whZIr8xh0lG2XIy95ZkYpYcXkCnoZam1uCqL+mmkItihRgFctHG+mLEvVWbRVq6i4ss+pzrFnwlTiKJA7oSZuiSlpbIkEhwzfWRlqfKml/uxYFlSD/17vsVNMsDBQf7gWbFMvn5/lxQ6J+RfDHV1babLm7 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: i+c8n4HjirAY8ZieW2rK5mDiJD7oFFGgFNIJi5zpxVu6zcULR4ckcV4Ckf9EfHMLAJkBid/xevAq4b+V5PZCmjG9REFXYu+6s9hI1OVng+Xop110kQmKqyq0ScXwHLDpYvvwiv2MRaw2J5sPD8WxyBdpO2eG8b4qz73lwGEOzUNwY1d5T4jA8QwWYYKrntRnMKXFguZT0+J3fgLS01kPTCYXnvZZlNgDOI6Em/olAbGYh9dk3CepudKZ1cQtg9CG0KXRUpcZhGDqMaeJnX1K1zwvYGH/t8Uy3SCBoNjPz+vanuh+l5GVSpSnHWv5M6J3a2AQTbpAu1o5GkC3+3mqUXEH+hWRIzDkzPOFHNYAsAeqtwk3+i0L8vZ7Ly7Ted6eZq54mHBNqpFT51Nf/RiEeNV1T6bJuLTJqb49SKq9AUejASusmnXoPwTY+/6SHMKmv0mwEueTxKKiRnXRW0zcXP6J1rv8hZaV2pGRbCuH2l+4RK6lEVXXSgrFtsOb5UXrbTaNFxyjpZhHGESRrUHYNJrdNYFnbl7DmtK7H6z14iL0RWRFvvQvjpDkpY0c7gUGTdimUZWl9tAeKnCeFoyndqO3hz+RL0NnYW4EaypJrC8= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR10MB5232.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 181bc440-2f32-412b-0147-08dd39890ccd X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2025 19:31:34.4260 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RZyFB3CqZ2WcIE/pEBcFu/m/Q0DLDIS/MfBEZQyiMwyb4OflzDmYdTKFrBEdJfYDGUafBPdbwd2Dz2Wq5prOOQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR10MB6817 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-20_05,2025-01-20_03,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 spamscore=0 phishscore=0 adultscore=0 bulkscore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501200158 X-Proofpoint-ORIG-GUID: Dim2JnosvDkH6gvQZHakQ0uhRo3c_Hhr X-Proofpoint-GUID: Dim2JnosvDkH6gvQZHakQ0uhRo3c_Hhr X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) > > An operation on marked files - which really > > means, for this macro, an operation on marked > > _lines_, CAN DO ANYTHING. >=20 > Auto-reverting is not something the operation on files does, it is > something that happens behind the operation's back. Yes (though the macro doesn't necessarily invoke any operation on files). And auto-reverting could occur while the macro is iterating over the marked lines, and while it's invoking its ARG function with point on a given line. And yes, that can be a bother, and it's usually _not_ what you want or expect. Agreed on all of that. Is it _always_ not what you want/expect? > It affects the list of files that the operation > wants to map over, and could easily cause the > operation to never terminate. Yes, I can see that. I'd suggest letting that happen, by default, and add a note in the doc telling you how you can prevent that when/where you _call_ the macro. That's my only disagreement. I don't see that fixing the bug requires changing the macro's behavior in a general way. OTOH, if you make that change, is there some way for a user to modify the behavior for a given macro call, to _allow_ what would now be prevented in a general way? If so, that would be OK too. Just how can a user do that? I haven't followed the patch etc., but I'm guessing that it's not sufficient just to turn off `auto-revert-mode', or just bind some variable, around the macro call. If there's no way for a user to override the behavior to be newly imposed then that seems a shame, to me. Is there no reasonable alternative that would allow prevention by default but would let users override that prevention in a given case?
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: Re: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 07:27:02 +0000 Resent-Message-ID: <handler.75626.B75626.17374443893613 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams <drew.adams@HIDDEN> Cc: "michael_heerdegen@HIDDEN" <michael_heerdegen@HIDDEN>, "75626 <at> debbugs.gnu.org" <75626 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17374443893613 (code B ref 75626); Tue, 21 Jan 2025 07:27:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 07:26:29 +0000 Received: from localhost ([127.0.0.1]:53072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ta8eb-0000wB-38 for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 02:26:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41840) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1ta8eY-0000vt-GV for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 02:26:27 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1ta8eR-0003Zq-RF; Tue, 21 Jan 2025 02:26:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BOf1tOCdqP59L8pQPJxgzzZ0nMcX1khEU7ZO/cq8a2w=; b=K0iY2w+xJrK7RWnDHMkX vjc3m0xGN3GgLDorjjw42l7duM5jllkQMD5/s2zYUZ8yaM9VZ5vFMKLE+NBS5D0pEIptEvSTfJFOf oETBQonsb6ubQnHCzX0Pz+hF7UBo02wBK4ie8t6ZdYVx83DSg8d4auBjxhGIAY0xpLPAXe0tnSFDF BuyBkJsKdigxW8nLBqQuOj4eOhLge79SwrgiUe5hv3jzASIjQ+HWip/DeKGJNjXIO6i4gl3Xld6DQ c+Zb/82mpAUGUinwF3iX8PNK1r1jpZpTCmCQ9N8cc52Chiw6D0Yg86Hl8YxU5oNsx8eU7htVb7p/X yt8NrL2YoM3Xtw==; X-ME-Sender: <xms:GkyPZz-2v4KKbv2ken3Kth-R-PY9SgKwf2oBxIODiAueslZYyM7PeA> <xme:GkyPZ_tOZ9VEIevScpSoN51QJ7wZkSGs7dyX0lxEe8zhrmv-mNOPgY0aoVEukF9oa iGGOghrklFL-Q> X-ME-Received: <xmr:GkyPZxB7th5GC-K_vVo4liEuwXPEycTA45xvZpiKHsV-vLUvsAHomGPLA7U5KCgkw73_W5VNLWgZbCrNNkyxcbwyR0WF0Rc> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejtddguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlpghhvggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhiiiesghhn uhdrohhrghdprhgtphhtthhopegurhgvfidrrggurghmshesohhrrggtlhgvrdgtohhm X-ME-Proxy: <xmx:GkyPZ_cx5p0T_zp9B0Zrt0AxIlWm68Am27g5Lu4MblrNI1scglcRwg> <xmx:GkyPZ4P03omRgTfN6GF5RFT5n08HuiiHUcUy4cr02MmevCE6Xy3owA> <xmx:GkyPZxlqRod56wAoFbs9eQiuUWMhyl7mkUsUM1S2frtOTxpWWPAoeg> <xmx:GkyPZys098vNwV3JEuNP0BjNKfmT-NkCJvHpCGT1_56c-JkCU1Y-fw> <xmx:GkyPZyuldFtjdYhQ07SFPfQTG9EZ4mi4BviTnLOC5lLwx6Pk9tNucj25> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <DS7PR10MB52325CADD149C0FABEC61D90F3E72@HIDDEN> (Drew Adams's message of "Mon, 20 Jan 2025 22:32:52 +0000") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <BLAPR10MB5219E640DBDBA0F606577513F3E72@HIDDEN> <87ldv6j9lv.fsf@HIDDEN> <87frlej8ad.fsf@HIDDEN> <DS7PR10MB5232BE24463AB0DADDDE0876F3E72@HIDDEN> <86msfl5mal.fsf@HIDDEN> <DS7PR10MB5232C63F3899991F794E80F4F3E72@HIDDEN> <86ed0x5ky9.fsf@HIDDEN> <DS7PR10MB52325CADD149C0FABEC61D90F3E72@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Tue, 21 Jan 2025 08:26:15 +0100 Message-ID: <87y0z47hm0.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Drew Adams <drew.adams@HIDDEN> writes: >> Yes. Because the only way this macro can work predictably and >> reliably is if it works on a snapshot of the directory's state. It >> cannot allow changed in the files that its body did not cause and >> does not know about. > > Again, it's not about changes in the files. The > macro carries out an action on the marked _lines_. > Not the same thing as acting on the files marked > on those lines. But the marked _lines_ can also jump around/change their order due to auto-revert. And the changes causing it might be made by other processes, not our dired operation. Please give one concrete example where that would be desired? It's like arguing that a inhibiting a periodic shuffle-lines during keyboard macro execution would constrain the generality of keyboard macros. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 12:36:02 +0000 Resent-Message-ID: <handler.75626.B75626.173746293513223 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN>, Michael Albinus <michael.albinus@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173746293513223 (code B ref 75626); Tue, 21 Jan 2025 12:36:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 12:35:35 +0000 Received: from localhost ([127.0.0.1]:53598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taDTi-0003RC-T9 for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 07:35:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46240) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1taDTh-0003Qw-J7 for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 07:35:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1taDTb-0003lE-Qn; Tue, 21 Jan 2025 07:35:27 -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=Cv3rTg52vxytee8lXow7ALzgsWLRDX4XfrTw5QA/Tbc=; b=mWe91mI18Egc H7NnhBex2nPrjfzMirPcLnI+HlNJDYXbUAeEd+lWBkhtmqdlLAbRtR0RvSJlmPsDeL0J1Nz4MBLQR MGzQQulVDWMD47+kmXX/dFEhM1KFc5bYKQ3TjCTLDwq1Yguvy6TtEj/oX83AA8sAKtdk9gZMs7tom YrMzUi4zQDDq2jdt/0Ya38II0wtDc7N0PdVWi/vhUklS5MBzD0GA9bn7KBHlX9G4o+Fhzlqjo8Iwr lpQNa/4MyD7jCM9Nml6bdWqiCpaX5V9bJy3SMz/XdfqSgWn2An8FOgja74grN43NsophycnLtvIs2 sMD/0BWMvi7H/dsdQDKZPA==; Date: Tue, 21 Jan 2025 14:34:29 +0200 Message-Id: <86bjw05oru.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87plkhb69r.fsf@HIDDEN> (message from Tassilo Horn on Mon, 20 Jan 2025 21:05:20 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org > Date: Mon, 20 Jan 2025 21:05:20 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > >> > And, btw, if we want this to be useful outside of Dired, we need to > >> > make this variable public, not internal. That is, call it > >> > dired-inhibit-auto-revert. > >> > >> Sorry, I can't follow. Why should a variable named dired-* be used > >> outside of dired? > > > > Not outside of dired, outside of dired.el. There are two other > > dired-*.el files which might want to do that for some reason. > > Would you get a warning when dired--inhibit-auto-revert defined in > dired.el was used in dired-aux.el or what is the problem? I've though > "--" variables are only private by convention, and usually not private > to a file but to a package. > > > Anyway, that other places could want to use this was not my > > suggestion, it was yours, AFAIR. > > No, Michael's. > > Anyway, after thinking a bit more about it: we could also have an even > more general inhibit-auto-revert in autorevert.el and bind that in the > expansion of dired-map-over-marks. Then auto-revert-handler would test > inhibit-auto-revert even before consulting the buffer-stale-function. Yes, I think this is even better, thanks. But let's first wait for Michael Albinus (CC'ed) to chime in, in case he has comments or objections.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 12:39:01 +0000 Resent-Message-ID: <handler.75626.B75626.173746310913608 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN>, Michael Albinus <michael.albinus@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173746310913608 (code B ref 75626); Tue, 21 Jan 2025 12:39:01 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 12:38:29 +0000 Received: from localhost ([127.0.0.1]:53607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taDWW-0003XQ-QL for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 07:38:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49390) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1taDWT-0003X3-Bh for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 07:38:26 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1taDWN-0003yl-Ox; Tue, 21 Jan 2025 07:38:19 -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=yEc8HCu3+RU7jha7hGBmUzt5dlWz9zNBXubpFrLcdaY=; b=BXgLb3QXalkt YlVIThI4M5bvKFUVD4UjAdZeyOnJenoVIFydpxxImZshAPyQt7oduTF5wRdiTWihIEY4YVSz8HaQZ csLqxjf7pNc8+xqUnsrZuqd2gwhE9OKMOuRR+EDHk9FszUm0ezrlpN+KJ5BOhopK9vjI9iIdlTU2m iYEveZ1HgK+zc6eQYYRJKs17CEo6/9a5diG7OqPfFzmj/q4WtgBhLfDeN93kcb1n0YwXRp9TG2feN +santzYrYa6hVR/C7KG8x++/ulr+n8l+5rQlGkaU3E2ffR2M5dj9+n+zIJV1CQcxjXnO0LAwWAZI5 ti8e9e0QNWfer7O8jdn/Pg==; Date: Tue, 21 Jan 2025 14:38:16 +0200 Message-Id: <86a5bk5olj.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87ikq9f1ey.fsf@HIDDEN> (message from Michael Heerdegen on Tue, 21 Jan 2025 01:36:37 +0100) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, 75626 <at> debbugs.gnu.org > Date: Tue, 21 Jan 2025 01:36:37 +0100 > > Tassilo Horn <tsdh@HIDDEN> writes: > > > > Anyway, that other places could want to use this was not my > > > suggestion, it was yours, AFAIR. > > > > No, Michael's. > > Yes, I wanted to bring that up. Though I don't understand the naming > convention thing, too. > > But I also have a question: can it happen that we prevent an > auto-revert, and it is then not happening delayed, but completely > canceled? Or will auto-revert-mode always try again later even without > a new notification (or however that works)? You mean, if this buffer's file or directory never changes again after this one time? Let's ask Michael Albinus (CC'ed).
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 14:14:01 +0000 Resent-Message-ID: <handler.75626.B75626.17374688215992 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: michael_heerdegen@HIDDEN, michael.albinus@HIDDEN Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17374688215992 (code B ref 75626); Tue, 21 Jan 2025 14:14:01 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 14:13:41 +0000 Received: from localhost ([127.0.0.1]:53771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taF0e-0001YZ-Tt for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 09:13:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46496) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1taF0b-0001YI-GX for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 09:13:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1taF0W-0001E9-1s; Tue, 21 Jan 2025 09:13:32 -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=KktPBASTp/FTXx44HFejXyizMvq+AFQdpm5BTCgKZHE=; b=eGJhTBuzkSdb kXCKsu0tV/7bdtdaJwAlEjXWQIUv2rBQ94PMMEgPUYdaq1Fe9NsldtfJcJg1UCbHz7mm0YcuIJ5ji WjMvO/lomdxJvlVKcZtv+/7zLPmv13RTyCNzMDmSTxP4JyNCC767m+M9P1tg50BMDNhpWkm4GPyrN cSVKf8Iu9ExpP+GsJpXR3sLithVVW28tLkWvGcCwFDtgRhcDAab/u7d98astIXQDSx2UKYy/INMDz lm7U+J2VSehWxjlTKAwToO5xfUm3Pmpx+JQcRIKcsvY2MT2A4PYKxxBycCuaBW6RLdJQBdweMUt+G ETwc5w207hxF5EgzuxXi8A==; Date: Tue, 21 Jan 2025 16:13:15 +0200 Message-Id: <86wmeo45ms.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <86a5bk5olj.fsf@HIDDEN> (message from Eli Zaretskii on Tue, 21 Jan 2025 14:38:16 +0200) References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Cc: 75626 <at> debbugs.gnu.org, tsdh@HIDDEN > Date: Tue, 21 Jan 2025 14:38:16 +0200 > From: Eli Zaretskii <eliz@HIDDEN> > > > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > > Cc: Eli Zaretskii <eliz@HIDDEN>, 75626 <at> debbugs.gnu.org > > Date: Tue, 21 Jan 2025 01:36:37 +0100 > > > > Tassilo Horn <tsdh@HIDDEN> writes: > > > > > > Anyway, that other places could want to use this was not my > > > > suggestion, it was yours, AFAIR. > > > > > > No, Michael's. > > > > Yes, I wanted to bring that up. Though I don't understand the naming > > convention thing, too. > > > > But I also have a question: can it happen that we prevent an > > auto-revert, and it is then not happening delayed, but completely > > canceled? Or will auto-revert-mode always try again later even without > > a new notification (or however that works)? > > You mean, if this buffer's file or directory never changes again after > this one time? Let's ask Michael Albinus (CC'ed). Michael informed me off-list that he will be able to respond only later. So we could either make this change now and wait for his comments, or do it the other way around. I don't think it matters much which way we do it.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 14:37:02 +0000 Resent-Message-ID: <handler.75626.B75626.173747017811414 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173747017811414 (code B ref 75626); Tue, 21 Jan 2025 14:37:02 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 14:36:18 +0000 Received: from localhost ([127.0.0.1]:53815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taFMX-0002y2-HY for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 09:36:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41324) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1taFMU-0002xc-7x for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 09:36:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1taFMO-0006DC-F6; Tue, 21 Jan 2025 09:36:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MJd1CRchXIiBkoo4eCisDfA+vCUSsp14nrNrYutyNZA=; b=erxpJVvwBwVk1eUDhey0 R4MMUnE+p/YxHbjZtzPZFVUQbzbPegj0xNeIiOKlEaLpw10GvuNi8yVfGYD+7RT/seuAJJEb3nMyq 9WhgHaSAH+hjTcP5fZgyFfuF5UspqsQjPEjqich9/qCMpqZAWrJJDFZl3O+DMznhuynhvHQuXcmED 28DIfkYZgzqkFs2PfP6TPsHzwGxVLAbRZ3gHL92mmfIBOmy+uvALGbzS6NKVze9XDdXkpNDjxaupT bRus5fgQXIvqDRW6qzAQgC9fvIh2n6/SK+gxSJ0e6cFL+MEcucZD8HLc8TaxzTdobLl5sz1HFPryu u6IiX+ftD0/aYA==; X-ME-Sender: <xms:07CPZ7DLpMG8nSlJXrDu51w-EzTZvAL47b0ncFOw1wBg46aNMRZwpw> <xme:07CPZxj2YDBBYPaxzifI2O3TtiEFBHyvPbV2IQBfIjq4FcbsQEEftOsodUDewXqwo jKd8CmqNAX4Uw> X-ME-Received: <xmr:07CPZ2mw4lvcbPAEvPsy6YWHLHzbHY-soEtwAewld2B6EWe27xtI4D5ftqIrBJI_NQ-HjKffqYlkQs_biZRHZX9M_uTrX1ml> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejvddgfeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrg gvlhdrrghlsghinhhushesghhmgidruggvpdhrtghpthhtohepmhhitghhrggvlhgphhgv vghruggvghgvnhesfigvsgdruggvpdhrtghpthhtohepvghlihiisehgnhhurdhorhhg X-ME-Proxy: <xmx:07CPZ9zesr3XWxDraxyWm3MV3umtSWol4T9KjLmVpUf9oYuYhjz_Ug> <xmx:07CPZwRQdvBpKXpY0cyELKiZ7kTkwwnZ--Xbcg8oORJk628dDLGKQw> <xmx:07CPZwZG2mqG6AU1xTIERWQTI1WqaFrdmqedtt8CB7pVlqe0KTUiWw> <xmx:07CPZxTG_s2a_tm7ODZajzsnwBGUFqGmXhJukDeKDYrxqoi5KfpX2w> <xmx:07CPZ2AbkZYoN03Hy7J0qDfE6pwq4T1iCM6AmDYNBKKUr1gr_Lg660AM> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86wmeo45ms.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 21 Jan 2025 16:13:15 +0200") References: <87r051khsd.fsf@HIDDEN> <86jzatg7rh.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Tue, 21 Jan 2025 15:36:00 +0100 Message-ID: <87sepc6xpr.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> > But I also have a question: can it happen that we prevent an >> > auto-revert, and it is then not happening delayed, but completely >> > canceled? Or will auto-revert-mode always try again later even >> > without a new notification (or however that works)? >> >> You mean, if this buffer's file or directory never changes again >> after this one time? Let's ask Michael Albinus (CC'ed). > > Michael informed me off-list that he will be able to respond only > later. So we could either make this change now and wait for his > comments, or do it the other way around. I don't think it matters > much which way we do it. Yeah, missing an auto-revert possibility could happen for ages, for example if wdired-mode was active, so if it's a problem, it's at least no new problem. I'll make the change to the new more general inhibit-auto-revert when time permits. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled In-Reply-To: <87r051khsd.fsf@HIDDEN> Resent-From: Rudolf Schlatte <rudi@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 15:14:02 +0000 Resent-Message-ID: <handler.75626.B.173747243621058 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 75626 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.173747243621058 (code B ref -1); Tue, 21 Jan 2025 15:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jan 2025 15:13:56 +0000 Received: from localhost ([127.0.0.1]:55730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taFwu-0005TU-7I for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 10:13:56 -0500 Received: from lists.gnu.org ([2001:470:142::17]:38470) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1taFwr-0005T4-LU for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 10:13:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1taFwe-0002LA-Nh for bug-gnu-emacs@HIDDEN; Tue, 21 Jan 2025 10:13:39 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1taFwc-0003DN-VH for bug-gnu-emacs@HIDDEN; Tue, 21 Jan 2025 10:13:36 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from <geb-bug-gnu-emacs@HIDDEN>) id 1taFwZ-0001xk-Bz for bug-gnu-emacs@HIDDEN; Tue, 21 Jan 2025 16:13:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Rudolf Schlatte <rudi@HIDDEN> Date: Tue, 21 Jan 2025 17:13:26 +0200 Message-ID: <m1ikq819pl.fsf@HIDDEN> References: <87r051khsd.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:0GzvN6je33TlqlgmjPYsnA005OY= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@HIDDEN; helo=ciao.gmane.io X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Tassilo Horn <tsdh@HIDDEN> writes: > I'll make the change to the new more general inhibit-auto-revert when > time permits. How about (with-deferred-auto-revert BODY), and apply all pending auto-reverts after BODY finished?
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 20:19:01 +0000 Resent-Message-ID: <handler.75626.B75626.173749071512400 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173749071512400 (code B ref 75626); Tue, 21 Jan 2025 20:19:01 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 20:18:35 +0000 Received: from localhost ([127.0.0.1]:56789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taKhj-0003Dt-4H for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 15:18:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47746) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1taKhg-0003Dd-4O for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 15:18:28 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1taKhZ-00015H-RB; Tue, 21 Jan 2025 15:18:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ZYE3jXnSZGnUEvM72w5n4fOk8m32GU4dPwfKgTBkE2Y=; b=Di5DtjAUC0honaNghHPE ca9mDqPulsC60hprFPTM34BWF7jYxxGQjwNwvLcwbAflcG5EmG6XO7OeY/eYwKmeILeQ/QKWFvDF3 VC49cwx6CI3YMVUY4W1oj5eYnilf1SCwJktQve5nefP023aSCXQ2TCpoorZgnHVI/R+CFLEMBWjF7 HgEIAG2wWYkK3h3y7iYsjN8GIXG+pyY62gBCDyUsmXedXofsln/quYvZYP7bjTv9+EppXlbNKrEKU xCRlCkmWVd7uNmfv51LKpM4mvlG6fR666o5YBSoaqVJcDWavoJD9DaJBYa+YcTnd52vN5iu50nCyf X1xQyzZH5yhUmQ==; X-ME-Sender: <xms:DAGQZyj4uO0viEhivCoLkui8xFavn21e9MAONHjk4TdQ8ho3LMufhg> <xme:DAGQZzC1iyO9ikrMYes1-cF1X5_Ui8slIcD97s7OLRMd2wUxH9FkVJrLiAFt0XeYC TZ80MiCTxNTsw> X-ME-Received: <xmr:DAGQZ6Gd5UbM3-p1cys8ot6Q7PIqiYkIYJ9D1eJiXmap0aarRdhwYyd3JJaWNg2CJMPh6R_kbLcoXTKlgq1dh9jiXq7JjHAj> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejvddguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlrdgrlhgsihhnuhhssehgmhigrdguvgdprhgtphhtthhopehmihgthhgrvghlpghh vggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh X-ME-Proxy: <xmx:DAGQZ7Qvsq5lknsEVAxFjTVHQq7agFghyER2RJUOP7Qf67vn7nyr_Q> <xmx:DAGQZ_zL7cZQ33r7y0Da6RyLC7IoFHC6mSSPtIPfuTQ-emHDr63Urw> <xmx:DAGQZ57eum1H-6juS0anosnZoGynbP5ts17MHi2kVnJLwF267iEucw> <xmx:DAGQZ8xO2EwO6-S-_pXSJl5fLdsdGq1YedI0mTvkUgVXeJ41uIRdIw> <xmx:DAGQZ7ihpaNysxeY6wF9DtYokPin3dOF5E-ZQzPcnzwnFXCVyQYkfIii> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87sepc6xpr.fsf@HIDDEN> (Tassilo Horn's message of "Tue, 21 Jan 2025 15:36:00 +0100") References: <87r051khsd.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Tue, 21 Jan 2025 21:18:18 +0100 Message-ID: <87jzan7wfp.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Tassilo Horn <tsdh@HIDDEN> writes: > I'll make the change to the new more general inhibit-auto-revert when > time permits. I have to declare emacs programming bankruptcy. The current version with dired--inhibit-auto-revert works fine. Now I wanted to change that into a more general inhibit-auto-revert. Here's the patch (with -b to make it easier to grasp): --8<---------------cut here---------------start------------->8--- diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 1dcfe8e911f..0cd0623c59b 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -778,6 +778,11 @@ auto-revert-active-p auto-revert-tail-mode auto-revert--global-mode)) +(defvar-local inhibit-auto-revert nil + "A non-nil value prevents `auto-revert-mode' from reverting the buffer. +Should be used in let-bindings to temporarily disable auto-reverts in a +buffer.") + (defun auto-revert-handler () "Revert current buffer, if appropriate. This is an internal function used by Auto-Revert Mode." @@ -787,6 +792,8 @@ auto-revert-handler ;; the values. (remote-file-name-inhibit-cache t) (revert + (and + (not inhibit-auto-revert) (if buffer-file-name (and (or auto-revert-remote-files (not (file-remote-p buffer-file-name))) @@ -805,7 +812,7 @@ auto-revert-handler global-auto-revert-non-file-buffers) (funcall (or buffer-stale-function #'buffer-stale--default-function) - t)))) + t))))) eob eoblist) (setq auto-revert-notify-modified-p nil auto-revert--last-time (current-time)) diff --git a/lisp/dired.el b/lisp/dired.el index d2071d80bf3..7c9d7310efb 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -944,9 +944,6 @@ dired-mark-if "")))) (and (> count 0) count))) -(defvar-local dired--inhibit-auto-revert nil - "A non-nil value prevents `auto-revert-mode' from reverting the buffer.") - (defmacro dired-map-over-marks (body arg &optional show-progress distinguish-one-marked) "Eval BODY with point on each marked line. Return a list of BODY's results. @@ -983,8 +980,8 @@ dired-map-over-marks ;;endless loop. ;;This warning should not apply any longer, sk 2-Sep-1991 14:10. `(prog1 - (let ((dired--inhibit-auto-revert t) - (inhibit-read-only t) + (let ((inhibit-read-only t) + (inhibit-auto-revert t) case-fold-search found results) (if (and ,arg (not (eq ,arg 'marked))) (if (integerp ,arg) @@ -1294,12 +1291,6 @@ dired-buffer-stale-p ;; Do not auto-revert when the dired buffer can be currently ;; written by the user as in `wdired-mode'. buffer-read-only - ;; When a dired operation using dired-map-over-marks is in - ;; progress, dired--inhibit-auto-revert is bound to some - ;; non-nil value and we must not auto-revert because that could - ;; change the order of files leading to skipping or - ;; double-processing (see bug#75626). - (not dired--inhibit-auto-revert) (dired-directory-changed-p dirname)))) (defcustom dired-auto-revert-buffer nil @@ -4089,13 +4080,12 @@ dired-internal-do-deletions (while l (goto-char (marker-position (cdr (car l)))) (dired-move-to-filename) - (let ((inhibit-read-only t)) + (let ((inhibit-read-only t) + ;; Temporarily prevent auto-revert while deleting + ;; entry in the dired buffer (bug#71264). + (inhibit-auto-revert t)) (condition-case err - (let ((fn (car (car l))) - ;; Temporarily prevent auto-revert while - ;; deleting entry in the dired buffer - ;; (bug#71264). - (auto-revert-mode nil)) + (let ((fn (car (car l)))) (dired-delete-file fn dired-recursive-deletes trash) ;; if we get here, removing worked (setq succ (1+ succ)) --8<---------------cut here---------------end--------------->8--- That last hunk in dired-internal-do-deletions is due to a wrong fix for the bug#71264. When auto-revert-mode itself is bound to nil when auto-revert kicks in, the buffer will be removed from auto-revert-buffer-list causing auto-revert to be disabled forever in that buffer. (At least that's my reading of the code...) Anyway, the above solution with the new inhibit-auto-revert does not work. auto-revert-buffers is called from a timer and eventually auto-revert-handler is called for my dired buffer where the compression of 1000 is still ongoing but inhibit-auto-revert is nil there and revert-buffer is called causing the issue of this bug again. I can't understand why it doesn't see the non-nil inhibit-auto-revert binding in the expansion of dired-map-over-marks. Where is the difference to the current working solution with dired--inhibit-auto-revert? It's bound the same way and accessed from auto-revert-handler via the funcall to the dired buffer's buffer-stale-function, i.e., dired-buffer-stale-p. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Ship Mints <shipmints@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 21 Jan 2025 20:28:01 +0000 Resent-Message-ID: <handler.75626.B75626.173749127514157 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173749127514157 (code B ref 75626); Tue, 21 Jan 2025 20:28:01 +0000 Received: (at 75626) by debbugs.gnu.org; 21 Jan 2025 20:27:55 +0000 Received: from localhost ([127.0.0.1]:56808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taKqo-0003gG-OT for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 15:27:55 -0500 Received: from mail-ua1-x92a.google.com ([2607:f8b0:4864:20::92a]:48532) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1taKql-0003fx-63 for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 15:27:52 -0500 Received: by mail-ua1-x92a.google.com with SMTP id a1e0cc1a2514c-85c4cd95885so1154806241.1 for <75626 <at> debbugs.gnu.org>; Tue, 21 Jan 2025 12:27:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737491265; x=1738096065; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2EECeRzdIaixk/Lr0TWo+bPoHWZ0MSLtiPRiCEHFSMs=; b=DGJDUaMX+k8gvnqkgcwR+tIRpFM80ibFbhgZ1GrjIvj5sChjQ56ZYxgUhnzyYzO5iT hf3zcBdrnMkF9JgZQQzhJiuBK4/2+79/mhDoQ7yotPzsu59V37T4NqBnVi6Z40fondz9 jziBIx5V/1tAeb5MGrtzWWUhE3bKbOE7sT4xgVDj3W2SCGldLmr4fQ6/B84SfiTaW8wP nJYuE9h5qEYTOByc2hu9ak4BaSEx8qQbSKghquyiN7Q1kR9ZLbZKHCxtUiyyho0QUtfg mZ6qo3dVPgMxkQ2FCB59sKKtD9g5HvppTpd63GbmvOI4rMSQ/OJj7QSrAqXb9XDdjyHt 7Vcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737491265; x=1738096065; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2EECeRzdIaixk/Lr0TWo+bPoHWZ0MSLtiPRiCEHFSMs=; b=E8KtKvhz2Sl2oz4XrcT2C/yLy1FO1RAm3V58NPp+NJN6wQVShUPqTtUn7YdmEUdckc 1hI2djYqI0H0PgYP50uyyW7oRmedtqCruWC++l5sJd+6JH2NM3Ptziek7x3iLzlTetKk N8u0SR9MHGxyvBkuE4We/Zuo7ds7Wk+spPfF9iVfey9mV4UaI1bC2JWWW3Ukuclg0bEm 4V5GjeD7LTVMR5J8pki96dw6dU+UdKgFZ4LOBo6uyGOzi3/cRFTSKZ9yXdbk6Az8XcBp l3WIUgn1MxhyeM464tP/PpXADTW7IkSxPp8DjviFho93e+nYBJABjNH0wir+XR6Gr8cH 8HGw== X-Forwarded-Encrypted: i=1; AJvYcCUOazXgzr3bDAx38gxnIy1ZGxsi27uqDOffmOE6iSMv7ebeo4oozM1D58UWQ6Mvfux2SuoNGg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwTpdJuTm0qkhHF044bocwl/Afv6cjzW2PjBO6rGkc4V3ecp672 Z/6P7rUbrSMhkzCWLLHEN1v0tJzXFdlHYQAHxXtYDjqlcO+wAmEejta1ir+YbwOgrMZTv1H/qGJ gYvaA2CWgKxQ0FhHpHArHHeM1Mpw= X-Gm-Gg: ASbGncuAUnhMe+AuTfZFgrMqFSH97reSTLsdnKtLRyFew3nSL1cjcupxApSUF0rAlDJ ZeiaGrXshy+55fL33UaemJzf5eo2IsJZTUDc/HsmHYQa35sDSyCs= X-Google-Smtp-Source: AGHT+IEzf0VZS00NihqFlN5c4dUZNCE5Nucpii1KlmtNYuzZwsPUeM3WzhY848pxgXndKN+CVhJKptsLt8RxhiPjdpw= X-Received: by 2002:a05:6122:4005:b0:517:4fca:86d4 with SMTP id 71dfb90a1353d-51d5b3aacb3mr14127990e0c.11.1737491265347; Tue, 21 Jan 2025 12:27:45 -0800 (PST) MIME-Version: 1.0 References: <87r051khsd.fsf@HIDDEN> <87ldv9ke06.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> In-Reply-To: <87jzan7wfp.fsf@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Tue, 21 Jan 2025 15:26:06 -0500 X-Gm-Features: AbW1kvbjnyzlLbbCnWSYSQL3R3jyEqMsNIA2GVr3MGYW4OGZSPee7eUh5cVz5Po Message-ID: <CAN+1HbqyeqU_XRwoXCobCUQEjO6X_HsysRHz2DuNmxAs-UGjRA@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000abe735062c3d3584" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000abe735062c3d3584 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable If mode changes take place during processing, you may need to "brand" inhibit-auto-revert (put 'inhibit-auto-revert 'permanent-local t) as mode changes clear impermanent locals. On Tue, Jan 21, 2025 at 3:19=E2=80=AFPM Tassilo Horn <tsdh@HIDDEN> wrote: > Tassilo Horn <tsdh@HIDDEN> writes: > > > I'll make the change to the new more general inhibit-auto-revert when > > time permits. > > I have to declare emacs programming bankruptcy. The current version > with dired--inhibit-auto-revert works fine. Now I wanted to change that > into a more general inhibit-auto-revert. Here's the patch (with -b to > make it easier to grasp): > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/autorevert.el b/lisp/autorevert.el > index 1dcfe8e911f..0cd0623c59b 100644 > --- a/lisp/autorevert.el > +++ b/lisp/autorevert.el > @@ -778,6 +778,11 @@ auto-revert-active-p > auto-revert-tail-mode > auto-revert--global-mode)) > > +(defvar-local inhibit-auto-revert nil > + "A non-nil value prevents `auto-revert-mode' from reverting the buffer= . > +Should be used in let-bindings to temporarily disable auto-reverts in a > +buffer.") > + > (defun auto-revert-handler () > "Revert current buffer, if appropriate. > This is an internal function used by Auto-Revert Mode." > @@ -787,6 +792,8 @@ auto-revert-handler > ;; the values. > (remote-file-name-inhibit-cache t) > (revert > + (and > + (not inhibit-auto-revert) > (if buffer-file-name > (and (or auto-revert-remote-files > (not (file-remote-p buffer-file-name))) > @@ -805,7 +812,7 @@ auto-revert-handler > global-auto-revert-non-file-buffers) > (funcall (or buffer-stale-function > #'buffer-stale--default-function) > - t)))) > + t))))) > eob eoblist) > (setq auto-revert-notify-modified-p nil > auto-revert--last-time (current-time)) > diff --git a/lisp/dired.el b/lisp/dired.el > index d2071d80bf3..7c9d7310efb 100644 > --- a/lisp/dired.el > +++ b/lisp/dired.el > @@ -944,9 +944,6 @@ dired-mark-if > "")))) > (and (> count 0) count))) > > -(defvar-local dired--inhibit-auto-revert nil > - "A non-nil value prevents `auto-revert-mode' from reverting the > buffer.") > - > (defmacro dired-map-over-marks (body arg &optional show-progress > distinguish-one-marked) > "Eval BODY with point on each marked line. Return a list of BODY's > results. > @@ -983,8 +980,8 @@ dired-map-over-marks > ;;endless loop. > ;;This warning should not apply any longer, sk 2-Sep-1991 14:10. > `(prog1 > - (let ((dired--inhibit-auto-revert t) > - (inhibit-read-only t) > + (let ((inhibit-read-only t) > + (inhibit-auto-revert t) > case-fold-search found results) > (if (and ,arg (not (eq ,arg 'marked))) > (if (integerp ,arg) > @@ -1294,12 +1291,6 @@ dired-buffer-stale-p > ;; Do not auto-revert when the dired buffer can be currently > ;; written by the user as in `wdired-mode'. > buffer-read-only > - ;; When a dired operation using dired-map-over-marks is in > - ;; progress, dired--inhibit-auto-revert is bound to some > - ;; non-nil value and we must not auto-revert because that could > - ;; change the order of files leading to skipping or > - ;; double-processing (see bug#75626). > - (not dired--inhibit-auto-revert) > (dired-directory-changed-p dirname)))) > > (defcustom dired-auto-revert-buffer nil > @@ -4089,13 +4080,12 @@ dired-internal-do-deletions > (while l > (goto-char (marker-position (cdr (car l)))) > (dired-move-to-filename) > - (let ((inhibit-read-only t)) > + (let ((inhibit-read-only t) > + ;; Temporarily prevent auto-revert while deleting > + ;; entry in the dired buffer (bug#71264). > + (inhibit-auto-revert t)) > (condition-case err > - (let ((fn (car (car l))) > - ;; Temporarily prevent auto-revert while > - ;; deleting entry in the dired buffer > - ;; (bug#71264). > - (auto-revert-mode nil)) > + (let ((fn (car (car l)))) > (dired-delete-file fn dired-recursive-deletes trash= ) > ;; if we get here, removing worked > (setq succ (1+ succ)) > --8<---------------cut here---------------end--------------->8--- > > That last hunk in dired-internal-do-deletions is due to a wrong fix for > the bug#71264. When auto-revert-mode itself is bound to nil when > auto-revert kicks in, the buffer will be removed from > auto-revert-buffer-list causing auto-revert to be disabled forever in > that buffer. (At least that's my reading of the code...) > > Anyway, the above solution with the new inhibit-auto-revert does not > work. auto-revert-buffers is called from a timer and eventually > auto-revert-handler is called for my dired buffer where the compression > of 1000 is still ongoing but inhibit-auto-revert is nil there and > revert-buffer is called causing the issue of this bug again. > > I can't understand why it doesn't see the non-nil inhibit-auto-revert > binding in the expansion of dired-map-over-marks. Where is the > difference to the current working solution with > dired--inhibit-auto-revert? It's bound the same way and accessed from > auto-revert-handler via the funcall to the dired buffer's > buffer-stale-function, i.e., dired-buffer-stale-p. > > Bye, > Tassilo > > > > --000000000000abe735062c3d3584 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D""><font face=3D"mono= space">If mode changes take place during processing, you may need to "= brand" inhibit-auto-revert=C2=A0</font></div><div class=3D"gmail_defau= lt" style=3D""><font face=3D"monospace"><br></font></div><div class=3D"gmai= l_default" style=3D""><font face=3D"monospace">(put 'inhibit-auto-rever= t=C2=A0'permanent-local t)</font></div><div class=3D"gmail_default" sty= le=3D""><font face=3D"monospace"><br></font></div><div class=3D"gmail_defau= lt" style=3D""><font face=3D"monospace">as mode changes clear impermanent l= ocals.</font></div></div><br><div class=3D"gmail_quote gmail_quote_containe= r"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, Jan 21, 2025 at 3:19=E2=80= =AFPM Tassilo Horn <<a href=3D"mailto:tsdh@HIDDEN">tsdh@HIDDEN</a>>= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Tassilo = Horn <<a href=3D"mailto:tsdh@HIDDEN" target=3D"_blank">tsdh@HIDDEN</a>= > writes:<br> <br> > I'll make the change to the new more general inhibit-auto-revert w= hen<br> > time permits.<br> <br> I have to declare emacs programming bankruptcy.=C2=A0 The current version<b= r> with dired--inhibit-auto-revert works fine.=C2=A0 Now I wanted to change th= at<br> into a more general inhibit-auto-revert.=C2=A0 Here's the patch (with -= b to<br> make it easier to grasp):<br> <br> --8<---------------cut here---------------start------------->8---<br> diff --git a/lisp/autorevert.el b/lisp/autorevert.el<br> index 1dcfe8e911f..0cd0623c59b 100644<br> --- a/lisp/autorevert.el<br> +++ b/lisp/autorevert.el<br> @@ -778,6 +778,11 @@ auto-revert-active-p<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0auto-revert-tail-mode<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0auto-revert--global-mode))<br> <br> +(defvar-local inhibit-auto-revert nil<br> +=C2=A0 "A non-nil value prevents `auto-revert-mode' from revertin= g the buffer.<br> +Should be used in let-bindings to temporarily disable auto-reverts in a<br= > +buffer.")<br> +<br> =C2=A0(defun auto-revert-handler ()<br> =C2=A0 =C2=A0"Revert current buffer, if appropriate.<br> =C2=A0This is an internal function used by Auto-Revert Mode."<br> @@ -787,6 +792,8 @@ auto-revert-handler<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; the values.<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (remote-file-name-inhibit-cache t)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (revert<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (and<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not inhibit-auto-revert)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (if buffer-file-name<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (and (or auto-rever= t-remote-files<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0(not (file-remote-p buffer-file-name)))<br> @@ -805,7 +812,7 @@ auto-revert-handler<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0global-auto-revert-non-file-buffers)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(funca= ll (or buffer-stale-function<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 #'buffer-stale--default-function= )<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 t))))<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0t)))))<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 eob eoblist)<br> =C2=A0 =C2=A0 =C2=A0(setq auto-revert-notify-modified-p nil<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0auto-revert--last-time (current-ti= me))<br> diff --git a/lisp/dired.el b/lisp/dired.el<br> index d2071d80bf3..7c9d7310efb 100644<br> --- a/lisp/dired.el<br> +++ b/lisp/dired.el<br> @@ -944,9 +944,6 @@ dired-mark-if<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0""))))<br> =C2=A0 =C2=A0 =C2=A0(and (> count 0) count)))<br> <br> -(defvar-local dired--inhibit-auto-revert nil<br> -=C2=A0 "A non-nil value prevents `auto-revert-mode' from revertin= g the buffer.")<br> -<br> =C2=A0(defmacro dired-map-over-marks (body arg &optional show-progress<= br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0distinguish-one-= marked)<br> =C2=A0 =C2=A0"Eval BODY with point on each marked line.=C2=A0 Return a= list of BODY's results.<br> @@ -983,8 +980,8 @@ dired-map-over-marks<br> =C2=A0 =C2=A0;;endless loop.<br> =C2=A0 =C2=A0;;This warning should not apply any longer, sk=C2=A0 2-Sep-199= 1 14:10.<br> =C2=A0 =C2=A0`(prog1<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((dired--inhibit-auto-revert t)<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(inhibit-read-only t)<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((inhibit-read-only t)<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(inhibit-auto-revert t)<br= > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case-fold-search found res= ults)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (and ,arg (not (eq ,arg 'marked))= )<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(if (integerp ,arg)<br> @@ -1294,12 +1291,6 @@ dired-buffer-stale-p<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Do not auto-revert when the dired buff= er can be currently<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; written by the user as in `wdired-mode= '.<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0buffer-read-only<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; When a dired operation using dired-ma= p-over-marks is in<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; progress, dired--inhibit-auto-revert = is bound to some<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; non-nil value and we must not auto-re= vert because that could<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; change the order of files leading to = skipping or<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; double-processing (see bug#75626).<br= > -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not dired--inhibit-auto-revert)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(dired-directory-changed-p dirname))))<br= > <br> =C2=A0(defcustom dired-auto-revert-buffer nil<br> @@ -4089,13 +4080,12 @@ dired-internal-do-deletions<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (while l<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (goto-char (marker-positio= n (cdr (car l))))<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(dired-move-to-filen= ame)<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((inhibit-read-only t= ))<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let ((inhibit-read-only t= )<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; T= emporarily prevent auto-revert while deleting<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ;; e= ntry in the dired buffer (bug#71264).<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (inh= ibit-auto-revert t))<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (condition-case err= <br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let = ((fn (car (car l)))<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ;; Temporarily prevent auto-revert while<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ;; deleting entry in the dired buffer<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ;; (bug#71264).<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (auto-revert-mode nil))<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(let = ((fn (car (car l))))<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (dired-delete-file fn dired-recursive-deletes trash)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ;; if we get here, removing worked<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 (setq succ (1+ succ))<br> --8<---------------cut here---------------end--------------->8---<br> <br> That last hunk in dired-internal-do-deletions is due to a wrong fix for<br> the bug#71264.=C2=A0 When auto-revert-mode itself is bound to nil when<br> auto-revert kicks in, the buffer will be removed from<br> auto-revert-buffer-list causing auto-revert to be disabled forever in<br> that buffer.=C2=A0 (At least that's my reading of the code...)<br> <br> Anyway, the above solution with the new inhibit-auto-revert does not<br> work.=C2=A0 auto-revert-buffers is called from a timer and eventually<br> auto-revert-handler is called for my dired buffer where the compression<br> of 1000 is still ongoing but inhibit-auto-revert is nil there and<br> revert-buffer is called causing the issue of this bug again.<br> <br> I can't understand why it doesn't see the non-nil inhibit-auto-reve= rt<br> binding in the expansion of dired-map-over-marks.=C2=A0 Where is the<br> difference to the current working solution with<br> dired--inhibit-auto-revert?=C2=A0 It's bound the same way and accessed = from<br> auto-revert-handler via the funcall to the dired buffer's<br> buffer-stale-function, i.e., dired-buffer-stale-p.<br> <br> Bye,<br> Tassilo<br> <br> <br> <br> </blockquote></div> --000000000000abe735062c3d3584--
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Jan 2025 00:21:02 +0000 Resent-Message-ID: <handler.75626.B75626.17375052022465 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17375052022465 (code B ref 75626); Wed, 22 Jan 2025 00:21:02 +0000 Received: (at 75626) by debbugs.gnu.org; 22 Jan 2025 00:20:02 +0000 Received: from localhost ([127.0.0.1]:58255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taOTR-0000dV-FW for submit <at> debbugs.gnu.org; Tue, 21 Jan 2025 19:20:02 -0500 Received: from mout.web.de ([212.227.17.12]:60207) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1taOTL-0000ch-73 for 75626 <at> debbugs.gnu.org; Tue, 21 Jan 2025 19:19:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737505188; x=1738109988; i=michael_heerdegen@HIDDEN; bh=T+OQL/NF85XYSC4B6kj48EAY/h5EVPDHkFSJwrW3nIQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=RqHgeIiek2Q+EJyXBahI0WwUbC6Fq5QcOjAtc2vxW3vSOnnACk14hzuVhj1eVrU2 zlFXUVuMorRvnWlg0uUphIf2Z26wVW8NukppjALZxNjE3c2rCgo/sMYvoKMlrAToX udLAdRB5Tbn2lRoPJi4y31ZsSz5gVLDfbKmtmB8thshgB4nPPD5Deqw1WpNEFm8SR maFJjpBJ+R476CCIXytGKLEiInGVjGDMEeGr0PDt0B7hfJNObhQ7W/UYLyAxQVVCu RZejpMnBczaIUbOc6hjrkkPUmKvTJH7tTqOzPDqbL8MMNnDo0zn3iv/AqZoik1gwM 8zHOV36QYGTdKUsXHw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1Mvslx-1tKvml1DyJ-00yaXD; Wed, 22 Jan 2025 01:19:48 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87jzan7wfp.fsf@HIDDEN> (Tassilo Horn's message of "Tue, 21 Jan 2025 21:18:18 +0100") References: <87r051khsd.fsf@HIDDEN> <87o705hv2t.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> Date: Wed, 22 Jan 2025 01:21:05 +0100 Message-ID: <87wmenaeby.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:L7g8CCsffbOE8R25nwmB7mE5dxX+sxVegCo7altu89p2ZDT/Vbi 9KslSjMCAEbBZGAXLE+8cnSKc9WXM1xQ5VN0z63WDrfvgxxFqXoyWxx/p8SPtn/t47QrGPu 0os4kAkcbdWxIrm/grz/k4RpVi+L4J/XNmiFT+V6iMSc62lJqWYshH2+TAc6Ai/0pScbLrN MjqJWX3OuthJIf7qW94Hg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:xWXxIWzpRZw=;dl0le46kKk1VAJVKsV92FexeNZx UNpoAm1fGqRa4byZuUmZVRCF/iiA6zFJJq8qXrJdtvHSofCASvL2zKmRAMqNHVbnS96Ahn2xI W76/f2WHGzqhsDq6IqJCWIhUMZhLtlm5n4PnJE9dfFFg6NNOuJNXUQThQvV7HDREdp3/oqd0F cliXN/PIzkVHi6KEIjqku0Oo9fRoTguj/7mS698DO8E0qf9JCAgSatkeW3QSniXyRolTuK9nf tM3Fhiee1gkEdYF600IXUqlugRR/t6ZTE2dGbWEsRq0uXkg+N2NegzZugzqfgpNmmcLY7ORjj ICnHGPgux5w5PE7rR3cLMR107GLXgyzcPObRJ4xazWg3LmHykihGaS4foJJoUWUDTgqdsnxab bV2lKaNl/hTJGdjILNl/jT7kZkRaReZ3PTsOQ/DDPpltfbqLubvuF06XbxmLxe3Vz5x+LZHym n02MDFi/6lZCCWsNaPIVopE6D5OUMcvbu/gJHxtR/0OXlrdkQhf9xK2R9iStiNaT1Mb9ZzYI2 vwbPL8Wpo3W5A/dhPodBQMLZVPNMMgJicJal7Sfd/GSSjKK/utFBsFPq0fHoZCAnc84RJiqEx qgVGxiuWIm5iinOz/FbaGHbW2qJcCaLw4yEs8nJr52HX9+hBcTH4diIV/jybLzGkRh55odYhs kwrTjTZg3HnEmhCZ0Vz4espq3vUmPYFux5J1KhUdPQ2zDOuStMNND7eLFyQ7iXbHyPENVXWPh vR7K99OM64rZpaWn0EgTVRO8l6VT6Y7WW3cnoppVlZocwrL8KfgUPE1sWhbF79qWYCzu1lg/c wUJMm/k9DYKyd7xrFSe3Zoz7TrwKm4HDHuKt9XFv10IhPz0+TbRamj5KfNCKwPp8xhIKzkxau wQOzvyD09/1c8Hpju0lR6PYNpr3H90K+HJ2YbwFtCl3MCj0RiCay5hH3SSjdhdwVYFzOAktxD uKQ3YVRh7qHBYi2Aw3sq0bUtiYe+T2S2zM0ZiU6z0oiO6Q4EK2E53mz8cvslBMQPR3tn3keO5 VyO2h+sAsgRYLTN1gUgeIBSB7UU4IiJkAHpBomGcOeeJLasjNpUw6IJwKhi43xB9k9MGf4pcF 2PHllkS/Ikpo/0CM8RSkctmUpR0Ovh6FB23vM4QRjNNXLDAktMS2iP7sbDwySyAPkJk25R/X3 tiGTqojhqZ3dCdbWRcKjH1tgygiaFL04G9ZVjcY474g== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Tassilo Horn <tsdh@HIDDEN> writes: > I have to declare emacs programming bankruptcy. The current version > with dired--inhibit-auto-revert works fine. Now I wanted to change that > into a more general inhibit-auto-revert. Here's the patch (with -b to > make it easier to grasp): Unfortunately it doesn't apply here. > That last hunk in dired-internal-do-deletions is due to a wrong fix for > the bug#71264. When auto-revert-mode itself is bound to nil when > auto-revert kicks in, the buffer will be removed from > auto-revert-buffer-list causing auto-revert to be disabled forever in > that buffer. (At least that's my reading of the code...) I think your reading is correct. > Anyway, the above solution with the new inhibit-auto-revert does not > work. auto-revert-buffers is called from a timer and eventually > auto-revert-handler is called for my dired buffer where the compression > of 1000 is still ongoing but inhibit-auto-revert is nil there and > revert-buffer is called causing the issue of this bug again. > > I can't understand why it doesn't see the non-nil inhibit-auto-revert > binding in the expansion of dired-map-over-marks. Where is the > difference to the current working solution with > dired--inhibit-auto-revert? It's bound the same way and accessed from > auto-revert-handler via the funcall to the dired buffer's > buffer-stale-function, i.e., dired-buffer-stale-p. I hope it's not related to the auto-revert-mode -> nil binding? Anyway, as Ship Mints already mentioned, you never created a buffer local binding. A `let' binds the visible binding which is in your case the global one - since there was no local variable binding yet. So you bind the global variable - which is not what we want but that binding should be visible nonetheless. I'm not sure why it does not work as expected. In some situations it can help to use a variable watcher to log variable binding changes: (info "(elisp) Watching Variables") Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Jan 2025 07:33:02 +0000 Resent-Message-ID: <handler.75626.B75626.173753115228234 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints <shipmints@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173753115228234 (code B ref 75626); Wed, 22 Jan 2025 07:33:02 +0000 Received: (at 75626) by debbugs.gnu.org; 22 Jan 2025 07:32:32 +0000 Received: from localhost ([127.0.0.1]:59445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taVDz-0007LJ-IU for submit <at> debbugs.gnu.org; Wed, 22 Jan 2025 02:32:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50128) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1taVDw-0007L3-BK for 75626 <at> debbugs.gnu.org; Wed, 22 Jan 2025 02:32:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1taVDq-0006LT-BM; Wed, 22 Jan 2025 02:32:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=McwmmyNqqr12xFbGTrGn7XhB/8NgOOhvkq3R8+fEL5s=; b=WU37WDNXCcJXp8qjQGAl U+iuk4vZ2WlIR7omTTXViKkjfzWuOeIs34/AM7sE9ud6R+V47t2aBkRBfAbKik9GYa6clfywJjXUW pUB45ZbwUwfeekYZA6hEcmILmp6GQ5sEQfXNbYJlg/0wWM/UAd+T8vVEI6pC/kpdrNAb6Rzd0Xv6e od5sYZ2vkcO1oatst99Ad2HzvrpsL5+lIjKdQgKKJqFs7e/46F2UlQqxk3xTpRMp98tcz30XLfKMT eady3HKsUZV2/oZiVCp3gmA/jNwC/ThowL67uhfFdNMyijKXaUeRenNoPGvOXnRicaKhnaxks+Ac5 i+okFHRCszhzXA==; X-ME-Sender: <xms:6p6QZ3ro594Hkglt0qmhEP5PCKydgdEjG3u5sx95oJsvXELIyMwArQ> <xme:6p6QZxq0Cah3NeCjfx90w4v8XGO58zT650Fic3pv3UEivmg6d5Tp3xKAIH_DQYN7k ly6hX0JtE00fQ> X-ME-Received: <xmr:6p6QZ0NjSc_sD7Pru8Z5vOmBcTOyFeiIaqdSWwZh7vdS6Z7aCYHqD4RZbIqLUrRvSEhwmA6yhr4RwyJRYF5Y4F-tK9SnyWhz> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejfedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepmhhitghhrggvlhdrrghlsghinhhushesghhmgidruggvpdhrtghpthhtohepjeehie dvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghh vggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrgh dprhgtphhtthhopehshhhiphhmihhnthhssehgmhgrihhlrdgtohhm X-ME-Proxy: <xmx:6p6QZ67hFBKKrkVNCtFFSPJLImHcmOiIdIbn_JjyBwmqHT3iLRtJVA> <xmx:6p6QZ24vUqIhf7teNw26cwR8IoKmW7GolZXGH5OvH8Urih2ZLbZcjA> <xmx:6p6QZyii6ZHKqRSoiDXXoXMUoHVWoE5JB93y2uhOzBptqQ_KUzHxNw> <xmx:6p6QZ46Mp6foVBOG8Q2J8sDlVI6mRuJxdmxg06KBSBjzWNETp7fUJg> <xmx:6p6QZ1I5N6poMNSYeeqLYmCUDfBo3aKI2HYcKPLoh8C1fLAuIbHJ1O32> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <CAN+1HbqyeqU_XRwoXCobCUQEjO6X_HsysRHz2DuNmxAs-UGjRA@HIDDEN> (Ship Mints's message of "Tue, 21 Jan 2025 15:26:06 -0500") References: <87r051khsd.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <CAN+1HbqyeqU_XRwoXCobCUQEjO6X_HsysRHz2DuNmxAs-UGjRA@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Wed, 22 Jan 2025 08:31:51 +0100 Message-ID: <87sepbmhi0.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Ship Mints <shipmints@HIDDEN> writes: > If mode changes take place during processing, you may need to "brand" > inhibit-auto-revert > > (put 'inhibit-auto-revert 'permanent-local t) > > as mode changes clear impermanent locals. No, that should not be needed. The mode stays dired-mode all the time. (Not sure if it would be a good idea anyway...) Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 22 Jan 2025 08:06:02 +0000 Resent-Message-ID: <handler.75626.B75626.17375331393874 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17375331393874 (code B ref 75626); Wed, 22 Jan 2025 08:06:02 +0000 Received: (at 75626) by debbugs.gnu.org; 22 Jan 2025 08:05:39 +0000 Received: from localhost ([127.0.0.1]:59587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taVk2-00010N-Se for submit <at> debbugs.gnu.org; Wed, 22 Jan 2025 03:05:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40716) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1taVjv-0000zy-Fa for 75626 <at> debbugs.gnu.org; Wed, 22 Jan 2025 03:05:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1taVjq-00075G-3M; Wed, 22 Jan 2025 03:05:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=DonbLFyJI9nTsEI6005sWcYuL5iziI+8hL+sPxtx/Qo=; b=EVphzjvyrHHb4vw2rLeV adcXhrxiMKNBsZ4LoxDQyyWag8neJN51eE9KjR5uOoyZmqB3VlXkfv7katEEIASFPaysxN/8k+zc8 OgN7h9IYFzZLlIiWcmutV44xP5mVJeY84OfpMBt2d5PClQdHCRCdz68Hq1Jw3D2dAox6Xcsh4ykCm 4wvlzfpfaWnO/TfLiEha0pmXNsKp/tVVik9YzBtpXyMX1qwfHKIRxJu0fsCFBahTu8afZR2djD0Yq lQuImq1Tphdby9TFppmaSWFN4cmQtNh5hgu5t2h39RIzrWjhqgB7Xj67YyVZnICflcJz1LRgf7m8X N2js4lZmrsOCSw==; X-ME-Sender: <xms:xKaQZ8fh9JVcZQskVtTF7st3PBOKG82NgH0FUfdgvgU5idqFXHBXkA> <xme:xKaQZ-MHh9m0FwIShWlImG6tuJcfdZrl2PyLw1kSur-gnl_Gh9kjlMgWsOZH2BXKV 65cVwpqv34kXA> X-ME-Received: <xmr:xKaQZ9ilOAbqCGVijqlVqJbROBHKnWmk_F5QwJbJ5O4vVxcXXHUlyUD6PVPwCr-NsWdkboFhnLW5dyPGMtFv-ghSAzlqRp3K> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejfedguddufecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehmtderredtreej necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepheejudejudefgeehfedtfeeuueeljedugfeuteeluefgueff ieekjeeutdeggfehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlrdgrlhgsihhnuhhssehgmhigrdguvgdprhgtphhtthhopegvlhhiiiesghhnuhdr ohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvg X-ME-Proxy: <xmx:xKaQZx8ZIgNLdLliSDMzFyf7YdicBuG2n25i-DeesVvOF-M9bJ1utQ> <xmx:xKaQZ4tQ7j49dS9vqvUau3KzdhYYDhAoh6RhLMxuz1tzB6JFxQq-sg> <xmx:xKaQZ4HJ3zKn1IPG8CElk35RnmtjyfHFFpzu2DvGzsPEHoKukzkWnw> <xmx:xKaQZ3ND3Mtc6TDDP2v2wCD3L9PpY0JZutZ6Nv1raL2SQ8BbZG5N3w> <xmx:xKaQZ9PWFqJPkJR4ZtTGN4M5li7GtAGmLZzE0_-Yz-g1nqGK0dKWPwM-> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87wmenaeby.fsf@HIDDEN> (Michael Heerdegen's message of "Wed, 22 Jan 2025 01:21:05 +0100") References: <87r051khsd.fsf@HIDDEN> <875xmcpl7g.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Wed, 22 Jan 2025 09:05:22 +0100 Message-ID: <87msfjmfy5.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > Tassilo Horn <tsdh@HIDDEN> writes: > >> I have to declare emacs programming bankruptcy. The current version >> with dired--inhibit-auto-revert works fine. Now I wanted to change >> that into a more general inhibit-auto-revert. Here's the patch (with >> -b to make it easier to grasp): > > Unfortunately it doesn't apply here. Yeah, because of the "git diff -b" flag omitting whitespace changes. >> That last hunk in dired-internal-do-deletions is due to a wrong fix >> for the bug#71264. When auto-revert-mode itself is bound to nil when >> auto-revert kicks in, the buffer will be removed from >> auto-revert-buffer-list causing auto-revert to be disabled forever in >> that buffer. (At least that's my reading of the code...) > > I think your reading is correct. Thanks for validating. >> Anyway, the above solution with the new inhibit-auto-revert does not >> work. auto-revert-buffers is called from a timer and eventually >> auto-revert-handler is called for my dired buffer where the >> compression of 1000 is still ongoing but inhibit-auto-revert is nil >> there and revert-buffer is called causing the issue of this bug >> again. >> >> I can't understand why it doesn't see the non-nil inhibit-auto-revert >> binding in the expansion of dired-map-over-marks. Where is the >> difference to the current working solution with >> dired--inhibit-auto-revert? It's bound the same way and accessed >> from auto-revert-handler via the funcall to the dired buffer's >> buffer-stale-function, i.e., dired-buffer-stale-p. > > I hope it's not related to the auto-revert-mode -> nil binding? Nope, that's what I reverted first to check if that was the culprit. > Anyway, as Ship Mints already mentioned, you never created a buffer > local binding. A `let' binds the visible binding which is in your > case the global one - since there was no local variable binding yet. Ah, indeed. So now I (setq inhibit-auto-revert nil) in dired-mode to create a local variable in the buffer. > So you bind the global variable - which is not what we want but that > binding should be visible nonetheless. I'm not sure why it does not > work as expected. Me neither. > In some situations it can help to use a variable watcher to log > variable binding changes: > > (info "(elisp) Watching Variables") Oh, that's a great hint! I've tried with this watch: --8<---------------cut here---------------start------------->8--- (add-variable-watcher 'inhibit-auto-revert (lambda (sym new-val op where) (message "(%S %S %S) in %S" op sym new-val where))) --8<---------------cut here---------------end--------------->8--- And what should I say, it still didn't work in the beginning, i.e., the previous version of my last mail + (setq inhibit-auto-revert nil) in dired-mode to create a local variable. The watcher showed that after confirming the compression of my 1000 test files, a set with value nil was done but I have no clue from where. Then I edited a bit back and forth and recompiled and tested (with emacs -Q) after each edit without actually changing any significant part, e.g., I tried to also let-bind inhibit-auto-revert to t in the function dired-map-over-marks-check which uses the macro dired-map-over-marks. Still not working. So reverting that again. And now I have the patch at the end of this mail AND IT SUDDENLY WORKS. The output including the watcher is this (commented by me): ;; That's for the confirmation query (let inhibit-auto-revert t) in #<buffer test> (unlet inhibit-auto-revert nil) in #<buffer test> Compress or uncompress * [1000 files]? (y or n) y ;; That's the actual compression of the 1000 files (let inhibit-auto-revert t) in #<buffer test> (unlet inhibit-auto-revert nil) in #<buffer test> Compress or uncompress: 1000 files. Reverting buffer =E2=80=98test=E2=80=99 So exactly as one might expect. And the last line suggests that inhibiting some auto-reverts is not bad either, it'll be reverted in the next round. But I really wonder what could have caused that it didn't work initially. Yesterday, I've rebuilt emacs without native compiler in order to rule that out as the culprit. Could it be that a non-native-comp emacs still picks up outdated eln files? Well, then the question would be why it doesn't anymore... Anyway, below the current patch. It would be great if someone else could test it, too. Obviously, the new inhibit-auto-revert should be mentioned in NEWS and the elisp info docs which I'll do and post the final patch for review before committing. Bye, Tassilo --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=inhibit-auto-revert.patch diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 1dcfe8e911f..0cd0623c59b 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -778,6 +778,11 @@ auto-revert-active-p auto-revert-tail-mode auto-revert--global-mode)) +(defvar-local inhibit-auto-revert nil + "A non-nil value prevents `auto-revert-mode' from reverting the buffer. +Should be used in let-bindings to temporarily disable auto-reverts in a +buffer.") + (defun auto-revert-handler () "Revert current buffer, if appropriate. This is an internal function used by Auto-Revert Mode." @@ -787,25 +792,27 @@ auto-revert-handler ;; the values. (remote-file-name-inhibit-cache t) (revert - (if buffer-file-name - (and (or auto-revert-remote-files - (not (file-remote-p buffer-file-name))) - (or (not auto-revert-notify-watch-descriptor) - auto-revert-notify-modified-p) - (if auto-revert-tail-mode - (and (file-readable-p buffer-file-name) - (/= auto-revert-tail-pos - (setq size - (file-attribute-size - (file-attributes buffer-file-name))))) - (funcall (or buffer-stale-function - #'buffer-stale--default-function) - t))) - (and (or auto-revert-mode - global-auto-revert-non-file-buffers) - (funcall (or buffer-stale-function - #'buffer-stale--default-function) - t)))) + (and + (not inhibit-auto-revert) + (if buffer-file-name + (and (or auto-revert-remote-files + (not (file-remote-p buffer-file-name))) + (or (not auto-revert-notify-watch-descriptor) + auto-revert-notify-modified-p) + (if auto-revert-tail-mode + (and (file-readable-p buffer-file-name) + (/= auto-revert-tail-pos + (setq size + (file-attribute-size + (file-attributes buffer-file-name))))) + (funcall (or buffer-stale-function + #'buffer-stale--default-function) + t))) + (and (or auto-revert-mode + global-auto-revert-non-file-buffers) + (funcall (or buffer-stale-function + #'buffer-stale--default-function) + t))))) eob eoblist) (setq auto-revert-notify-modified-p nil auto-revert--last-time (current-time)) diff --git a/lisp/dired.el b/lisp/dired.el index d2071d80bf3..eef1fdd50dc 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -944,9 +944,6 @@ dired-mark-if "")))) (and (> count 0) count))) -(defvar-local dired--inhibit-auto-revert nil - "A non-nil value prevents `auto-revert-mode' from reverting the buffer.") - (defmacro dired-map-over-marks (body arg &optional show-progress distinguish-one-marked) "Eval BODY with point on each marked line. Return a list of BODY's results. @@ -983,8 +980,8 @@ dired-map-over-marks ;;endless loop. ;;This warning should not apply any longer, sk 2-Sep-1991 14:10. `(prog1 - (let ((dired--inhibit-auto-revert t) - (inhibit-read-only t) + (let ((inhibit-read-only t) + (inhibit-auto-revert t) case-fold-search found results) (if (and ,arg (not (eq ,arg 'marked))) (if (integerp ,arg) @@ -1294,12 +1291,6 @@ dired-buffer-stale-p ;; Do not auto-revert when the dired buffer can be currently ;; written by the user as in `wdired-mode'. buffer-read-only - ;; When a dired operation using dired-map-over-marks is in - ;; progress, dired--inhibit-auto-revert is bound to some - ;; non-nil value and we must not auto-revert because that could - ;; change the order of files leading to skipping or - ;; double-processing (see bug#75626). - (not dired--inhibit-auto-revert) (dired-directory-changed-p dirname)))) (defcustom dired-auto-revert-buffer nil @@ -2796,6 +2787,7 @@ dired-mode mode-name "Dired" ;; case-fold-search nil buffer-read-only t + inhibit-auto-revert nil mode-line-buffer-identification (propertized-buffer-identification "%17b")) (add-to-invisibility-spec '(dired . t)) @@ -4089,13 +4081,12 @@ dired-internal-do-deletions (while l (goto-char (marker-position (cdr (car l)))) (dired-move-to-filename) - (let ((inhibit-read-only t)) + (let ((inhibit-read-only t) + ;; Temporarily prevent auto-revert while deleting + ;; entry in the dired buffer (bug#71264). + (inhibit-auto-revert t)) (condition-case err - (let ((fn (car (car l))) - ;; Temporarily prevent auto-revert while - ;; deleting entry in the dired buffer - ;; (bug#71264). - (auto-revert-mode nil)) + (let ((fn (car (car l)))) (dired-delete-file fn dired-recursive-deletes trash) ;; if we get here, removing worked (setq succ (1+ succ)) --=-=-=--
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Jan 2025 03:25:01 +0000 Resent-Message-ID: <handler.75626.B75626.173760268925196 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173760268925196 (code B ref 75626); Thu, 23 Jan 2025 03:25:01 +0000 Received: (at 75626) by debbugs.gnu.org; 23 Jan 2025 03:24:49 +0000 Received: from localhost ([127.0.0.1]:38355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tanpp-0006YK-8S for submit <at> debbugs.gnu.org; Wed, 22 Jan 2025 22:24:49 -0500 Received: from mout.web.de ([212.227.15.4]:53169) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tanpj-0006Y0-UW for 75626 <at> debbugs.gnu.org; Wed, 22 Jan 2025 22:24:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737602677; x=1738207477; i=michael_heerdegen@HIDDEN; bh=ITqLtemJrYsEzmCgDerLs5qlEdg5Zd9SKTzHIaevr3Q=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=PIER7z4frnKjO9sMqRtvB5tYbhqvwO0sZu0lXOCmjhArIvCFtPacvZVs17NL03Xp +bc7oXBqUicx6lxAW5J6I7YP1j702LksAZB2dwiC2bUOXCGi7Z1aI307GQwXUsyuP yXBL7wT0wbEc3SehGc4M5RgyZBT1s8MShm1SlfLG7aYHumvUt5bs9tLIJWHr6Qzcr no/Y0j0i12YeB9jMYRIA814LfPYT/0zYnCfRkakHOCcJ/UjAoGhbvZXD1mtjuucDm OGt5aPDlZ+vGfNcg//DOJ+OsrLTeuXb/agenrAx1uNSQMTW6NIlKdf6CgDLg0jqts lLSbiR4Oe5LEbGxIQg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.251]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MftC1-1syzAi14y9-00bjay; Thu, 23 Jan 2025 04:24:37 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87msfjmfy5.fsf@HIDDEN> (Tassilo Horn's message of "Wed, 22 Jan 2025 09:05:22 +0100") References: <87r051khsd.fsf@HIDDEN> <8734hfsgl6.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> Date: Thu, 23 Jan 2025 04:25:54 +0100 Message-ID: <87sepa1a9p.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:yPav8f7umYemS28WX5DfyMZSFnb9o67XsWBPne11ZYRAWTBKEPq xfYSKATjrWhs2YHiFZ0SE3QUVBUODixB/HFQ+01ujf5e67XnsdSVhReUKq0xOoTjceVOp/w NnTAfnsI7A8f/HviDX3qpxyibi4CBlRUgqcRiTAYffPc0RXkboRkdPumzVWRExa3ZPrhmgQ yjOh12FzPQvBKGylDmnuw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ahlAF8sh6Gw=;8lN1ER1wSgCALaLzF0zHTSu6SF/ VktJYbadKfPyJk6x701RlI7lhmwsnmUeiX1DivoSmejJ/U1XZHclI/hTs87TZ3iWOGiLpanWw Zrtw03x9D97nfBgVxn6hJtCfC4yzDWaLnLlubwq7S2aXKdr/ryk3dTnYpa9Fcl0uwa+/PulCL LX+g34IsRFk3kCjciK6N/r9Bgma1AlzgMKKY2sIH2lgZsknKYeE7SlcUs/3ghQw94KPt3wsbn qd1hOgZAT9+v2RcZqqdfxqqr3FLOYO0Bm2mgiLzzpcB6US5YJ0P8QRNGhU73blTVxR0MX17pz u/dz8+lCwJiDWGpdECP1ofgDbJtX//kvuNnujSY5qAS6/FdZLzdZshOsM9b3UzqlX1AjeH2Wy yDm1pyfM14y0E1G8v9EWXEY9h8iawlqS2jSGkVmRmEQ06WpOx4qQmwLVWKq8xsrVh7/XlFgWv tt1RTIWhPqcrF1q9sTM/HzPg3oYohjrG/k0T9gmQtCHh8mO9yUJUVbkHZKVbTCMzwwt0mr9I6 NnWbia8bXX5jVMUyKEn0CnVRQbbzcQjVzvz4XPEHK1Si79v8kA0TSjIPnNVqw7dZup6J2q0Rz a9yL/oXl1kTtohca/d8qmtXfmw7TV+BcvgESCAkhYUyERmp2h0U1LbLS+RXJHAsuEOVIc0IsG m6eVx9YPRDqIZpg3KBX7hzHEUPrSPHT7zmDiofzVQIxtsmJLvl0kZIO7gbuAitF5IuhVryX+E J9maUKBFCYGlAlBguK8gnJ2k91VkDjxfANoKmxrfU0mnTb83YefjZiUkHSuklgBsHUteFFvHn RE9Pgylhd7RN+jUXLESnjZTRHVILB+zAlY7sliItOJWP+k0vQwFYC2f7APGHX1+sQUo5Le8vO aLCwU3q/ldkpMfFnlTKRpHVP20VGxs51D4h4eka4APVBzI/uBfQGQ+Wem/Cmxu/zJ8RaPt5th tx/Hs02VYsh9+tghVfxsGh52V1NyUciXaBlv2mK/mugZ3OyD2pq6z+mjVg3N+VqTC7z8NjjSq rPHvswz2Ihsd9CeC9SUFf/BbflWNqefBHsjksgf5t5ClGpdQW6b2yxlW3KDVqfLCMjftCk9b+ sc6qr6secPlSFb0bGa+1HuFFi+L+K/Tn1Km2CVESSl4ua8JsK59PEWUfBEx9AiRkWLimYGlvr MvjTZoGvqbUhTwoysH0D+vvf+rcrABejcoAdFvjUE6g== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: > Could it be that a non-native-comp emacs still picks up outdated eln > files? Well, then the question would be why it doesn't anymore... Don't recall, but it could be. > Anyway, below the current patch. It would be great if someone else > could test it, too. > > Obviously, the new inhibit-auto-revert should be mentioned in NEWS and > the elisp info docs which I'll do and post the final patch for review > before committing. I'm a bit late, and very sorry for that, but: doesn't this just introduce a restricted twin of `buffer-stale-function'? This variable is already buffer local in dired buffers and can be used for the same purpose - or do I miss something? Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Jan 2025 06:28:01 +0000 Resent-Message-ID: <handler.75626.B75626.173761363028942 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173761363028942 (code B ref 75626); Thu, 23 Jan 2025 06:28:01 +0000 Received: (at 75626) by debbugs.gnu.org; 23 Jan 2025 06:27:10 +0000 Received: from localhost ([127.0.0.1]:38754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1taqgI-0007Wj-Ee for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 01:27:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55662) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1taqgF-0007Vy-Cn for 75626 <at> debbugs.gnu.org; Thu, 23 Jan 2025 01:27:07 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1taqg8-0002gs-KP; Thu, 23 Jan 2025 01:27:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=3QMe3I9z1NQwDKGkm/QkX3A09Wx+FQbAnYYV69VnBws=; b=dSFUyCA9HjXJ/Qs6YDP7 azSxSsonLQl1xpNueWJKSNv24Ejpi2ESrqw3EawmO2B+xTVsJ51N560QkcjLcjQeAngJkk3wBd6W/ uKjftXMnu6ILg/qxcS+l2yiOo+uBf9L4k+PMfXzE2PfmnVvcucvVhGlc8jZTC/hFSjLE3HXkS8R/w gcFeou9Ul/nQGokb3VER16vhyttbJLr5Abo2a6/EgmfnlJfBxktFb8XNY/vhPhx/rY1bWLPd/bQSp UYdTrbAJd0sV+IYL1ty8Gt3pXVLoX1aDoNptbEwBFizzEcZgCmtr4tCZxjFDbYh2+DxC1wFRCnR1g rCrzYQ5pGYwjZQ==; X-ME-Sender: <xms:MeGRZxt8ZKtu2H_RI-8KIUVhLbG3UdqXZ65Wc5H1s-HPsXEcCkd7xA> <xme:MeGRZ6c1I1z3hE2rVxGf37X9FsMqA5RIXgnYlH7vWRB8b5-fZP3xUxEnxrpABq4Ql ils9gEdqafTdw> X-ME-Received: <xmr:MeGRZ0w6hhw-90Ze7V4DWm-QEQ65LG76PSL-3cmEDA5HLqJERLZoknGaUYVFrCfuKdcC9TSMpTZuqNZlgb9SaBtBYQY> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttdertden ucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenuc ggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeghefg ueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieej feekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilh drfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthho peejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrg gvlhdrrghlsghinhhushesghhmgidruggvpdhrtghpthhtohepvghlihiisehgnhhurdho rhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigvsgdruggv X-ME-Proxy: <xmx:MeGRZ4OGeqjZUy_eX4BcDBS05GzMUZbSQFtGBBIsCfL75vDIrjYLzg> <xmx:MeGRZx-8DKjmBivOkWVhxijzcFELC21c5wq7dpd1dGeadiRtN7CR_g> <xmx:MeGRZ4WP6s1aVakBRoI4IYU4Zbhz9h4ari2Fh-gSY9VKDDbWmZqxwA> <xmx:MeGRZycrCoGU4RZya9oN-Jrf-vtZHUWEV-TlybG65uSFn9PmFCJIMg> <xmx:MeGRZ3c2vrZDYDjIqQfd3epEnnIbIyOTrKEHbslL878rm1PXwMzwdqw0> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87sepa1a9p.fsf@HIDDEN> (Michael Heerdegen's message of "Thu, 23 Jan 2025 04:25:54 +0100") References: <87r051khsd.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Thu, 23 Jan 2025 07:26:50 +0100 Message-ID: <871pwuavv9.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >> Anyway, below the current patch. It would be great if someone else >> could test it, too. >> >> Obviously, the new inhibit-auto-revert should be mentioned in NEWS and >> the elisp info docs which I'll do and post the final patch for review >> before committing. > > I'm a bit late, and very sorry for that, I'm not in a hurry. > but: doesn't this just introduce a restricted twin of > `buffer-stale-function'? This variable is already buffer local in > dired buffers and can be used for the same purpose - or do I miss > something? You are essentially right. If some code wants to inhibit auto-revert it could also do (let ((buffer-stale-function #'ignore)) ...) although, I think, that auto-revert-tail-mode could still tail-revert for file-visiting buffers. That said, I think the new inhibit-auto-revert is much clearer in what it does. We already have a lot of inhibit-* variables, so that's where I would look first when my aim is to inhibit some action. FWIW, until a week ago, I had no clue that there is a buffer-stale-function and that it has something to do with auto-revert. (It probably also has other uses, so maybe let-binding it to #'ignore could have side-effects.) Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Jan 2025 09:14:02 +0000 Resent-Message-ID: <handler.75626.B75626.17376236078170 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17376236078170 (code B ref 75626); Thu, 23 Jan 2025 09:14:02 +0000 Received: (at 75626) by debbugs.gnu.org; 23 Jan 2025 09:13:27 +0000 Received: from localhost ([127.0.0.1]:39235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tatHC-00027i-Ue for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 04:13:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52760) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tatHA-00027L-11 for 75626 <at> debbugs.gnu.org; Thu, 23 Jan 2025 04:13:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tatH2-0003yw-5x; Thu, 23 Jan 2025 04:13:16 -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=W4tneFGfYZSpGvtgS01b+8abzO4rP1Lrg4VkS6rpyOs=; b=TcmKGzs5QAtj OBhQ8gCM8lvQV+Po8dzmV3RwyM4YPtmhs3raSAf87nBml1R76uPdvt/JRhBU/kbi5/kmo4ZSP9YTZ 2NivXup86nlvkzc4u39b+4QtvaLhBsSHQnG2/hybQxC629CkQc9Muw5Joz4SsiJiyHp9Rd8h1V5r3 6g6WDXiQo1qJv8+tt4p0mbSo/O74KZOdKKYq9IaPvIyxXouKo6SWPjnYMD5o9R1ZJP1zhlM9rugqp 50huMFHr7mYqsec+hlT7vHtJGGJugYPzm2JjTbOvHPsrpMJmx5UgcmjT9vAfEH5FWVggvPCXmJ/w3 TxfBP1yR3Dn4YsbWdP/DTA==; Date: Thu, 23 Jan 2025 11:13:12 +0200 Message-Id: <86plkd28rb.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <871pwuavv9.fsf@HIDDEN> (message from Tassilo Horn on Thu, 23 Jan 2025 07:26:50 +0100) References: <87r051khsd.fsf@HIDDEN> <87r04zw0sr.fsf@HIDDEN> <87ed0ygsmi.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN, > 75626 <at> debbugs.gnu.org > Date: Thu, 23 Jan 2025 07:26:50 +0100 > > Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > > >> Anyway, below the current patch. It would be great if someone else > >> could test it, too. > >> > >> Obviously, the new inhibit-auto-revert should be mentioned in NEWS and > >> the elisp info docs which I'll do and post the final patch for review > >> before committing. > > > > I'm a bit late, and very sorry for that, > > I'm not in a hurry. > > > but: doesn't this just introduce a restricted twin of > > `buffer-stale-function'? This variable is already buffer local in > > dired buffers and can be used for the same purpose - or do I miss > > something? > > You are essentially right. If some code wants to inhibit auto-revert it > could also do (let ((buffer-stale-function #'ignore)) ...) although, I > think, that auto-revert-tail-mode could still tail-revert for > file-visiting buffers. > > That said, I think the new inhibit-auto-revert is much clearer in what > it does. I tend to agree. A boolean variable with "inhibit" in its name is much easier discovered than buffer-stale-function.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 23 Jan 2025 23:34:02 +0000 Resent-Message-ID: <handler.75626.B75626.173767518811775 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN, Tassilo Horn <tsdh@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173767518811775 (code B ref 75626); Thu, 23 Jan 2025 23:34:02 +0000 Received: (at 75626) by debbugs.gnu.org; 23 Jan 2025 23:33:08 +0000 Received: from localhost ([127.0.0.1]:42805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tb6hA-00033r-E4 for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 18:33:08 -0500 Received: from mout.web.de ([217.72.192.78]:46477) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tb6h6-00033H-32 for 75626 <at> debbugs.gnu.org; Thu, 23 Jan 2025 18:33:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737675170; x=1738279970; i=michael_heerdegen@HIDDEN; bh=WMuwvNO9/k5XcTHu5qCCMoAPgNtvML/F8Ft6FGE5Sb0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=uqKHgyxQjnbvyGk4x32Z5sOBycLxXl1Li09A3BIDYvJKEAYknrAwZKetHeRt2MVa qmPcP49KrVnnTd9/qxn2tYHs8XGWdLEjQ1srNUA+8WkL7k0kiKM8yna8xqo0lFaz0 6d9Z2eGLRUSOZIRGHNEeyLx+8+ciJxKge842dNTPxH7Qo5aR4wKjcnbJ5SMCIOZkk CaL1Sqsgd1FBDC0I5/VYoBYPxL2iUSkCzGRF0gYq3ZCgJZjeZfVpiyRI1Tu3ul9u/ pobJKqpXtAbE3uu4nexvHkcXx4QX6mV9CYiv8z1pVcGPMjv8UQwyWnQ8r7709Park mUxds9aji5RABAgRHw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.251]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MECCd-1tlJp91LaX-00HF3H; Fri, 24 Jan 2025 00:32:50 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <86plkd28rb.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 23 Jan 2025 11:13:12 +0200") References: <87r051khsd.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> Date: Fri, 24 Jan 2025 00:33:38 +0100 Message-ID: <87o6zx14x9.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:6zQRi7UycJPm+xCfgt67386Gdzkho+OANQS3wvD+wgG7vh2ow69 cUdAxJYQii6in65pW3iVh4PRk3MCnmw2KiAkPfYpPE0L7qWSMRL+za9KgY3xNMEZc4hftFi AwB2j0frsi1E8Lfv00hi7dPt7y8GStA7tdIck9XkCP70DNGbD9zav3hj7oqfj+nSSjCbuQv aNtHqkFlH+KpTdt3Rk5ww== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:kUfpNKxFz34=;09E+Tu7oSM9nwoJ7r6DoSX4uXLp VXtWNvg6fGQA95YP5ufYtPBf2pGtKNwPZGlVQIphUi86kiPZh+cA15JS5tAyHc7zwwaK75weN iXtTnXtfqD8MHEHuB+ztQtjlHELABF6nVIPAR8NIOdTO22fUTiqYu4KO8tdYoUuFKG0Z6KbwV A+YhFKYlwhaE1jwPcxzMf0msmBq3YyHJ6hYDGgSlMmh8TTOPq0Pzi0e6RO4PyB8mHe0+uTow5 0jxCcihjGBF90GWAU7IJjBC5KGucZwL4UPXoJGmTzAF5eIq50vaQiN8EM2v3gNcIgwkDRZuOv 2C0zWZ26ntbqyzrvStwawwhAYIkWRMjknDUxs3xsDk3xPLgengFLf2PC1iulYH+Tl2phH831t BwoRNhttrW8yxKyx/JLrrw6EXL/j5vdTcrXf+CrAHoAdn8VkQmk7e9PZIXbyBgpej60gy6q3G 0v5Amq1ZAl734TCR3mBgflG8o3Rf/hTIqxTNGHMF2z3O6/G7v3/ncjmY7WAKaLR+CZ3tt+dCZ lHlXmLosE3f9Gqkm7GY8iMO+VoySrX24hFH8oyBSXo0HDe1wTSLl8srHzRWmutpuP/GFQ1HaR Da+tXSJaAlhZceZCZ0gInJbkcZx5RtrpLJ7I9nlQDKrd9Kzg74wRa4/uITTpyBq5RypVxe/dh 2zx4aa4WG4KNzm08DOz5KD1A1cpp5ICLXYsZjXae3fBNhkBQvpnlr2ahHXrCnTEBJD1Ov3q7q nYNmLAg6kZnbXhm1404S3YRfkBenr1XvhGOiPvc2P0y3/eAFIw/oGJTPC2lQ+sTz8sbnfFRBp jJrSpqcT2XxFMyTJOOQhvxXNpFEkLvYof8U7zK+I/KlQwtjSynavxdng8MhEUGnSrF3Xjtf2Z fHNBS0B5FX2Cy/Ti0qNgbnaTsUQ+KZzgcoLHXAFDM9YlOiVYOtOl9+2M58j7P07ldClk6kosg AnAgdd1WfyNT3jdIQELXyRP9Rrubqx5EvMhDNJoP7jihuD8YhNpmVC+yauV5smn0bMEMVESL9 pwzegy/DxSAaUI5anschSEnpUa37xXpbkoHWSyvAEVuYrpYu4YQ4MvREMc3ZKSJw1eCh3rHnI 9AM6+l0RiRbzPUuOUe3ntn8LbaucPTBRRyuMcct7yiPuJ3Mi+czsMDsq4FafGMCkF1Hua5DC7 qHfnOWc4OP2a4AsX6HOQSpZI2IRsvS9jdBVvO0ZC9CQ== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Eli Zaretskii <eliz@HIDDEN> writes: > I tend to agree. A boolean variable with "inhibit" in its name is > much easier discovered than buffer-stale-function. Sure - but discoverability is not the only point to consider. If I think this thought further: In case of dired, the decision about whether the buffer should be auto-reverted is made by evaluating a (not trivial) condition and thus we use a function value. This is hardly avoidable. When we introduce a redundant new boolean variable, we would have to decide what happens when the two disagree - the result could be surprising. And when one would need to debug auto revert, one would have to keep an eye on two variables instead of one. A complication without any practical benefit IMO. As we saw, finding a fix for a simple related bug was already not easy. So i would rather consider to rename the variable `buffer-stale-function' for the discoverability - or just leave things as they are. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Jan 2025 00:59:01 +0000 Resent-Message-ID: <handler.75626.B75626.173768032526567 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN, Tassilo Horn <tsdh@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173768032526567 (code B ref 75626); Fri, 24 Jan 2025 00:59:01 +0000 Received: (at 75626) by debbugs.gnu.org; 24 Jan 2025 00:58:45 +0000 Received: from localhost ([127.0.0.1]:42929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tb820-0006uR-NM for submit <at> debbugs.gnu.org; Thu, 23 Jan 2025 19:58:44 -0500 Received: from mout.web.de ([212.227.15.3]:39893) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tb81u-0006u8-Tw for 75626 <at> debbugs.gnu.org; Thu, 23 Jan 2025 19:58:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737680310; x=1738285110; i=michael_heerdegen@HIDDEN; bh=g+khy4VzQjI48usTEqMhBZH6AfXUDoWtFIKc8Ia5ni0=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=dN1XZ18fH+v0wcBj0Agci1zrM81ZCr9EHgC8rWamDsNugS4QYELwaK6nCR07bPUh mSmozH0L2qqxEBnk2CbX4jqQWzJZu20Lmkap8r+hfjWqzrUuzHoPLD87+V5hxqKtI +xrJR5iaLNJrQBZx13FmpNDUGhpd30Uv4xAIeAo3lhTptFV4ElG2QvS64l60EPiTR qvTAyqAHG+9Qh/VRzm9P+s7k0yJk9Iish2eKk+svf4fxjuRL+6+oXHOzZiFjYd4o+ s2UKrbewSBuaN4RdDTNkGV6KAbv5ciidn/AIGdbC4cWa8d1ZnR8IL9PWqot80a2HM Kf/5lQ38hbjDgvE/ig== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([88.66.201.189]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MJWoe-1turq20ETA-00OS6J; Fri, 24 Jan 2025 01:58:30 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87o6zx14x9.fsf@HIDDEN> (Michael Heerdegen's message of "Fri, 24 Jan 2025 00:33:38 +0100") References: <87r051khsd.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> Date: Fri, 24 Jan 2025 01:59:47 +0100 Message-ID: <87jzal10xo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Tngc2/PQ71EVCB7QawA4MFv9Ylrfq/b7TV+Xn28p8J7d6GgBb4j Kduc7SOBdrP09geQBlJjD3L9jYffkwCNUE/scPvkl4eC8UnY0IAzLZMpXKq8x4Fxwh0Nr9J AzqZq9E6RFZVwoNyAHqaOQeF7LjElDb2krGoEMKwNVFat6GETyIoInWEH8x/DDa0pl4wQmB JmucjIPZV9qqEeott2uDg== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:WAS4PxtAP+U=;45eWsaGfATTF2sEqtrgGMEfE6Dl MEM45Bb+ZWbQakhK/OEd6tq+lcQi6ledOwJ0aq+sBNsHVRLFvnw5rl7iSEEKXQO70ngfrF/Eu uqwpUIRo33tNf/O0Xa0TQajqCKXYdBLFe29rdFlFWyYYElTWw3fZ4sKNy3EPRhyK0vTgv0Qpd EKh5e45t4qO4T7Fnchy+8iw1fYHXvNBGegRvqBD3ZE/yH+fl98ppqSNr9U87VLD2WRNTIzfw+ IoaSO6+9CjFX9LWQNvC/Ygx3AMEy/SNZR0BGf2Qg2ZQ8ffq52e7uMnVbgRvuiFB7E+otiuSgC GE1W+niTWFaL8xNJ7fih28bRadINOVx5IaBMzFd4zTADLZk3t7cRgNpo0PfizwUJAZUINA8M4 tTdgSZiaPsGST/8euDi0lc4Nr5hdoYP5PoU4VMbiAkrHZl7N0QfvE6BkVCuuhFBot6i89wPaN Dgz1Uobel8fmfSEYIPaE7+R/qxAtwZTjb6t6jm8BG0O6tpeQutBrVFDBdpjSCxAqnVr6i7eS3 F8ztdiNVA1bFVDtiLbTgkSKj0NNLThoviLWyEMhzfANRn50x5DCRFQt1vU23NlpG9wTfoNZXo 7z+dxfwEfccDGWWKyFWZukcwkGJKpJY+Z6hDLJB3y9yh+kY1lO+Hv1drFsMPtdKgwXoSmdU0L 9G4t0GdQlikZsia3LGGjbXnX3oLORhxB5JCQFHTYYc0CjX38RvHG31C1Yhba/bSyDaoWvME3C nwQnDAI7qE+hHLnZ6cX7s/iVaQJNGOcLtyZrhNY3UJO/yONE4GcXI/PeuW6e/QzUO+uE9NyXx TMW2gdfZfKo+Tu7pCI9hqmLUt3or+GBZwqDAUrGmISQr7sjwW9ZaX0TXU2yNf7+Kual27/dCM G3jyEZ7tlqMjx/vR5N8b5DODOfPiPJuiJgVi+U8wvb1H9pJ/KGpbI3G3wmSM6j0Zhy19eJ9PP eY7X0FOcYuuQhU2qS5lYZWdT4Qme813wV+frrRcTr5WpWQ0v27oxGLoRmdgYschei6hjJ4KX3 pf2AuozOol0K4Zaa96BJW40WvPRGsmuGqZrSBI81EYEd0YDwtzyl55Fj4DbZXC4ZUo/UsPtYr Us6ubDoK7Dz+a2lJ0POoO2pIZb2MJhQah/nkIgXsoeOTXfltJ8dPCsmXIX8X4BexTgWEYPbXo Vr+iesRWFzdd38vn2dmPTM1LrQHBS6+Li+omeulPRSX47dpeNCwj1p5KpUidP6kCOQS+8oQoK jE88EnqPYnujIagkcR3XTW+50jFH9JQhIls7r4IKMksla8yE1yZi3gaj8X9EnrAgZZqIBS9UZ bwgPTqd7GGPtdewivWJAV9AKw== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) I <michael_heerdegen@HIDDEN> wrote: > So i would rather consider to rename the variable > `buffer-stale-function' for the discoverability - or just leave things > as they are. We could also rename the variable and pretend it is normally boolean - but a function value is possible in addition and has a special meaning. A not uncommon solution. Maybe this is what you had in mind? There are caveats, though: - People could be tempted to set `inhibit-auto-revert' to t and later to nil, erasing the former non-nil function value by accident. - People could try to inhibit auto revert globally (which would not be possible once buffer local bindings exits), or may overlook the fact that binding this variable may affect a global or a local binding. I think this is something to consider: catchy names increase the risk that such details are overlooked. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Jan 2025 06:26:01 +0000 Resent-Message-ID: <handler.75626.B75626.173769992419687 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173769992419687 (code B ref 75626); Fri, 24 Jan 2025 06:26:01 +0000 Received: (at 75626) by debbugs.gnu.org; 24 Jan 2025 06:25:24 +0000 Received: from localhost ([127.0.0.1]:43331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbD88-00057T-89 for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 01:25:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49818) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tbD85-00057G-EI for 75626 <at> debbugs.gnu.org; Fri, 24 Jan 2025 01:25:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tbD7y-0003bt-J7; Fri, 24 Jan 2025 01:25:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=c/OOrTs6MsBon2cSEd4HkfGfzoDLvXDpwwQDWSJw7nM=; b=rvCPuqO3NUH7wxmFQVM2 z/eeCKHTn6QcwLDNp4EEEj/idMtwVLALNu9/dgnfXuBD9e4YztRnoqUmYSlC2PMgr3lheKS7nZiYL wi5+Ah/dSIp1b0jEChqS9FsXhXe0ec1RrUXsmuYUcIp4iAGHdOlzRuUeH81yrKD2Q9tdnw8gJLZB1 5rw31+/DJc2eBHxu0TgGHWRVQBOzp1xV5xE3QG1C967lm9t3zzQ69lrx4zYaDtU/TRwNBU//RwokL 7zrT7D951pxzIuGnwpRp0rog4FFHRsPX+FtEduwzV+n9akT/Awy9UTdclGny0AnYBtD4DvkrWKV3X g1WNI6TPQWu7Lg==; X-ME-Sender: <xms:PzKTZ2C6bK8NGAo4O8aSohUEHd5q00D1qU26RmI3BN1aC-Gqz9BEdg> <xme:PzKTZwi3M7nKSgbWOUw7gMNjZJstaMP9kmR27XX_rIG6paw4l_7st1dgoY1KrRUkI X_DijvR9e5FUA> X-ME-Received: <xmr:PzKTZ5l2NvTFutxBb3C5MLNmpJEbZCircb0Wi7FPd9oj4O08BW2ACs12hjd2fw0ebamwgFAiSGdanGUhjFP8rvlzwh-g0xHn> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgfeekudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlrdgrlhgsihhnuhhssehgmhigrdguvgdprhgtphhtthhopegvlhhiiiesghhnuhdr ohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvg X-ME-Proxy: <xmx:PzKTZ0xhrTF2DLcFsV7ALZNnRcU2U-emODGGWOkanrkWCDLk4NlcoA> <xmx:PzKTZ7R5kMKJS4UWhhsc2zqabz1rAAZOBXnO4iRsolLwxZ9JU_kh3Q> <xmx:PzKTZ_Ylsm-EvWzbQZAXs-JyrjPYjrj_TXmGa_QXp2uub7Ql5F-YXw> <xmx:PzKTZ0S_WmL99Xivd3E0uGAMgqcF0kc04V7K2Umagj2-p4QZWnd3_g> <xmx:PzKTZ9BU27t7yXPFZCFoaRRaisGfO5qt-eyD9y5q3rIsH_FfwYXmDEY1> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87jzal10xo.fsf@HIDDEN> (Michael Heerdegen's message of "Fri, 24 Jan 2025 01:59:47 +0100") References: <87r051khsd.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <87jzal10xo.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Fri, 24 Jan 2025 07:24:58 +0100 Message-ID: <87r04sd8zp.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > I <michael_heerdegen@HIDDEN> wrote: > >> So i would rather consider to rename the variable >> `buffer-stale-function' for the discoverability To what? Especially with the "boolean or function" semantics below I can hardly come up with a suitable yet discoverable name. That aside, I think it's hard to rename and give new semantics to a variable which is as old as Emacs 22.1 and might be used by external packages. >> - or just leave things as they are. That would also be fine by me given the actual bug is fixed. (I'd add another commit using dired--inhibit-auto-revert for properly fixing bug#71264 without accidentially deactivating auto-revert-mode altogether.) > We could also rename the variable and pretend it is normally boolean - > but a function value is possible in addition and has a special > meaning. A not uncommon solution. Maybe this is what you had in > mind? At least not me. One difference between buffer-stale-function and inhibit-auto-revert is that the latter inhibits all auto-reverts while buffer-stale-function is not consulted at all for file-visiting buffers when auto-revert-tail-mode is active. > There are caveats, though: > > - People could be tempted to set `inhibit-auto-revert' to t and later > to nil, erasing the former non-nil function value by accident. > > - People could try to inhibit auto revert globally (which would not be > possible once buffer local bindings exits), or may overlook the fact > that binding this variable may affect a global or a local binding. > > I think this is something to consider: catchy names increase the risk > that such details are overlooked. Probably right. I don't have a strong preference for either way. Maybe we should just keep it as-is until some other use-case besides dired pops up which might never happen. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Jan 2025 08:03:02 +0000 Resent-Message-ID: <handler.75626.B75626.17377057434585 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17377057434585 (code B ref 75626); Fri, 24 Jan 2025 08:03:02 +0000 Received: (at 75626) by debbugs.gnu.org; 24 Jan 2025 08:02:23 +0000 Received: from localhost ([127.0.0.1]:43479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbEdy-0001Bs-Ny for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 03:02:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60890) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tbEdw-0001Be-VQ for 75626 <at> debbugs.gnu.org; Fri, 24 Jan 2025 03:02:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tbEdq-0007bI-J8; Fri, 24 Jan 2025 03:02:14 -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=MHKFMD8Wl6JvEEIY7TU0gjmnOR4BQN687dQ/PS+7oAo=; b=DoYuxyA1GIiH b4foFIQ+m+glR0ceu+zR/hdd/GdWFqRpD758PU7Gw+9jyCd/40N8eAzNR9w1tQuppBV+fiWodm7JU GybiIHjxhLzbYyKhqvVqVFlz5myhENcuvk3/KXdGVsJtu8OtK1V3My7BUZDRIL1Oe8gAfA04NBTIz BNfgF+vwCcroPK02bAelV5I/hcZcWNOYQSSTcwW53RcyVRrB2Kaizc1fe+cpxMRJbpauzA9xJlN8g j8GFpaZv/4VMIPQayTkJsrGS3s7BA0Bcxv8McuW+BiVTwBXKuR5AcAz4/V0cRO/ZGT5Uwv1MAg5z1 44g5/ldWzG91ErcJbI/Ltw==; Date: Fri, 24 Jan 2025 10:02:07 +0200 Message-Id: <86r04sy70g.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87o6zx14x9.fsf@HIDDEN> (message from Michael Heerdegen on Fri, 24 Jan 2025 00:33:38 +0100) References: <87r051khsd.fsf@HIDDEN> <86ikq97ip0.fsf@HIDDEN> <87a5blhb24.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Michael Heerdegen <michael_heerdegen@HIDDEN> > Cc: Tassilo Horn <tsdh@HIDDEN>, michael.albinus@HIDDEN, > 75626 <at> debbugs.gnu.org > Date: Fri, 24 Jan 2025 00:33:38 +0100 > > Eli Zaretskii <eliz@HIDDEN> writes: > > > I tend to agree. A boolean variable with "inhibit" in its name is > > much easier discovered than buffer-stale-function. > > Sure - but discoverability is not the only point to consider. If I > think this thought further: > > In case of dired, the decision about whether the buffer should be > auto-reverted is made by evaluating a (not trivial) condition and thus > we use a function value. This is hardly avoidable. > > When we introduce a redundant new boolean variable, we would have to > decide what happens when the two disagree - the result could be > surprising. And when one would need to debug auto revert, one would > have to keep an eye on two variables instead of one. We have quite a few of similar inhibit-SOMETHING variables in Emacs. We use a simple rule for them: such a variable, when non-nil, unconditionally overrides everything else. I've never had any problems with that, and I debug Emacs quite a lot. It's actually the other way around in many cases: being able to inhibit some functionality by flipping a single variable is very easy and convenient. > A complication without any practical benefit IMO. I think this opinion of yours is at least in part because you don't appreciate the simplicity and convenience of a variable as opposed to redefining or binding a function. > As we saw, finding a fix for a simple related bug was already not > easy. For completely unrelated reasons, right? > So i would rather consider to rename the variable > `buffer-stale-function' for the discoverability - or just leave things > as they are. We cannot rename it.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Jan 2025 23:26:02 +0000 Resent-Message-ID: <handler.75626.B75626.17377611346601 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17377611346601 (code B ref 75626); Fri, 24 Jan 2025 23:26:02 +0000 Received: (at 75626) by debbugs.gnu.org; 24 Jan 2025 23:25:34 +0000 Received: from localhost ([127.0.0.1]:47488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbT3N-0001iO-T0 for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:25:34 -0500 Received: from mout.web.de ([212.227.17.11]:43895) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tbT3M-0001i9-0R for 75626 <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:25:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737761125; x=1738365925; i=michael_heerdegen@HIDDEN; bh=VDe89pkyeLMGfSehThuGNDPrkPChTDO0sg9XnQdlcbA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=HGzrWFO9F4ItKYe97z0gq3Y0mZ+IB8DDBcbrBkFFJV8d56L29q5DSmXVIaJBGHz2 OXHi/WHJ5fxQb0ddA9mb3A4e4eHhzXihCo4HY1HMxWuCV0Nx06HuIQIX9E/DurlHH XJh4LPj93HvgtIQCq+6++ly6qIleVBdJZr8C7XX5Hv++2mHKSsZB2jPfMzfppVCKG Uq/jHZ/O+B2QMP2C1ErIypvpCC3b8LjIvMOK71lbmL3fp1qkUJpnuFSDKDFBPqITP 2qGLuUeiP5l6qcL2cXFkD48IaVq3vhFy1+qnxG7MPkb/SX6hKpBTCWOo5kS98PZ+z h0SgzL3Tz/7a9L0bmg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([88.66.201.189]) by smtp.web.de (mrweb106 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MHmqC-1tfJ470klS-00CY1G; Sat, 25 Jan 2025 00:25:25 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87r04sd8zp.fsf@HIDDEN> (Tassilo Horn's message of "Fri, 24 Jan 2025 07:24:58 +0100") References: <87r051khsd.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <87jzal10xo.fsf@HIDDEN> <87r04sd8zp.fsf@HIDDEN> Date: Sat, 25 Jan 2025 00:26:39 +0100 Message-ID: <87lduz4wuo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:n70MUeUajk/D4+34XXWJM7AuTyYPnSwRobTshPyqvFaOLC6hePK zSZsxqf0t1Rijg7HWEeDujRoIrS42rqHDUHmeZ3H/wyUB+Bs6hH+Z3EpnSKOvfmOi60UD6k sflr+rCTc1kTT6gCkQ/OKpEx1Ia0CNzPHZ8ddujsqKiNgxvhE5xqWWzwLclAcFKwlYU62Y4 Q/PlDYnX90Kije5mpC/1g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:h5G+QsNKRPY=;q0iX5dJzG17cT65v6m7o83jw61H BQrjMVeCzsAiIFhJHKI2O1E8GQhr9NLCsDLxqSYAqoVdLHKOrZXn00yvc17LRyZSVrMqTq02K +SgKoupXz72urLMLGgTmQGPy5Y2Tm7+yCv31uLYXJ+SuH6cC/jbmp7SDUVlnSlPsIsE5Uz1j1 8N7khMUnAubYwDBZ4i8vCFkxiavxMZpEULo0AmfjBHhDtme69WVU/k8TRPBU+OIopOlsbQ9pf /0wdN8piT9j6H5v5RbSWhJE9rM8gFkr3iwbgWEsIaAni1mC7zX5WW64Eeb2qGxG2FuKZRP3MO rol/P82oUzjHUR+B2ijwkJS6UdCvTwpj7Fz28k947hPu2r4TZ9ukoCr+wIcWBgo6BJjL3OZyZ nZuPqi5uCAHW/u2WQ0PQn8iafGqcX7S1+MSwYxVlhYLBd+J4QkafJmZbBRbqhQ2XR7eZWmZNX gt2MoFPXEr08+nxJUmhcj+EA4gJVAit1DRhkxcY3w1Jaf5tN/sJpM5YROxQn3kwiYfdSU+Ueg py1qtkrghrAgpba672tZsb7zKAcQByTvYwryVHyxJXVeoVyVEy16qSVYsqm7VUGYRNcTCkZSs HvLvHoFpDx654E/FYUqo6W41XH0UXBOZTxYMnls5pNLD+COnfa7RUeIpUU1H/2WDEbgO0WvlX mtck4PkvhRy96fzRXni1jSo+LZr1gzGWThQA/nh5xcnYg1JMTxRzO/KmbtMZkeamhZE3enke7 fhqc0TPsbLmifOxBlpSwCFPw+jecan1wPS3tRT/x1gtw3lY9F/3c3zB6TrJba+rAdYuEsNHZ9 yactVzivGdq9yVD1BAe7SceLqc6gfQFnz/VHvzTCz0eSO4+rVRg5Gfb41EXZZDumBVZA9jVMs I+PoFEjWsPIV5QuG/XDDEH+QjcLTCk+wWkEJmMUY+Hhzi7gA9fAIowmjoGRFFjs/iMstMB0sQ hjVB1Rxn3+BYspQkuKpgw7FiKYKD+OR16Gz+Xdpm3bbBWbqqzWeQWzP6h5Sc5fHG2x54TVoMn kluCzYnPJcl6FqBQxF6oW/qJ881qUzt7VSh75e0WN5IwWGHEXkadD1DP6vcq2dvrKF++ls6v2 nXVnN3rTdUu9F3zdGLNTbTEOCQWNHYmNepZEfw47HnbJ3J2Dbyd/5ar7uaAZ1AqspRKRO8BUQ eK4ZCOhaDmaq/V4UtZR+wlOtxU6p5L0w//4CkIRO2bpeJDV0hLQPUL7wa2MIqjI45jQHyovrE oe4y1M9qFEf3OOmgjZeoGPB64Nzwogn8cFbQ6Mv3CAu6y3zRItDMduKptoVpzYpV8Mu6Vy4Ik OPGaQZOy+yjtM9CFC6RnitSGg== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Tassilo Horn <tsdh@HIDDEN> writes: > >> So i would rather consider to rename the variable > >> `buffer-stale-function' for the discoverability > > To what? buffer-inhibit-auto-revert-function or buffer-inhibit-auto-revert. > That aside, I think it's hard to rename and give new semantics to a > variable which is as old as Emacs 22.1 and might be used by external > packages. Since we would only extend semantics and non-function values currently raise an error - what would be the problem? > > We could also rename the variable and pretend it is normally boolean - > > but a function value is possible in addition and has a special > > meaning. A not uncommon solution. Maybe this is what you had in > > mind? > > At least not me. One difference between buffer-stale-function and > inhibit-auto-revert is that the latter inhibits all auto-reverts while > buffer-stale-function is not consulted at all for file-visiting buffers > when auto-revert-tail-mode is active. Oh... I didn't notice that fact up to now. Should we maybe document that in the docstring of `buffer-stale-function'? Anyway, if your goal is a switch that influences both modes, then my approach would not be sufficient, obviously. But did anybody think about typical use cases and what would be useful - before we cut in stone a new mechanism with no use cases at all in mind? > I don't have a strong preference for either way. Maybe we should just > keep it as-is until some other use-case besides dired pops up which > might never happen. A good summary - I would really prefer that to be honest. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 24 Jan 2025 23:44:02 +0000 Resent-Message-ID: <handler.75626.B75626.17377621889910 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN, tsdh@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17377621889910 (code B ref 75626); Fri, 24 Jan 2025 23:44:02 +0000 Received: (at 75626) by debbugs.gnu.org; 24 Jan 2025 23:43:08 +0000 Received: from localhost ([127.0.0.1]:47614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbTKO-0002Zm-6s for submit <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:43:08 -0500 Received: from mout.web.de ([212.227.17.11]:44573) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tbTKL-0002ZA-RT for 75626 <at> debbugs.gnu.org; Fri, 24 Jan 2025 18:43:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737762176; x=1738366976; i=michael_heerdegen@HIDDEN; bh=Q1Xvnm3Qv7Sa5dtUtP9fgp+uPYuS0quqH7d+hQ0wdtg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=qAfsbL/HQonTKU6Co+mBqvqWPEDk3yHLy6MZrNQGkg3D6150NAVHk8EIUSs6Dd0p eC/V5xzg070bVTRvZTKVMoBJfPwnXk4vZHgdGYNoZ1fzcr7ufJx5TNuRhLgW8lCxB FaJNrRa/L/68Qa4Pg9ZwtH+PqFxQy+/5SWTQmOTG3jYnHcy5cZ7Coixfflgd1oRTO 9tA38/UPG5BRxMPyb4GMbv6pRVO8Iy+OXpqHk0YsH9kZu9gukClzp4lnaWv11JC3z 2nw2LJrKaOp1cHv9lZFyAQy7iTYfbSl3An+IWRPQlH8eCkCvHHJixVP1g14NiclQS dQ9Ny2eLPEX2DViAuw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([88.66.201.189]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MW9rM-1u0HYb3X0E-00Youi; Sat, 25 Jan 2025 00:42:55 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <86r04sy70g.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 24 Jan 2025 10:02:07 +0200") References: <87r051khsd.fsf@HIDDEN> <875xm9havc.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> Date: Sat, 25 Jan 2025 00:44:11 +0100 Message-ID: <87h65n4w1g.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Id/7oubijflOHsr//ZR4ESy2fyZYBmlXeoty8Nm8CKTHRs/ztex EUCt37507ey+3rH/geVc0d4Qt/a1FPsN9qaptm7znQq016peptr3PiVrbPFwdaw2bnwxo6+ S7pDHij1mFDQbHo5Tq6nz8X+N2tbxgsbXLsVzocJCkBeaEbKGNg2GwIesWSO3hwKcdX3Ofi qL0eOmfFuKXlVu26rTE6A== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:ITinWPT6hts=;2EgWSB/vLfkcdvSKHe18RovbBYk a4FUZh5Xod2Mpdzn7o4r1dD9o6whJdma2ECShYW5Rxf5TQmLKmU/9e3QJjWFEZVDHU+i4K5Za 30gnsnb9UaCtyP1CwYH5jR4DL7A5vAOYMOL12lvPELf2e5vRfUMJ/qKAyAOIcbF9fkNYntugs lP0d97SXWK71kifWTukIWbErEfG+6ejkvi9I0H0+VL0gFS5fx2+RLxvar7pqm4C+ec73eeZzb ENz+vdeo6LjK8DSctpg/HrRF9yZA144DsgvA+U9VBzDJwiBuArsiT3NtVWSdss/m7RrP4+7H+ SSgFN4t2/9DT5aguxyPtaATSA6jIpVhlVGaYq/fy4wyLicedBMofJgrnOvOgsUJrZP2ZgAhx8 oT+qefL1+EwlT5wv4BqLV+ECWSaf9CjnMm0/YZLCTMeHLq4Pebu3Q89iZ3fa1VUuUu/8qInr1 HuVmxRmjFS0oabbYVcdfYwNFmLJ/k1R3/2Pr/HrN24KQk/IHBur5cHmBEA25yIlBvejcVZPUf R+OCdrEYH34uxOz8mbyMmzXnvLAzTVVIWDyMx/JqTzSnzRQdloooYVOFLPsrjadNS61CBxFA0 hCEI4yYanCzkYTVP+Dti5mnt1VXwmvC6xZAkA1xZ6ebIm/4zvlgNoLkJltNs4kPHRfWKVAPyf DyGQ4uEsh1+dR96Qjs8tUcLDs8wWaj9HL+XTzQYp+aRV9Av3ItQoHfJ4/tSRf3dNnOJC0RJ94 oknXXE5sY6cAGcYZF6CscOCD+Xmy202qd9tdJfnCV5Qdj2bm2AROgShe6K/2BEpOWgvKccY0T 4c/pI0g0KFtAyLPYjgJu17M3AG6FMo0hnZ0bqPp8AYYSxBrzdsxplW43ZEBuCF6u5ma3JH3FT oxz955G9qfNQ491zvVdYoZHpOD6Yk/GP86gUthePjaN4Q5PUt81oBgDxsVgZ9zkCV1jI2FfSL Y2zqd3PnX18kH6nQt6iu1VztCV7YrV+VxyqfuAlQc8eOVC/PQF9RUcDyKymu4HpPPReVnchYM gBQEJjMpjgcRC1drIwKoqVE5nuXpcfinUe5yC3Tqyp7mEv9y4fqGWuhNpyqYTG06b31saDxKi 6F/CcdaVCZS4L2u93MjSdRVBUjfHse/R9JM8YQc+oqZgEb3tFhhYBQAgMRX0Lhfjb3Qg/acs2 w/kJuUggDljVvsoU4YOcXc7E6ZDvkjBG7PL2vjSVyNr82e4qiAfImsO2mi7onJ4fOo6CeIyIt 45KgZt2Kvzqw1XCJ06QbGNLO934uHCkwr/GjLOlxndmlSIafLlyrfLDFJ2ccFbv51GhG7eSu0 CyjebWDFxjmggbVvxyWyHWXbw== X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Eli Zaretskii <eliz@HIDDEN> writes: > We have quite a few of similar inhibit-SOMETHING variables in Emacs. > We use a simple rule for them: such a variable, when non-nil, > unconditionally overrides everything else. I've never had any > problems with that, and I debug Emacs quite a lot. It's actually the > other way around in many cases: being able to inhibit some > functionality by flipping a single variable is very easy and > convenient. 100% agree, but my problem is not that at all, but the duplication we introduce. > > A complication without any practical benefit IMO. > > I think this opinion of yours is at least in part because you don't > appreciate the simplicity and convenience of a variable as opposed to > redefining or binding a function. I would need more use cases to be able to decide that. Which of the two variables would be used/bound more in practice? In the long run, code is longer maintained that created. And the design of autorevert.el is already not that trivial. So when I in the future would have to follow the binding of two variables instead of one to understand what is going on, this is not an improvement, because the existing variable is still there and hardly discoverable, and at least potentially involved. So you seem to look at this more from the perspective of use cases. For that perspective I even agree but I dunno how much it matters since I don't know how useful this feature is. And even then - as said, all those use cases will be easier to implement but harder to debug. > > So i would rather consider to rename the variable > > `buffer-stale-function' for the discoverability - or just leave > > things as they are. > > We cannot rename it. Then I would prefer to keep the fix we have. Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 25 Jan 2025 09:05:02 +0000 Resent-Message-ID: <handler.75626.B75626.173779585820201 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173779585820201 (code B ref 75626); Sat, 25 Jan 2025 09:05:02 +0000 Received: (at 75626) by debbugs.gnu.org; 25 Jan 2025 09:04:18 +0000 Received: from localhost ([127.0.0.1]:48440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbc5S-0005Fl-28 for submit <at> debbugs.gnu.org; Sat, 25 Jan 2025 04:04:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41446) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tbc5P-0005FU-QG for 75626 <at> debbugs.gnu.org; Sat, 25 Jan 2025 04:04:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tbc5J-0004Qy-KO; Sat, 25 Jan 2025 04:04:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=VqwTymWwor/0RbuRvXlaYybX2wfn9sC1QZxPL86uDb4=; b=mSxA4yYq6WFschVEQ8rk cRj86mk7qi7803JJ3X6UxrO6vSVbPUoG/i+6zj/+YTkrJNKTS8B7i/t0qfzeGqUqPhSvjnKTL3wNb AsQphzve9bVc+2iKWr0HjX6xBpU+KtmfxF5yRK5PWXgiDz1635khYLnXeVNr/rM3ZeV7bSD+W3Fdg MlKFz/ZfLKX1e3QXb/MHqUURndb0Lbx58N/R+pNGBFHBYjtyU7dLbTEPnyB0+ji+hSQh0R/3Hp7vt MxewKUGKL6ocfbOMwUTK5xlIUoA/m+puu2tLVjZZPICKY7PYIKaGoUJQ0IYMqlnt9rmlYHt8N1Ij1 qirtYzKzXl/VpQ==; X-ME-Sender: <xms:CKmUZ_KB2qf2dg5Dz-jA_JA2_QmnexqOkntRNu7eP49fET2G1lVMvQ> <xme:CKmUZzLc1rdtHKUp2t-iAGiEuhmmmg54ySDUUERLrllkiSwU0PqKGp2u-m1HUQ_uf Acwuwd8AgLxow> X-ME-Received: <xmr:CKmUZ3sFyaFRO87QrcAHaROCBN1Rk0SbK3dLgWxUD2GYRDSO1by2fpIUV0m3ufOAhtBvpqBJrDeVSL9dwL2XypzEsorUHZdq> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgieellecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedvieesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehmihgthh grvghlrdgrlhgsihhnuhhssehgmhigrdguvgdprhgtphhtthhopegvlhhiiiesghhnuhdr ohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvg X-ME-Proxy: <xmx:CKmUZ4ZDy3lLQ4tYUrgUfZGhdtl0Y7Z0kg1UoiBwftzyMUnOFEvydA> <xmx:CKmUZ2boASpcp8WquAiNG7LjMZmtyEDtO4ak6wjOVn7ypXojRTYUkQ> <xmx:CKmUZ8AzisyIfrzSIJA0PcED_JxYDv679V2xcNDd0NKurA3gcqnijw> <xmx:CKmUZ0Ya9OjOiq7SXbCnPlbxEItExidWRyExUV--Qfn2vsalGsWhXg> <xmx:CKmUZ6rgwnTfNzzzK076aWxVs8mzBW97v_UDHD0ShGk_iMnMv18lRNIF> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87h65n4w1g.fsf@HIDDEN> (Michael Heerdegen's message of "Sat, 25 Jan 2025 00:44:11 +0100") References: <87r051khsd.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sat, 25 Jan 2025 10:04:03 +0100 Message-ID: <877c6jmfi4.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >> > So i would rather consider to rename the variable >> > `buffer-stale-function' for the discoverability - or just leave >> > things as they are. >> >> We cannot rename it. > > Then I would prefer to keep the fix we have. Ok, let's make a decision then. The two options on the table are: 1. Just keep the dired-specific dired--inhibit-auto-revert as it's committed now (+ use that to fix bug#71264 properly, too). 2. Use the more general inhibit-auto-revert patch I've posted here. I lean towards option 1 simply because my gut feeling says that the dired issue is probably a historical accident, i.e., its workings have been implemented long before auto-revert was a thing. If one were to implement something similar today (like ops on processes in proced), one would not use an approach navigating lines in the buffer. Even most dired commands don't or just do to collect the list of files to act on initially. Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 25 Jan 2025 13:05:02 +0000 Resent-Message-ID: <handler.75626.B75626.173781025425738 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626 <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173781025425738 (code B ref 75626); Sat, 25 Jan 2025 13:05:02 +0000 Received: (at 75626) by debbugs.gnu.org; 25 Jan 2025 13:04:14 +0000 Received: from localhost ([127.0.0.1]:48896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbfpd-0006h4-Ez for submit <at> debbugs.gnu.org; Sat, 25 Jan 2025 08:04:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44072) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tbfpa-0006gk-A6 for 75626 <at> debbugs.gnu.org; Sat, 25 Jan 2025 08:04:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tbfpU-0000T5-T6; Sat, 25 Jan 2025 08:04:04 -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=k0NSubmlALLZJZggs10enioKwBncFUI6++XhAMrgG9g=; b=SSxnitK2NUco ax1+YdTdfx/MC6zydjGAnJEp9Y1hZwteJlzaL5lVRThV/nFhA2UwSlVsp8Mr/6fcC3fw9mEwYXxn/ aWRu2+y00k7QHFf3wmI0EO1rrmFiuZkbVInPr1HomAwTfN3552REfnZCj1B5qK9jslB/7G0dBi/x8 +xCUyBQsgLnwF5bSwcI6+Rppfq3yFNGd4XDbS2SMpnuHY9AryN2cNbqdIQqqSrABm1GrkZIePMAin yGwaf5LiOSc0pVF8mqh63IJOYxvydjd+Yx5FANqyBlF0YSn4NERiXl7iBBXfqmoGEAYFuRuzFw17n /cT3lq0CA1XsNWgh7E3XEw==; Date: Sat, 25 Jan 2025 15:04:02 +0200 Message-Id: <86cygbujst.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <877c6jmfi4.fsf@HIDDEN> (message from Tassilo Horn on Sat, 25 Jan 2025 10:04:03 +0100) References: <87r051khsd.fsf@HIDDEN> <864j1t7gth.fsf@HIDDEN> <87wmepfuxp.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Tassilo Horn <tsdh@HIDDEN> > Cc: Eli Zaretskii <eliz@HIDDEN>, michael.albinus@HIDDEN, > 75626 <at> debbugs.gnu.org > Date: Sat, 25 Jan 2025 10:04:03 +0100 > > Michael Heerdegen <michael_heerdegen@HIDDEN> writes: > > >> > So i would rather consider to rename the variable > >> > `buffer-stale-function' for the discoverability - or just leave > >> > things as they are. > >> > >> We cannot rename it. > > > > Then I would prefer to keep the fix we have. > > Ok, let's make a decision then. The two options on the table are: > > 1. Just keep the dired-specific dired--inhibit-auto-revert as it's > committed now (+ use that to fix bug#71264 properly, too). > > 2. Use the more general inhibit-auto-revert patch I've posted here. > > I lean towards option 1 simply because my gut feeling says that the > dired issue is probably a historical accident, i.e., its workings have > been implemented long before auto-revert was a thing. If one were to > implement something similar today (like ops on processes in proced), one > would not use an approach navigating lines in the buffer. Even most > dired commands don't or just do to collect the list of files to act on > initially. Sounds like option 1 is preferred by several people, so let's keep it.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 26 Jan 2025 08:51:02 +0000 Resent-Message-ID: <handler.75626.D75626.17378814426916 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: michael_heerdegen@HIDDEN, 75626-done <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-done <at> debbugs.gnu.org id=D75626.17378814426916 (code D ref 75626); Sun, 26 Jan 2025 08:51:02 +0000 Received: (at 75626-done) by debbugs.gnu.org; 26 Jan 2025 08:50:42 +0000 Received: from localhost ([127.0.0.1]:54285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tbyLq-0001nU-9I for submit <at> debbugs.gnu.org; Sun, 26 Jan 2025 03:50:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58250) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tbyLn-0001nA-H3 for 75626-done <at> debbugs.gnu.org; Sun, 26 Jan 2025 03:50:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tbyLh-0004QE-L1; Sun, 26 Jan 2025 03:50:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=JC4H5ghLWDXQ0vo/0uYWDbdSMshDkjlcPQReVe0Yw0M=; b=X6Tv1SUpyGH36AHr8Nb/ jk5l855uQRYbOUgf16gMpoWIl1htF2KDNup7Ht73jNZwSH6zDA25CWhSvAliycBtI0yLkR6ERN4yj KSIB3hHQyZdGabFgg5wtzEbHHsRgnPkMViUNqwu4wS8kya9AmOo/zSKqkh0Khle26tvBl6rhbFzuH GniZKu0Amcfa6x7kvOIN5JIYC3Rk1Vc303JYe9ZNj2T3xwfi6i+3dy5BGc+1ASP88f0J6A1qzsIP6 x7PV3uouPsruJK52CCJ+xmWxihdO8/3NtgFR5wh/CGAeTQ5a9xpUyQd2+YAaz6sqj7yhPlRN7tkEr +Z0Xcu+Ok47KUg==; X-ME-Sender: <xms:WPeVZxBC-tGzacuTkVHA8pNcFlZK5qLI7Q52x8qyoBHgi5XPRxvUDA> <xme:WPeVZ_icnk3zHbjjyQbUkYo4PZmJQ-AzLCFB-i7ZES6X7JnSzu7e5WbJt5y1fJagy 9w-E7HdCUIX9Q> X-ME-Received: <xmr:WPeVZ8n9j0nVNnFeKYR3Cs-0FBx2gf_A05sUcWE1N_wBtgcDU0gTBdvXkfroc0rat4n3iUHOXyx18cFzgkDqDqYtgfFt3XNk> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgleekvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtsehttdertddtredt necuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqne cuggftrfgrthhtvghrnhepleduvdegfeduvdejkeefteelgeetgfevhefhueffueffgeeh gfeufefgvdffgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeei jeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrih hlrdhfmhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohepjeehiedviedqughonhgvseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoh epmhhitghhrggvlhdrrghlsghinhhushesghhmgidruggvpdhrtghpthhtohepmhhitghh rggvlhgphhgvvghruggvghgvnhesfigvsgdruggvpdhrtghpthhtohepvghlihiisehgnh hurdhorhhg X-ME-Proxy: <xmx:WPeVZ7wQgTjRPwieVfhHg1IcQ_AQKgzHFKZWa-4I6uFZyuE2QBhtxg> <xmx:WPeVZ2TMkLWOLtmSa1wM9cGReWuBRhV3C-eEahpv9pOiBs3zi21Kqw> <xmx:WPeVZ-Z6Xws6pVDq7PIxl5a-9aBb5I5dmfHtXQ-pBest2-s8tyVZzg> <xmx:WPeVZ3SJt9Kg5x6_TDO4NTjciUT-QsVH5ecLvh1Eubo3OUUI2D7i5A> <xmx:WPeVZ0CLRPWbzUviIzQL--q4DWZcll8eTi7zYs0h1JsDfu3tiHgIUW-M> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <86cygbujst.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 25 Jan 2025 15:04:02 +0200") References: <87r051khsd.fsf@HIDDEN> <86y0z55t2k.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> <86cygbujst.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sun, 26 Jan 2025 09:50:28 +0100 Message-ID: <87y0yyvu0b.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii <eliz@HIDDEN> writes: >> Ok, let's make a decision then. The two options on the table are: >> >> 1. Just keep the dired-specific dired--inhibit-auto-revert as it's >> committed now (+ use that to fix bug#71264 properly, too). >> >> 2. Use the more general inhibit-auto-revert patch I've posted here. >> >> I lean towards option 1 simply because my gut feeling says that the >> dired issue is probably a historical accident, i.e., its workings have >> been implemented long before auto-revert was a thing. If one were to >> implement something similar today (like ops on processes in proced), one >> would not use an approach navigating lines in the buffer. Even most >> dired commands don't or just do to collect the list of files to act on >> initially. > > Sounds like option 1 is preferred by several people, so let's keep it. Alright, I've just pushed the addon change for fixing bug#71264 using dired--inhibit-auto-revert. Thanks, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Heerdegen <michael_heerdegen@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 00:53:02 +0000 Resent-Message-ID: <handler.75626.D75626.173793914917537 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 75626-done <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-done <at> debbugs.gnu.org id=D75626.173793914917537 (code D ref 75626); Mon, 27 Jan 2025 00:53:02 +0000 Received: (at 75626-done) by debbugs.gnu.org; 27 Jan 2025 00:52:29 +0000 Received: from localhost ([127.0.0.1]:58433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcDMa-0004Ym-RT for submit <at> debbugs.gnu.org; Sun, 26 Jan 2025 19:52:29 -0500 Received: from mout.web.de ([212.227.15.3]:32823) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>) id 1tcDMY-0004YS-9g for 75626-done <at> debbugs.gnu.org; Sun, 26 Jan 2025 19:52:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1737939139; x=1738543939; i=michael_heerdegen@HIDDEN; bh=BEmS9BRZQyyC0iq6Uc2XNI6Ax0UdzE9ryyan7o92Fvs=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=PWi8uR5lOnDoFP+K930TzgTPQ6M/p6FyqNfr+b+3L/o4q7+YS+ltUw3YQJKe4p9B wGyU5gtigbvEVDjJIyTgUP8+ROsnFLApSc9P3R3PEOeW3cp71Hq9yANLRAZWrghI5 Nnk1z4Z8rO9eTmDPcyB1IiPDu5OUui+1Uru5RQPUp2wpxQwLB8trUWJNuNPUx57ih 08BzDU/FnhiAitVhbORq1aHrW02imNKaYV9F3T/2NyQKDayfiKk438Tf0DZ43PkRi RC2rgriVcuksQXOiWSC/pUnfDyYsKkQe+7l98zIkLxIts/J1Rz9XxUaoSJ9gzd8LP wfw7WUpNpq2/FuCE7Q== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([88.66.201.189]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MbTH3-1t5LWE1YGf-00fHX0; Mon, 27 Jan 2025 01:52:19 +0100 From: Michael Heerdegen <michael_heerdegen@HIDDEN> In-Reply-To: <87y0yyvu0b.fsf@HIDDEN> (Tassilo Horn's message of "Sun, 26 Jan 2025 09:50:28 +0100") References: <87r051khsd.fsf@HIDDEN> <86r04x5s6b.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> <86cygbujst.fsf@HIDDEN> <87y0yyvu0b.fsf@HIDDEN> Date: Mon, 27 Jan 2025 01:53:37 +0100 Message-ID: <87ed0pyt4e.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:m3Bj/WgTDNdoukVyWoKJszHh4YMdrlGdXqYS6QZp5793XgVueSa 9ALPa66YP8/gvWPeEmlZiHy9JRb+MAO9MczqOKIMyBZkNS7/58zoUkxmjO0x3nYoyEaouZw 8Cw3rXzIfU8Xi1Q7MIjNuDgI3SWS8QkP4GpGYCOFbsaj2SEwPXtDnxmUFiqaNfX59B9lSba wg1+VN761aNQ1KwBbkHbA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:yX1YXRpqCp8=;HHHG7YpIiDaTNV281eF85PQOG1H cE32HvdUcfXDzYHvAhYOJT4HAjBz7D+s3HtcFwoXO9vG6Uok6zaEfmcOxnmo5/gOfkAqlnVJz 2g2TQ+OcnnHTL/wgpotTyS5thqaylg+1AS6d5tVLl2kLx/KSq8vcCfL2AAXBeS+Y9fyJXlDEl nV4Y0Ut2gc2Co89WQZ2wyp+DFQneu7dHGtY+CNYxlW0nZtn14vYyd2oILa9jOPsmSi4CQjOye gfz03qjR4efyVfgO9JI2LWepYA64Y0Cm1eAmnnx0rtYzO1FlyPZgY15hKwriObapR5eq+mi6V //ri1jo8J51CluRefWVbseOd7Yb3HfdIh5weSHmQ25ZtJ6n75f8YcmX0NiQYDWq+6pwsrsN58 1b9NPbPFYolCpQcSDe+9aeCSUst/KWKZZ1EC1PGcTlytzh8RLAnH+TFSvY4P0hSjIEzOwIP0T qQ+eL1mz5gBvPDXtKoU38fh754B7J2dVgqzMEv489X+YF0BvCk5/37d50sjlBXNcqq40BszKg aYyRVqC0MMkV/7xYLraeW3tzdwipqXCZYSLdPyj/sh5+M3oHUylqQ1zUbNmoKmxC0ExFY6SDB 5pS7TxBLxFmC9ccg7B4Qbj5DPOwkFtIv1ySaR1WEbjqOtlCOeGOaHixBd49UMJXvqYuTB5dap Aw+frcT/ztykqf6eG7u7iMe4/aD5tLSExl/Bx3Kz+pXdfdZkyFMXLjYMsiuHT42kRp2NV0dwo WmrBpZGGD/vHR1GwrfrEBSEOZWXSBYvYdd7fvFocS2jdsbD5GH1lnprCEzxKZH8oahRuWXS4A KE3eyiRqvW+AR4Mhmmop2nHaLPL6QepdVIFc/G4vTCjfY2iGiKWAEKqVbX4aE0UXXa0q3z4EL OUVIRLSgRDUmNYxD0MlRu3eGsTcIXwjcGn6n/jfTeW16BaqVdFiSGeoR+zNyk9NDsCj79E1oN DlRb4wmoX2DzpRLvucbaCrhC09OjIyGW19HnUhn634SCuAxSgmwnbP+7F5KTuO9S366AnF2QE 3ICH2yEv/vR6WxTNNJqeC3hQlL/snGpnQKxj+Hs982cuuwQlStqlsZQx8Iv9e8Jbyyi1f1e+Z YsmI/BWnLLuFkDcqJzImh26oyCOIVt+ZeNuP+dNLuNJ93PpTetwGxxyTFtKJfQPwgMNL7VOxa zDQMmttTHNRoRGsjfeLX0HrCHGtU6Gs+ytUR1ivSI2VQ0kdOwWgwNFxCFkuogebJraobZL9N+ mhb8eQj/+lzTQ8q9hcCXpSt7bjxdR2QQu2mCZyRhAB53oZUwoStNKQJEnwIBMtO7YoZxZ+uiP g5xc28Hc587BSFj24Ith5DsNA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: > Alright, I've just pushed the addon change for fixing bug#71264 using > dired--inhibit-auto-revert. Thanks. Can the issue from Bug#71264 as well happen for file operations other than deletion? Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 06:11:01 +0000 Resent-Message-ID: <handler.75626.D75626.173795825312375 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen <michael_heerdegen@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 75626-done <at> debbugs.gnu.org, michael.albinus@HIDDEN Received: via spool by 75626-done <at> debbugs.gnu.org id=D75626.173795825312375 (code D ref 75626); Mon, 27 Jan 2025 06:11:01 +0000 Received: (at 75626-done) by debbugs.gnu.org; 27 Jan 2025 06:10:53 +0000 Received: from localhost ([127.0.0.1]:58985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcIKj-0003DX-7d for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 01:10:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55994) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tcIKg-0003DE-KU for 75626-done <at> debbugs.gnu.org; Mon, 27 Jan 2025 01:10:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tcIKa-0007zw-HH; Mon, 27 Jan 2025 01:10:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=kakbAh3lzaaAZAgZRaB/oLx46J9ul438/4G743mNKdE=; b=fBR+iwzZ3U2rGLLr+OkP 0u7Dcs2lWa931GDzD8vAHhrYrQy2mwyZVJwRF3EeWZufdiix1deviqEXgUyWB4ntmMLsY7pjcv1rI z/ohVnOp2hOUFkU1NQMhtDRHZ/BSCcdNPf77WUG7i8jKpWsxabQr4unXQGnY0N66zuqzd2MNt5QBL QPQlroc8yKnncpiDXI0jOksCK1dkBM4L0AC+er/cpLof9GFmR04/1UMYHjwrXVnG1ZJ0iU6q5NVlv OhkGT738rMh0XBUZGUL9TBd756bRGmouvuCIEukylGHLxTTUW/6szsVaFN/J7AFyke8StsRPd1rwL qjpQFKPfeO6khg==; X-ME-Sender: <xms:YyOXZ-mEqhsxu6NovKIX_ulcriapjtWEdRl3JavkbEjAvNNLJg4rdg> <xme:YyOXZ10Jxtd3iaD_D_o13EvhjVrP6GoalSOjEl5JXI6q4p6-gF4h7imBFn9rnOGOf RoCtPsVbyaqUA> X-ME-Received: <xmr:YyOXZ8ri1wqN6NHPzN0WXPFGL2DNVBkIb5nE_tOuS3Ylv3fG2G6Yzi90fSTmx8OjpS3d6z2XSDsFOa7jLuD0GlgsUqRzBkMd> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedguddvgedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttder tdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqe enucggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeg hefgueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdek ieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrg hilhdrfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphht thhopeejheeivdeiqdguohhnvgesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtth hopehmihgthhgrvghlrdgrlhgsihhnuhhssehgmhigrdguvgdprhgtphhtthhopegvlhhi iiesghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnse ifvggsrdguvg X-ME-Proxy: <xmx:YyOXZyl4yBZF9WZUp1Q90MCWTBV83CivUfWtcJIDRCznmgm6wBxdSw> <xmx:YyOXZ83DX18CVxC6wtOi8pKOLjQcI5cQRWJyz0avY6zJVG2ri-_HXA> <xmx:YyOXZ5sok23DntfnX87v8-iZ-3ZnFSEzEafnjd14uJj48LcgBywaGg> <xmx:YyOXZ4UdpSnTNOJ7IGbaO4vUUqPf6PWolht82K99FlyL5aIHVn2q5A> <xmx:YyOXZ33cH6kAULvzfBPytP9BAoRA42dkjNlvB4IK4leQSsZxR0g7llSS> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87ed0pyt4e.fsf@HIDDEN> (Michael Heerdegen's message of "Mon, 27 Jan 2025 01:53:37 +0100") References: <87r051khsd.fsf@HIDDEN> <4e07af48-166a-4cf7-8b89-cc784d6030eb@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> <86cygbujst.fsf@HIDDEN> <87y0yyvu0b.fsf@HIDDEN> <87ed0pyt4e.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 27 Jan 2025 07:10:38 +0100 Message-ID: <87plk8dbxd.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Heerdegen <michael_heerdegen@HIDDEN> writes: >> Alright, I've just pushed the addon change for fixing bug#71264 using >> dired--inhibit-auto-revert. > > Thanks. > > Can the issue from Bug#71264 as well happen for file operations other > than deletion? Could be. One would need to look at each command. Basically, the issue of the two bugs can occur when auto-revert may happen which is when Emacs is waiting for a process to finish (like in this bug) or when waiting for user-input (like the confirmation prompt in bug#71264). Bye, Tassilo
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Michael Albinus <michael.albinus@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 08:29:02 +0000 Resent-Message-ID: <handler.75626.B75626.173796650317554 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tassilo Horn <tsdh@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.173796650317554 (code B ref 75626); Mon, 27 Jan 2025 08:29:02 +0000 Received: (at 75626) by debbugs.gnu.org; 27 Jan 2025 08:28:23 +0000 Received: from localhost ([127.0.0.1]:59221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcKTm-0004Z2-QO for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 03:28:23 -0500 Received: from mout.gmx.net ([212.227.15.19]:37041) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <michael.albinus@HIDDEN>) id 1tcKTZ-0004YR-Le for 75626 <at> debbugs.gnu.org; Mon, 27 Jan 2025 03:28:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1737966479; x=1738571279; i=michael.albinus@HIDDEN; bh=dGWlW/9E3bh3QttBsu4LNJEyfjw0P0KisxjHMNrvjyw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=LRtcoQBlZ1S40JSRD1QsbUA6FpJtmPvJTUToUqHQm+O+ilib0O4YV48uPDtfQRJi 6jT1VWpbPlfcDUWPJY3w47Kv9OkIO5hc7sbXiGUe4GSowHssw/laAq2hipAe5c0QK Lo3sAM5tSt2S986M/z8bzSD4wDxf22+O8rs6rMHsDVytokwV9PkIFQXybGpIKSXBB Z/u4mQcOngJkPVSAt0dAlzG7PTc3MNdxAhC94xxI3UbKasOBF5DKOwGu41sUCN9QS DjPffbsRFkoKhcHEw2z8YgNIDKAZu9PfH2YlSQg99EA+qGLylYX4N1kcR/fjZwEIP O8s4K4tt4dP9EVF8Ww== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MN5eR-1tsUJP3y1l-00Ww2J; Mon, 27 Jan 2025 09:27:59 +0100 From: Michael Albinus <michael.albinus@HIDDEN> In-Reply-To: <87plk8dbxd.fsf@HIDDEN> (Tassilo Horn's message of "Mon, 27 Jan 2025 07:10:38 +0100") References: <87r051khsd.fsf@HIDDEN> <86plkh5mo4.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> <86cygbujst.fsf@HIDDEN> <87y0yyvu0b.fsf@HIDDEN> <87ed0pyt4e.fsf@HIDDEN> <87plk8dbxd.fsf@HIDDEN> Date: Mon, 27 Jan 2025 09:27:55 +0100 Message-ID: <87ed0ok6es.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:1+C95c9uO7j26QNJ3WbdWMX/LAB9k9JUk6XiPDftON21Leg6zpv +qfmBj6bowVa47KIK+yhsK9Y7tFj7RcoZyD8J+bVfqcBnfbwrlPzm8AODysb8igLVSoe/i3 /jPb0griI3SydJR6UEkaSkNJOk6JuK0lHXITOwuPAoFevuhcrC6UWs5XnTDxhR08vhAtg51 VtLjwzCZEUETQcDf2MN+g== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:DcTR+RO+Kjo=;s31usmznM6I8oW6S1S7orQgGwI0 fU1FXW8lOYQSUGtKgI0fwMsnl0w0gya9J8tF9TbtfAl0p7JfCSny3Pm1tjwT2QY140psA4fdn uJySHaSsKfhwIRrLX7WfiivzZm+HS+Wn4O+WDUQ+A3F6lKCRgyEaVo8I6vI8Glpd8UVO8pWU1 Ofg7Pe1sgEc5WRQajK/ELUnRL87BSEn9GX5BROheKiK6yMvvJzcN3uuKun997ASAZsmVPpvPb quy3dbP+JsRWnxpqZ//9fTOyNXO1tCC8vegyzw2CBSobUMZAr+Fq9DhuFAFL03Kfwhm0sN/Zc ZhRTjHAAMMVVhE0yOfx47aoD+GTHIjsMEurKmnp8VUD/Too/9yRsPb4QUMYd4oeKcgseIaaq9 yeh1Sh0yVozSasrxwD2uVDBAflQwzKoNch2Z/kO1YGzR7/9kVU+GD2a8s3Ol3BDgmpGzwbBpy aznpJ6tssiMefkXtGjN1YHuHdKxO04szT2m+lu0AkdyP+AwRhmGHVVyW2z6Ja1iPA0yz7VJ7P Qhli3b4Q6JzF/1gVVKaqg/UUvN7iQoUINLsY81Gg5L3+sEtK6r0aT4txIb7MK4psFuy44f0Oc O7KXPXmBzQi4PNhBcNdGy2/uNN/WAZQ9YxcaYZ7Q372RVfKMvBDtAlqLnsN7eDYMM8B6kD9Yb xpn62K7gK2zYo/Veq8ysjy8HePRSj9XgT94bELFal+YBHTZFBHTBgyGD4rqKsvQnSA57usw+E Uaji7m2r7xru/LYTYLXzDliSY6gazK8mXn3fODI1e8hG92STHEJnsQtUTJf4OnwQ83jW4t8Cy QHcYopvHfZt8ODPAZbWIqF5Xit0KIEp8HBsSfKSrP3z6wGdEHJzTBaUZxtJpfjbu1Io0fSypY A4+JAhosBFatBhz0lq8vpaeU27gH4p0bq0aMGIilTBES3r1oDOYGqVxyO94uwwSvFRTHcTD7S UEhq6/4H8Dd5XiMsJYid1zLXqziyyH0iDr5epOfVDZMh4VqiUG5w2t9hjDVN6n32e3QjYzHS2 zYM1nuZpNG+HZIdZVDqJz3vahCVuvv2m1DBVRaz0B2B1QvxdDfssGwTNNdEHTPcuaVe/6FlfO bzVTDe3Y6PAf1hXxisjzM5TH61XWoOZkjwZ7IJ93lUKGUxa9brDs3xglgJu3Ci4nJL84RDU/C thrSRJQ79yLIFbfXtBeNu4hP4psRCgLao0PENQ0BbLA== X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) Tassilo Horn <tsdh@HIDDEN> writes: Hi everybody, Sorry for being late to the party, but last week I wasn't in the mood for any party. And honestly, it isn't much better now. But so what. > Could be. One would need to look at each command. Basically, the issue > of the two bugs can occur when auto-revert may happen which is when > Emacs is waiting for a process to finish (like in this bug) or when > waiting for user-input (like the confirmation prompt in bug#71264). Auto-revert is triggered either by timers (polling) or by events (file notification). So yes, it is applied when either timers or event reading is in place. I believe it is good to have a mechanism like inhibit-auto-revert or dired--inhibit-auto-revert, in order to suppress auto-reverting temporarily. The problem is, that as now they have a nil-or-t value, which means that other auto-reverts are blocked also during this time, although they are not related. No problem in case of polling (the next poll will do the auto-revert), but in case of file notifications the information is lost. My proposal is, that we give the variable a list of buffers instead, which are excluded from auto-revert. Then the autorevert for this buffer can be suppressed in auto-revert-buffer by a simple check. And auto-revert clients need only to add/remove the buffer in question to *inhibit-auto-revert, without thinking about filtering. With this approach, it is preferred to have a global variable inhibit-auto-revert. The mechanism wouldn't be restricted to dired buffers. > Bye, > Tassilo Best regards, Michael.
X-Loop: help-debbugs@HIDDEN Subject: bug#75626: 31.0.50; Dired misses or double-processes files when auto-revert-mode is enabled Resent-From: Tassilo Horn <tsdh@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 13:18:01 +0000 Resent-Message-ID: <handler.75626.B75626.17379838709019 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75626 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus <michael.albinus@HIDDEN> Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, 75626 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 75626-submit <at> debbugs.gnu.org id=B75626.17379838709019 (code B ref 75626); Mon, 27 Jan 2025 13:18:01 +0000 Received: (at 75626) by debbugs.gnu.org; 27 Jan 2025 13:17:50 +0000 Received: from localhost ([127.0.0.1]:59910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcOzu-0002LO-B0 for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:17:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47998) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <tsdh@HIDDEN>) id 1tcOzr-0002L6-Sb for 75626 <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:17:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1tcOzm-0002mH-BT; Mon, 27 Jan 2025 08:17:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=rQm8Ocav26CPK4lC7901UKBEPeBoOYb8S7SW4Qwta/4=; b=iVK/MB15QKD0ueoP1C9d L8Mag1Oz3GS/G5v49VfeNe8UE5g0ImXWJh05wxRf8noZL80YRI098uuvKnLFgVQV2+CIiRbPMWOra E/Xs1Vu6Ybe8g0tlrcDZYvH0FrNW41c07PxpFoCqylCT1Wlc71QhQ5LIExBCbRBjwt0fDlQhdUbb0 JsyYc7myv0pu/6+U81wFDmkTxGIefXJvITWBCqukKliolvRTi8yCSIiMpZfNt5RZNZgW9GvVtLX6e zsMeSnkYLGKLoMGkuaoKIFU08a20GTpHCY7Rr2vAj/GcCJ2pbZvd8Mvbo1RJ2gnl0A4WPOnRcizKn 2hF+cNCJHw3geA==; X-ME-Sender: <xms:WIeXZ8IMwhBonvuWAnDZgFvMCM1_Xbe4kXO6pUEeoY0PH87WbPb_8A> <xme:WIeXZ8LW48DNyceGz0Jxzz71EZKA_C3w-K4vTjNlH6vfpXZgAwCYEpH_oLoyJ9FLf hiJsboDp7u5XA> X-ME-Received: <xmr:WIeXZ8sULQIeOoLl72jMvs2iP1BydZjbm3_haLbiyW-P20YvdTKFI7rDDJknpQKQNGEPGZQ1KmqPGPP_n9fZpAiKVWVsgBH9> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudejgedgudefvdejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhephffvvefujghffgffkfggtgesthdtredttder tdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqe enucggtffrrghtthgvrhhnpeeluddvgeefuddvjeekfeetleegtefgveehhfeuffeuffeg hefgueefgfdvffegtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdek ieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrg hilhdrfhhmpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphht thhopeejheeivdeiseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlih iisehgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhes figvsgdruggvpdhrtghpthhtohepmhhitghhrggvlhdrrghlsghinhhushesghhmgidrug gv X-ME-Proxy: <xmx:WIeXZ5ao5-c58GW5v77_rjjQ2ZCmtM9gcO_e1tBdtopzeb8lKisupQ> <xmx:WIeXZzZQpZkpS1GY2Z-yw2nZeWlOv8mM0Bgdd5kUIDtLFt0Km1TedQ> <xmx:WIeXZ1BHIjjiXb8KgY9fd3ANiY_Ji5YKo7V1Wc4jL_EsWdo3nNNDpw> <xmx:WIeXZ5bOB0N4UetWOAFlgvsiK5wgLXpcUBf3llAE33cjZjhi66cPnw> <xmx:WIeXZ7qG5hwcUSH1sulhB3zlrEqtEIOFdwUY9N12rdlmitPNkfP9YksE> Feedback-ID: ib2b94485:Fastmail From: Tassilo Horn <tsdh@HIDDEN> In-Reply-To: <87ed0ok6es.fsf@HIDDEN> (Michael Albinus's message of "Mon, 27 Jan 2025 09:27:55 +0100") References: <87r051khsd.fsf@HIDDEN> <87plkhb69r.fsf@HIDDEN> <87ikq9f1ey.fsf@HIDDEN> <86a5bk5olj.fsf@HIDDEN> <86wmeo45ms.fsf@HIDDEN> <87sepc6xpr.fsf@HIDDEN> <87jzan7wfp.fsf@HIDDEN> <87wmenaeby.fsf@HIDDEN> <87msfjmfy5.fsf@HIDDEN> <87sepa1a9p.fsf@HIDDEN> <871pwuavv9.fsf@HIDDEN> <86plkd28rb.fsf@HIDDEN> <87o6zx14x9.fsf@HIDDEN> <86r04sy70g.fsf@HIDDEN> <87h65n4w1g.fsf@HIDDEN> <877c6jmfi4.fsf@HIDDEN> <86cygbujst.fsf@HIDDEN> <87y0yyvu0b.fsf@HIDDEN> <87ed0pyt4e.fsf@HIDDEN> <87plk8dbxd.fsf@HIDDEN> <87ed0ok6es.fsf@HIDDEN> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 27 Jan 2025 14:17:09 +0100 Message-ID: <87jzagcs6i.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Michael Albinus <michael.albinus@HIDDEN> writes: Hi Michael, > Sorry for being late to the party, but last week I wasn't in the mood > for any party. And honestly, it isn't much better now. But so what. I'm sorry to hear. I hope it gets better soon. >> Could be. One would need to look at each command. Basically, the >> issue of the two bugs can occur when auto-revert may happen which is >> when Emacs is waiting for a process to finish (like in this bug) or >> when waiting for user-input (like the confirmation prompt in >> bug#71264). > > Auto-revert is triggered either by timers (polling) or by events (file > notification). So yes, it is applied when either timers or event > reading is in place. > > I believe it is good to have a mechanism like inhibit-auto-revert or > dired--inhibit-auto-revert, in order to suppress auto-reverting > temporarily. The problem is, that as now they have a nil-or-t value, > which means that other auto-reverts are blocked also during this time, > although they are not related. That's not completely true in this case. dired--inhibit-auto-revert is buffer-local and won't disable other auto-reverts (even not of other dired buffers). (The idea with a inhibit-auto-revert variable has been canceled for the time being.) > No problem in case of polling (the next poll will do the auto-revert), > but in case of file notifications the information is lost. That's true. But I think this is not a new issue. I mean, that has always happened when a buffer's buffer-stale-function returned nil for whatever reason, e.g., in dired when wdired was active and thus buffer-read-only was nil. And is there a way to set up auto-revert in such a way that it *only* uses file notifications and no polling at all? Looking at the code, it seems to me that file notifications just produce a quicker auto-revert than polling (auto-revert-interval). I'd assume that auto-revert-interval seconds after inhibition (buffer-stale-function saying "no" due to whatever reasons), the next auto-revert chance from polling comes. Bye, Tassilo
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.