From unknown Wed Aug 20 02:46:18 2025 X-Loop: help-debbugs@gnu.org Subject: bug#58863: 29.0.50; Newly opened Dired buffers are usually modified Resent-From: daanturo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Oct 2022 11:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58863 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 58863@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166704127912860 (code B ref -1); Sat, 29 Oct 2022 11:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Oct 2022 11:01:19 +0000 Received: from localhost ([127.0.0.1]:35028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojaZ-0003LM-81 for submit@debbugs.gnu.org; Sat, 29 Oct 2022 07:01:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:40398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojaX-0003LE-1Q for submit@debbugs.gnu.org; Sat, 29 Oct 2022 07:01:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oojaW-00016b-Id for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:01:16 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oojaT-0001zQ-DW for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:01:15 -0400 Received: by mail-pj1-x102b.google.com with SMTP id m2so6684630pjr.3 for ; Sat, 29 Oct 2022 04:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=9Vj7ftv0dt/CbP8cg5Nhr2VIOM+OdR3bjhKNqjQqpw0=; b=E4PjmtEdYhTJsqRsKVM5HbJfrbMqV9Hx1b+0SWgchcFXwsh/D/nP5qfRymflCCNK5v 4yAyGygzQny82iViUQ90Eb0FciKVd70KW0JBHWGSu12Og5XDtqieit9ANdFEqrn0lqVR 7y5dXsGw5fkxBCEUmGvb79JAWIJoQ9zsbbrYvbgjp9qRDv5psx8ZGRNu3KbYinwCH/U6 kfKwv0tvBq0cmg047A2F/vMwIUP4+BQMP8QfTRhxcJ8aawgRCC7JHj50Rnd7hZcLILcd 4o6uwy2T0XbAxHaGhG+Cg4dkouMBXVvha1oMprbREhWu3lWQqc9OxbLjbHh2laAfsDKD hsGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9Vj7ftv0dt/CbP8cg5Nhr2VIOM+OdR3bjhKNqjQqpw0=; b=UsXyl7kBruIgQSzhRrtsd/xJ3dycimuaXR2i9vPWCKjyQmD7mJ4InUAQEQ92R/ebEH hinlzpyJVvBh8lWYjxam8R6vArqyFftR6JYS+Mttf1Mro2btbNDEULD5ZaCRwMsIuaD0 MVts8oi/A/rqTF24M1pWMKf9jD/z7t52F469I12T8W0iVNdxSXr0310x9kdoYE455+eh 9CmEE8bNiwx1EHpKOR8IdzX7KVlCHPjkGXwsvJPTA3Hhhwy5SZvAq3+tWwrdNVc6RP6E kSlaYqyxGrz6mjHCwhnOU1yV3k4ZlBcgoAxFQm1P9sVeZemacaO3IxhTir1nKsj5512g LHyQ== X-Gm-Message-State: ACrzQf06sqk8nNq2fBU4NI0IpacMZQEs/zlz+lURO3ccgSH9GMcqwVhl 08fvTGcO+IDXStBWfXL3a6b9mlpS/7I= X-Google-Smtp-Source: AMsMyM7FIlDcCCEbqtEpNIR0jTQ94mcoVQ7EJm1BSnu4giMP+W85l+T7GZ3l2/ufx/JfFuTEfuvhAQ== X-Received: by 2002:a17:902:e74e:b0:186:f3f4:f7fc with SMTP id p14-20020a170902e74e00b00186f3f4f7fcmr3773342plf.130.1667041270697; Sat, 29 Oct 2022 04:01:10 -0700 (PDT) Received: from ?IPV6:2001:ee0:4f8d:5d40:72b7:27ac:56c4:2f2a? ([2001:ee0:4f8d:5d40:72b7:27ac:56c4:2f2a]) by smtp.gmail.com with ESMTPSA id 11-20020a63134b000000b0043ae1797e2bsm840133pgt.63.2022.10.29.04.01.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Oct 2022 04:01:09 -0700 (PDT) Message-ID: <4de80811-505d-0fd1-392e-ba0b24701540@gmail.com> Date: Sat, 29 Oct 2022 18:01:06 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Content-Language: en-US From: daanturo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=daanturo@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (--) When I open a new Dired buffer without doing anything, `buffer-modified-p` usually returns `t`, especially for directories under $HOME. ```bash emacs -Q --eval "(progn (find-file \"$(mktemp -d)\") (print (buffer-modified-p (current-buffer))))" ``` Observed: Emacs prints `t` Expected: Emacs prints `nil` Instead of "$(mktemp -d)", "~" is also reproducible, but not "/". This looks like a regression of current master that doesn't present on Emacs 28.1. In GNU Emacs 29.0.50 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-09-20 built on 70af63ab8cb74358a721dd6e027251c6 System Description: Fedora Linux 36 (Container Image) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-pgtk --with-native-compilation --enable-link-time-optimization build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t 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 font-lock-mode: t blink-cursor-mode: 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 puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cconv icomplete cl-loaddefs cl-lib cus-start cus-load elec-pair rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs 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 xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 86590 8773) (symbols 48 8185 0) (strings 32 21527 2095) (string-bytes 1 632357) (vectors 16 15937) (vector-slots 8 323876 11092) (floats 8 40 480) (intervals 56 423 0) (buffers 1000 11)) -- Daanturo. From unknown Wed Aug 20 02:46:18 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: daanturo Subject: bug#58863: closed (Re: bug#58863: 29.0.50; Newly opened Dired buffers are usually modified) Message-ID: References: <83zgdehjdn.fsf@gnu.org> <4de80811-505d-0fd1-392e-ba0b24701540@gmail.com> X-Gnu-PR-Message: they-closed 58863 X-Gnu-PR-Package: emacs Reply-To: 58863@debbugs.gnu.org Date: Sat, 29 Oct 2022 13:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1667048642-920-1" This is a multi-part message in MIME format... ------------=_1667048642-920-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58863: 29.0.50; Newly opened Dired buffers are usually modified which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58863@debbugs.gnu.org. --=20 58863: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58863 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1667048642-920-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58863-done) by debbugs.gnu.org; 29 Oct 2022 13:03:45 +0000 Received: from localhost ([127.0.0.1]:35135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oolV2-0000EL-Vy for submit@debbugs.gnu.org; Sat, 29 Oct 2022 09:03:45 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oolUy-0000E3-Lx for 58863-done@debbugs.gnu.org; Sat, 29 Oct 2022 09:03:43 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oolUt-0007xP-7m; Sat, 29 Oct 2022 09:03:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4BDbRtaC5iicdnh9N/k/ZMIuRnFCNMnl1wSJ7WlWZYI=; b=NEYmbfjkZ+mE waZzn6bhk0mgodSoyNwubjBLpz8p+a+ycRDO7d63fXuicYUHaHdsPDa34WWPMBw7K1jvYDY04sXAP 3xF0VqLUWzlQopZytslHb/1iz+INu2b5W0ODVZ4sPKW2vGBt7UEayeJyP/pglFFg1WR+cWI0YecTN AQeCofmpJhBAXp0nTXfuAFyrgsYG4yiht73oU1e09lXUYp+TqFKAeOHlORy++bkPtC0tJpCTcB+YG As2QoU2/Cc9hrxv0g7jBTS4DG/tqARvrQqwZKj/0LDzHKusPBwQuoDdD7LZihlZD1a80+YbizjHM4 2Tk9v+OmT2DXiqUcIxtaBg==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oolUs-0006jA-MM; Sat, 29 Oct 2022 09:03:35 -0400 Date: Sat, 29 Oct 2022 16:03:33 +0300 Message-Id: <83zgdehjdn.fsf@gnu.org> From: Eli Zaretskii To: daanturo In-Reply-To: <4de80811-505d-0fd1-392e-ba0b24701540@gmail.com> (message from daanturo on Sat, 29 Oct 2022 18:01:06 +0700) Subject: Re: bug#58863: 29.0.50; Newly opened Dired buffers are usually modified References: <4de80811-505d-0fd1-392e-ba0b24701540@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58863-done Cc: 58863-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -3.3 (---) > Date: Sat, 29 Oct 2022 18:01:06 +0700 > From: daanturo > > When I open a new Dired buffer without doing anything, > `buffer-modified-p` usually returns `t`, especially for directories > under $HOME. > > ```bash > > emacs -Q --eval "(progn > (find-file \"$(mktemp -d)\") > (print (buffer-modified-p (current-buffer))))" > > ``` > Observed: Emacs prints `t` > Expected: Emacs prints `nil` > > Instead of "$(mktemp -d)", "~" is also reproducible, but not "/". > > This looks like a regression of current master that doesn't present on > Emacs 28.1. Thanks, fixed. ------------=_1667048642-920-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 29 Oct 2022 11:01:19 +0000 Received: from localhost ([127.0.0.1]:35028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojaZ-0003LM-81 for submit@debbugs.gnu.org; Sat, 29 Oct 2022 07:01:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:40398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oojaX-0003LE-1Q for submit@debbugs.gnu.org; Sat, 29 Oct 2022 07:01:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oojaW-00016b-Id for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:01:16 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oojaT-0001zQ-DW for bug-gnu-emacs@gnu.org; Sat, 29 Oct 2022 07:01:15 -0400 Received: by mail-pj1-x102b.google.com with SMTP id m2so6684630pjr.3 for ; Sat, 29 Oct 2022 04:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=9Vj7ftv0dt/CbP8cg5Nhr2VIOM+OdR3bjhKNqjQqpw0=; b=E4PjmtEdYhTJsqRsKVM5HbJfrbMqV9Hx1b+0SWgchcFXwsh/D/nP5qfRymflCCNK5v 4yAyGygzQny82iViUQ90Eb0FciKVd70KW0JBHWGSu12Og5XDtqieit9ANdFEqrn0lqVR 7y5dXsGw5fkxBCEUmGvb79JAWIJoQ9zsbbrYvbgjp9qRDv5psx8ZGRNu3KbYinwCH/U6 kfKwv0tvBq0cmg047A2F/vMwIUP4+BQMP8QfTRhxcJ8aawgRCC7JHj50Rnd7hZcLILcd 4o6uwy2T0XbAxHaGhG+Cg4dkouMBXVvha1oMprbREhWu3lWQqc9OxbLjbHh2laAfsDKD hsGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9Vj7ftv0dt/CbP8cg5Nhr2VIOM+OdR3bjhKNqjQqpw0=; b=UsXyl7kBruIgQSzhRrtsd/xJ3dycimuaXR2i9vPWCKjyQmD7mJ4InUAQEQ92R/ebEH hinlzpyJVvBh8lWYjxam8R6vArqyFftR6JYS+Mttf1Mro2btbNDEULD5ZaCRwMsIuaD0 MVts8oi/A/rqTF24M1pWMKf9jD/z7t52F469I12T8W0iVNdxSXr0310x9kdoYE455+eh 9CmEE8bNiwx1EHpKOR8IdzX7KVlCHPjkGXwsvJPTA3Hhhwy5SZvAq3+tWwrdNVc6RP6E kSlaYqyxGrz6mjHCwhnOU1yV3k4ZlBcgoAxFQm1P9sVeZemacaO3IxhTir1nKsj5512g LHyQ== X-Gm-Message-State: ACrzQf06sqk8nNq2fBU4NI0IpacMZQEs/zlz+lURO3ccgSH9GMcqwVhl 08fvTGcO+IDXStBWfXL3a6b9mlpS/7I= X-Google-Smtp-Source: AMsMyM7FIlDcCCEbqtEpNIR0jTQ94mcoVQ7EJm1BSnu4giMP+W85l+T7GZ3l2/ufx/JfFuTEfuvhAQ== X-Received: by 2002:a17:902:e74e:b0:186:f3f4:f7fc with SMTP id p14-20020a170902e74e00b00186f3f4f7fcmr3773342plf.130.1667041270697; Sat, 29 Oct 2022 04:01:10 -0700 (PDT) Received: from ?IPV6:2001:ee0:4f8d:5d40:72b7:27ac:56c4:2f2a? ([2001:ee0:4f8d:5d40:72b7:27ac:56c4:2f2a]) by smtp.gmail.com with ESMTPSA id 11-20020a63134b000000b0043ae1797e2bsm840133pgt.63.2022.10.29.04.01.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 29 Oct 2022 04:01:09 -0700 (PDT) Message-ID: <4de80811-505d-0fd1-392e-ba0b24701540@gmail.com> Date: Sat, 29 Oct 2022 18:01:06 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Newly opened Dired buffers are usually modified Content-Language: en-US From: daanturo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=daanturo@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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.3 (--) When I open a new Dired buffer without doing anything, `buffer-modified-p` usually returns `t`, especially for directories under $HOME. ```bash emacs -Q --eval "(progn (find-file \"$(mktemp -d)\") (print (buffer-modified-p (current-buffer))))" ``` Observed: Emacs prints `t` Expected: Emacs prints `nil` Instead of "$(mktemp -d)", "~" is also reproducible, but not "/". This looks like a regression of current master that doesn't present on Emacs 28.1. In GNU Emacs 29.0.50 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-09-20 built on 70af63ab8cb74358a721dd6e027251c6 System Description: Fedora Linux 36 (Container Image) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-gpm=no --with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json --with-pgtk --with-native-compilation --enable-link-time-optimization build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu CC=gcc 'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: fido-vertical-mode: t icomplete-vertical-mode: t icomplete-mode: t fido-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t 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 font-lock-mode: t blink-cursor-mode: 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 puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cconv icomplete cl-loaddefs cl-lib cus-start cus-load elec-pair rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs 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 xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 86590 8773) (symbols 48 8185 0) (strings 32 21527 2095) (string-bytes 1 632357) (vectors 16 15937) (vector-slots 8 323876 11092) (floats 8 40 480) (intervals 56 423 0) (buffers 1000 11)) -- Daanturo. ------------=_1667048642-920-1--