🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98644

(write-file) destroys the contents of write-file-hooks

#98644
From: Jonas Jaernestroem TG/HDK
Date: Fri, 19 Apr 1991 08:58
31 lines
2047 bytes
Hi guys !

I'm writing a major mode for a Lisp dialect from Cadence called SKILL.
I have defined "write-file-hooks" as a buffer local variable and then
I set it to an action list, and this works fine when doing (save-buffer).

However, when doing (write-file) the buffer local value of "write-file-hooks"
is set to nil, so the next time I do (save-buffer) my hooks are ignored.
I assume that this is a bug, since I cant think of any meaningful reason
for this behaviour.

My temporary solution have been to redefine C-x C-w to a modified (write-file)
which restores the contents of "write-file-hooks".

Do you know of any better solution ?

Best regards, Jonas Jarnestrom

PS

I have used gnu emacs for six years now, but it wasnt until I started
to write gnu lisp functions, that I finally realized the tremendous power
and beaty of gnu emacs. As far as I know, there is no serious competitor
on the scene when it comes to programmability and customization.
I enjoy using it, every single day.

Jonas Jaernestroem      PHONE:    +46 8 719 1009            
ERICSSON Telecom AB     FAX:      +46 8 719 5319
126 25    STOCKHOLM     E-MAIL (globally) etxjojm@ericad.ericsson.se
                        E-MAIL (from Cadence) etxjojm%ericad.ericsson.se@murre
                          
Technical Details
Message-ID: <9104190858.AA08171@ericad.ericsson.se>
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,a41d1ea1b8ad0d70,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-04-19 19:48:17 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!spool.mu.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbage
From: etxjojm@ericad.ericsson.se (Jonas Jaernestroem TG/HDK)
Newsgroups: gnu.emacs.bug
Subject: (write-file) destroys the contents of write-file-hooks
Message-ID: <9104190858.AA08171@ericad.ericsson.se>
Date: 19 Apr 91 08:58:49 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 31
Approved: bug-gnu-emacs@prep.ai.mit.edu