🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98469

Request for enhancement: after-write-file-hooks

#98469
From: Kresten Krab Thorup
Date: Tue, 18 Jun 1991 15:10
18 lines
1437 bytes
Recently I wanted to make an write-file-hook, that would change the
mode of a file (on disc) to executable if it started with

	#!/executable/file

Which, e.g. in Unix, allows one to `execute' a script of some sort.
Examining the files.el in the distribution I found that the hooks run
at save time, are all run before the actual saving (perhaps) is taking
place.  This was a problem in my case, as I (at least) can not change
the mode of a non existent file...

Sure - I could write a new save-buffer, but that's not a general
solution... (so far I've just copied it, and inserted my own hook at
the end)

What do you think about that ?

/Kresten Krab Thorup
Technical Details
Message-ID: <KRAB.91Jun18111012@feynman.iesd.auc.dk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!samsung!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,64b74e6cf1b8f3bf,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-06-18 08:10:12 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!samsung!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: krab@IESD.AUC.DK (Kresten Krab Thorup)
Newsgroups: gnu.emacs.bug
Subject: Request for enhancement: after-write-file-hooks
Message-ID: <KRAB.91Jun18111012@feynman.iesd.auc.dk>
Date: 18 Jun 91 15:10:12 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Mathematics and Computer Science, University of Aalborg
Lines: 18
Approved: bug-gnu-emacs@prep.ai.mit.edu