From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#12769: 24.2; Files won't save on Macintosh/Mountain Lion Date: Wed, 31 Oct 2012 08:33:46 +0100 Message-ID: References: <66AC6A79-0B90-4ACC-B861-DCA203F62EA8@mac.com> <36918149-9C7B-48B4-8043-9EB58342EB5A@swipnet.se> <9D6FF1F6-2EB1-4FA1-A194-A8C47D98558A@mac.com> <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351668878 23828 80.91.229.3 (31 Oct 2012 07:34:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Oct 2012 07:34:38 +0000 (UTC) Cc: 12769@debbugs.gnu.org To: John Croix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 31 08:34:46 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 1TTSp2-0001MN-0X for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 08:34:44 +0100 Original-Received: from localhost ([::1]:60072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTSot-0007Ne-7O for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Oct 2012 03:34:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTSoq-0007NS-Jz for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2012 03:34:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTSok-0000bT-Um for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2012 03:34:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTSok-0000bN-RF for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2012 03:34:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TTSrG-0001LH-5A for bug-gnu-emacs@gnu.org; Wed, 31 Oct 2012 03:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Oct 2012 07:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 12769-submit@debbugs.gnu.org id=B12769.13516689905117 (code B ref 12769); Wed, 31 Oct 2012 07:37:02 +0000 Original-Received: (at 12769) by debbugs.gnu.org; 31 Oct 2012 07:36:30 +0000 Original-Received: from localhost ([127.0.0.1]:40726 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTSqi-0001KT-J1 for submit@debbugs.gnu.org; Wed, 31 Oct 2012 03:36:29 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:38330) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TTSqg-0001KK-6W for 12769@debbugs.gnu.org; Wed, 31 Oct 2012 03:36:27 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3Xs1WJ6wtrz4KK6g; Wed, 31 Oct 2012 08:33:48 +0100 (CET) X-Auth-Info: qNfYX34+7Kawxunc106ymFyH1ddTKwq3ueYgDZpfZmw= Original-Received: from igel.home (ppp-88-217-106-11.dynamic.mnet-online.de [88.217.106.11]) by mail.mnet-online.de (Postfix) with ESMTPA id 3Xs1WJ0x8tzbbjf; Wed, 31 Oct 2012 08:33:48 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 501) id 94D25CA2A2; Wed, 31 Oct 2012 08:33:47 +0100 (CET) X-Yow: What GOOD is a CARDBOARD suitcase ANYWAY? In-Reply-To: <928CF6C4-2604-4B9A-9DC6-CBED7ECD64B5@mac.com> (John Croix's message of "Tue, 30 Oct 2012 22:04:31 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) 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-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:66261 Archived-At: John Croix writes: > I tracked the problem down to the following (in red): > (setq-default indent-tabs-mode nil) > (add-hook 'write-file-hooks > (lambda () > (if (not indent-tabs-mode) > (untabify (point-min) (point-max)) > (delete-trailing-whitespace)))) > When I comment out that line, everything works. When the line is present, > it doesn't work. Which line? Have you tried reading the documentation of write-file-hooks? List of functions to be called before writing out a buffer to a file. If one of them returns non-nil, the file is considered already written and the rest are not called. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."