From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.bugs Subject: bug#11303: Whitespace mode causes auto-save to malfunction Date: Sat, 21 Apr 2012 02:49:36 -0700 (PDT) Message-ID: <1335001776.57750.YahooMailClassic@web121502.mail.ne1.yahoo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1335030601 18572 80.91.229.3 (21 Apr 2012 17:50:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 21 Apr 2012 17:50:01 +0000 (UTC) To: 11303@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 21 19:50:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SLeRb-0006Wp-LL for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 19:49:59 +0200 Original-Received: from localhost ([::1]:42988 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLeRa-0007Lj-Qx for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Apr 2012 13:49:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLeRB-0007FC-T1 for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:49:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SLeRA-0005l5-1D for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:49:33 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SLeR9-0005l0-RY for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:49:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SLeRe-0006IZ-IT for bug-gnu-emacs@gnu.org; Sat, 21 Apr 2012 13:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kelly Dean Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Apr 2012 17:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133503058824169 (code B ref -1); Sat, 21 Apr 2012 17:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Apr 2012 17:49:48 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-Received: from [98.138.90.53] by nm5.bullet.mail.ne1.yahoo.com with NNFMP; 21 Apr 2012 09:49:36 -0000 Original-Received: from [98.138.89.248] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 21 Apr 2012 09:49:36 -0000 Original-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 Original-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 Original-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 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-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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 21 Apr 2012 13:49:56 -0400 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59368 Archived-At: 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.