From: drkm <usenet@fgeorges.org>
Subject: Re: variable defined in site-start.el not in .emacs or default.el
Date: Sun, 02 Jan 2005 20:00:55 +0100 [thread overview]
Message-ID: <wk4qhz3bbs.fsf@fgeorges.org> (raw)
In-Reply-To: 87vfahrz4k.fsf@dod.no
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
prev parent reply other threads:[~2005-01-02 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-01 14:40 variable defined in site-start.el not in .emacs or default.el Steinar Bang
2005-01-02 19:00 ` drkm [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=wk4qhz3bbs.fsf@fgeorges.org \
--to=usenet@fgeorges.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).