help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[h-e-w] trying to dump emacs


From: Geert Ribbers
Subject: [h-e-w] trying to dump emacs
Date: Fri, 24 May 2002 13:22:14 +0200

Hi.

 

I’m trying to dump emacs to get better startup-performance by avoiding the load of my big environment all the time.

My platform is W2k, emacs 21.2.1, pre-built (GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) of 2002-03-19 on buffy).

 

When I start my standard-configuration in batch and then call the command dump-emacs emacs crashes.

So I proceeded with temacs.

I start it with temacs –batch –l loadup dump.

I have created a file site-init.el in the lisp directory that is supposed to load my enviroment.

Since emacs hardly appears to be initialized when started in this way, I set EMACSROOT and load-path myself.

Then indeed the files-to-load can be found but I get an error on documentation when emacs is loading cl (which is required):

 

-Cannot open doc string file “../etc/..lisp/cl.elc”-

 

Clearly that path is wrong but I can’t find how it is composed.

What emacs-variable(s) or environment-variable(s) should I have set to prevend this to happen?

Anyone got a clue?

 

The contents of the site-init file:

 

(when (not (getenv "EMACSROOT"))

  (setenv "EMACSROOT" (expand-file-name "..")) ;; current-directory is the dir where this is located: %EMACSROOT%/lisp

  (setenv "PATH" (expand-file-name "..\\bin;..\\Realworld\\Programs"))

  (setenv "EMACSLOADPATH" (concat (expand-file-name "lisp" (getenv "EMACSROOT")) ";" (expand-file-name "site-lisp" (getenv "EMACSROOT"))))

  (setenv "EMACSDATA" (expand-file-name "etc" (getenv "EMACSROOT")))

  (setenv "EMACSPATH" (expand-file-name "bin" (getenv "EMACSROOT")))

  (setenv "EMACSDOC" (expand-file-name "etc" (getenv "EMACSROOT")))

  (setenv "INFOPATH" (expand-file-name "info" (getenv "EMACSROOT")))

  )

;; ----------

;; put both site-lisp and lisp in the load-path, add the sub-directories also

;; ----------

(push (expand-file-name "site-lisp" (getenv "EMACSROOT")) load-path)

(push (expand-file-name "lisp" (getenv "EMACSROOT")) load-path)

(let*

    (

     (default-directory (expand-file-name "lisp" (getenv "EMACSROOT")))

     )

  (normal-top-level-add-subdirs-to-load-path)

  (setq default-directory (expand-file-name "site-lisp" (getenv "EMACSROOT")))

  (normal-top-level-add-subdirs-to-load-path)

  )

(setq doc-directory (getenv "EMACSDOC")) ;; this doesn't help at all

;; ----------

;; load the site-environment

;; ----------

(load (expand-file-name "Realworld/lisp/roos-site-start" (getenv "EMACSROOT")))

 

Thanks for any help, Geert Ribbers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]