File:  [CSRG BSD Unix] / 3BSD / cmd / lisp / lib / lisprcfun.l
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, CSRG
CVS tags: HEAD, BSD3
BSD 3.0

; this file is read in just before dumplisping if you want .lisprc
; from your home directory read in before the lisp begins.
(def lisprc-top-level
  (lambda nil
	  ((lambda (hom prt)
		   (cond (hom
			  (cond ((and 
				  (errset 
				   (progn
				    (setq prt (infile (concat hom '"/.lisprc")))
				    (close prt))
				   nil)
				  (null (errset
					 (load (concat hom '"/.lisprc")))))
				  (patom '"Error in .lisprc file detected")
				  (terpr)))))
		   (putd 'top-level original-top-level))
	   (getenv 'HOME) nil)))

(setq original-top-level (getd 'top-level))
(putd  'top-level (getd 'lisprc-top-level))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.