etfinsrt - Insert template file into current buffer
etfinsrt is generally called by file hooks when the new buffer has been created as opposed to loaded from a file (see $buffer-fhook(5)).
etfinsrt uses &find(4) to locate and insert the required "template.etf" file. If successful, etfinsrt then replaces the following strings in the template:
The following is taken from hkmake.emf and inserts the "makefile.etf" template if the buffer has been created.
define-macro fhook-make ; if arg is 0 this is a new file so add template !if ¬ @# etfinsrt "makefile" !endif set-variable $buffer-hilight .hilight.make -1 buffer-mode "tab" ; Normal tabs please !!! 1 buffer-mode "indent" 1 buffer-mode "time" !emacro
etfinsrt is a macro defined in etfinsrt.emf.
magic(2m) mode is always used to perform the the search/replace so the replace strings should be appropriate for magic.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2006/08/21
Generated On: 2006/10/07