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

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

Re: variable defined in site-start.el not in .emacs or default.el


From: drkm
Subject: Re: variable defined in site-start.el not in .emacs or default.el
Date: Sun, 02 Jan 2005 20:00:55 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (windows-nt)

Steinar Bang <sb@dod.no> writes:

> (defvar company-site-lisp (file-name-directory (locate-library "site-start"))
>   "Path to the Company site-lisp directory.
> The default value here is the location of the site-start.el file.")

> The company-site-lisp variable seems to be defined when used elsewhere
> in site-start.el.  But it is reported to be undefined when I'm
> attempting to use it in ~/.emacs and the default.el file.

  It seems that .emacs and default.el are loaded before you define the
variable.  It's stange, because Emacs loads site-start.el, then
.emacs, then default.el.  Do you have something like (load "~/.emacs")
in your site-start.el ?

  What does say :

    ~> emacs -debug-init

if you put (error "Debugging error!") just before definning the
variable in site-start.el and just before using it in .emacs ?

> Also it isn't found when doing `C-h v' after startup.

> I thought this would be a globally defined variable?  The variables
> I'm defining with defcustom seems to be working.

  Do you mean that the problem disapears when you change `defvar' with
`defcustom'?  Strange!

--drkm

reply via email to

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