From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: delete-trailing-whitespace on save Date: 27 Nov 2007 14:42:13 GMT Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1196178054 1936 80.91.229.12 (27 Nov 2007 15:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 15:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 27 16:41:02 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ix2YQ-0006sn-2J for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 16:40:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix2YA-0007HJ-Uh for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Nov 2007 10:40:38 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: individual.net x05bwbjFuGZgg01gzEvUiwzFyCQUZW19V7lE13BZCTTpooHh9i Cancel-Lock: sha1:Hslv/hqULwP7zkcEH/IkOFR2C4A= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/0.9.8.1 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:154154 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:49585 Archived-At: jdh2358@gmail.com wrote: > thought I could use an after-save-hook > > but that deletes the whitespace *after* saving. as the name implies... ;-) > I need something like > a before-save-hook. I googled before-save-hook and it appears there > was once such a beast, but it does not appear to be a variable in my > version of emacs (GNU Emacs 21.3.1) there is in my version (GNU Emacs 23.0.0.1), so i find it odd that you don't have it. have you tried ? -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)