🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87747

In what order is the "find-file hooks" executed ?

#87747
From: Jonas Jarnestrom
Date: Mon, 29 Aug 1994 13:59
25 lines
1809 bytes
In GNU Emacs 19.25.1 of Tue Jul 12 1994 on euax1i5c25 (sparc-sun-sunos4.1)

Have the execution sequence of find-file-hooks and the
<major-mode>-hook been swapped recently ?
Where can I find what hooks are executed and in what sequence when I
visit a file ?

I have a find-file-hook function that reads the "last edit point" from
the first line of the file and relocates point accordingly.  This used
to work nicely in older GnuEmacses, but doesnt anymore, when being
part of the find-file-hook (or the <major-mode>-hook); The point is
always positioned to the standard "beginning of buffer" when visiting
a file. However if I call my hook-function interactively, after
visiting the file, the relocating works correct.

As part of my major-mode-hook I also load hilit19 as follows:

 (require 'hilit19)		; In case this is not loaded
 (load "hilite-defaults")
 (setq hilit-auto-highlight nil)	

Anybody can tell what I do wrong ?

-- 
Jonas Jarnestrom Ellemtel Telecom Labs etxjojm@eua.ericsson.se
Technical Details
Message-ID: <9408291356.AA12552@euah01i1c04.eua.ericsson.se>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!eua.ericsson.SE!Jonas.Jarnestrom

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,99d95fd0fc23bdba,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-29 07:02:56 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!eua.ericsson.SE!Jonas.Jarnestrom
From: Jonas.Jarnestrom@eua.ericsson.SE (Jonas Jarnestrom)
Newsgroups: gnu.emacs.bug
Subject: In what order is the "find-file hooks" executed ?
Date: 29 Aug 1994 09:59:43 -0400
Organization: GNUs Not Usenet
Lines: 25
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9408291356.AA12552@euah01i1c04.eua.ericsson.se>