From unknown Fri Jun 20 07:13:46 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#20943 <20943@debbugs.gnu.org> To: bug#20943 <20943@debbugs.gnu.org> Subject: Status: 25.0.50; Dired buffers are not always auto-reverterd Reply-To: bug#20943 <20943@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:13:46 +0000 retitle 20943 25.0.50; Dired buffers are not always auto-reverterd reassign 20943 emacs submitter 20943 Mark Karpov severity 20943 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 30 14:23:21 2015 Received: (at submit) by debbugs.gnu.org; 30 Jun 2015 18:23:22 +0000 Received: from localhost ([127.0.0.1]:34742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZA0Bk-0003aZ-4A for submit@debbugs.gnu.org; Tue, 30 Jun 2015 14:23:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35581) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZA0Bg-0003aK-LN for submit@debbugs.gnu.org; Tue, 30 Jun 2015 14:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZA0Ba-0004MM-39 for submit@debbugs.gnu.org; Tue, 30 Jun 2015 14:23:11 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZA0Ba-0004MI-0K for submit@debbugs.gnu.org; Tue, 30 Jun 2015 14:23:10 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZA0BY-00034S-4V for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 14:23:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZA0BS-0004Kr-Vy for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 14:23:08 -0400 Received: from smtp13.openmailbox.org ([62.4.1.47]:39512) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZA0BS-0004Ka-Kk for bug-gnu-emacs@gnu.org; Tue, 30 Jun 2015 14:23:02 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 985DB200387 for ; Tue, 30 Jun 2015 20:23:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:message-id:date:date:subject:subject:from:from :received; s=openmailbox; t=1435688577; bh=4+RoyKcXqqinIXM/gD8wE PY58tMkthqUI4WqZhwquH4=; b=vQ88+XaSafMeRGwpeszHJbPomnYgWE3ujj6E7 Gry/2M3fz1SXg+0nGNweoGj0WHjrVqq5v62vPYYgH3MbEOv+t2f2vpvhtFNoodmW VhpzJCbqtWopLB0fbIjYYzvHBx0Ir1JtTrKoVcYDnMvygg5mkf4lKkT5XhAglMWb AgkK10= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6Nd8Glnx-SpL for ; Tue, 30 Jun 2015 20:22:57 +0200 (CEST) From: Mark Karpov To: bug-gnu-emacs@gnu.org Subject: 25.0.50; Dired buffers are not always auto-reverterd Date: Wed, 01 Jul 2015 00:19:36 +0600 Message-ID: <87y4j1oy87.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) *** I'm using =E2=80=98global-auto-revert-mode=E2=80=99 setting variable =E2=80=98global-auto-revert-non-file-buffers=E2=80=99 to t, like this: (setq global-auto-revert-non-file-buffers t) (global-auto-revert-mode 1) As far as I know, this is normal way to make Dired automatically redisplay its buffer when contents of target directory are changed. However, it doesn't always work. In some cases Dired buffer is updated just fine, but there are also times when changes in target directory don't cause redisplaying. Is it a known problem? Can it be fixed? If it's a problem unique to my machine (I doubt it, though) I can give your more information. *** In GNU Emacs 25.0.50.13 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.4) of 2015-06-27 on arch Repository revision: ff80437668dd0d5163c9e43f0c200b923b39166b Windowing system distributor `The X.Org Foundation', version 11.0.11702000 Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: =CE=B5 Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t rainbow-delimiters-mode: t flycheck-mode: t flyspell-mode: t whitespace-mode: t yas-global-mode: t yas-minor-mode: t show-paren-mode: t minibuffer-electric-default-mode: t ido-vertical-mode: t ido-ubiquitous-mode: t ido-everywhere: t global-auto-revert-mode: t global-aggressive-indent-mode: t aggressive-indent-mode: t display-time-mode: t delete-selection-mode: t smartparens-global-mode: t smartparens-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t auto-fill-mode: 1 Recent messages: Truncate long lines enabled [2 times] Tuesday, 30 June 2015 Truncate long lines enabled [2 times] Compilation finished Comint finished user-error: No undo information in this buffer next-line: End of buffer [11 times] Truncate long lines enabled [2 times] Mark set Truncate long lines enabled [2 times] Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail smex misearch multi-isearch tronesque-theme ace-window vc vc-dispatcher haskell-doc inf-haskell haskell-decl-scan imenu shell pcomplete haskell haskell-completions haskell-load haskell-commands highlight-uses-mode haskell-modules haskell-sandbox haskell-repl haskell-debug haskell-interactive-mode haskell-presentation-mode haskell-collapse haskell-navigate-imports haskell-compile haskell-process haskell-session json haskell-indent haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module flymake dabbrev haskell-customize bookmark names edebug vc-git diff-mode autoload lisp-mnt mm-archive url-http url-gw url-cache url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-handlers url-parse url-vars hl-line nndraft nnmh nnfolder utf-7 epa-file epa derived epg gnutls network-stream nsm auth-source starttls gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime password-cache dig mailcap nntp gnus-cache gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit rainbow-delimiters flycheck-haskell haskell-cabal haskell-utils flycheck find-func rx subr-x flyspell ispell whitespace mk-visual solarized-dark-theme solarized mk-texinfo mk-tex mk-scheme mk-python mk-prolog mk-org mk-markdown mk-man mk-magit mk-lisp slime-fancy slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl slime-parse slime compile etags xref eieio eieio-core arc-mode archive-mode noutline outline pp comint ansi-color ring hyperspec browse-url slime-autoloads mk-ibuffer mk-haskell mk-gnus mk-eshell mk-erc mk-elisp mk-dired mk-diff mk-clojure mk-calendar mk-c mk-bookmark mk-minor-modes common-lisp-snippets yasnippet help-mode cl whole-line-or-region paren minibuf-eldef ido-vertical-mode ido-ubiquitous ido-completing-read+ cl-macs gv ido autorevert filenotify cl-seq aggressive-indent easy-mmode time delsel smartparens-config smartparens byte-opt thingatpt mk-global edmacro kmacro ace-link avy mk-utils f dash s ucs-normalize mk-abbrev misc server finder-inf tex-site fix-word info easymenu advice bytecomp byte-compile cl-extra seq cl-loaddefs pcase cl-lib cconv package epg-config time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 494815 102093) (symbols 48 46299 0) (miscs 40 148 693) (strings 32 104873 65503) (string-bytes 1 2973069) (vectors 16 71619) (vector-slots 8 1951411 189879) (floats 8 618 1174) (intervals 56 2093 556) (buffers 976 26) (heap 1024 71280 9117)) From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 30 15:58:21 2015 Received: (at 20943) by debbugs.gnu.org; 30 Jun 2015 19:58:21 +0000 Received: from localhost ([127.0.0.1]:34781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZA1fg-0007DR-II for submit@debbugs.gnu.org; Tue, 30 Jun 2015 15:58:20 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:58346) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZA1fd-0007Cd-AS for 20943@debbugs.gnu.org; Tue, 30 Jun 2015 15:58:18 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NQR00300WJZ1800@mtaout25.012.net.il> for 20943@debbugs.gnu.org; Tue, 30 Jun 2015 22:53:59 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQR00L72WLY2Q80@mtaout25.012.net.il>; Tue, 30 Jun 2015 22:53:59 +0300 (IDT) Date: Tue, 30 Jun 2015 22:58:16 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87y4j1oy87.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83bnfx2ckn.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Wed, 01 Jul 2015 00:19:36 +0600 > > I'm using ‘global-auto-revert-mode’ setting variable > ‘global-auto-revert-non-file-buffers’ to t, like this: > > (setq global-auto-revert-non-file-buffers t) > (global-auto-revert-mode 1) > > As far as I know, this is normal way to make Dired automatically > redisplay its buffer when contents of target directory are > changed. However, it doesn't always work. In some cases Dired buffer is > updated just fine, but there are also times when changes in target > directory don't cause redisplaying. > > Is it a known problem? Can it be fixed? If it's a problem unique to my > machine (I doubt it, though) I can give your more information. Does it happen with some specific type of directories, like those mounted in some special way? From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 01:58:32 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 05:58:33 +0000 Received: from localhost ([127.0.0.1]:35060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAB2W-0001IY-DO for submit@debbugs.gnu.org; Wed, 01 Jul 2015 01:58:32 -0400 Received: from mout.gmx.net ([212.227.15.15]:54981) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAB2T-0001IK-N8 for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 01:58:30 -0400 Received: from detlef.gmx.de ([79.195.13.219]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LzLJR-1YwgVq1Txx-014SHj; Wed, 01 Jul 2015 07:58:23 +0200 From: Michael Albinus To: Mark Karpov Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> Date: Wed, 01 Jul 2015 07:58:22 +0200 In-Reply-To: <83bnfx2ckn.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Jun 2015 22:58:16 +0300") Message-ID: <87lhf0berl.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:xnPlrfX7gNstlPtVGmXEc68mZZHWEdBh0j9oqUZBa2sgj9OuBwl LIq7vLp2tUknqLvoCuFCv7mnI4VS1kEVMC8DO6VOK/zFpQLpO9S+BM9fYdeSgdMLz+TkQhz e5ljsXDCS9gk0LglVS/XAgXU+wZTvbr0qEjw+5yUl9TTq2GiQ2AfSzFPvsrrMq06HygtIqn Faw+V+L5KEkGoqUsfLXZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4KUUr4ZeJFI=:e4vqCCmZQgivZ7EnQNmKFH G4ri7FbwQ9KpV4WxQqWPfi0NrsqWfllqS+igWOhrDUymUSVxUHBag4QPnc7YogD0PNpAs1Noc /VTtI3jSCQl/7Rv58lv1fZ3nCY62S08Hc5TdRtYHQgASZKNTQ0+f1i8OeDqyGG5Ldt4KBPEvJ AMfbqJEI04IBYsk7LmRliLCPgI6iHUxFh/GzFOGleFj+YwEjJAB4ugJc4EqFJ2qLj2Det0yv0 v1E/Y9JXoYj6rXvq8jc4hfcBmRBxDeQ4bLD1qicSsHuh0yI/k7vHibXl7so6M7Wrp/SKZawLh do+sCYWQApB9/hmSN25l+3pyLkLmHfRUwTD6wwEkHCCtxQVEfPW6pDdv0QCuX/2lKlRNCCoz4 dLvnlbh+jGnYr5ZEmJeyDhp0o4eb9rq3MQuU/CYyHilgpxcnjmvyM2D6Uht/Nm6dqihFBsfUy F4pOMT3DxiqtGf3tSZRsuvwfwwkLBjQrsOLUe20NzOIJ8UU4ik3M+ZIH7NRchm99BFVEwZMI1 WdOoboNOoICpsK3sx514xt3bd+BJ+HovdQ5K0ZAKvo2L8vtNTwS1loWkyGN77kEdC4HuOaDFf 6z8hskpxOb2mWIRUFJzLjJjwH3XvxBQ2x16v/xGjl4QhpxubwZQ+UV7DbvWwPwAeO4AmbaEkG Mak0Hem5JoRZOmcZspQ6awvkqQPVI7ouNJFHH8XbTTPuI/igBDDODsB15WJ7aDNgKKng= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: >> From: Mark Karpov >> Date: Wed, 01 Jul 2015 00:19:36 +0600 >>=20 >> I'm using =E2=80=98global-auto-revert-mode=E2=80=99 setting variable >> =E2=80=98global-auto-revert-non-file-buffers=E2=80=99 to t, like this: >>=20 >> (setq global-auto-revert-non-file-buffers t) >> (global-auto-revert-mode 1) >>=20 >> As far as I know, this is normal way to make Dired automatically >> redisplay its buffer when contents of target directory are >> changed. However, it doesn't always work. In some cases Dired buffer is >> updated just fine, but there are also times when changes in target >> directory don't cause redisplaying. >>=20 >> Is it a known problem? Can it be fixed? If it's a problem unique to my >> machine (I doubt it, though) I can give your more information. > > Does it happen with some specific type of directories, like those > mounted in some special way? Furthermore, which kind of changes of the directory are you referring to? Reading `dired-buffer-stale-p', the dired buffer shall be reverted only if there is a new file in the directory, or a file is removed. Just changing (the timestamp of) a file in the directory shall not revert the dired buffer. A second thought: auto-reverting dired buffers has been changed to use file notifications. Does it make a difference, when you eval the form (setq auto-revert-use-notify nil) ? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 03:19:20 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 07:19:20 +0000 Received: from localhost ([127.0.0.1]:35082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACIi-0003AF-8E for submit@debbugs.gnu.org; Wed, 01 Jul 2015 03:19:20 -0400 Received: from smtp20.openmailbox.org ([62.4.1.54]:53761) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACIf-0003A5-HS for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 03:19:18 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 3A1FA2E0076; Wed, 1 Jul 2015 09:19:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:user-agent:message-id :in-reply-to:date:date:references:subject:subject:from:from :received; s=openmailbox; t=1435735154; bh=Jkxq+9ig4Usc/1DM9owkA 2nHF4/6VJSVQGnM45D7ffM=; b=DK3MP9r/VUjsZGAbvFN2EsxX2aT+eB8BNvMj+ HqE4pwoxLejxqljSLRrrSunKVwPGtfjcuxDSqahHG1V5PzpDx8YjmB1k2iG0xLU/ L3Arkd975uqnRKQGeLTslDABfgzwZ2ya9EGeRZpOMqIOO+FC4Yf/AcOv6ckdQlTp /fC8kk= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N7ZVQzdxOXOB; Wed, 1 Jul 2015 09:19:14 +0200 (CEST) From: Mark Karpov To: Michael Albinus , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87lhf0berl.fsf@gmx.de> Date: Wed, 01 Jul 2015 13:15:54 +0600 In-Reply-To: <87lhf0berl.fsf@gmx.de> (Michael Albinus's message of "Wed, 01 Jul 2015 07:58:22 +0200") Message-ID: <871tgsbb6d.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > A second thought: auto-reverting dired buffers has been changed to use > file notifications. Does it make a difference, when you eval the form > (setq auto-revert-use-notify nil) ? No, it doesn't make any difference. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 03:26:26 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 07:26:26 +0000 Received: from localhost ([127.0.0.1]:35087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACPZ-0003Kb-KZ for submit@debbugs.gnu.org; Wed, 01 Jul 2015 03:26:26 -0400 Received: from smtp29.openmailbox.org ([62.4.1.63]:35079) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZACPX-0003KS-JI for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 03:26:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id C3B822E0075 for <20943@debbugs.gnu.org>; Wed, 1 Jul 2015 09:26:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received; s=openmailbox; t= 1435735581; bh=6dIp4Nf4gENg+U5PLKm4Hnp1WyFkiahsBm4gdRgfg4g=; b=G m0Lh6XHMDPJDsikfHfi2mjWcObSUcO4QxPkPbpgevqtsW/KaJeZI4fveWWqAPHnM ao8wT3XvDP6HCL5GFPU7zrTJfd7OtMsEiPpT2Ch6MzYEMyJCKuICQjC3S5tn6a49 N/QS3PbQ3g9XJW+1TsK9UYgGQExlxxsrvKY9d+L7TQ= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id p2rtVM3bKEzl for <20943@debbugs.gnu.org>; Wed, 1 Jul 2015 09:26:21 +0200 (CEST) From: Mark Karpov To: <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd Date: Wed, 01 Jul 2015 13:23:01 +0600 Message-ID: <87wpyk9wa2.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) OK, I've spent an hour testing it, trying to find some way to reliably reproduce the problem. It's quite random, but I've found a way to reproduce it in about 50% of cases. > Does it happen with some specific type of directories, like those > mounted in some special way? No, I can reproduce this in my home directory, which is not mounted in any unusual way. > Furthermore, which kind of changes of the directory are you referring > to? Reading `dired-buffer-stale-p', the dired buffer shall be reverted > only if there is a new file in the directory, or a file is > removed. Just changing (the timestamp of) a file in the directory > shall not revert the dired buffer. By changes I mean deletion of files or creation of files, see below. How to reproduce: 1. emacs -Q 2. Open some directory in Dired. 3. Invoke shell or Emacs shell. Now I think this bug is most likely happens when directory is changed in an automated way (maybe I'm mistaken). Personally I use a script that transforms some files (script written in Python, splits music files according to CUE file + some magic, but it doesn't really matter). That means that some files are created and old files are deleted. 4. Once I press C-m or Enter, there are two possible cases (each having about 50 % probability): either all changes are reflected in Dired buffer (that's in other window, window in Emacs sense of the word), or all the changes go invisible and I have to switch to Dired buffer and press g to see results. That's pretty much all I can say. Not very helpful, but this is how I can more or less reliably reproduce it. > A second thought: auto-reverting dired buffers has been changed to use > file notifications. Does it make a difference, when you eval the form > (setq auto-revert-use-notify nil) ? I'll test it as soon as I can. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 04:55:48 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 08:55:48 +0000 Received: from localhost ([127.0.0.1]:35186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZADo3-0006wd-IB for submit@debbugs.gnu.org; Wed, 01 Jul 2015 04:55:47 -0400 Received: from mout.gmx.net ([212.227.15.18]:52181) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZADnz-0006wP-UY for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 04:55:45 -0400 Received: from detlef.gmx.de ([79.195.13.219]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Ld0jY-1YjeUj18Ea-00iEbH; Wed, 01 Jul 2015 10:55:37 +0200 From: Michael Albinus To: Mark Karpov Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87lhf0berl.fsf@gmx.de> <871tgsbb6d.fsf@openmailbox.org> Date: Wed, 01 Jul 2015 10:55:36 +0200 In-Reply-To: <871tgsbb6d.fsf@openmailbox.org> (Mark Karpov's message of "Wed, 01 Jul 2015 13:15:54 +0600") Message-ID: <87fv58b6k7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:+GZzd0jFwbNHC5K87/UcbTrqb0j2uqeJwCB7kLANiv25nfWULqT UwJLhcyIK4ePq2GaEjLU0+M92mc1l79KZBcuFOI0KIHkH3AklYUsCKTcrHE4gcPhR5VzU3n OPSj5r63wEJ1kYYW9vwJ2UQ4gle15HAHbS7r/PPF+V3G9ipKC4eXIUXbUhKQYL+zypfaN5M kaDOy5GUuVy5hOeQGPQEw== X-UI-Out-Filterresults: notjunk:1;V01:K0:RWlQ4P0lcmk=:Owidz8haIyBoa3YxeV5XOZ E4LQ+Yl+5XaBOYVqEwgfMmOc9xvueb0ikal5z8ZTiOgN2N3sPre5+UFkCCGOaYVv3zqcCD6Ut IKde3t5q4NSdI+1Pc/gVk0oBLLrCnSXhVSig9hQ+uM3UMEkj3KFjIiV3nXhqpP7pTX5rz+i9u rs5xcWxLSbRr973IRd7/YPlx4GAdVSB9GDZbNcrnYUFSXBqrgxWHGAE562wQxN/w7X1FXgY9U myptrMmhIW19H6RAKZFRiXCqnWzdynKAE4y/qIkvJoVDa1MVM8P35Z1by4x3yyoj3tgB8iOn2 /+PxedhS6+/Gz4uUyFXfvjTqwwyW+uoSJx73pQxrb291O5JdWuFS0ifxv4mwbLSCGFdz3lr3d R+QlaYtvc67iiD9HWFSG2lyygfJAffjRZGBVSZq2I66VlWXtErmou3C6HH4qjoG+8+NYRLC7Y IAME7hayHO6Voyeu+2pCs9MIE0rs765K06W5sMuF6dMjA8kjpYseGYCQ8hZFTevkp7csZwduH uaXA81K1Y5JiXEa3NjircB3gXrBPioNKXjicGfBF+JqtfmZYeMpEL7T85vXSW+omCSrO4hFz9 xL9mSTkI4Vdqz0NAKXTi/Hx2LqMOKMkcihPMTiTl9mAtahbtvbG5gvMMOS+Mcj+o73TL9zOYZ sPU/CGr3HfeCJEgz2RFa2bZdemqjRK1GpKLEjHnytR5+zChpWKxyFKOBTYCPneKzHhgg= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mark Karpov writes: >> A second thought: auto-reverting dired buffers has been changed to use >> file notifications. Does it make a difference, when you eval the form >> (setq auto-revert-use-notify nil) ? > > No, it doesn't make any difference. Just to be sure: You have evalled that form prior opening the dired buffer, and setting it to auto-revert-mode? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 05:12:51 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 09:12:51 +0000 Received: from localhost ([127.0.0.1]:35195 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAE4Y-0007Ks-Tc for submit@debbugs.gnu.org; Wed, 01 Jul 2015 05:12:51 -0400 Received: from smtp3.openmailbox.org ([62.4.1.37]:59707) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAE4W-0007Kf-1C for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 05:12:49 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id ECB24201B61; Wed, 1 Jul 2015 11:12:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:user-agent:message-id :in-reply-to:date:date:references:subject:subject:from:from :received; s=openmailbox; t=1435741965; bh=t9R18UuV3kcjwxNxg44AV KScT9P6pIbd21OFlTpDfL4=; b=ZXFvWAReUKj1vjZtVfrVaSQwR4FvFKzMt74Tc gmwDoDe3LoHnm+0+Yw0rKIUZcDY6zIFPBJ2Lp7i5FdEqHxudXmmyNx4aNoD/4kZz 8/VgVQ9x3aCTxl82WHcePIvPLw8sMfEtsGC9KaNXYzd15aybnX7mKyzdERY8ssv1 oPgdv0= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id W--s60mD_aAD; Wed, 1 Jul 2015 11:12:45 +0200 (CEST) From: Mark Karpov To: Michael Albinus , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87lhf0berl.fsf@gmx.de> <871tgsbb6d.fsf@openmailbox.org> <87fv58b6k7.fsf@gmx.de> Date: Wed, 01 Jul 2015 15:09:25 +0600 In-Reply-To: <87fv58b6k7.fsf@gmx.de> (Michael Albinus's message of "Wed, 01 Jul 2015 10:55:36 +0200") Message-ID: <87si989rcq.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > Just to be sure: You have evalled that form prior opening the dired > buffer, and setting it to auto-revert-mode? Yes, I added that to my configuration file and restarted Emacs. In my config I have this: (global-auto-revert-mode 1) so Dired is always in auto-revert-mode by default. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 11:24:52 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 15:24:52 +0000 Received: from localhost ([127.0.0.1]:36182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAJsZ-0000kg-QC for submit@debbugs.gnu.org; Wed, 01 Jul 2015 11:24:52 -0400 Received: from mtaout29.012.net.il ([80.179.55.185]:47834) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAJsX-0000kR-5K for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 11:24:50 -0400 Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NQT00N00EL0LR00@mtaout29.012.net.il> for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 18:24:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQT00JCEESF1T60@mtaout29.012.net.il>; Wed, 01 Jul 2015 18:24:15 +0300 (IDT) Date: Wed, 01 Jul 2015 18:24:50 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87y4j0fj8m.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <831tgr3np9.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) [Please keep the bug address on the CC list.] > From: Mark Karpov > Date: Wed, 01 Jul 2015 13:08:09 +0600 > > > 1. emacs -Q > > 2. Open some directory in Dired. > > 3. Invoke shell or Emacs shell. Now I think this bug is most likely > happens when directory is changed in an automated way (maybe I'm > mistaken). Personally I use a script that transforms some files > (script written in Python, splits music files according to CUE file + > some magic, but it doesn't really matter). That means that some files > are created and old files are deleted. > > 4. Once I press C-m or Enter, there are two possible cases (each having > about 50 % probability): either all changes are reflected in Dired > buffer (that's in other window, window in Emacs sense of the word), > or all the changes go invisible and I have to switch to Dired buffer > and press g to see results. Are all of the changes in the same directory? Also, can you show the list of changes that script does in a single invocation, in terms of how many files are created, how many deleted, and in which order? From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 11:25:52 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 15:25:52 +0000 Received: from localhost ([127.0.0.1]:36186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAJtX-0000ma-ER for submit@debbugs.gnu.org; Wed, 01 Jul 2015 11:25:52 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:47762) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAJtU-0000mL-KX for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 11:25:49 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NQT00I00EOPO100@a-mtaout21.012.net.il> for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 18:25:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQT00I41EURKIC0@a-mtaout21.012.net.il>; Wed, 01 Jul 2015 18:25:40 +0300 (IDT) Date: Wed, 01 Jul 2015 18:25:48 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <871tgsbb6d.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83zj3f2937.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87lhf0berl.fsf@gmx.de> <871tgsbb6d.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Wed, 01 Jul 2015 13:15:54 +0600 > > > A second thought: auto-reverting dired buffers has been changed to use > > file notifications. Does it make a difference, when you eval the form > > (setq auto-revert-use-notify nil) ? > > No, it doesn't make any difference. You need to change that via customize-variable, because this option has a non-trivial setting function. Did you do that? From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 01 11:38:44 2015 Received: (at 20943) by debbugs.gnu.org; 1 Jul 2015 15:38:44 +0000 Received: from localhost ([127.0.0.1]:36222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAK5z-00017v-Ul for submit@debbugs.gnu.org; Wed, 01 Jul 2015 11:38:44 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:63928) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAK5w-00017e-QU for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 11:38:41 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQT00200F2P7A00@a-mtaout22.012.net.il> for 20943@debbugs.gnu.org; Wed, 01 Jul 2015 18:38:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQT001P6FGAZD80@a-mtaout22.012.net.il>; Wed, 01 Jul 2015 18:38:34 +0300 (IDT) Date: Wed, 01 Jul 2015 18:38:41 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87si989rcq.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83vbe328hq.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87lhf0berl.fsf@gmx.de> <871tgsbb6d.fsf@openmailbox.org> <87fv58b6k7.fsf@gmx.de> <87si989rcq.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Wed, 01 Jul 2015 15:09:25 +0600 > > > Just to be sure: You have evalled that form prior opening the dired > > buffer, and setting it to auto-revert-mode? > > Yes, I added that to my configuration file and restarted Emacs. In my > config I have this: > > (global-auto-revert-mode 1) > > so Dired is always in auto-revert-mode by default. For the record, I can't reproduce any of this. I tried both with file notifications and without them, and I could never see a change that was skipped. When this happens to you, i.e. in those 50% of cases, did you try waiting for some time for the changes to be reflected in the buffer? Also, if you disable auto-revert-use-notify, reproduce the problem (i.e. run the script and observe no changes), and then type the following M-: (dired-directory-changed-p DIRNAME) RET where DIRNAME is the absolute file name of the directory shown by Dired, what does Emacs show? If it shows nil, please step through the body of dired-directory-changed-p, and see why it doesn't see the directory as changed. (It relies on the time stamp of the directory -- does that somehow fail to change on your system?) From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 04:05:32 2015 Received: (at 20943) by debbugs.gnu.org; 2 Jul 2015 08:05:32 +0000 Received: from localhost ([127.0.0.1]:36890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAZUx-0002WU-9U for submit@debbugs.gnu.org; Thu, 02 Jul 2015 04:05:31 -0400 Received: from smtp11.openmailbox.org ([62.4.1.45]:34978) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAZUv-0002WJ-E4 for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 04:05:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 342AB201B81; Thu, 2 Jul 2015 10:05:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435824326; bh=FYwU9/Jyz2t682Wz8NS9Wr1fZwQ34xDpGFEwtgWE1NQ=; b= DJh3cIFxyrGifE3mwLWvjj9/7nbdBrGftn+xat8gcOdp9BOmFMyg1Ir//vAbUixV v3qfEAlLcN1lLBM6KCBu4IeFOkphoLvVr1LZTFPND/6FXfkP6QsCZjSh3D5euhdT zJSoT/duMfSiDwpWEZtC7afkJ99xA6zWQwHnaQKiqAQ= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YBX9eJMyhjg2; Thu, 2 Jul 2015 10:05:26 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> Date: Thu, 02 Jul 2015 14:02:02 +0600 In-Reply-To: <831tgr3np9.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 01 Jul 2015 18:24:50 +0300") Message-ID: <87r3ort2bp.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > Are all of the changes in the same directory? Yes. > Also, can you show the list of changes that script does in a single > invocation, in terms of how many files are created, how many deleted, > and in which order? Typically it's something like this: Initial state: Something.cue Something.ape Changes: Created =E2=80=9801 Track Title.flac=E2=80=99 Created =E2=80=9802 Another Track Title.flac=E2=80=99 =E2=80=A6 Created =E2=80=98NN Track Title.flac=E2=80=99 Deleted =E2=80=98Something.cue=E2=80=99 Deleted =E2=80=98Something.ape=E2=80=99 > You need to change that via customize-variable, because this option > has a non-trivial setting function. Did you do that? No, I didn't know that until now. See results of new experiments below. > For the record, I can't reproduce any of this. I tried both with file > notifications and without them, and I could never see a change that > was skipped. It's sort of bug that is not easy to catch. I've noticed it some time ago in different circumstances, but ignored it, because it seemed too minor. > When this happens to you, i.e. in those 50% of cases, did you try > waiting for some time for the changes to be reflected in the buffer? I don't know how long I'm supposed to wait, it certainly takes quite a while. A couple days ago I started the script, then went away from my laptop to do other things, then when I returned contents of directory were still =E2=80=9Cfrozen=E2=80=9D. I don't think waiting can help here. > Also, if you disable auto-revert-use-notify, reproduce the problem > (i.e. run the script and observe no changes), and then type the > following > > M-: (dired-directory-changed-p DIRNAME) RET > > where DIRNAME is the absolute file name of the directory shown by > Dired, what does Emacs show? If it shows nil, please step through the > body of dired-directory-changed-p, and see why it doesn't see the > directory as changed. (It relies on the time stamp of the directory > -- does that somehow fail to change on your system?) I've set =E2=80=98auto-revert-use-nofity=E2=80=99 like this: (custom-set-variables '(auto-revert-use-notify nil)) Then I managed to reproduce this behavior. After that, I evaluated (dired-directory-changed-p DIRNAME) and result was t. Any ideas what's going on? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 06:53:04 2015 Received: (at 20943) by debbugs.gnu.org; 2 Jul 2015 10:53:04 +0000 Received: from localhost ([127.0.0.1]:36993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAc75-0006Zm-Ci for submit@debbugs.gnu.org; Thu, 02 Jul 2015 06:53:03 -0400 Received: from smtp1.openmailbox.org ([62.4.1.35]:38121) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAc72-0006ZK-Fv for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 06:53:01 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 14FA2200387; Thu, 2 Jul 2015 12:52:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:message-id:date:date:subject:subject:from:from :received; s=openmailbox; t=1435834377; bh=FYwU9/Jyz2t682Wz8NS9W r1fZwQ34xDpGFEwtgWE1NQ=; b=mSBswd6G8JttRU6capcWyVDgRM5GF9fwgQ2zt i1CFsDeQIpl7nV5vGKbgDLhBb65zTAfb7cgCDOzBVdYLufzcsYjYFMxnYXawjYp6 rFjOsd91ZhY7DaYpILOH7X8tbpRIPSUFlnb6f/E1XnLrL1ifcM68ZqaMtv8wNzm5 UHaUHw= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1JW9uz8huJBH; Thu, 2 Jul 2015 12:52:57 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd Date: Thu, 02 Jul 2015 16:49:33 +0600 Message-ID: <87lheyltqa.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > Are all of the changes in the same directory? Yes. > Also, can you show the list of changes that script does in a single > invocation, in terms of how many files are created, how many deleted, > and in which order? Typically it's something like this: Initial state: Something.cue Something.ape Changes: Created =E2=80=9801 Track Title.flac=E2=80=99 Created =E2=80=9802 Another Track Title.flac=E2=80=99 =E2=80=A6 Created =E2=80=98NN Track Title.flac=E2=80=99 Deleted =E2=80=98Something.cue=E2=80=99 Deleted =E2=80=98Something.ape=E2=80=99 > You need to change that via customize-variable, because this option > has a non-trivial setting function. Did you do that? No, I didn't know that until now. See results of new experiments below. > For the record, I can't reproduce any of this. I tried both with file > notifications and without them, and I could never see a change that > was skipped. It's sort of bug that is not easy to catch. I've noticed it some time ago in different circumstances, but ignored it, because it seemed too minor. > When this happens to you, i.e. in those 50% of cases, did you try > waiting for some time for the changes to be reflected in the buffer? I don't know how long I'm supposed to wait, it certainly takes quite a while. A couple days ago I started the script, then went away from my laptop to do other things, then when I returned contents of directory were still =E2=80=9Cfrozen=E2=80=9D. I don't think waiting can help here. > Also, if you disable auto-revert-use-notify, reproduce the problem > (i.e. run the script and observe no changes), and then type the > following > > M-: (dired-directory-changed-p DIRNAME) RET > > where DIRNAME is the absolute file name of the directory shown by > Dired, what does Emacs show? If it shows nil, please step through the > body of dired-directory-changed-p, and see why it doesn't see the > directory as changed. (It relies on the time stamp of the directory > -- does that somehow fail to change on your system?) I've set =E2=80=98auto-revert-use-nofity=E2=80=99 like this: (custom-set-variables '(auto-revert-use-notify nil)) Then I managed to reproduce this behavior. After that, I evaluated (dired-directory-changed-p DIRNAME) and result was t. Any ideas what's going on? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 02 10:52:32 2015 Received: (at 20943) by debbugs.gnu.org; 2 Jul 2015 14:52:32 +0000 Received: from localhost ([127.0.0.1]:37786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAfqp-0005HO-B2 for submit@debbugs.gnu.org; Thu, 02 Jul 2015 10:52:32 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:49106) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAfqm-0005H8-LY for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 10:52:29 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NQV00J007P4V200@mtaout25.012.net.il> for 20943@debbugs.gnu.org; Thu, 02 Jul 2015 17:48:13 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQV00IP67SC2520@mtaout25.012.net.il>; Thu, 02 Jul 2015 17:48:13 +0300 (IDT) Date: Thu, 02 Jul 2015 17:52:31 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87r3ort2bp.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83egkq1uj4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Thu, 02 Jul 2015 14:02:02 +0600 > > I've set ‘auto-revert-use-nofity’ like this: > > (custom-set-variables > '(auto-revert-use-notify nil)) > > Then I managed to reproduce this behavior. After that, I evaluated > > (dired-directory-changed-p DIRNAME) > > and result was t. Any ideas what's going on? The next step is to verify that the auto-revert-handler function is called every 5 sec as expected. Can you add to its beginning some printout that, say, displays the value returned by current-time-string, and see if that function gets invoked regularly? If it does, then it should call buffer-stale-function, which Dired sets to dired-buffer-stale-p, which should return non-nil, since you say dired-directory-changed-p returns non-nil. And then the buffer should be reverted. Please see which parts of this do not work in your case. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 03:36:50 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 07:36:50 +0000 Received: from localhost ([127.0.0.1]:38206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAvWj-0001Bv-PT for submit@debbugs.gnu.org; Fri, 03 Jul 2015 03:36:50 -0400 Received: from smtp11.openmailbox.org ([62.4.1.45]:53365) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAvWf-0001BZ-Kp for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 03:36:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 9E7C9201B4E; Fri, 3 Jul 2015 09:36:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435909003; bh=CvBSoDlBAV8ADnF6ilZ2sMh8bNj1JmYrnNCSMHWpPPw=; b= bhkzb69Y8g96YnvTjpr+BqMIzqSfvnfBz1DgAtUEepp+d1V1+7gL7w+3j0H9/H+M i2L+nQ7PmYibL1f9gHhHZK9Gfs0ruvCbFCypd2Nd3oUq93yZOpgDen9+AjdtTvqh OIzLMjgsp36cUOwlvK8s7kOB8NVbyZdKmchF48qlE28= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id oOPfG-XaufgY; Fri, 3 Jul 2015 09:36:43 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> Date: Fri, 03 Jul 2015 13:33:15 +0600 In-Reply-To: <83egkq1uj4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 02 Jul 2015 17:52:31 +0300") Message-ID: <87egkplmpw.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) OK, =E2=80=98auto-revert-handler=E2=80=99 is indeed called every 5 seconds,= there is no problem with that. However, see its source code and you will see lexical variable called =E2=80=98revert=E2=80=99. This is always nil is my experime= nt. I checked that =E2=80=98buffer-stale-function=E2=80=99 and =E2=80=98dired-directory-c= hanged-p=E2=80=99 return t after changes made by my script, however value of =E2=80=98revert=E2=80=99 = doesn't reflect this, it's always nil, so the rest of =E2=80=98auto-revert-handler= =E2=80=99 (that is contained in (when revert ...)) doesn't undertake any actions to revert the buffer. This is how it happens, I think. Any further recommendations? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 04:19:37 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 08:19:37 +0000 Received: from localhost ([127.0.0.1]:38211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAwC8-0003Bj-Po for submit@debbugs.gnu.org; Fri, 03 Jul 2015 04:19:37 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:51373) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAwC5-0003BV-MA for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 04:19:35 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NQW00K00KF2JZ00@a-mtaout20.012.net.il> for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 11:18:47 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQW00KNPKFBAH80@a-mtaout20.012.net.il>; Fri, 03 Jul 2015 11:18:47 +0300 (IDT) Date: Fri, 03 Jul 2015 11:18:59 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87egkplmpw.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83wpyhzma4.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Fri, 03 Jul 2015 13:33:15 +0600 > > OK, ‘auto-revert-handler’ is indeed called every 5 seconds, there is no > problem with that. However, see its source code and you will see lexical > variable called ‘revert’. This is always nil is my experiment. I checked > that ‘buffer-stale-function’ and ‘dired-directory-changed-p’ return t > after changes made by my script, however value of ‘revert’ doesn't > reflect this, it's always nil, so the rest of ‘auto-revert-handler’ > (that is contained in (when revert ...)) doesn't undertake any actions > to revert the buffer. This is how it happens, I think. Any further > recommendations? Did you see all of this happening in "emacs -Q"? If not, please try with "emacs -Q", and see if the problem exists there as well. Also, did you try loading autorevert.el by hand (the .el file, not the .elc file), and if so, did that help? Finally, when you say that 'revert's value doesn't reflect what it should, did you actually insert 'message' printouts into the code, and saw that happening? If not, please try that, I'd like to see an explicit evidence that assigning a value to that variable somehow doesn't work there. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 05:43:33 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 09:43:33 +0000 Received: from localhost ([127.0.0.1]:38271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAxVJ-0005BS-Fr for submit@debbugs.gnu.org; Fri, 03 Jul 2015 05:43:33 -0400 Received: from smtp27.openmailbox.org ([62.4.1.61]:51192) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAxVD-0005BE-FT for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 05:43:27 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 2EA732E00C2; Fri, 3 Jul 2015 11:43:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435916599; bh=x8BDu3/kSj+Eq7JJmTyi78+1Nft3ezcrZNCBrFGb7AY=; b= rOFvkEQq5ndBhUAUo6GTYEfggf+FxRRRdRgzhBogAz5GU3Y9gY1EP0o+HZJO0aig SvJ7z5cPzc7P2jmDHDzShYPQKtpaOz2WMSYc27aC/AFbcJs9DNkOFDDszs6r0tR5 c4T9rOBIK2+BsMd1HZ86tlxpY0i+97Pi8Y0UMtovjKM= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id xwW0CxQJ1hnU; Fri, 3 Jul 2015 11:43:19 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> Date: Fri, 03 Jul 2015 15:39:49 +0600 In-Reply-To: <83wpyhzma4.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 11:18:59 +0300") Message-ID: <87a8vdlguy.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Now with "emacs -Q"=E2=80=A6 This is what I evaluated before testing: (custom-set-variables '(auto-revert-use-notify nil)) (defun auto-revert-handler () "Revert current buffer, if appropriate. This is an internal function used by Auto-Revert Mode." (message "invoked =E2=80=98auto-revert-handler=E2=80=99 at %s, for =E2=80= =98%s=E2=80=99" (current-time-string) (buffer-name)) (when (or auto-revert-tail-mode (not (buffer-modified-p))) (let* ((buffer (current-buffer)) size ;; Tramp caches the file attributes. Setting ;; `remote-file-name-inhibit-cache' forces Tramp to reread ;; 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-use-notify) auto-revert-notify-modified-p) (if auto-revert-tail-mode (and (file-readable-p buffer-file-name) (/=3D auto-revert-tail-pos (setq size (nth 7 (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) (message "dired-directory-changed =3D> %s" (dired-directory-changed-p default-directory)) (message "dired-buffer-stale-p =3D> %s" (dired-buffer-stale-p)) (message "buffer-stale-function =3D> %s" (funcall buffer-stale-function)) (message "revert =3D> %s" revert) (setq auto-revert-notify-modified-p nil) (when revert (when (and auto-revert-verbose (not (eq revert 'fast))) (message "Reverting buffer `%s'." (buffer-name))) ;; If point (or a window point) is at the end of the buffer, ;; we want to keep it at the end after reverting. This allows ;; to tail a file. (when buffer-file-name (setq eob (eobp)) (walk-windows (lambda (window) (and (eq (window-buffer window) buffer) (=3D (window-point window) (point-max)) (push window eoblist))) 'no-mini t)) (if auto-revert-tail-mode (auto-revert-tail-handler size) ;; Bind buffer-read-only in case user has done C-x C-q, ;; so as not to forget that. This gives undesirable results ;; when the file's mode changes, but that is less common. (let ((buffer-read-only buffer-read-only)) (revert-buffer 'ignore-auto 'dont-ask 'preserve-modes))) (when buffer-file-name (when eob (goto-char (point-max))) (dolist (window eoblist) (set-window-point window (point-max))))) ;; `preserve-modes' avoids changing the (minor) modes. But we ;; do want to reset the mode for VC, so we do it manually. (when (or revert auto-revert-check-vc-info) (vc-find-file-hook))))) (global-auto-revert-mode 1) (setq global-auto-revert-non-file-buffers t) =E2=80=98auto-revert-handler=E2=80=99 is slightly edited to print messages.= And here is the contents of *Messages*: For information about GNU Emacs and the GNU system, type C-h C-a. Deleting...done Mark set previous-line: Beginning of buffer [3 times] next-line: End of buffer [9 times] previous-line: Beginning of buffer [5 times] Mark set Quit nil next-line: End of buffer [13 times] auto-revert-handler t Mark set t previous-line: Beginning of buffer [6 times] next-line: End of buffer [14 times] C-' is undefined Quit [2 times] Deleting...done C-' is undefined Quit [2 times] auto-revert-handler invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:32 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:37 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:42 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:47 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:52 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 Quit invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:15:57 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:02 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:07 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:12 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:17 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:22 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:27 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:32 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:37 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:42 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:47 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:52 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:16:57 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:02 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:07 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:12 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:17 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:17 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:22 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:27 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:32 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:32 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:32 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:32 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:32 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil previous-line: Beginning of buffer [29 times] invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98*scratch*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98flacize_tests=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98 *Minibuf-0*=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98 *code-conversion-work*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98 *Echo Area 0*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98 *Echo Area 1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98*Messages*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=982008, Hard Candy=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98 *Minibuf-1*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98*shell*=E2=80=99 invoked =E2=80=98auto-revert-handler=E2=80=99 at Fri Jul 3 15:17:37 2015, = for =E2=80=98sh=E2=80=99 dired-directory-changed =3D> nil dired-buffer-stale-p =3D> nil buffer-stale-function =3D> nil revert =3D> nil So, I was wrong. Maybe I missed something. It doesn't even get to messages that print return values of various functions. Buffer named =E2=80=982008, Hard Candy=E2=80=99 was frozen during the experiment. Then I= pressed =E2=80=98g=E2=80=99 =E2=80=94 this refreshed it. Then I went to desktop environment (XFCE4), lo= cated this folder and deleted a file =E2=80=94 it was reflected in the buffer in a second. To be honest working in "emacs -Q" is really painful, because normally my Emacs is heavily customized=E2=80=A6 In principle if I'm the on= ly one to experience this thing, I don't think debugging is worth the trouble. On the other hand my system setup is not that unique, so theoretically many users might experience this. At any rate, I'm ready to investigate it further, if you have some ideas. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 08:10:46 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 12:10:46 +0000 Received: from localhost ([127.0.0.1]:38300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAzno-0001cS-Ik for submit@debbugs.gnu.org; Fri, 03 Jul 2015 08:10:45 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:37039) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAznl-0001cE-Vg for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 08:10:42 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NQW00O00UG15300@mtaout24.012.net.il> for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 15:02:03 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQW00N2UURFHL20@mtaout24.012.net.il>; Fri, 03 Jul 2015 15:02:03 +0300 (IDT) Date: Fri, 03 Jul 2015 15:10:48 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87a8vdlguy.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83si95zbjr.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Fri, 03 Jul 2015 15:39:49 +0600 > > So, I was wrong. Maybe I missed something. It doesn't even get to > messages that print return values of various functions. Buffer named > ‘2008, Hard Candy’ was frozen during the experiment. Then I pressed ‘g’ > — this refreshed it. Then I went to desktop environment (XFCE4), located > this folder and deleted a file — it was reflected in the buffer in a > second. To be honest working in "emacs -Q" is really painful, because > normally my Emacs is heavily customized… In principle if I'm the only > one to experience this thing, I don't think debugging is worth the > trouble. On the other hand my system setup is not that unique, so > theoretically many users might experience this. At any rate, I'm ready > to investigate it further, if you have some ideas. Use this modified function in your customized Emacs and see what does dired-buffer-stale-p return there, when you reproduce your problem. Then let's take it from there -- if dired-buffer-stale-p returns nil, the problem is inside that function, otherwise it's inside auto-revert-handler. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 08:41:27 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 12:41:27 +0000 Received: from localhost ([127.0.0.1]:38308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB0HW-0002KT-Fa for submit@debbugs.gnu.org; Fri, 03 Jul 2015 08:41:26 -0400 Received: from smtp4.openmailbox.org ([62.4.1.38]:42582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB0HT-0002KK-O0 for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 08:41:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 91CB2201C72; Fri, 3 Jul 2015 14:41:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435927281; bh=EE5zDKnIOx/C5lHGFRenQ0W31EXag9O2N6lqTJUjLaA=; b= tUTdFV+IaI9leizJ/S65BIhQKnJBlD+pDHRk/3KGp9pHdJx/iMsdZF4s0WwF5M30 ZS5BFsy/j9HxpHGyMhxdpJvsmdcG7NVIyUDS7ifrYxSSMWqZoutziwJD02/9pXv1 W8tGoR4ig67va46lRIzuJ5J//RSgYMpEN5AsjERxqZk= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id f0vD8XdOQa8t; Fri, 3 Jul 2015 14:41:21 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> Date: Fri, 03 Jul 2015 18:37:55 +0600 In-Reply-To: <83si95zbjr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 15:10:48 +0300") Message-ID: <8738158li4.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) When I manually evaluate =E2=80=98dired-buffer-stale-p=E2=80=99 (in =C2=ABf= rozen=C2=BB buffer) it returns t, this function works OK. The problem is that control flow doesn't reach second portion of messages when =E2=80=98auto-revert-handler= =E2=80=99 is called for Dired buffer in question. I think problem is here: (when (or auto-revert-tail-mode (not (buffer-modified-p))) ...) (or auto-revert-tail-mode (not (buffer-modified-p))) is obviously nil when it shouldn't be nil. I don't know what =E2=80=98auto-revert-tail-mode= =E2=80=99 is, but its value is nil. So the problem lies in (buffer-modified-p). It's t when it should be nil. I evaluated it for Dired buffer in question, it's t, indeed. Is it correct behavior? What meaning does =E2=80=98buffer-modifi= ed-p=E2=80=99 have when current buffer is a Dired buffer? Should it ever be t in this case? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 09:05:50 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 13:05:51 +0000 Received: from localhost ([127.0.0.1]:38323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB0f8-0002tO-3M for submit@debbugs.gnu.org; Fri, 03 Jul 2015 09:05:50 -0400 Received: from smtp3.openmailbox.org ([62.4.1.37]:40869) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB0f4-0002tF-Jw for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 09:05:47 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id BA401201C72; Fri, 3 Jul 2015 15:05:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435928744; bh=BHiBnVDC4qO3Es00RVdCTBgCbtgqdArYC7ZE1KT2Trg=; b= uQBVyfpiW+IOwnornccfDXs9uW6fd2xJYDLJeWTXNsgomSs16vC3fk0ZIfvUyg1s eAGeZGS8PEY6AVD3qGUYxqakIZCowH2GBcSZaVpmyEpT45VqpWN7Lb91v82c+GrW bVl4DXYbUTbk88tNp8vx7nKOYgX7rBPvCNfFcUlmWto= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FpUIMpmHD0ni; Fri, 3 Jul 2015 15:05:44 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii , <20943@debbugs.gnu.org> Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> Date: Fri, 03 Jul 2015 19:02:19 +0600 In-Reply-To: <83si95zbjr.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 15:10:48 +0300") Message-ID: <87y4ix75t0.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Now I understand! What seemed to be random behavior is not that random. Obviously, =E2=80=98buffer-modified-p=E2=80=99 returns t if user pr= eviously modified directory, for example, if he deleted some files (I deleted some files before invocations of my script). Thus, =E2=80=98auto-revert-han= dle=E2=80=99 thinks that buffer is modified that it doesn't revert it. Now, this is good behavior for normal file buffers, but is it good enough for Dired buffers too? If I edited a Dired buffer, want it to stay in sync anyway. What do you think? From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 09:43:56 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 13:43:56 +0000 Received: from localhost ([127.0.0.1]:38335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1Fz-0003kM-CB for submit@debbugs.gnu.org; Fri, 03 Jul 2015 09:43:55 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:56447) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1Fv-0003k6-TD for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 09:43:53 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQW00M00ZEJ3H00@a-mtaout22.012.net.il> for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 16:43:43 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQW00LVWZGVMC70@a-mtaout22.012.net.il>; Fri, 03 Jul 2015 16:43:43 +0300 (IDT) Date: Fri, 03 Jul 2015 16:43:55 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87y4ix75t0.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83lhexz78k.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Fri, 03 Jul 2015 19:02:19 +0600 > > Now I understand! What seemed to be random behavior is not that > random. Obviously, ‘buffer-modified-p’ returns t if user previously > modified directory, for example, if he deleted some files (I deleted > some files before invocations of my script). Did you delete them from Dired, or did you delete them "by other means"? > Thus, ‘auto-revert-handle’ thinks that buffer is modified that it > doesn't revert it. Now, this is good behavior for normal file > buffers, but is it good enough for Dired buffers too? If I edited a > Dired buffer, want it to stay in sync anyway. What do you think? It seems we should disable that test for directories. I suggest to wait for a few days to let others come up with objections, and if none do, make that change. Meanwhile, I suggest that you make this change on your system, and see if that has any adverse effects. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 09:53:27 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 13:53:27 +0000 Received: from localhost ([127.0.0.1]:38350 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1PC-0003y5-Ny for submit@debbugs.gnu.org; Fri, 03 Jul 2015 09:53:27 -0400 Received: from smtp6.openmailbox.org ([62.4.1.40]:57343) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB1PA-0003xx-Q3 for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 09:53:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 95E76200ABC; Fri, 3 Jul 2015 15:53:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:user-agent:message-id :in-reply-to:date:date:references:subject:subject:from:from :received; s=openmailbox; t=1435931602; bh=ZmMk49w0QZQFP0wTRSG0Q qhVNUjQ1EU0ehkT5m+ijXQ=; b=sbVkQAbpzMLyfmI0xlmZZDiyZrZhPh3Znxgea ijik9A0cnjhgyRfZUhjSD9OjYyEI15GLm7szaSxEMO2XP70PiLSAj++o7C3kUviK jTaSg5nyi99qeESgt1PjAuS8BrRP5mEYjEctdK3uzMyMphn43eQom2DtVAYmEjOf YqPxNI= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IoJxB9uEfZ7I; Fri, 3 Jul 2015 15:53:22 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> Date: Fri, 03 Jul 2015 19:49:56 +0600 In-Reply-To: <83lhexz78k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 16:43:55 +0300") Message-ID: <87twtl73ln.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > Did you delete them from Dired, or did you delete them "by other > means"? Yes, I deleted it from Dired. > It seems we should disable that test for directories. I suggest to > wait for a few days to let others come up with objections, and if none > do, make that change. > > Meanwhile, I suggest that you make this change on your system, and see > if that has any adverse effects. > > Thanks. Great. That's what I'm going to do. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 03 12:11:47 2015 Received: (at 20943) by debbugs.gnu.org; 3 Jul 2015 16:11:47 +0000 Received: from localhost ([127.0.0.1]:38887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB3Z4-0007FB-VX for submit@debbugs.gnu.org; Fri, 03 Jul 2015 12:11:47 -0400 Received: from smtp25.openmailbox.org ([62.4.1.59]:59494) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZB3Z2-0007F2-La for 20943@debbugs.gnu.org; Fri, 03 Jul 2015 12:11:45 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id A2A632E01B8; Fri, 3 Jul 2015 18:11:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435939902; bh=WD98gmFdozOQCqsDjYL5uMBQW8rLukZUYOTGszMqZFs=; b= HR9ZFtNbuUyvmeHS1ZnR36MbnIrtHV2jIqhVDaXwkHZrr9+GVl0yathtjXCvcNc+ JV4EOuyv5uM7OsCIb+qhKD+vHvP/hnfGY70+XXWNcCIC7CUtYIwWxpvi9rmjaQiw xV5pKOvUWz+jTINrl63Msgof6jU+94mqGe46KyhRN4A= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Gs0XauNJcJeW; Fri, 3 Jul 2015 18:11:42 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> Date: Fri, 03 Jul 2015 22:08:16 +0600 In-Reply-To: <83lhexz78k.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 16:43:55 +0300") Message-ID: <87twtl1axb.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) I want to report some =E2=80=98adverse effects=E2=80=99: When I copy some files or create files, they are placed by Dired in different positions than they would be placed normally (via ls call or whatever Emacs uses internally). This is a separate problem, because of this, I had to press =E2=80=98g=E2=80=99 in such cases, so every file gets = in its proper position. Now, however, autorevert does this for me. I know what is happening, but for others this may look really confusing. Imagine, you copied some files, and then they randomly jump in different positions without your explicit command! Not only confusing, but dangerous it may be, since some (really fast) user may manage to delete wrong files (it's not difficult if your files are moving!). What I propose is to make sure that copied/created/added to current directory by other means files are in the same positions as they would be displayed by ls command (or whatever Emacs uses), so when user presses =E2=80=98g=E2=80=99 order of files doesn't change. This would be really good improvement. In simplest case, you can just regenerate/revert buffer after commands that change contents of Dired buffer adding new element into list of files. If you decide to let =E2=80=98auto-revert-handler=E2=80=99 change edited di= rectories freely, you have to implement this change too. The both changes would be quite useful. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 04:30:58 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 08:30:58 +0000 Received: from localhost ([127.0.0.1]:39185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBIqf-0001w2-QA for submit@debbugs.gnu.org; Sat, 04 Jul 2015 04:30:58 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:32924) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBIqd-0001vk-6c for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 04:30:56 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NQY00600FK68Q00@a-mtaout22.012.net.il> for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 11:30:48 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQY005HPFNCX380@a-mtaout22.012.net.il>; Sat, 04 Jul 2015 11:30:48 +0300 (IDT) Date: Sat, 04 Jul 2015 11:31:02 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <87twtl1axb.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83r3ooxr21.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Cc: 20943@debbugs.gnu.org > Date: Fri, 03 Jul 2015 22:08:16 +0600 > > When I copy some files or create files, they are placed by Dired in > different positions than they would be placed normally (via ls call or > whatever Emacs uses internally). Can you show a recipe for reproducing this? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 04:53:24 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 08:53:25 +0000 Received: from localhost ([127.0.0.1]:39207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJCO-0002bi-8s for submit@debbugs.gnu.org; Sat, 04 Jul 2015 04:53:24 -0400 Received: from smtp18.openmailbox.org ([62.4.1.52]:36841) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJCL-0002bY-8M for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 04:53:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 25A262E007B; Sat, 4 Jul 2015 10:53:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1435999998; bh=TtAmMPAsx0Q0JF6FAjSjp+48YT2X6ohJGGmKKVPjuvo=; b= Nby0uHnGs0nC5Ug42EqBsGFGmZyYZ4RmyNQnTR4V07pWlaiyRX4AYFTC/KAwW/Zd aZ9Dn20fk6mn+Yq6MLOrfWOBLVxSBLLLDmsSCRtkyfPnUs32TxJQQqhMjjyWzVzL DdKa+/oSTIxSHEztvLqeQESMsscfkYKfZwPxlJE12do= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id NMNl8G1m4GZd; Sat, 4 Jul 2015 10:53:18 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> <83r3ooxr21.fsf@gnu.org> Date: Sat, 04 Jul 2015 14:49:49 +0600 In-Reply-To: <83r3ooxr21.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jul 2015 11:31:02 +0300") Message-ID: <87egkoi9xu.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) > Can you show a recipe for reproducing this? Sure. 1. emacs -Q 2. Evaluate the following: (setq dired-dwim-target t ; guess target directory dired-listing-switches "-GAlh --group-directories-first") 3. Open two Dired buffers side-by-side. 4. Mark some files in the first buffer with =E2=80=98m=E2=80=99 key. 5. Press =E2=80=98C=E2=80=99 and confirm copying. 6. Files will be copied into another buffer. It's best if the buffer has some directories in it. My =E2=80=98dired-listing-switches=E2=80=99 tell= =E2=80=98ls=E2=80=99 to list directories first. But chances are newly inserted files won't respect this. Thus we get situation that I've described in my previous message. For the sake of clarity press =E2=80=98g=E2=80=99 now and see h= ow files are reordered. Moral here is that you generally cannot (I may be mistaken here, this is just my opinion) reliably guess true order of files without regeneration of Dired buffer. Well, I don't really know how it works in details, you could analyze =E2=80=98dired-listing-switches= =E2=80=99 and try to emulate it, but is it worth the trouble? I should note that concept of modified buffer is not really applicable to Dired buffer, because it usually cannot contain anything that doesn't exists in directory in your system. It's especially true if auto-revert will work for modified buffers. Any time Dired buffer gets modified it will be reverted by subsequent invocation of =E2=80=98auto-revert-handler= =E2=80=99, thus this state won't last longer than =E2=80=98auto-revert-interval=E2=80=99. I= don't think it's bad, but I think it's better to mention this consideration here. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 05:21:07 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 09:21:07 +0000 Received: from localhost ([127.0.0.1]:39231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJdC-0003PS-9V for submit@debbugs.gnu.org; Sat, 04 Jul 2015 05:21:06 -0400 Received: from mout.gmx.net ([212.227.17.20]:53962) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJd9-0003Og-5p for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 05:21:03 -0400 Received: from detlef.gmx.de ([87.146.50.230]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Man6U-1ZUdxj0xcg-00KQ8V; Sat, 04 Jul 2015 11:20:57 +0200 From: Michael Albinus To: Mark Karpov Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> Date: Sat, 04 Jul 2015 11:20:56 +0200 In-Reply-To: <87twtl1axb.fsf@openmailbox.org> (Mark Karpov's message of "Fri, 03 Jul 2015 22:08:16 +0600") Message-ID: <8738141don.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:95r3izYkf6wbArVlCdmjCnaWzHB6Muuc5JyMoTkTFT1fwLLUCt0 AOrtLpPWdAwMwo7nOYqOA3VJUW8kfMLpcvoKNHzaEtI+DFa44NjTNNWMi+qqgAT4kFbjNgv s/zc7oBah6Upx+GrlHVIyiIdQ1coYNLsklCKK9aW6qlB5pM2bKkNQ1BWNQD2R52EAgocvV7 VT4cleyoai+53E8f3a2Dg== X-UI-Out-Filterresults: notjunk:1;V01:K0:nUWNNDxUWFM=:m8yHsosJiZzgP4pcHa8UeB y6Rv4Ckc53N6OfdG8TFpN0/3K4pvcnY3RjKuAV4aboSJFWC/DkWgqwfKCQ3KbkIzGBGF0jg2L +xp/510OcyO/d5avuFCjWCMP+lOZJC+Lt3jbG8otnAgznpcJiwBzY5/RHl+2eCdA+aP6AVE0x JU44XNp51aYTItu4wjqVSzVY0QuE9c8zMZq2eJ0X77borSIAAb/9+mL6zN1J8kWMi7l6lP0+u rhEGR0ZuqtkpOgljt6cESbuBdlv9Fb8u++PKahwhC0GM6yR3u/fNhfD56V23av41xWqhLYyNF TglboFJlxY7LAseNkE6lHI2qLoj2UIU4cL59zaViNOsvJn5ic56UOn3Oqk8rpEDoncJ2QwBWV BpoEOlWpczUHKvWhWl4m3naQFZ8MKXmL9Rzq2DQ3W01H/mzOCImRbSKxPHktj6FFiSng2aKlh ZJ6PTnpS+mL2oISEaT21GGW6rGxrxD4s+xFFrGwB9CUoL4KIR3rLjO0XFnubQR9VzuVfLOf5s Q5CQw6xEryXD4Hb2voAIwWC88wj1Mhvaqkr9N+NtmdsEPGGjM5MjvC0EprreEU52V/BJ6w/1g +jEcaXqr625yLQn5KQbTSl2mJLTDeIwaOKC1m4D8+o1z/gxmU87UgHVZcFy2YRrk7mDyRccPl TqL7OeVpg1sazrRRYYslXPIAb0hP0Fhcjx2A3ScjixMGq4CQZkaVHXxu53pYog/GyFRI= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mark Karpov writes: > When I copy some files or create files, they are placed by Dired in > different positions than they would be placed normally (via ls call or > whatever Emacs uses internally). This is a separate problem, because of > this, I had to press =E2=80=98g=E2=80=99 in such cases, so every file get= s in its proper > position.=20 > > What I propose is to make sure that copied/created/added to current > directory by other means files are in the same positions as they would > be displayed by ls command (or whatever Emacs uses), so when user > presses =E2=80=98g=E2=80=99 order of files doesn't change. This is a feature of dired. It doesn't want to regenerate the whole dired buffer; instead it adds the new entry at the position the cursor is pointing to. This is because reverting the dired buffer could be expensive. Think about a remote directory, think about many inserted subdirectories. Good or bad, if we want to change this behavour we would need a customer option which would trigger the regeneration of the dired buffer automatically. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 05:32:07 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 09:32:07 +0000 Received: from localhost ([127.0.0.1]:39235 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJnq-0003iz-Bi for submit@debbugs.gnu.org; Sat, 04 Jul 2015 05:32:06 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:54183) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBJnn-0003iR-Ge for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 05:32:04 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NQY00500ICRC400@a-mtaout20.012.net.il> for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 12:31:56 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQY0053QIH7AK30@a-mtaout20.012.net.il>; Sat, 04 Jul 2015 12:31:56 +0300 (IDT) Date: Sat, 04 Jul 2015 12:32:09 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd In-reply-to: <8738141don.fsf@gmx.de> X-012-Sender: halo1@inter.net.il To: Michael Albinus Message-id: <83oajsxo86.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> <8738141don.fsf@gmx.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, markkarpov@openmailbox.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Michael Albinus > Cc: Eli Zaretskii , 20943@debbugs.gnu.org > Date: Sat, 04 Jul 2015 11:20:56 +0200 > > Mark Karpov writes: > > > When I copy some files or create files, they are placed by Dired in > > different positions than they would be placed normally (via ls call or > > whatever Emacs uses internally). This is a separate problem, because of > > this, I had to press ‘g’ in such cases, so every file gets in its proper > > position. > > > > What I propose is to make sure that copied/created/added to current > > directory by other means files are in the same positions as they would > > be displayed by ls command (or whatever Emacs uses), so when user > > presses ‘g’ order of files doesn't change. > > This is a feature of dired. It doesn't want to regenerate the whole > dired buffer; instead it adds the new entry at the position the cursor > is pointing to. This is because reverting the dired buffer could be > expensive. Think about a remote directory, think about many inserted > subdirectories. But then we should set some flag that this kind of change has been done, and let autorevert test that flag and decide to revert the buffer even though its modified flag is set. > Good or bad, if we want to change this behavour we would need a customer > option which would trigger the regeneration of the dired buffer > automatically. I think if the user invoked auto-revert-mode in the Dired buffer, she already communicated that intent to us, no? From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 10:33:41 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 14:33:41 +0000 Received: from localhost ([127.0.0.1]:39832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBOVg-0005Lv-PY for submit@debbugs.gnu.org; Sat, 04 Jul 2015 10:33:41 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:17061) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBOVf-0005Le-BI for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 10:33:40 -0400 Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t64EXWTR009647 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Jul 2015 14:33:32 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t64EXVtE004151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 4 Jul 2015 14:33:32 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t64EXVnV022548; Sat, 4 Jul 2015 14:33:31 GMT MIME-Version: 1.0 Message-ID: Date: Sat, 4 Jul 2015 07:33:24 -0700 (PDT) From: Drew Adams To: Michael Albinus , Mark Karpov Subject: RE: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> <8738141don.fsf@gmx.de> In-Reply-To: <8738141don.fsf@gmx.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > This is a feature of dired. It doesn't want to regenerate the whole > dired buffer; instead it adds the new entry at the position the > cursor is pointing to. This is because reverting the dired buffer > could be expensive. Think about a remote directory, think about many > inserted subdirectories. Dunno whether performance was the only reason for doing this, but another benefit I see to the current behavior is that, because the change is shown next to point, *you see it*, even if `g' reordering might place it far way or even off-screen. It is important that users have feedback about changs. And when the changed/new file is somehow derived from the file at point (e.g., it is a copy), seeing the two right next to each other means you can immediately compare the names etc.=20 This keep-it-right-here-for-now behavior is quite important, (to me at least). When I copy a file to the same directory, for instance, and give the copy a name with a prefix (e.g. 2015-07-04) that might make it sort far away, I can nevertheless see it right there. This is about the same reason that we highlight new files (e.g., copies) specially, so you notice them easily. This gives users control over when to re-sort (using, e.g., `g'). We should not assume that re-sorting automatically is what a user wants. If we were to change this, I would very much like the changed behavior to be only an option, and not the default behavior. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 04 10:35:25 2015 Received: (at 20943) by debbugs.gnu.org; 4 Jul 2015 14:35:26 +0000 Received: from localhost ([127.0.0.1]:39836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBOXN-0005PE-GI for submit@debbugs.gnu.org; Sat, 04 Jul 2015 10:35:25 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:17301) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBOXK-0005Oy-3g for 20943@debbugs.gnu.org; Sat, 04 Jul 2015 10:35:23 -0400 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t64EZFeO010841 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 4 Jul 2015 14:35:16 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id t64EZFTg001230 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 4 Jul 2015 14:35:15 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id t64EZFK0020897; Sat, 4 Jul 2015 14:35:15 GMT MIME-Version: 1.0 Message-ID: <9a41c1d8-7244-4388-8fdb-09f1ee2d74ff@default> Date: Sat, 4 Jul 2015 07:35:09 -0700 (PDT) From: Drew Adams To: Eli Zaretskii , Michael Albinus Subject: RE: bug#20943: 25.0.50; Dired buffers are not always auto-reverterd References: <87y4j1oy87.fsf@openmailbox.org> <83bnfx2ckn.fsf@gnu.org> <87y4j0fj8m.fsf@openmailbox.org> <831tgr3np9.fsf@gnu.org> <87r3ort2bp.fsf@openmailbox.org> <83egkq1uj4.fsf@gnu.org> <87egkplmpw.fsf@openmailbox.org> <83wpyhzma4.fsf@gnu.org> <87a8vdlguy.fsf@openmailbox.org> <83si95zbjr.fsf@gnu.org> <87y4ix75t0.fsf@openmailbox.org> <83lhexz78k.fsf@gnu.org> <87twtl1axb.fsf@openmailbox.org> <8738141don.fsf@gmx.de> <83oajsxo86.fsf@gnu.org> In-Reply-To: <83oajsxo86.fsf@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Source-IP: userv0021.oracle.com [156.151.31.71] X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, markkarpov@openmailbox.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) > I think if the user invoked auto-revert-mode in the Dired buffer, > she already communicated that intent to us, no? My bad in my previous reply. I did not notice that this is about auto-reversion. (I don't use that.) I thought the request was to, in effect, auto-revert on each change (without `auto-revert-mode'). From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 09:28:31 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 13:28:31 +0000 Received: from localhost ([127.0.0.1]:44889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDBsM-0001Fj-20 for submit@debbugs.gnu.org; Thu, 09 Jul 2015 09:28:30 -0400 Received: from smtp19.openmailbox.org ([62.4.1.53]:39306) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDBsG-0001FU-HJ for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 09:28:25 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 410C62E023C for <20943@debbugs.gnu.org>; Thu, 9 Jul 2015 15:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received; s=openmailbox; t= 1436448501; bh=jslJLBPoJzcnL4VG72rAwXpvhq+w+JjDUJYI/MjwQ3s=; b=A 52h+Qq55WPxKz/ijWDTuw2fXdVxt/GJux61wsfXcL0zUHfJ+Xr2VEaMzsrgqCjyG AndRDsrJI5v8XgZe9+NqvP9rPrbYtthF3zwrXaM9XUb/JG1Mnn6GeqDuh0Y7RGb4 vtnwz8XlV+DOuf8kPsRehu2Wo/tQVN7nnetDpFFKUE= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XpIDBVtWDucK for <20943@debbugs.gnu.org>; Thu, 9 Jul 2015 15:28:21 +0200 (CEST) From: Mark Karpov To: 20943@debbugs.gnu.org Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted Date: Thu, 09 Jul 2015 19:24:42 +0600 Message-ID: <87pp41cvl1.fsf@openmailbox.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Any update/decision on this issue? I'm using this for almost a week now and it feels all right. Dired now is much more interactive, the problem of staled buffers is gone. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 10:47:48 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 14:47:48 +0000 Received: from localhost ([127.0.0.1]:45286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDD75-0003DM-DP for submit@debbugs.gnu.org; Thu, 09 Jul 2015 10:47:47 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:58075) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDD72-0003D8-PP for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 10:47:45 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NR800G0065CV600@mtaout27.012.net.il> for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 17:44:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR80053469ZBUC0@mtaout27.012.net.il>; Thu, 09 Jul 2015 17:44:23 +0300 (IDT) Date: Thu, 09 Jul 2015 17:47:35 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <87pp41cvl1.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83615tv14o.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Date: Thu, 09 Jul 2015 19:24:42 +0600 > > > Any update/decision on this issue? I'm using this for almost a week now > and it feels all right. Dired now is much more interactive, the problem > of staled buffers is gone. We need to come up with a way of telling auto-revert that although the buffer was modified by the commands you mentioned, it's okay to revert it. Can you suggest a change along those lines? From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 11:33:53 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 15:33:53 +0000 Received: from localhost ([127.0.0.1]:45326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDph-0004Jq-2n for submit@debbugs.gnu.org; Thu, 09 Jul 2015 11:33:53 -0400 Received: from smtp26.openmailbox.org ([62.4.1.60]:43974) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDpe-0004Jh-VN for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 11:33:51 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id F3A7D2E01E1; Thu, 9 Jul 2015 17:33:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436456028; bh=XNBI7SePXon/mrSLPWKG/JLXN1089QoG2Xv3x13CVlk=; b= b8PMFh3wuYni26ShmesbWNZhclDEjWOkdsJE+dVEJcv9XqM4TeO3F9q8UJpwokN6 jdHkZslU40b08ushUOSx5kAUFFNP+58ko4eQbO8W3PAnW9aWsLxPnDkObPky4o8p mjh7BMlQT9mlYJD4DyXpe9M8Usr+TU2spcTyxsPRPwc= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ed2aipbaoRnM; Thu, 9 Jul 2015 17:33:48 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> Date: Thu, 09 Jul 2015 21:30:10 +0600 In-Reply-To: <83615tv14o.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jul 2015 17:47:35 +0300") Message-ID: <874mldtkl9.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) > We need to come up with a way of telling auto-revert that although the > buffer was modified by the commands you mentioned, it's okay to revert > it. Can you suggest a change along those lines? I propose two changes: 1. In =E2=80=98auto-revert-handler=E2=80=99, autorevert modified files if c= urrent buffer is a Dired buffer: (defun auto-revert-handler () "Revert current buffer, if appropriate. This is an internal function used by Auto-Revert Mode." (when (or auto-revert-tail-mode (eq major-mode dired-mode) (not (buffer-modified-p))) ...)) This removes =C2=ABfreezing=C2=BB of modified buffers (=E2=80=98auto-revert= -buffer=E2=80=99 is only called when auto-revert mode is enabled right? this should not affect users who don't use auto-revert). This is what I currently use. Control flow goes into body of =E2=80=98when=E2=80=99 and for Dired bu= ffers this boils down to conditions that check if current buffer is stale, and if it is, then the function revert it. 2. To eliminate adverse effects (reordering of files because of auto-revert mode), we need to write down all functions (commands) that can insert new elements out of order in Dired buffer, then at the end of every such a command, add: (when auto-revert-mode (revert-buffer nil t t)) ;; not sure about the collection of args This should be done only for Dired-specific commands (that are used only in Dired mode, if there is uncertainty, add additional condition to test that current major mode is =E2=80=98dired-mode=E2=80=99), of course. In principle, a macro can be written for this set of functions, but I don't think it's a good idea for Elisp, given such limited use case. The only thing I cannot do myself from this is form full list of functions that should call =E2=80=98revert-buffer=E2=80=99 when =E2=80=98au= to-revert-mode=E2=80=99 is enabled. You should be able to do it better than me. These functions should contain reverting code in themselves because =E2=80=98auto-revert-handler=E2=80=99 cannot help here =E2=80=94 its period= is too long. Maybe I don't see some corner cases? If you disagree with this plan, let's discuss it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 11:43:55 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 15:43:55 +0000 Received: from localhost ([127.0.0.1]:45346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDzP-0004ZX-3S for submit@debbugs.gnu.org; Thu, 09 Jul 2015 11:43:55 -0400 Received: from smtp24.openmailbox.org ([62.4.1.58]:36567) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDDzN-0004ZP-8B for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 11:43:53 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 4C48A2E01E1; Thu, 9 Jul 2015 17:43:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436456630; bh=AhEXHkU+L7xPdYyDyovp9Go1hRfVAm2QRUjvbeW41aI=; b= cZwUuQ7Br0moOPw3l41TvdY7TLXzY0E3bSGx+mBG15fR+MOzhGlPqEdAHf7xLsWn EtgHGHTipyua4XEwzE8Ae4ON1vAeS22z81U61asvWtrU/U3oZhxGrh1BNTZYdF7P bjXhTFzBXIHptVdW64u7a+hTWiE2uKnfDtRQXxkZJTk= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id d7LLh_MEgfkF; Thu, 9 Jul 2015 17:43:50 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> Date: Thu, 09 Jul 2015 21:40:12 +0600 In-Reply-To: <83615tv14o.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jul 2015 17:47:35 +0300") Message-ID: <87zj35s5k3.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) No, at the end of inserting function should be the following: (when auto-revert-mode (auto-revert-handler)) That's it. This will also check if user wants to autorevert non-file buffers (according to =E2=80=98global-auto-revert-non-file-buffers=E2=80=99= ) and all the stuff. Since such functions edit directory, buffer will be recognized as stale and this will revert it. This is simple, even elegant, I think. This is how I would do it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 14:42:01 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 18:42:01 +0000 Received: from localhost ([127.0.0.1]:45470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDGll-0001us-Eq for submit@debbugs.gnu.org; Thu, 09 Jul 2015 14:42:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:56481) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDGlj-0001ub-9U for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 14:41:59 -0400 Received: from detlef.gmx.de ([87.146.52.158]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LfTC1-1YgTFG2u7t-00p3nw; Thu, 09 Jul 2015 20:41:51 +0200 From: Michael Albinus To: Mark Karpov Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> Date: Thu, 09 Jul 2015 20:41:50 +0200 In-Reply-To: <874mldtkl9.fsf@openmailbox.org> (Mark Karpov's message of "Thu, 09 Jul 2015 21:30:10 +0600") Message-ID: <874mld18cx.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:FNfIDP3b0TAslxRDRJxuatPVWrA9HS+RX3VkASliy8SeRowYY7a kh7Ao744kMZpntL7OilEn3E/RHKTb8PWSlvolaFfQ1ti4GYnhs2gb+tITtqLS9HDW4K1QME bfb2JOv75Fwu3HZVkkXSZHSgc3kiBc/VmbZD7VjTu3uuM7/AzEjKrRvbFz43dZJYJqFFZrB agRVMMeg0TCtDTcdq1TsQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Zy7659N50es=:Y+x5FJg1LQ3mdM4SQqy5YZ idisfOMv8RwkHSbxc7H8eTGNXHzGZ+jO6SnkZWRB2kVYoakiZ/KsobITjCbDtEdcfd2kG66qS zveWQInW8G7idYi6W7xVxPHtyyNwxOTDEXY1ffoPzRecCCKM4e11kZv8i4cASdcHKA7sRx+dE TcFcLyXhuRC2beJwb/Fa9pDFj+YCimbI2Rtr/AzMC411UnuXhJLf3PnyajwHREMVpFQuUyA4d wT1LJk9Tz7Sozm3wL94/SHUEJdQNYZg3JYJGXB5ymraI4BtJAWtwfMHtnkBbr6rnCx6plZ7sV MllgWDjNR/XayJ4wc2sxreRlTlAM5mKiNvwt1wOVTvcAQYTsUFdCNW3fwaH+6Qe4lkAXG7fMq RHiKu++deHC9+qwzDpQuQlJGYHA2nMhYDh345u5UHf7Iju947qvuhomZFAhzJP/dLd5g8+g8q fxO4BO3wvl2QYx82yKr8EIyp6Fyb9Szc8gCgksgllLLSb2dRhwLjsQxjksfrSt8IG7Z0RpOHb biZm9D7n2iTMBY/JW+HQGVg23RZRgb4WRuTO+n74K+kYlm/lO/5enLS5QEIzXZoK3hx4V5A8j sPYCgwMshdHbyssDZX9iYTmAnZsoqrTNLFMIHV7EgYO1iRVROCHBVz9FlKjDdEIzL9Dmju9AQ bBzHBhesHTCriOlHxd0y8Jl6OAY8mK2NASiFaj7PLKmPyRKLY0pMe/+5luIjevFNxjrE= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mark Karpov writes: > 1. In =E2=80=98auto-revert-handler=E2=80=99, autorevert modified files if= current buffer > is a Dired buffer: > > (defun auto-revert-handler () > "Revert current buffer, if appropriate. > This is an internal function used by Auto-Revert Mode." > (when (or auto-revert-tail-mode > (eq major-mode dired-mode) > (not (buffer-modified-p))) > ...)) I fear this is the wrong direction to fix it. `auto-revert-handler' shall not know about major modes. All what a buffer has to say to `auto-revert-handler' must be in `buffer-stale-function', which is set to `dired-buffer-stale-p' here. What happens, if you remove the test for `buffer-read-only' from that function? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 15:46:23 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 19:46:23 +0000 Received: from localhost ([127.0.0.1]:45503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDHm2-0003UZ-9E for submit@debbugs.gnu.org; Thu, 09 Jul 2015 15:46:22 -0400 Received: from smtp26.openmailbox.org ([62.4.1.60]:59861) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDHlz-0003UQ-Jo for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 15:46:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id 449802E007D; Thu, 9 Jul 2015 21:46:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436471176; bh=xZQHaID6IQIV62p/hnbH2FLneREGu9EK7uRlyRsfLWc=; b= RRqsXj4ktZQtr435mWaL55kJROICoW1Ak/SLxx+wTQnqElB6Yu1hrhQ1JB5JCzf0 V0nOyPSwoMu+eTcLGU/plENZYq3AHFkDbJEwgF2fLnoAOBWvPLFmtL8Jfhc/de1r 4oFP8rqKR6aUEgDss1ed3tx5suJeX3AyaeAWjm5dqNg= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Sf2XkHcnLddO; Thu, 9 Jul 2015 21:46:16 +0200 (CEST) From: Mark Karpov To: Michael Albinus Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> Date: Fri, 10 Jul 2015 01:42:38 +0600 In-Reply-To: <874mld18cx.fsf@gmx.de> (Michael Albinus's message of "Thu, 09 Jul 2015 20:41:50 +0200") Message-ID: <87io9t3yoh.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Michael Albinus writes: > I fear this is the wrong direction to fix it. `auto-revert-handler' shall > not know about major modes. All what a buffer has to say to > `auto-revert-handler' must be in `buffer-stale-function', which is set to > `dired-buffer-stale-p' here. I can understand the desire for abstraction. The thing is that as currently written =E2=80=98auto-revert-handler=E2=80=99 won't get to that p= art where it calls =E2=80=98buffer-stale-function=E2=80=99. The =E2=80=98when=E2=80=99 s= tatement cut it too early with (not (buffer-modified-p)). What we actually need to decide is whether this behavior will be unique to Dired or not. I feel like it's quite unique. Dired buffer is not like normal file buffer or anything else. So, in some way we have to check in =E2=80=98auto-revert-handler=E2=80=99 if we are in Dired buffer or not. Frankly, you have three concepts that control behavior of =E2=80=98auto-revert-mode=E2=80=99: * buffer associated with file (this may be used as =C2=ABfourth notion=C2= =BB, although I don't know which buffers else are not associated with files, chances are the new behavior is not very good for anything other than Dired), * modified buffer, * stale buffer. This is not enough to implement this new behavior, you need more information about buffer now. So, you need fourth notion that would tell you if current buffer is such that you can revert it even if it's modified. Now, if you like to keep it on more abstract level, you can introduce some notion for this sort of buffers, buffers that should be reverted by =E2=80=98auto-revert-mode=E2=80=99 even when they are modified. You can introduce a list that will enumerate major modes that define such buffers, or implement it in some other way. Then you can have a predicate that will tell you what if you're in such a special buffer or not. > What happens, if you remove the test for `buffer-read-only' from that > function? Sorry, I don't know which function you mean. Please be explicit, because my knowledge of internal workings of Emacs is somewhat limited and thus I'm bad at guessing. If you mean =E2=80=98auto-revert-handler=E2=80=99, it = doesn't matter, because you need to insert new condition here: (when (or auto-revert-tail-mode (not (buffer-modified-p))) ...) This is my point of view, I don't know if it's helpful. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 09 15:54:35 2015 Received: (at 20943) by debbugs.gnu.org; 9 Jul 2015 19:54:35 +0000 Received: from localhost ([127.0.0.1]:45530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDHty-0003hQ-Om for submit@debbugs.gnu.org; Thu, 09 Jul 2015 15:54:35 -0400 Received: from smtp20.openmailbox.org ([62.4.1.54]:42413) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDHtw-0003hH-R5 for 20943@debbugs.gnu.org; Thu, 09 Jul 2015 15:54:33 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id E085E2E007B; Thu, 9 Jul 2015 21:54:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436471670; bh=iARlyxfmMd4N6m17two+AXeUHWDcmvsAyETYqokbmZA=; b= YnLQeY8l7Cc4agRgU71qyu3AfPK+17jCsN5P34suiN98ix/d64JbNYLmGqq0QZzb JTsrXMfLn3lzCOkx90qt+oj5jsNTs8bCEY2YmvzWniAEUK71DVkJVTNgKB/Xt2xs Up7hZ2028GCg2yIKEZXpekIkEXfcNQWpU4tE6sShTDc= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 6hUCa5FQEzLa; Thu, 9 Jul 2015 21:54:30 +0200 (CEST) From: Mark Karpov To: Michael Albinus Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> Date: Fri, 10 Jul 2015 01:50:48 +0600 In-Reply-To: <874mld18cx.fsf@gmx.de> (Michael Albinus's message of "Thu, 09 Jul 2015 20:41:50 +0200") Message-ID: <87egkh3yav.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Currently I'm happy with my version of =E2=80=98auto-revert-buffer=E2=80=99= . If you think it gets too hairy. I can just create a package that fixes all this stuff, so Dired can be really interactive and put it on MELPA for example. But as a user, I'm telling you that current standard behavior is really confusing. If you set something to auto-revert your Dired buffer (and this is something many people expect from utility to browse directories), than when it works sometimes, but cease to work when you made changes (probably having no idea that the buffer now considered =C2=ABmodified=C2=BB) =E2=80=94 this ain't good. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 01:43:49 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 05:43:49 +0000 Received: from localhost ([127.0.0.1]:45727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDR6D-0000um-8S for submit@debbugs.gnu.org; Fri, 10 Jul 2015 01:43:49 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:59869) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDR6A-0000uX-5H for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 01:43:47 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NR900600BNOHE00@a-mtaout20.012.net.il> for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 08:43:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR90068LBWRHY00@a-mtaout20.012.net.il>; Fri, 10 Jul 2015 08:43:39 +0300 (IDT) Date: Fri, 10 Jul 2015 08:43:37 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <87egkh3yav.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83si8wbm9i.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87egkh3yav.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Cc: Eli Zaretskii , 20943@debbugs.gnu.org > Date: Fri, 10 Jul 2015 01:50:48 +0600 > > > Currently I'm happy with my version of ‘auto-revert-buffer’. If you > think it gets too hairy. I can just create a package that fixes all this > stuff, so Dired can be really interactive and put it on MELPA for > example. > > But as a user, I'm telling you that current standard behavior is really > confusing. If you set something to auto-revert your Dired buffer (and > this is something many people expect from utility to browse > directories), than when it works sometimes, but cease to work when you > made changes (probably having no idea that the buffer now considered > «modified») — this ain't good. No one's disputing that. The only issue we need to resolve is how to let Dired buffers auto-revert even when the user actually edits the directory, without causing unnecessary re-reads of the directory (for the sake of remote directories). From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 01:46:41 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 05:46:42 +0000 Received: from localhost ([127.0.0.1]:45735 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDR8z-0000zX-2p for submit@debbugs.gnu.org; Fri, 10 Jul 2015 01:46:41 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:42315) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDR8x-0000zI-0n for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 01:46:39 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NR900000C0V6200@a-mtaout22.012.net.il> for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 08:46:31 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR9000RWC1H5I00@a-mtaout22.012.net.il>; Fri, 10 Jul 2015 08:46:31 +0300 (IDT) Date: Fri, 10 Jul 2015 08:46:27 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <87io9t3yoh.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83r3ogbm4s.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Cc: Eli Zaretskii , 20943@debbugs.gnu.org > Date: Fri, 10 Jul 2015 01:42:38 +0600 > > Frankly, you have three concepts that control behavior of > ‘auto-revert-mode’: > > * buffer associated with file (this may be used as «fourth notion», > although I don't know which buffers else are not associated with > files, chances are the new behavior is not very good for anything > other than Dired), > > * modified buffer, > > * stale buffer. > > This is not enough to implement this new behavior, you need more > information about buffer now. So, you need fourth notion that would tell > you if current buffer is such that you can revert it even if it's > modified. > > Now, if you like to keep it on more abstract level, you can introduce > some notion for this sort of buffers, buffers that should be reverted by > ‘auto-revert-mode’ even when they are modified. > > You can introduce a list that will enumerate major modes that define > such buffers, or implement it in some other way. Then you can have a > predicate that will tell you what if you're in such a special buffer or > not. How about instead introducing a buffer-local variable, say auto-revert-when-modified, which Dired will set to a non-nil value, and auto-revert will test? Then, when this variable is non-nil, auto-revert could disregard the modified status, and revert the buffer, if stale, anyway. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 02:02:00 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 06:02:00 +0000 Received: from localhost ([127.0.0.1]:45751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRNn-0001Md-Oz for submit@debbugs.gnu.org; Fri, 10 Jul 2015 02:02:00 -0400 Received: from mout.gmx.net ([212.227.17.20]:59268) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRNl-0001MP-7E for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 02:01:57 -0400 Received: from detlef.gmx.de ([93.209.80.73]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Lkjuq-1YdH9F34hY-00aS8j; Fri, 10 Jul 2015 08:01:49 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> Date: Fri, 10 Jul 2015 08:01:48 +0200 In-Reply-To: <83r3ogbm4s.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jul 2015 08:46:27 +0300") Message-ID: <87vbdszh2r.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:FJcgBD8orJ0lsW0dDQuu18CQGpEb8tuj2u7Rmwb6y3kLWjlHgyx 72Zbvpwb80O6WdwprbNklwvfrTXxjr1x9CahconlxYMK26TOfV4jjXMX3AV0ulZw+Yk7NGa 1paXBkqaw9meNpZGxZ0xckQazfigXtPkD6DdweNBgqQoJhU0ysWD1rutaI4EWoYL3Ovxw37 +P6DNcsQkdladuBRK3fSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:JdDYlD6737k=:s/4VEkCjSRMeSrDpUwNBGT ETeO3gXabJyB067WAxY+ezKw6EpEo2rB6HCHMAj0YyGs0YB/yf37Nh6qHveXwioXei89iIlWu F0AusHpU24+BIRS8J+B6zEUHbeV+lN4tqptAibcrNmSpBjbmgVtxnY4OC7ccjkBfXl7XKJRFs TeZGrSJZREJrbG4vVQSo9/xVandKRNWPW0WT2k6Zj3/1LR+Aw/lLwGJBJiz+ZZH/iAMrzujcK RccWMZPyqPVWyLGO5aAaRBeZFj9z5WTu0XuXjBP7OQ2oOmVTFde7mlFCVL2WoUSZSh5wGXU0Y 9SShJDuSPkdZGvAm7eRqUDaZNWZ3f2c5RjxuKmjzG/ind0nnQaCapjP1pbsGx7t0n7DLu1EIF hkkTlXYB7dmnwSMPbo91Oi1sMMgbFfDSJfypbPHzmun/jXWdXPLTyfkLL3wre1q3TREZ1lldS DTcFqbdyW4mfx0qT8zXHyT3+Na05ph+CC7uxexTe+kqK9t2zwqCYgC+SNBMhLD4ml8/Vz/WVh oXefPnd/SiYeBPBuL+AqpZ+gvxxw3H1BRC5U9SDSknlGZJfXQNsi8+PlAD24Tq7szM3b2MbAV GSL5xINgjGx3BxAK6GDETRTDuQe9K4BhhKveM5BwsYh0rrkza6ufWxn0b3tZim/CKxjRCXvbD 1X0XNXLFnTVAFBqqhgh88qo0UQqrWdC3MS5RiXudDNa9mESabxEB75uzinKMg989RzwU= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, Mark Karpov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: > How about instead introducing a buffer-local variable, say > auto-revert-when-modified, which Dired will set to a non-nil value, > and auto-revert will test? Then, when this variable is non-nil, > auto-revert could disregard the modified status, and revert the > buffer, if stale, anyway. I believe we could use the existing -stale-p mechanism for that purpose. dired-stale-p shall decide to return a proper value, even if the dired buffer is modified. It will follow the same logic as you have proposed above. And we could implement different logic, depending whether default-directory is a remote file name. auto-revert-handler shall not cease to work unconditionally, when buffer-modified-p is non-nil. This check shall be done only for buffers with a related file (buffer-file-name is non-nil). For all other buffers, -stale-p shall decide, whether buffer-modified-p must be taken into account. Thinking about, we might even extract a new function auto-revert-buffer-with-file-stale-p from auto-revert-handler. This would handle the case for buffers with a non-nil buffer-file-name. auto-revert-handler would call always the buffer-local -stale-p function; the code would be cleaner. I will try to write such a patch if nobody beats me. Unfortunately, it will take time; I'm still suffering from my health problems. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 02:24:37 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 06:24:37 +0000 Received: from localhost ([127.0.0.1]:45807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRjg-0001zx-PB for submit@debbugs.gnu.org; Fri, 10 Jul 2015 02:24:37 -0400 Received: from smtp12.openmailbox.org ([62.4.1.46]:40389) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDRje-0001zp-IC for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 02:24:35 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 5F9FC202134; Fri, 10 Jul 2015 08:24:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436509471; bh=hz2G2zYOQOV2e9cYypi2sbw9PnnKnGIWzV4qP/wdVEA=; b= Uc2HGxpqGMtYneaVXvybfrrBlnazOc412xll/iac5ofgnIVYLG23mWrxUOqeRyot 8WMf0ZIMjP3KCsZUmddfOkA71bJp6Oo44OtBT5p8xgVZ+Yp3HZt9MZgQy8l3+QBL sbBeeZmG3XDC0XviemBfXgIwnEUyJ5ZB5zvGpstU6Cc= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ii1wBhTJcVxm; Fri, 10 Jul 2015 08:24:31 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87egkh3yav.fsf@openmailbox.org> <83si8wbm9i.fsf@gnu.org> Date: Fri, 10 Jul 2015 12:20:47 +0600 In-Reply-To: <83si8wbm9i.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jul 2015 08:43:37 +0300") Message-ID: <871tggttxc.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) Eli Zaretskii writes: > No one's disputing that. The only issue we need to resolve is how to > let Dired buffers auto-revert even when the user actually edits the > directory, without causing unnecessary re-reads of the directory (for > the sake of remote directories). Those who need to work with remote directories could disable this feature (=E2=80=98auto-revert-mode=E2=80=99 or =E2=80=98global-auto-revert-= non-file-buffers=E2=80=99). This feature certainly requires more re-reads by definition. There will be no =E2=80=9Cunnecessary=E2=80=9D re-reads, however: * =E2=80=98auto-revert-handler=E2=80=99 will re-read directory only if it's= stale; * other editing functions will call =E2=80=98auto-revert-handler=E2=80=99 s= ooner than it would be normally called, but number of re-reads remains the same (after call of =E2=80=98auto-revert-handler=E2=80=99 buffer will be no lo= nger stale). From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 03:10:35 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 07:10:35 +0000 Received: from localhost ([127.0.0.1]:45878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDSS9-0003A6-QM for submit@debbugs.gnu.org; Fri, 10 Jul 2015 03:10:34 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:56089) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDSS6-00039n-QQ for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 03:10:32 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NR900N00FA8X000@mtaout24.012.net.il> for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 10:01:53 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR900HCXFJ5QU70@mtaout24.012.net.il>; Fri, 10 Jul 2015 10:01:53 +0300 (IDT) Date: Fri, 10 Jul 2015 10:10:22 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <87vbdszh2r.fsf@gmx.de> X-012-Sender: halo1@inter.net.il To: Michael Albinus Message-id: <83lheobi8x.fsf@gnu.org> References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, markkarpov@openmailbox.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Michael Albinus > Cc: Mark Karpov , 20943@debbugs.gnu.org > Date: Fri, 10 Jul 2015 08:01:48 +0200 > > Eli Zaretskii writes: > > > How about instead introducing a buffer-local variable, say > > auto-revert-when-modified, which Dired will set to a non-nil value, > > and auto-revert will test? Then, when this variable is non-nil, > > auto-revert could disregard the modified status, and revert the > > buffer, if stale, anyway. > > I believe we could use the existing -stale-p mechanism for that > purpose. dired-stale-p shall decide to return a proper value, even if > the dired buffer is modified. What Mark was trying to tell you is that dired-stale-p is not even called when buffer-modified-p returns non-nil. So what you suggest is impossible without a thorough rewrite of the beginning of auto-revert-handler. My suggestion was intended to allow much less invasive changes in that complicated logic. > It will follow the same logic as you have proposed above. And we > could implement different logic, depending whether default-directory > is a remote file name. Why is such a different logic a good idea? If the user requests auto-reverts in a remote directory, she should get what she asked for, IMO. It would be confusing to have different results depending on whether the directory is local or not. > auto-revert-handler shall not cease to work unconditionally, when > buffer-modified-p is non-nil. This check shall be done only for buffers > with a related file (buffer-file-name is non-nil). For all other > buffers, -stale-p shall decide, whether buffer-modified-p must be > taken into account. Again, you are talking about inverting the current logic. If you are certain this won't produce unintended consequences, by all means go ahead. But I still don't understand why your suggestion is better than mine. You didn't point out any downsides in my suggestion. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 03:13:14 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 07:13:14 +0000 Received: from localhost ([127.0.0.1]:45883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDSUk-0003Ed-8U for submit@debbugs.gnu.org; Fri, 10 Jul 2015 03:13:14 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]:57426) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDSUh-0003EN-VD for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 03:13:12 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NR900000G0DQP00@a-mtaout22.012.net.il> for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 10:13:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR9000U6G1THDA0@a-mtaout22.012.net.il>; Fri, 10 Jul 2015 10:13:05 +0300 (IDT) Date: Fri, 10 Jul 2015 10:13:03 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <871tggttxc.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83k2u8bi4g.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87egkh3yav.fsf@openmailbox.org> <83si8wbm9i.fsf@gnu.org> <871tggttxc.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Cc: michael.albinus@gmx.de, 20943@debbugs.gnu.org > Date: Fri, 10 Jul 2015 12:20:47 +0600 > > This feature certainly requires more re-reads by definition. Which is why I used "unnecessary". > There will be no “unnecessary” re-reads, however: Yes, there could be: the ideal solution of the conundrum with using Copy, Delete, and Rename commands in the Dired buffer would be to re-read the directory, instead of leaving the modified files near point. But the price is the need to re-read remote directories, and we want to avoid that price, if possible. That is what I alluded to, nothing else. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 03:50:29 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 07:50:29 +0000 Received: from localhost ([127.0.0.1]:45902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDT4m-0004Ev-Qd for submit@debbugs.gnu.org; Fri, 10 Jul 2015 03:50:29 -0400 Received: from smtp2.openmailbox.org ([62.4.1.36]:46284) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDT4j-0004Eh-KB for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 03:50:26 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 3813A202132; Fri, 10 Jul 2015 09:50:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1436514622; bh=X9V2XakWvGi5CTzbn1QWA6nsBRt/tQ4BQVOngA42/X8=; b= hHeh/wm+lnEkXW308tREl9vgx8uVKmF4i8D8sjviuGc6ifzLfVlfh7XvKNFcc7xL FON2AgRMGgHJ8SIamyKOh2MsM9ng8x9OfTWdac5+ZYbYfaSjPu5zJNo9qc5469pj ysVFn3rHJiGG3nziY3Gbgqr6AuINCmh1Gx2Xi+pdT9w= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id QlCbumf98zY5; Fri, 10 Jul 2015 09:50:22 +0200 (CEST) From: Mark Karpov To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87egkh3yav.fsf@openmailbox.org> <83si8wbm9i.fsf@gnu.org> <871tggttxc.fsf@openmailbox.org> <83k2u8bi4g.fsf@gnu.org> Date: Fri, 10 Jul 2015 13:46:43 +0600 In-Reply-To: <83k2u8bi4g.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jul 2015 10:13:03 +0300") Message-ID: <87twtcsbdo.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) You're saying: > Why is such a different logic a good idea? If the user requests > auto-reverts in a remote directory, she should get what she asked for, > IMO. It would be confusing to have different results depending on > whether the directory is local or not. >From this I understand that you are in favor of =E2=80=9Cdynamic=E2=80=9D auto-revert-mode for remote directories. This makes sense, if user chooses to auto-revert Dired buffers, =E2=80=98she should get what she asked for=E2=80=99 =E2=80=94 that's right. > But the price is the need to re-read remote directories, and we want > to avoid that price, if possible. But this is not possible. This contradicts with the previous quotation. Let it be re-read. User can disable it anyway. If revertion of buffers is slow, chances are user won't even enable it if he works with remote directories. If it's slow/better to be avoided, don't use it, use good ol' Dired without auto-revert magic. If you're expecting Dired buffers to be =E2=80=9Cdynamic=E2=80=9D, this is your choice =E2=80= =94 you will have to re-read directories more often. It's as simple as that (at least for me). From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 04:03:26 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 08:03:26 +0000 Received: from localhost ([127.0.0.1]:45908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDTHK-0004ad-3o for submit@debbugs.gnu.org; Fri, 10 Jul 2015 04:03:26 -0400 Received: from mtaout26.012.net.il ([80.179.55.182]:52487) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDTHH-0004aI-He for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 04:03:24 -0400 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NR900C00IDWU500@mtaout26.012.net.il> for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 11:06:14 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NR9005F7IIEOF70@mtaout26.012.net.il>; Fri, 10 Jul 2015 11:06:14 +0300 (IDT) Date: Fri, 10 Jul 2015 11:03:14 +0300 From: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted In-reply-to: <87twtcsbdo.fsf@openmailbox.org> X-012-Sender: halo1@inter.net.il To: Mark Karpov Message-id: <83h9pcbfst.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87egkh3yav.fsf@openmailbox.org> <83si8wbm9i.fsf@gnu.org> <871tggttxc.fsf@openmailbox.org> <83k2u8bi4g.fsf@gnu.org> <87twtcsbdo.fsf@openmailbox.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, michael.albinus@gmx.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Mark Karpov > Cc: michael.albinus@gmx.de, 20943@debbugs.gnu.org > Date: Fri, 10 Jul 2015 13:46:43 +0600 > > > You're saying: > > > Why is such a different logic a good idea? If the user requests > > auto-reverts in a remote directory, she should get what she asked for, > > IMO. It would be confusing to have different results depending on > > whether the directory is local or not. > > >From this I understand that you are in favor of “dynamic” > auto-revert-mode for remote directories. This makes sense, if user > chooses to auto-revert Dired buffers, ‘she should get what she asked > for’ — that's right. > > > But the price is the need to re-read remote directories, and we want > > to avoid that price, if possible. > > But this is not possible. This contradicts with the previous > quotation. Only because you take my quotation out of its context. What we want to avoid is the price of re-reading the directory when the user copies or deletes or renames a file via Dired commands, _as-an_immediate_result_ of these commands. We cannot possibly avoid re-reading it when the time comes to check if the buffer is stale and needs to be reverted. IOW, the directory _will_ be re-read, but only when the notification about some changes comes in or the 5-sec timer for checking whether the directory is stale expires. it will _not_ be re-read as result of your copying or deleting a file. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 10 04:47:01 2015 Received: (at 20943) by debbugs.gnu.org; 10 Jul 2015 08:47:01 +0000 Received: from localhost ([127.0.0.1]:45912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDTxU-0005eK-U9 for submit@debbugs.gnu.org; Fri, 10 Jul 2015 04:47:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:62205) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZDTxS-0005e5-7z for 20943@debbugs.gnu.org; Fri, 10 Jul 2015 04:46:59 -0400 Received: from detlef.gmx.de ([93.209.80.73]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MZlEg-1ZRImL1DLC-00LWOq; Fri, 10 Jul 2015 10:46:51 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> <83lheobi8x.fsf@gnu.org> Date: Fri, 10 Jul 2015 10:46:50 +0200 In-Reply-To: <83lheobi8x.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 10 Jul 2015 10:10:22 +0300") Message-ID: <87pp40z9fp.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:FART2Sw1yvBR2bRpwpNhgwS6LnaRuSccuQk0bR0R1HE6tPg/wyX lZC7rmvEljwd78yLZLkUSsovX3unBUjNdKNE0gv3OWqzdN+8vD9VAbCuoAtL27T1mBSuJne PaGqjxvtsRiRqnPbf4//Jh8xtBWdAOgABa64P2QOFePmhzSiU4ZbF1S1O9JxeL+0IkVmCgE 49flk+BgD1OlM0Gsk8Jbg== X-UI-Out-Filterresults: notjunk:1;V01:K0:Dgvk5Rsp7hY=:xREZifV0qCsm7hxMnHp5z9 QbtM+9VbVutJ2J08TCVp5JhEiv1yXEurFvEBvXEG0xpHv9xQtdUZQHE6dClIQYnx03LxRDO+Z /wpcHMewB3JZGV37nsayfhXaA109YElGt22K5nRmLKpH5+rc/6ageN++SyX3xJ2H/hM4icEou BzAV+sPHq1d0uJaLre46vDxJhJI2KblfRjIMedhKtri5Xv3OWSg2H+u3TqijydQ+mDZXtZ7CT 3YBDMqm7L5SwvkwoDUOGfqQf7WcLeP2lHf2Z5EwoQYzC/scCsBh3IRNJw6S+ocNK4WbaSUQcP atjH6/9d4B2dQj5fZ2IvNBLP4qf6j1p+KPr/Loa/wD3hducgUQc1ROhw/7DZOH5hU5/ilhsZX 0CK40AsP9toYJ2g1okL4jcYaelrgLLN78SsL+/c8PfY6UIxbg88t2pV8LoCfQy4rSIDB5yDkf ZD7Y9+8N9O394wnUI36AxsPA/mPUS7gCe7rRTiKJjdCKioFFaOtb86hPqPHYHmrqN/6Pf4RS7 fhgdbetVfB7Ldke4XSI50z9Od2mrXoAfaQNFCViVF2md7BDTx0CsMCob9ZwpL/PZlka0CEjG2 5SN9s/+gwvf7MrMYwVlHe1tKIw4i01dvETHryHnt2qqDzZQ9a2k2o5Gfb85rLs0nZ8VHAseyV sfAsMpQjEVIhT2xBoAuVF0ZOzOMwK7erltVLhKULak/VyyfQDGqxKElAkYWATHWfwHaU= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, markkarpov@openmailbox.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Eli Zaretskii writes: >> > How about instead introducing a buffer-local variable, say >> > auto-revert-when-modified, which Dired will set to a non-nil value, >> > and auto-revert will test? Then, when this variable is non-nil, >> > auto-revert could disregard the modified status, and revert the >> > buffer, if stale, anyway. >> >> I believe we could use the existing -stale-p mechanism for that >> purpose. dired-stale-p shall decide to return a proper value, even if >> the dired buffer is modified. > > What Mark was trying to tell you is that dired-stale-p is not even > called when buffer-modified-p returns non-nil. So what you suggest is > impossible without a thorough rewrite of the beginning of > auto-revert-handler. That's why I have proposed to remove the buffer-modified-p check from auto-revert-handler. It shall be checked in -stale-p, if desired. >> It will follow the same logic as you have proposed above. And we >> could implement different logic, depending whether default-directory >> is a remote file name. > > Why is such a different logic a good idea? If the user requests > auto-reverts in a remote directory, she should get what she asked for, > IMO. It would be confusing to have different results depending on > whether the directory is local or not. I haven't said that we must do this. But it would be possible. >> auto-revert-handler shall not cease to work unconditionally, when >> buffer-modified-p is non-nil. This check shall be done only for buffers >> with a related file (buffer-file-name is non-nil). For all other >> buffers, -stale-p shall decide, whether buffer-modified-p must be >> taken into account. > > Again, you are talking about inverting the current logic. If you are > certain this won't produce unintended consequences, by all means go > ahead. But I still don't understand why your suggestion is better > than mine. You didn't point out any downsides in my suggestion. Avoiding spaghetti code. The existing interface with -stale-p is sufficient, I believe. Adding an additional interface (setting buffer-local auto-revert-when-modified) would introduce another interface, maybe in concurrency to -stale-p. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 14 12:28:31 2015 Received: (at 20943) by debbugs.gnu.org; 14 Jul 2015 16:28:31 +0000 Received: from localhost ([127.0.0.1]:49184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZF34I-0007I0-S2 for submit@debbugs.gnu.org; Tue, 14 Jul 2015 12:28:31 -0400 Received: from mout.gmx.net ([212.227.15.15]:64156) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZF34H-0007Hk-Ar for 20943@debbugs.gnu.org; Tue, 14 Jul 2015 12:28:29 -0400 Received: from detlef.gmx.de ([93.209.69.43]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MfVYB-1ZdZIz0mq3-00P1ws; Tue, 14 Jul 2015 18:28:22 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> Date: Tue, 14 Jul 2015 18:28:21 +0200 In-Reply-To: <87vbdszh2r.fsf@gmx.de> (Michael Albinus's message of "Fri, 10 Jul 2015 08:01:48 +0200") Message-ID: <87pp3uael6.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:tdwrMJiplDIkNt1MgwIofRhPm5+eXmeXfWxsbx0sFLL3sjuuAT8 rxhM+9uun+FKnbVO4qtY5xS/7zeNJVML8XgJYqYVxjkEa+Woi4r3kdPsEAUbLjqwW/kZmZq v444VeC477RZMOvjPiW/Ma/4CRS88pKActAEt1b2EgO/klaeSlmWEoFT7mBVlgd6n6nSHGW nG2MbYa4U3A6fmU55TEBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:C5Ihxxg1cXY=:zg9UUJEYShXuGwzFA+PeA4 ZALBxIV8JsLwfCHF6i3z2N9+JOyC1H6WBdjgUy/pVefARs8AfIbCXSYgSKcZiIEKdl1LnNZpM XFa67gDU1eTPIYFc2sFIlVOD6TIaVrxr/w3W/FTW0dtl5i3uWmRfbDqF4T7UHVl6BactIx/ZE Pw1w5E8LHm7ffZc0ZrTffcGA1mAJits8Fgz0HcHx20GZJ/hQID0BXT/mH6paol0zf6xtHz8ws bQFck/6znVu9S+fzA1Dvf7RM6t87d1UkOOxPC7kRAopJRD4QTXUP/dY1dUbOfs8RDJuq4rQB6 5IqCbIwosmaPKvSy1vt1W6lrCAIEbs5/QG/mot0yiHU/T8EVaWnlZ6Pv0pBg7Kwrlcuo4SWE1 lcH/xMjusL09eOsFgkyr06uML2LQDFzChsutwF5P3v1DlYWe6JwPGuHfXmdNsnwvy4s6Z/6Ui iB+rd366RY0jOWCUEZ2qKKQP/bQyNkRTQSjmwxDS48Re6HIdxRGKyuQkQdN2etd3sUQ2F4OLt UWDmOBaO8+ZuKTrjp26cwYYcyiPy7twWvloFssr+LdxzG2FcG6WEfmJpSvPKVA0cD53HKeXL4 14zNxoXYdmVZKDllJqXAbhv9p6/0fwllgZQPpZdAHHeN2HzE+4l0Vhxdr0TC6Shiuth4IazTm 93pivztKj/evlZAtduQsGUwGwwC1jYjIz1AjEu8eBdj0cJ5pcK8qp8nhFDBRS4H1LtII= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, Mark Karpov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Michael Albinus writes: > I will try to write such a patch if nobody beats me. Unfortunately, it > will take time; I'm still suffering from my health problems. As a first step, I have committed a new file for ert tests test/automated/auto-revert-tests.el. Dired buffers are not reverted yet when they are modified, see auto-revert-test02-auto-revert-mode-dired. This shall be changed in the next step. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 16 14:12:15 2015 Received: (at 20943) by debbugs.gnu.org; 16 Jul 2015 18:12:15 +0000 Received: from localhost ([127.0.0.1]:51375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFndm-0002bt-M3 for submit@debbugs.gnu.org; Thu, 16 Jul 2015 14:12:14 -0400 Received: from mout.gmx.net ([212.227.17.21]:60418) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZFndk-0002bf-E2 for 20943@debbugs.gnu.org; Thu, 16 Jul 2015 14:12:13 -0400 Received: from detlef.gmx.de ([93.209.82.104]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Mhdex-1Zasr948Dj-00Mtbp; Thu, 16 Jul 2015 20:12:05 +0200 From: Michael Albinus To: Eli Zaretskii Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> <83lheobi8x.fsf@gnu.org> <87pp40z9fp.fsf@gmx.de> Date: Thu, 16 Jul 2015 20:12:04 +0200 In-Reply-To: <87pp40z9fp.fsf@gmx.de> (Michael Albinus's message of "Fri, 10 Jul 2015 10:46:50 +0200") Message-ID: <87pp3sdlaj.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:t957vQBYlx5mTFoeKRWkvz2ykXC8zi0K8MapTEkTHCYQhDOR4oA mvwZxrYMFRXMiO0UUnYYBNA1ThPorXMKnMl1489wlzAaLBYZinDLp8lRzukrBf1H8cLJlxP ibYa/adngFN+MFvBZEFoHyzUMC6jiNM6+fIOuQvKmMA1jcKR5qxpXVrOlBm2cCO92ptunUM o1jAekKXoWYRu0k0YR/Dw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Rb4ZwXZVHSE=:9Dqeyisr6NVNZUhr6MS8bl TK1DTRK+fR4/caxURhySdpM3S1mFK545+21mFNPgoECtsFGRq7RESBScPVsfxRNau6t5UOgLm coMBsYxFLaMWjH1YiIjV0BII6ncZRqnXo0TCShbghhDAqC8JTZu8wWXGV7lhQ/8OcHWXRDi2T nxSu6EdzsQ9SV+4Io+V8Q0MBRsVYHgLCchTjVl+ShqEeLAje+pmyWU4qgbrZJQi8c7cUXO554 nGEQ2t+/ydRSc0HOId5mxxIfyUPiHk6G8N33VMaw78V3BGv6m8kpYZf6QYOYUXONEBY7neFi9 l0qbwX2+mQNtG803qe8jwj10SuZEE9xhpFSG1A737eSFLKLFfgt5bkMQVn/ZJE3L0nOavsIvw s6aPHzPhZwfN3UIM3g1+ekpX3Eh6YZwombGi6KWrZGUODhrF6Va3ro8d8U6VPWSFW/N+ryXEi mS/lqvJmh0gNT/Xy1Wx2aAYR1RXG+pZZbl6vatoJsSSDOveX+b3daP0nsFZBjetxytvdU9TRK 1yhGjwDnJT4IoMqoYGPjkEO40HPIBoMVmIk/wkeHuYp2hC55HWyAbMPizFGx86VRLBh4JB+q6 vum8kZnkfO3de4XoPkq08s9kKn/5swVbg3VAE/ab/6505v7I0GC9KcXoZ+QQjQwony5NXhBWV myB2Jc6hA+nrg8no31uvj7JiRKrsS5SE92esVYypBQnh64GUEhufYT6odzuZFp9ZEv6Y= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20943 Cc: 20943@debbugs.gnu.org, markkarpov@openmailbox.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Michael Albinus writes: >> What Mark was trying to tell you is that dired-stale-p is not even >> called when buffer-modified-p returns non-nil. So what you suggest is >> impossible without a thorough rewrite of the beginning of >> auto-revert-handler. > > That's why I have proposed to remove the buffer-modified-p check from > auto-revert-handler. It shall be checked in -stale-p, if desired. I've committed a patch to the trunk which implements it. auto-revert-tests.el seems to be happy with this (no surprise, it's written by me :-) Mark, could you check whether this is sufficient for you? There is still a check in 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 Don't know whether it affects your use case. And likely, doc/emacs/arevert-xtra.texi must be adapted too, haven't done this yet. I'm waiting, whether the fix flies. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 17 16:44:20 2015 Received: (at 20943) by debbugs.gnu.org; 17 Jul 2015 20:44:20 +0000 Received: from localhost ([127.0.0.1]:52299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGCUV-0002VU-QB for submit@debbugs.gnu.org; Fri, 17 Jul 2015 16:44:20 -0400 Received: from smtp28.openmailbox.org ([62.4.1.62]:51021) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGCUT-0002VK-8x for 20943@debbugs.gnu.org; Fri, 17 Jul 2015 16:44:18 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.openmailbox.org (Postfix) with ESMTP id C3A0C2E006D; Fri, 17 Jul 2015 22:44:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1437165854; bh=6o9+FzMzcio7Equ77zLwL2KtXfvRZW5clEpCJ2QpSnw=; b= lOZNbOFYd8/p9Gz7MD1tclIcvZMTyU/7KZKj5UcARKAbQJ55p5M883NdYFrdkMl4 RMLuRbV7hfZbe1VUUr0/7i2d70KnltUlpH9DLLydTWMZOUvxyVOdscVH4iM/6Ee7 sy+dv2io86XgkJGeH6cU3F9Mgu+kCKzPMdhV2cq8Xz0= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail.openmailbox.org ([62.4.1.34]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id f0wy6nUCFcvd; Fri, 17 Jul 2015 22:44:14 +0200 (CEST) From: Mark Karpov To: Michael Albinus Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> <83lheobi8x.fsf@gnu.org> <87pp40z9fp.fsf@gmx.de> <87pp3sdlaj.fsf@gmx.de> Date: Sat, 18 Jul 2015 02:40:17 +0600 In-Reply-To: <87pp3sdlaj.fsf@gmx.de> (Michael Albinus's message of "Thu, 16 Jul 2015 20:12:04 +0200") Message-ID: <87oajazff2.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) Michael Albinus writes: > Mark, could you check whether this is sufficient for you? This works. Please note that files still =E2=80=9Cjump=E2=80=9D when you co= py files from one Dired buffer into another. They are initially inserted at cursor position, and then next invocation of =E2=80=98auto-revert-handler=E2=80=99= reverts the buffer and files get reordered. I guess it's undesirable (although I like current behavior more than the original one, jumping files are OK compared with the frozen ones :-D). From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 18 06:37:46 2015 Received: (at 20943) by debbugs.gnu.org; 18 Jul 2015 10:37:47 +0000 Received: from localhost ([127.0.0.1]:52565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGPV4-00050P-LY for submit@debbugs.gnu.org; Sat, 18 Jul 2015 06:37:46 -0400 Received: from mout.gmx.net ([212.227.15.15]:62060) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGPV1-0004zx-Nw for 20943@debbugs.gnu.org; Sat, 18 Jul 2015 06:37:44 -0400 Received: from detlef.gmx.de ([93.209.83.137]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MI5Ve-1ZEkXe2bhW-003vcO; Sat, 18 Jul 2015 12:37:36 +0200 From: Michael Albinus To: Mark Karpov Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> <83lheobi8x.fsf@gnu.org> <87pp40z9fp.fsf@gmx.de> <87pp3sdlaj.fsf@gmx.de> <87oajazff2.fsf@openmailbox.org> Date: Sat, 18 Jul 2015 12:37:34 +0200 In-Reply-To: <87oajazff2.fsf@openmailbox.org> (Mark Karpov's message of "Sat, 18 Jul 2015 02:40:17 +0600") Message-ID: <87615heopd.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:i3L4vrflXpLNAkDCyZZ/1jy4pzxvsqiPSicGF94kGDXIQtdYatx AT3JwXgEkZxyPQsePh8tRDn9vNQAVQWodG/pIWx50lKS0J7xi+edaOT8IBFmyUjpf/blmIq DrI2NUXUEfcNn/S20xr1ex9Vv/pDU/eFCTHs8YsTugBYwEtPD8ee/+uyA2lB5SigylodCpe FRd/cYnXLlYsTq2rrgy7g== X-UI-Out-Filterresults: notjunk:1;V01:K0:Kv1Cr6u5jp0=:k20y4a/gYvRu0l/g+4s4Wn ylsRdMqKyE6614vN0nkDQqGL8hUtphnzTR2+4UpY++9zLprynev8wngmx1mWfDWqZmRNFq2Ra z5zgMuHsTXxAv4AuKfKW7noMKp/owAUf+Xx64Vg+1eZrpQ40EVcaUsCENB3+vwnU12XWWMb1U ilWX20bMqT5b/bAtOy6WeDONcCEOUq8ec3WxU7jJFgSOuypAUtlhPgN/EVrvYmhH8RRNNQJdh Gc7Lahhj0Ve6crcsX/vTG78y3wjQvjLMNDpj4TxmmZDi8nxLwOlZtGOVkFBkSBWbJfkBOgQs/ OnVQaUt43+OM2xaYTyUvslAGBeSrRPqyoSMMZryyzuHBDUACognR7bBUlpaReOPyaXCTY03jb LSaCJCyqOQlqJ2nC/UWBt3/hHRmbx29tUmZPygYhpPWWV17tYbjBgs5tJ6/SYvqaEMe1H3hlR Pjn4h7e1lknDON2fOYwX+aGrcLhg/Ya6GBClARHBPl7RBtwMt85bnogFPJR1IbrAAWpJnRAJv AHdm5xEIpcGmrsTNYcda9PS+/fRUJCenzpykQifNk4SbNU17YNUqfq2L+/BaX9B087xCHO3Ba qnqgEUNnhV16pf7x8TSx7eb0Hc5npi2XFgH0E1yu4//YTTI5es7siGa+zoFrSFCHF4bSCfXuV 3fQ6nqO8je3B+gpRjf1FW0Uh68RFKfyiBJ492/gaQti5s1/UMGsib/RLxHQRPvBKG/PI= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 20943 Cc: Eli Zaretskii , 20943@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Mark Karpov writes: > This works. Please note that files still =E2=80=9Cjump=E2=80=9D when you = copy files from > one Dired buffer into another. They are initially inserted at cursor > position, and then next invocation of =E2=80=98auto-revert-handler=E2=80= =99 reverts the > buffer and files get reordered. I guess it's undesirable (although I > like current behavior more than the original one, jumping files are OK > compared with the frozen ones :-D). Well, I don't want to touch dired sources; I'm not familiar with them. If you agree, I would close this bug. The sort problem of (auto-)reverted dired buffers might be handled in another bug report, if it is important enough for you. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 18 14:24:47 2015 Received: (at 20943-done) by debbugs.gnu.org; 18 Jul 2015 18:24:47 +0000 Received: from localhost ([127.0.0.1]:53324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGWn1-00025g-Ji for submit@debbugs.gnu.org; Sat, 18 Jul 2015 14:24:47 -0400 Received: from smtp6.openmailbox.org ([62.4.1.40]:55162) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGWmz-00025W-Dn for 20943-done@debbugs.gnu.org; Sat, 18 Jul 2015 14:24:46 -0400 Received: from localhost (localhost [127.0.0.1]) by mail2.openmailbox.org (Postfix) with ESMTP id 68002200925; Sat, 18 Jul 2015 20:24:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openmailbox.org; h=content-transfer-encoding:content-type:content-type :mime-version:user-agent:message-id:in-reply-to:date:date :references:subject:subject:from:from:received; s=openmailbox; t=1437243882; bh=FYnAyzBo6mhlGxbuMowGC2cenVyFV39NIgQAIm1HAhE=; b= j05wv5zUbSVyfeZFbRtbHio0p8MZEmyavU0xgfS1cbuS0JHf02vqJNXTDja7uRKm zEvP3pcLabqGML3qf7C778ILceGv2fmOjuZ3ikfH/wIx0GC5yeHRaddTLYAyh2cj 7atFxTyBF/imBgngEW7UGA7tRrGjbKrSkUufC0EH7BA= X-Virus-Scanned: amavisd-new at openmailbox.org Received: from mail2.openmailbox.org ([62.4.1.33]) by localhost (mail.openmailbox.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id THjUbRCMJ6kj; Sat, 18 Jul 2015 20:24:42 +0200 (CEST) From: Mark Karpov To: Michael Albinus Subject: Re: bug#20943: 25.0.50; Dired buffers are not always auto-reverted References: <87y4j1oy87.fsf@openmailbox.org> <87pp41cvl1.fsf@openmailbox.org> <83615tv14o.fsf@gnu.org> <874mldtkl9.fsf@openmailbox.org> <874mld18cx.fsf@gmx.de> <87io9t3yoh.fsf@openmailbox.org> <83r3ogbm4s.fsf@gnu.org> <87vbdszh2r.fsf@gmx.de> <83lheobi8x.fsf@gnu.org> <87pp40z9fp.fsf@gmx.de> <87pp3sdlaj.fsf@gmx.de> <87oajazff2.fsf@openmailbox.org> <87615heopd.fsf@gmx.de> Date: Sun, 19 Jul 2015 00:20:39 +0600 In-Reply-To: <87615heopd.fsf@gmx.de> (Michael Albinus's message of "Sat, 18 Jul 2015 12:37:34 +0200") Message-ID: <87wpxxuy2w.fsf@openmailbox.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.2 (-) X-Debbugs-Envelope-To: 20943-done Cc: Eli Zaretskii , 20943-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.2 (-) Michael Albinus writes: > Well, I don't want to touch dired sources; I'm not familiar with > them. If you agree, I would close this bug. Now I'm beginning to like this =E2=80=9Cfeature=E2=80=9D. This is like anim= ation: it shows you inserted files and then automatically reorders them. Now I consider a it feature, not a bug. So, personally I won't open bug report for this. Thanks for your work, Michael. I'm closing this (=E2=80=9820943-done=E2=80=99 prefix should work=E2=80=A6 = let's see). From unknown Fri Jun 20 07:13:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 16 Aug 2015 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator