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

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

Re: default.el and site-start.el


From: Stefan Monnier
Subject: Re: default.el and site-start.el
Date: 03 Jul 2003 21:19:57 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> Users should tend toward 'setq' in their .emacs while admins should
> tend toward 'defvar' (or 'defcustom') in default.el. (CMIMW) defvar
> doesn't override the value set by setq.

Please avoid defvar to set a variable.
`defvar' is used to declare a variable (and secondarily to provide
a default value for it).
If you misuse it like you recommend, you can end up confusing Emacs
as to where a variable is defined, so things like C-h v <var> RET will
not point to the proper file, M-x unload-feature will not do what
it should, ...


        Stefan


reply via email to

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