From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Will Parsons Newsgroups: gmane.emacs.help Subject: interference with whitespace-mode and write-file-hooks? Date: 14 Sep 2013 14:16:56 GMT Message-ID: Reply-To: gyliamos@gmail.com NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1379174791 15450 80.91.229.3 (14 Sep 2013 16:06:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Sep 2013 16:06:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 14 18:06:34 2013 Return-path: Envelope-to: geh-help-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 1VKsMk-0006v7-CH for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Sep 2013 18:06:34 +0200 Original-Received: from localhost ([::1]:53955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKsMj-0001uN-To for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Sep 2013 12:06:33 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: individual.net VLEZvana0nkueNXgsMZHfwKMhbzphXK0Ws7bmQaj3HEMx3P2KJ Cancel-Lock: sha1:QagyaCvJAg//zXGli3dmt3QWC2Q= User-Agent: slrn/1.0.1 (FreeBSD) Original-Xref: usenet.stanford.edu gnu.emacs.help:201126 X-Mailman-Approved-At: Sat, 14 Sep 2013 12:06:22 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93396 Archived-At: I generally like to time-stamp my files when saving, but sometimes I want to turn if off, so some time ago I put in my .emacs file a function to do that: ---------- (add-hook 'write-file-hooks 'time-stamp) (defun wbp-toggle-time-stamp () "Toggle time-stamp on saving." (interactive) (if (member 'time-stamp write-file-hooks) (progn (remove-hook 'write-file-hooks 'time-stamp) (message "Setting time-stamp on saving turned off.")) (add-hook 'write-file-hooks 'time-stamp) (message "Setting time-stamp on saving turned on."))) (global-set-key [(hyper t)] 'wbp-toggle-time-stamp) ---------- I recently noticed that this broke, and H-t always turns the time-stamp on. After carefully reviewing the changes I'd made to .emacs since I originally put this function in, the culprit seems to be the following addition: (global-whitespace-mode 1) This doesn't make too much sense to me, anyone have an idea what's wrong?