From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: miha--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55578: 29.0.50; auto-revert-use-notify vs 'git checkout -- ' Date: Sun, 22 May 2022 19:18:29 +0200 Message-ID: <87r14lfpui.fsf@miha-pc> Reply-To: miha@kamnitnik.top Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7522"; mail-complaints-to="usenet@ciao.gmane.io" To: 55578@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 22 19:09:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nsp4q-0001jp-KL for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 May 2022 19:09:13 +0200 Original-Received: from localhost ([::1]:56156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nsp4p-0003rh-IE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 May 2022 13:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsp4h-0003oD-0I for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 13:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nsp4g-0001nZ-Nz for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 13:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nsp4g-00021Z-HH for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 13:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: miha@kamnitnik.top Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 May 2022 17:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55578 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16532393157745 (code B ref -1); Sun, 22 May 2022 17:09:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 May 2022 17:08:35 +0000 Original-Received: from localhost ([127.0.0.1]:46242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsp4F-00020q-11 for submit@debbugs.gnu.org; Sun, 22 May 2022 13:08:35 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nsp4B-00020h-0m for submit@debbugs.gnu.org; Sun, 22 May 2022 13:08:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsp4A-00036F-TP for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 13:08:30 -0400 Original-Received: from kamnitnik.top ([2001:19f0:5001:bf2:5400:2ff:fee0:2626]:41344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nsp48-0001l2-CH for bug-gnu-emacs@gnu.org; Sun, 22 May 2022 13:08:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1653239304; bh=ACYxZ+AoTbiGNYYP0pcvGqDgN00STh/bguwuAIMqr7M=; h=From:To:Subject:Date:From; b=xRvp3s++M5IyEM9/t4BKsCD1GjE3kskiH+OtGb6eWHhC0VqjX+dpgOkFQCjxV4p2Y HpvjSAQim7XUfoScWFz7OHQZ9tiQLijuJCjpe8VA3EBgl7IH9RusTmo6aoPGNmPa66 irZMGQxkCcelpkMqXd2jOlKDC7aFQOJBZmFXcStPaCJ8a3uvVVHOK27IDGutbxzPBR kj5bNHOJ83EoFVen32vmykpwIRePbH7BtOfh44qcGxZQRhaqbB8ZI7jCaKYIDs7HoC n8HPSde/qvDH6y/eHITrr+kPrZC/gjNw4wf0j8WUe1BepkvY16dAzW5L1+q4LXoaZu 2MFiH2q5gmT3Q== Received-SPF: pass client-ip=2001:19f0:5001:bf2:5400:2ff:fee0:2626; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 24 X-Spam_score: 2.4 X-Spam_bar: ++ X-Spam_report: (2.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.499, FROM_SUSPICIOUS_NTLD_FP=1.997, PDS_OTHER_BAD_TLD=1.997, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:232910 Archived-At: --=-=-= Content-Type: text/plain Visit a file in a clean git repository, modify it and save its buffer. Turn on auto-revert-mode in its buffer. Run 'git checkout -- ' and notice that auto-revert-mode doesn't revert the buffer immediately using 'notify', it only reverts it according to auto-revert-interval. This is in contrast to modifying the file with a command like 'echo test >> ', after which auto-revert-mode reverts the buffer instantly using 'notify'. This seems to be because prior to writing the file, 'git checkout' unlinks it first. It would be nice if auto-revert-mode worked with notify in such cases as well. git version 2.36.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-20 built on miha-pc Repository revision: 4714f34928c12cc9ebda7c115526db4aa87c0d51 Repository branch: tmp Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Artix Linux Configured using: 'configure --without-libsystemd --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: en_US.utf8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq gv subr-x byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 59212 9167) (symbols 48 5734 0) (strings 32 16445 1783) (string-bytes 1 547865) (vectors 16 11787) (vector-slots 8 271542 16531) (floats 8 21 25) (intervals 56 334 7) (buffers 992 11)) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmKKcGUTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP8VeEAC3UzNZ1qVSb2KyfhY5AUzU6wla0zgQ EdiHUF95KHVoqQVfpB9NtwkZMntjlboWQgDuJdsGIHhJZVtO3h57c+YKJe1gBx6y S1I/yEdbFbEa8wD99vSyo1E1JNhQrGtntfvmVPyCWGrX99blUYJH72xvhIiKmtyc Rs+D5ITo+buOSZd7e42K2YWuxJL29M/OnJFzva+o8gVIRDYF3F7duLqa5Zu19xfD CtbLdWGZ/yueVu27/lvubSrNoE1FVmWi1L0nE4EKm8CZUa9XJrH1X5oem6PcAnwr RrMArFimwbIqv4fcgyk8nuKUSbWkVCiUO31jOKoSx5wJXFkLLzbXhglzeXjkAqHY kZqXCQlhGlFqikJIiB2lPLws9mO47uroLFNvQw9fXWpiUKPgKyNUm1BNtY5XxrLm 9UuKCDgaPtaHCjoQPUi5OjpIKo11GeAtkL0/unt0i6BKlcAqycOrk136+f3+WYLG 6FR5iBNoN7zdNJyxmMA34QKcvae2kO3e3dTkefC2EJTCvFFnvlk8W8Q+qMqKO/Kf yy/WShKtZ1bFS3zFIJxJslVZZjUfTkPQGiR3SQOyBPEXrvKZ19QVNxGH835nOCMc SV45CmlBc/LvoeWM8KwS8If8r1qXhjuYoVw2o7/DlWp1N16O5Yhpw3XQseEEBpcF dZLDfkuaBf4guA== =8l/c -----END PGP SIGNATURE----- --=-=-=--