Article View: gnu.emacs.bug
Article #98645(write-file) destroys the contents of write-file-hooks
From: Jonas Jaernestroem TG/HDK
Date: Fri, 19 Apr 1991 13:43
Date: Fri, 19 Apr 1991 13:43
30 lines
2104 bytes
2104 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. I'm running on a 18.55.4 version.
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.
DS
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:
<9104191343.AA08987@ericad.ericsson.se>Path:
arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!stanford.edu!agate!ucbvax!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,a41d1ea1b8ad0d70 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-04-19 19:59:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!unidui!math.fu-berlin.de!fauern!ira.uka.de!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!stanford.edu!agate!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: <9104191343.AA08987@ericad.ericsson.se> Date: 19 Apr 91 13:43:57 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 30 Approved: bug-gnu-emacs@prep.ai.mit.edu