From unknown Sun Jun 15 08:53:02 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#11303 <11303@debbugs.gnu.org> To: bug#11303 <11303@debbugs.gnu.org> Subject: Status: Whitespace mode causes auto-save to malfunction Reply-To: bug#11303 <11303@debbugs.gnu.org> Date: Sun, 15 Jun 2025 15:53:02 +0000 retitle 11303 Whitespace mode causes auto-save to malfunction reassign 11303 emacs submitter 11303 Kelly Dean severity 11303 normal tag 11303 confirmed thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 21 13:49:47 2012 Received: (at submit) by debbugs.gnu.org; 21 Apr 2012 17:49:48 +0000 Received: from localhost ([127.0.0.1]:45933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLeRP-0006Hk-5W for submit@debbugs.gnu.org; Sat, 21 Apr 2012 13:49:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41742) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLWxO-0000u9-VU for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:50:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWwp-0000rB-3y for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWwo-0000qr-UR for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:49:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLWwn-0007nQ-7T for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 05:49:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLWwl-0000mq-Bp for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 05:49:40 -0400 Received: from nm5-vm2.bullet.mail.ne1.yahoo.com ([98.138.90.153]:27986) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SLWwl-0000hS-1K for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 05:49:39 -0400 Received: from [98.138.90.53] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 21 Apr 2012 09:49:36 -0000 Received: from [98.138.89.248] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 21 Apr 2012 09:49:36 -0000 Received: from [127.0.0.1] by omp1040.mail.ne1.yahoo.com with NNFMP; 21 Apr 2012 09:49:36 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 584287.97118.bm@omp1040.mail.ne1.yahoo.com Received: (qmail 76310 invoked by uid 60001); 21 Apr 2012 09:49:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1335001776; bh=7OHArjAGqEr0G1jKEfO3m7xoTUcUTaVIqA3uG1Dw1Yc=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=dqvvTjTeaOegQLfmb1Qv4zSLUZUOrhpLIZMKzP4ZaOJfspme9KgUtdfS/r6NtEz460U2opVOgpkhdsH7g6gRuFDY4+bxi6NW3iGNA8ZN5OI0GVCXBkN0y3sQHQVVc9JFvsRNmJP14cI/hu1YJI5Sbkk7Q0dNBwdftvLZvCfe93o= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=LoeCf58n0vJsV4ATmcsMpZrIw3JMrWRUwblpy15kYS1MqXyILQUC/mgPg6Mg+Wa8eDDJkanBL+me3UK3QLzsafXvJYJ3cCaScdO1e+L39hKEzBSJEudHLLzwIoeTq2MHDoKWLT46JUE03buq+zYsN6RI2B/w/GMYqgaCYbYiggI=; X-YMail-OSG: kAxTQ08VM1loXiRzYwZBHGEm.ErkOJO6sthgC9bKFzOSBWF NJ8vG6cUpU29JolbcJM41pP.TfpTSr0.wLUkxuzhgcjc1A9L2uBVK5svBHBR w4oQoohlfy43pwlr7Rp2adP8Ncq6zaz7s1r4fEUOqWYXX2Zs.B.dxYmqzNdn qX3WQ9JCOYI4D.055ht06Xe8FNCeNykt4ziVYxxnz_gnyqS8p7WjEfYI11iD cD3xkrq7GsQFxTNzhoz4EQeXwjf1xnr_qxc..TYj3rsFQdt2OaoQ2lFaQvLa GFCJwgto6gpAIvIY09N3GfgnF5V53bb9nh13jX3ttcomgvWIU8kW7D8QlNCA pGaJEd50ANsm9u5WoPn4jTHKisZobpBNYzhC44z2YjFN16myUnrI5JETKc0. 0E4qi Received: from [146.185.23.179] by web121502.mail.ne1.yahoo.com via HTTP; Sat, 21 Apr 2012 02:49:36 PDT X-Mailer: YahooMailClassic/15.0.5 YahooMailWebService/0.8.117.340979 Message-ID: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> Date: Sat, 21 Apr 2012 02:49:36 -0700 (PDT) From: Kelly Dean Subject: Whitespace mode causes auto-save to malfunction To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 21 Apr 2012 13:49:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) I'm using Emacs on X on Debian 6 Stable. emacs-version says GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian. Steps to reproduce the bug: Delete your .emacs file. Start X, and start Emacs with no options. Open any writeable file, then press space, so that the buffer is modified. Wait for the auto-save timeout. Emacs writes the auto-save file. Press C-g. Wait for the auto-save timeout again. Notice that Emacs does not write the auto-save file again, because the buffer hasn't changed since the last auto-save. This is the correct behavior. Now, close Emacs, and put just the following in your .emacs file: (global-whitespace-mode 1) Start Emacs with no options. Open a file, press space, wait for the timeout, press C-g, and wait for the timeout again. Notice that Emacs does write the auto-save file again, even though the buffer hasn't changed since the last auto-save. This is not the correct behavior. This can cause various problems, for example unnecessarily spinning up a sleeping disk to write the auto-save file, and the timestamp on the auto-save file can't be relied on to show when (approximately, with accuracy determined by the value of auto-save-timeout) the buffer was last modified. From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 02 17:24:41 2012 Received: (at 11303) by debbugs.gnu.org; 2 Jun 2012 21:24:41 +0000 Received: from localhost ([127.0.0.1]:54972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SavoO-0005fX-Q0 for submit@debbugs.gnu.org; Sat, 02 Jun 2012 17:24:41 -0400 Received: from nm22-vm2.bullet.mail.ne1.yahoo.com ([98.138.91.210]:37638) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1Savo4-0005f0-8b for 11303@debbugs.gnu.org; Sat, 02 Jun 2012 17:24:39 -0400 Received: from [98.138.90.48] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:22:26 -0000 Received: from [98.138.88.232] by tm1.bullet.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:22:26 -0000 Received: from [127.0.0.1] by omp1032.mail.ne1.yahoo.com with NNFMP; 02 Jun 2012 21:22:26 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 716596.33608.bm@omp1032.mail.ne1.yahoo.com Received: (qmail 4261 invoked by uid 60001); 2 Jun 2012 21:22:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1338672146; bh=4DJN51pOFvsqLoQXl2D7iehOU99zw4Gz3yvPIhW1aP4=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=SKeJkKbznoLI/TGtEZvnckYtwrwsvEQ6XqOPsCSdvfJmselLhOatyRFUj0IExV2/oDu5rlrZuizupfqSMoF34z+psoZ4xhvpeuhnHAJyndC4Nn3PqisOvpbaq5P1R5PcLd9Lwn3Q1vKtVRwtScfWFrJEceJpnq4nWqsWtklmZEI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=QRDGLB1Dr8c7VpE+YZXCBYU0ISyVRyPbNCXjaw1KkYtg3mIrbrEBE/DqCCEa7+heGm5ljkabK4RmDnzU4qUxid+yNy5PqfV5dtDmE7g5KnwpKRfb40bNQUATI9vrnWPAgqXLIIj2WNldpxhoR6xYw0iuGYoe/Q0c0KK+ng7itmM=; X-YMail-OSG: dzer95kVM1nU.F99SQ9APdlKJZImOxvOvP0NrEdogzr6qu4 GHN3mctstkAOIWeu804BgBVq4GkHjW6Ed85jhzdO1MBotXqrRGL6xykKwaYj MDOMf01ASGCEGASXfdAo8y4GvFQAO95u752aHBiVmVrZut_cJYH8Fb_CQHDE KbuimEH6ONspMr2daHimX1ihUr2cwr29XWjeGrE32O0rOK8yoDC0QhppEewi iDAhGJb30R2Z7PRrw7Lh78Mrl1i9OgEdBUWko5fA_NQughGAbeelSajgNj3B tdgNj3rIA8fVg7Fwuz6l2n2GgU8h3GUEWpKlI4jPDHMpZYpSdakADeIGLaUH igJCutqNonTr38lCd.9OdeI4tVn9rbO6yiaoIvmyS1EyO6KsusD61fWUojjm Y.yukDa3c Received: from [81.170.186.175] by web121502.mail.ne1.yahoo.com via HTTP; Sat, 02 Jun 2012 14:22:26 PDT X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.118.349524 Message-ID: <1338672146.3248.YahooMailClassic@web121502.mail.ne1.yahoo.com> Date: Sat, 2 Jun 2012 14:22:26 -0700 (PDT) From: Kelly Dean Subject: Whitespace mode causes auto-save to malfunction To: 11303@debbugs.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11303 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) This bug is reproducible on 24.1-rc1. (emacs-version reports "GNU Emacs 24.1.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2012-06-01 on localhost") From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 21 08:37:28 2018 Received: (at control) by debbugs.gnu.org; 21 Sep 2018 12:37:28 +0000 Received: from localhost ([127.0.0.1]:47730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3Kga-0005K4-4Q for submit@debbugs.gnu.org; Fri, 21 Sep 2018 08:37:28 -0400 Received: from mail-it1-f172.google.com ([209.85.166.172]:55591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3KgY-0005Js-RB for control@debbugs.gnu.org; Fri, 21 Sep 2018 08:37:27 -0400 Received: by mail-it1-f172.google.com with SMTP id d10-v6so1793377itj.5 for ; Fri, 21 Sep 2018 05:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=xDfBvOUQys1MQYIQdLx9w6AKYoKcIGnOEsiwqgbj68o=; b=llN0r8xrxmsalvWvaqvGTcbXZdmQ1+XdJl0ifE3FZbLr87+HznvQLIoBmgAngDoRir rUI3E7vfLLGF+8U4BP79ck9Fcjv/OWUkx7U+inH0E3tGF3N9knk7MgU/bS7JGLZM0aD1 bRISEQCgU8uPR4tTC/ecbWGzyzZCGbyfhqkL/g5rHjPjGt8TOI8MCxrxwuhPf92tzS2g 6WTfj2oTz24StUG/2AxfxlQ/synAdIdaikZvt/XthO0RhXHKaeIjyMdlcom8fXKCgNHr Dgvw8lFNWGyvToCEikbt/fjoA6ecvYPFcFHBJMV66xKfk84L7JuAodmHFG0qDTbaKo6p yIEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=xDfBvOUQys1MQYIQdLx9w6AKYoKcIGnOEsiwqgbj68o=; b=pIge7xzAqXALMfWF4rqo+cpB3DJO+clWnMbWgUvervKOpAkztZz4CWUFn3DVF1HBWS uUSHaaezRibUknXFth0iCQeQH3YHuRZv7QKEEs/J/dBeJi2Lo589VGLnQ0cKdADT+3l7 L7aDxATerK6CIupJe8VfT64SojiZeTef6JHE28WLoY7CCh14Fd2Oy4/673jFETaypx91 an9k23kNbLqhEv0mDQnKCICtOKSEeJt4Ja93LAJ/+h7lOWd3CX8QmyEr78r+iEKaZwwW KkVMq+amrfQtttb+Nhhu81NQk3Je6RtEHvDTikSVYCUtHtVwAlYZ9eePihfC67KWJIEs UEhg== X-Gm-Message-State: APzg51AThXNYL9vpECLCWWg82U5cJzRH/3m+0ol+zB75CDeM1rCTLZMi 8DLP7yr0RpXah1guJk6wOmDBVCEE X-Google-Smtp-Source: ANB0VdaUJGesHKcB+y55ZgdQy7WtnywfH6kUKgXaWL7rNYQgBE3X34j5xCoEOo07QIAUGS9hfshfIA== X-Received: by 2002:a24:7c4a:: with SMTP id a71-v6mr5555080itd.69.1537533441339; Fri, 21 Sep 2018 05:37:21 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id m47-v6sm2349412iti.1.2018.09.21.05.37.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 05:37:20 -0700 (PDT) From: Noam Postavsky To: control@debbugs.gnu.org Subject: control message for bug #11303 Date: Fri, 21 Sep 2018 08:37:20 -0400 Message-ID: <875zyzowlb.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: -1.0 (-) found 11303 26.1 tags 11303 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 07:55:57 2021 Received: (at 11303) by debbugs.gnu.org; 16 Jul 2021 11:55:57 +0000 Received: from localhost ([127.0.0.1]:50656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4MRh-0000Zc-2D for submit@debbugs.gnu.org; Fri, 16 Jul 2021 07:55:57 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4MRe-0000ZO-Lr for 11303@debbugs.gnu.org; Fri, 16 Jul 2021 07:55:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yQAvD7tlGyrIHBo2uK9x0BiHsmgXj/RgZZKsmbfiMmE=; b=Xfnb9kBm6PZGcM1mKL273Rogss Rh2aQxOIf5FMowQwsE6CnV1tuNeNWxhP4ti/zcli/wLsppEfS1hvskXwUN3Q9W95yesut2vIh0quX WizgqHpvWJXT4QhNNW3jOe5I3qRiVWAQFvsV7jaGTS7Gz5IfaNgLyr2o2j1JQ/8r6bLg=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4MRV-0003yp-M1; Fri, 16 Jul 2021 13:55:48 +0200 From: Lars Ingebrigtsen To: Kelly Dean Subject: Re: bug#11303: Whitespace mode causes auto-save to malfunction References: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> X-Now-Playing: Voiski's _Fabric 94: Steffi_: "Sounds of Distance" Date: Fri, 16 Jul 2021 13:55:44 +0200 In-Reply-To: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> (Kelly Dean's message of "Sat, 21 Apr 2012 02:49:36 -0700 (PDT)") Message-ID: <87r1fya2wv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kelly Dean writes: > Start Emacs with no options. > Open a file, press space, wait for the timeout, press C-g, and wait > for the timeout again. Notice that Emacs does write the auto-save file > again, even though the b [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11303 Cc: 11303@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 (---) Kelly Dean writes: > Start Emacs with no options. > Open a file, press space, wait for the timeout, press C-g, and wait > for the timeout again. Notice that Emacs does write the auto-save file > again, even though the buffer hasn't changed since the last > auto-save. This is not the correct behavior. This problem is still present in Emacs 28. Poking around a bit at this, it seems that it's the call to (jit-lock-refontify (point-min) (point-max)) that makes `M-x do-auto-save' auto-save again (even if nothing has changed except the text properties in the buffer). I.e., doing (put-text-property 1 3 'face 'bold) will make the buffer eligible for auto-saving again, even if putting those text properties into the buffer doesn't switch from unmodified to modified. That's pretty inconsistent behaviour, at least? I'm guessing this stems from text properties upping the BUF_MODIFF, but not changing the buffer modification status. Does this sound like the correct analysis? If so, what can we do about it? (`with-silent-modifications' doesn't seem to have any effect here.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 08:01:26 2021 Received: (at 11303) by debbugs.gnu.org; 16 Jul 2021 12:01:26 +0000 Received: from localhost ([127.0.0.1]:50683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4MWz-0000kQ-W4 for submit@debbugs.gnu.org; Fri, 16 Jul 2021 08:01:26 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4MWy-0000kC-7B for 11303@debbugs.gnu.org; Fri, 16 Jul 2021 08:01:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49710) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m4MWs-0006UK-QM; Fri, 16 Jul 2021 08:01:18 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4609 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 1m4MWl-00006T-Ol; Fri, 16 Jul 2021 08:01:18 -0400 Date: Fri, 16 Jul 2021 15:00:56 +0300 Message-Id: <831r7y5uyv.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-Reply-To: <87r1fya2wv.fsf@gnus.org> (message from Lars Ingebrigtsen on Fri, 16 Jul 2021 13:55:44 +0200) Subject: Re: bug#11303: Whitespace mode causes auto-save to malfunction References: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> <87r1fya2wv.fsf@gnus.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11303 Cc: 11303@debbugs.gnu.org, kellydeanch@yahoo.com 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 (---) > From: Lars Ingebrigtsen > Date: Fri, 16 Jul 2021 13:55:44 +0200 > Cc: 11303@debbugs.gnu.org > > Kelly Dean writes: > > > Start Emacs with no options. > > Open a file, press space, wait for the timeout, press C-g, and wait > > for the timeout again. Notice that Emacs does write the auto-save file > > again, even though the buffer hasn't changed since the last > > auto-save. This is not the correct behavior. > > This problem is still present in Emacs 28. > > Poking around a bit at this, it seems that it's the call to > > (jit-lock-refontify (point-min) (point-max)) > > that makes `M-x do-auto-save' auto-save again (even if nothing has > changed except the text properties in the buffer). > > I.e., doing > > (put-text-property 1 3 'face 'bold) > > will make the buffer eligible for auto-saving again, even if putting > those text properties into the buffer doesn't switch from unmodified to > modified. > > That's pretty inconsistent behaviour, at least? I'm guessing this stems > from text properties upping the BUF_MODIFF, but not changing the buffer > modification status. > > Does this sound like the correct analysis? If so, what can we do about > it? (`with-silent-modifications' doesn't seem to have any effect here.) The OP's recipe includes C-g, which could mean we lack an unwind-protect somewhere, and the buffer stays modified due to changes in faces. The fact that changes in faces cause the buffer become eligible for auto-saving is not a bug, IMO, it's a feature. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 16 08:06:58 2021 Received: (at 11303) by debbugs.gnu.org; 16 Jul 2021 12:06:58 +0000 Received: from localhost ([127.0.0.1]:50694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4McL-0000t4-SY for submit@debbugs.gnu.org; Fri, 16 Jul 2021 08:06:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m4McJ-0000sq-W1 for 11303@debbugs.gnu.org; Fri, 16 Jul 2021 08:06:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VrNY8pZGIlWz8RqdR6KPONNnmKuUdpRRrOqz0Pn+4Kg=; b=EF6UctbdV9i99CGLFgW84fmiwn ft9a0Ge0kjwl5HGSRET1JmIgPAhPaDZB1qGTZz7R8Amy1knoxHGfTM0sjHQka+PXVmnJTK3DNUe+I atTj7PhqmDMukLFdC+Sg5Sui5jZBrB2qtpXbqb4aKIzMpcSze4qp69Yez5AuwwFM2xpA=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m4McA-00044q-TZ; Fri, 16 Jul 2021 14:06:49 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#11303: Whitespace mode causes auto-save to malfunction References: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> <87r1fya2wv.fsf@gnus.org> <831r7y5uyv.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEWFEReKKiilnJGS WVRyDxNgIx4qJR56hHn///9MMD0NAAAAAWJLR0QIht6VegAAAAd0SU1FB+UHDwcICzpaqdIAAAGU SURBVDjLddHBUuMwDAZgZUju0TbhAWCmPZelu1czyD3HOM6dqWMegAOvj2S7JS6pD53WX35JUQHK g/HAn0eADe6vAeDuAeDpgT9qle4rh9hCgs1ffgKGDCjQJoiPnBO4kUoR0skAhqH6DVWLsdbvBBpc LyUAqVS+cTxyrVTjuQUuYVJ0DN40I0O7hKPSIcxDbzoZaglDwwD3JvYWIEXyrfF1CD5thCOvDEQS qgOXer+fGZAXlyBGjkHOUGFbldDI/dzKFutLKTonnJKN1KBygpsogdm2e1nJpRQXUxPDZJ1ssf0B UDxsOAX3abCrgH4SsVI4/ft8R6j59wVojtN+nSwiFTDGxO602SO9LEAPU4zMThKwAr0xRPUCKN4H ezCu6DHlwMejNgWMCUL4r/sS8v3But4V4NPavdVuDbbe9lc9xnOiH8s3dwIf28EeSnCjTn+t7Yi6 AtIbDq/PVCR0BnLPssMF+Ay64/WUCenuBa5LcWSWwUuIGMZ1oBDnW4G8g1XQ+gbQRLdKZdjdgLft Ouin8A0rqO3Ehwu7/gAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNy0xNVQwNzowODoxMSswMDow MKgM0qoAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDctMTVUMDc6MDg6MTErMDA6MDDZUWoWAAAA AElFTkSuQmCC X-Now-Playing: Doms & Deykers's _Fabric 94: Steffi_: "No Life on the Surface" Date: Fri, 16 Jul 2021 14:06:46 +0200 In-Reply-To: <831r7y5uyv.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 16 Jul 2021 15:00:56 +0300") Message-ID: <878s26a2eh.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > The OP's recipe includes C-g, which could mean we lack an > unwind-protect somewhere, and the buffer stays modified due to changes > in faces. The C-g isn't necessary to reproduce the issue. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11303 Cc: 11303@debbugs.gnu.org, kellydeanch@yahoo.com 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 (---) Eli Zaretskii writes: > The OP's recipe includes C-g, which could mean we lack an > unwind-protect somewhere, and the buffer stays modified due to changes > in faces. The C-g isn't necessary to reproduce the issue. > The fact that changes in faces cause the buffer become eligible for > auto-saving is not a bug, IMO, it's a feature. It's pretty annoying when using whitespace-mode -- which changes the text properties all the time when you move around in the buffer (without modifying the buffer). It's not really that much of an issue elsewhere, where font lock changes usually only happen when you actually edit the buffer. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat May 07 06:08:15 2022 Received: (at 11303) by debbugs.gnu.org; 7 May 2022 10:08:15 +0000 Received: from localhost ([127.0.0.1]:50499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnHM9-00065q-1T for submit@debbugs.gnu.org; Sat, 07 May 2022 06:08:15 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnHM6-00065B-Uj for 11303@debbugs.gnu.org; Sat, 07 May 2022 06:08:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UfTThNWVfo9AL2CAk6qDFMLtd94ks/Pm/DqeYMlA/os=; b=ikxeh9WRLVzyJUm18s6TU15aqg +RBxlwY1eOYY64PT51ONU6huY0oALC+uWbnSZDIjmofP20vJPdplUwHH5yC2PjNOqTKQHfMCiZphe CSc1TLTCtKbUPzqncoGI7G9ScsmcGHe10h+QCjkb0z64oeRlcqbRdrED2ONbkquhCfX4=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnHLy-0001SJ-9K; Sat, 07 May 2022 12:08:00 +0200 From: Lars Ingebrigtsen To: Kelly Dean Subject: Re: bug#11303: Whitespace mode causes auto-save to malfunction References: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> X-Now-Playing: Coil's _The New Backwards (extended edition)_: "Paint Me As A Dead Soul" Date: Sat, 07 May 2022 12:07:57 +0200 In-Reply-To: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> (Kelly Dean's message of "Sat, 21 Apr 2012 02:49:36 -0700 (PDT)") Message-ID: <87wnexveo2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kelly Dean writes: > Notice that Emacs does write the auto-save file > again, even though the buffer hasn't changed since the last > auto-save. This is not the correct behavior. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 11303 Cc: 11303@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 (---) Kelly Dean writes: > Notice that Emacs does write the auto-save file > again, even though the buffer hasn't changed since the last > auto-save. This is not the correct behavior. I've now fixed this in Emacs 29. The problem wasn't limited to whitespace mode, but all modes that do font locking. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat May 07 06:08:16 2022 Received: (at control) by debbugs.gnu.org; 7 May 2022 10:08:16 +0000 Received: from localhost ([127.0.0.1]:50502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnHMF-000663-JB for submit@debbugs.gnu.org; Sat, 07 May 2022 06:08:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnHMB-00065h-L1 for control@debbugs.gnu.org; Sat, 07 May 2022 06:08:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MSC75f8GX5JwpondXPgWRWdJPnU0wG8SIbncsgBuAic=; b=nJyXDZnXeZYEy3s/pyKy81ZSoL 2mrnvJnj604NpkZ96PoLGgC+EfS9ltD0ig5OeiitudMAO9IVvaGrDWr61A4NmvY/pXJv6BmM+A1lo TFzpjStrSZ6y42WxRwV+eaI9tIpBpnmHI7lPd9y1BXKd3BYyrXkws6YY9Q1VzlhNETuk=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nnHM3-0001SS-VB for control@debbugs.gnu.org; Sat, 07 May 2022 12:08:05 +0200 Date: Sat, 07 May 2022 12:08:02 +0200 Message-Id: <87v8uhvenx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #11303 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 11303 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 11303 29.1 quit From unknown Sun Jun 15 08:53:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Jun 2022 11:24:04 +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