🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189425

setting `term-setup-hook' out of order?

#189425
From: Mike Lijewski
Date: Mon, 18 Feb 1991 15:45
41 lines
2248 bytes
Is there anyway to force `term-setup-hook' to be called
out of the normal initialization order?  My understanding is that
`term-setup-hook' is called after all the other command line arguments
are processed.  In my case, I have written an emacs lisp package which
is invoked via a binary containing an exec of the following form:

        execl("/usr/local/pp/bin/emacs",
              "emacs",
              "-q",
              "-l",
              "/staff/mjlx/lib/lisp/cnsfinfo.elc",
              "-f",
              "cnsfinfo",
              "-wn",
              "cnsfinfo",
              (char *)0);

We never return form the function "cnsfinfo", so, it seems, we never
run `term-setup-hook'.  I am running with version 18.55 and would like
to set `term-setup-hook' as such to get more "sane" mouse behavior:

	 (setq term-setup-hook my-x-setup)
	 (defun my-x-setup ()
	   (load "fix-x-mouse")
	   (message " "))

Any suggestions?  I want to be able to do everything in Emacs Lisp, since
I don't always have the option of modify the Emacs source code.


Mike Lijewski  (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: mjlx@eagle.cnsf.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  25 Renwick Heights Road, Ithaca, NY  14850

-- 
Mike Lijewski  (H)607/272-0238 (W)607/254-8686
Cornell National Supercomputer Facility
ARPA: mjlx@eagle.cnsf.cornell.edu  BITNET: mjlx@cornellf.bitnet
SMAIL:  25 Renwick Heights Road, Ithaca, NY  14850
Technical Details
Message-ID: <1991Feb18.154558.23649@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!cornell!batcomputer!lijewski

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,4f8d095df3750b65,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-18 12:59:29 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!samsung!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!cornell!batcomputer!lijewski
From: lijewski@theory.tn.cornell.edu (Mike Lijewski)
Newsgroups: gnu.emacs.help
Subject: setting `term-setup-hook' out of order?
Keywords: term-setup-hook initialization Emacs Lisp mouse
Message-ID: <1991Feb18.154558.23649@batcomputer.tn.cornell.edu>
Date: 18 Feb 91 15:45:58 GMT
Sender: lijewski@batcomputer.tn.cornell.edu (Mike Lijewski)
Distribution: gnu
Organization: Cornell National Supercomputer Facility
Lines: 41