On 13 Dec 2001, Adrian Aichner wrote:
>>>>> "Jarl" == Jarl Friis
<jarl(a)diku.dk> writes:
[]
Jarl> In the lispref there's a section describing Defining
Global
Jarl> Variables. A lot of stuff regarding defvar is mentioned and
Jarl> one should start the documentation string with an asteriks
Jarl> to indicate it's a user option, the text also refers to the
Jarl> function `edit-options' which is not declared in XEmacs. So
Basic question: Which version of XEmacs are you using?
I use XEmacs 21.1.14 and 21.4.4. Trying to use a C-h f on `edit-options'
doesn't make sense
Jarl> to me it looks like much of this information (even big parts
Jarl> of lispref) is left-overs from GNU Emacs. As I see it
Jarl> user-options should not be declared with `defvar', but
Jarl> rather `defcustom'. does that make `defvar' obsolete?
See documentation for defvar. It does not say it's obsolete in
emacs-version "21.4 (patch 6) \"Common Lisp (candidate 1)\" XEmacs
Lucid"
However, the Custom interface will be easier for beginners and many
packages have therefor migrated to use of defcustom.
That's what I mean; for XEmacs I consider defvar deprecated, use defcustom
instead. Am I wrong?
Jarl> customisation (using `defcustom'), can anyone come
up with
Jarl> an example of when it's appropriate to use `defvar'?
It's just the old, but still valid, way.
Valid, yes. But isn't that just for backward compatibility?
Jarl> Can anyone point me to some documentation on how to make the
Jarl> jump from a simple *.el-file to a real integrated XEmacs
Jarl> package? A list of criterias on file/directory-structure,
Sure, it's
(Info-goto-node "(xemacs)Creating Packages")
Thanks that looks like what I was missing. I'll have a look at that.
Jarl> etc. would be nice.
Hope this helps,
At least it's a start ;-)
Jarl