🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98606

(not!) run-hooks in termsetup

#98606
From: dm
Date: Wed, 08 May 1991 23:35
45 lines
2128 bytes
Hi,

Just a teensy bug, i think....

It seems that after consulting term/vt100.el (or whatever)
while initializing, a reasonable-looking hook like

		(setq term-setup-hook
		      '(enable-arrow-keys) )

causes a barf, with error message to the effect that

	"(enable-arrow-keys)" is not a valid function.

Of course the above goes fine without the extra brackets,
but i want to put another hook function in there too,
so i really need that hook to be a list of functions.

That's the bug.
My guess is (haven't checked it, wouldn't know where to look)
that the hook "term-setup-hook" is not run with "run-hooks"
at all.
OK more confirmation, to save you time.
a) when *I* run (run-hooks 'term-setup-hook), it goes fine.
b) i put a debug point on "run-hooks" in my .emacs,
   and guess what - it wasn't called before the error.

So it looks like that's really the bug, though i can't say i've
actually seen it with my own eyes.

Please don't bother to reply to this.
I've just got the obvious workround in there now,
so don't need any patches.
Just thought i should tell you, that's all.

(Someone probably told you already, but you never know.)

Dave

		  --------------------------
   \|||/   David Moffat	    JANET:   D.Moffat@uk.ac.ed.aipna
   (^.^)   Dept. of A.I.    ARPA:    D.Moffat%uk.ac.ed.aipna@nsfnet-relay.ac.uk
    \@/	   80 Southbridge   UUCP:    ...!ukc!aipna.ed.ac.uk!D.Moffat
   _/ \_   Edinburgh.
   |   |   EH1 1HN.
Technical Details
Message-ID: <22421.9105082335@aipna.ed.ac.uk>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!lll-winken!iggy.GW.Vitalink.COM!widener!ukma!usenet.ins.cwru.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,111d7aaf11717fdb,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-05-09 02:59:21 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!elroy.jpl.nasa.gov!lll-winken!iggy.GW.Vitalink.COM!widener!ukma!usenet.ins.cwru.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: dm@aipna.edinburgh.ac.uk
Newsgroups: gnu.emacs.bug
Subject: (not!) run-hooks in termsetup
Message-ID: <22421.9105082335@aipna.ed.ac.uk>
Date: 8 May 91 23:35:26 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 45
Approved: bug-gnu-emacs@prep.ai.mit.edu