🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189791

Re: after-save-buffer-hooks

#189791
From: Jamie Zawinski
Date: Thu, 22 Nov 1990 21:13
14 lines
1470 bytes
I very much hope that Roland's after-save-buffer-hooks code gets integrated
into the official distribution; the fact that this variable didn't exist
already is the reason that tar-mode and the various compress/encrypt modes 
do not get along.  

The thing that these modes have in common is that they need to alter the
buffer contents before saving, and change it back afterwards.  They do this by
using a write-file-hook that actually writes the file.  This means that
following hooks will not get called, which means a compressed or encrypted tar
file may be visited, but it either cannot be written out compressed/encrypted,
or it will be written out as a garbled tar file, depending on whether
tar-mode's hook or crypt-mode's hook made it on to the write-file-hooks first.

		-- Jamie
Technical Details
Message-ID: <JWZ.90Nov22131329@kolyma.lucid.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!neon!lucid.com!jwz
References: <9011220610.AA21745@albert.ai.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,205d6475dc7e5140,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1990-11-22 13:13:29 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!neon!lucid.com!jwz
From: jwz@lucid.com (Jamie Zawinski)
Newsgroups: gnu.emacs.help
Subject: Re: after-save-buffer-hooks
Message-ID: <JWZ.90Nov22131329@kolyma.lucid.com>
Date: 22 Nov 90 21:13:29 GMT
References: <9011220610.AA21745@albert.ai.mit.edu>
Sender: jwz@lucid.com
Distribution: gnu
Organization: Lucid, Inc., Menlo Park, CA
Lines: 14
Posted: Thu Nov 22 22:13:29 1990
In-reply-to: roland@AI.MIT.EDU's message of 22 Nov 90 06:10:39 GMT