emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: custom-set-variables fails to set variable


From: Luc Teirlinck
Subject: Re: custom-set-variables fails to set variable
Date: Thu, 10 Nov 2005 17:51:20 -0600 (CST)

>From my previous message:

   custom-set-variables defcustom defvar

   and the defvar looses, as it should.

The defvar looses in the struggle for the value, but the defvar wins
in as far as the docstring is concerned, which might be a problem for
you.  To avoid this you could do:

defcustom define-derived-mode yet-another-defvar-with-your-docstring,

which would start looking very strange.  Maybe we need a keyword
argument to define-derived-mode that prevents it from defvarring the
mode hook, in case somebody wants a defcustom or a hand-crafted defvar.

Sincerely,

Luc.






reply via email to

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