emacs-devel
[Top][All Lists]
Advanced

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

Re: Documentation for custom-file - is not (load custom-file) needed?


From: Luc Teirlinck
Subject: Re: Documentation for custom-file - is not (load custom-file) needed?
Date: Mon, 6 Dec 2004 20:34:08 -0600 (CST)

On second thought, I start doubting the utility of the feature you are
proposing.  One of the main reasons to have a custom file is to have
different custom files for different versions of Emacs.  Those
versions share .emacs.  So Custom should not write anything into
.emacs of the type you are proposing, since the custom file usually is
version dependent and .emacs is version independent.

If Custom is to write anything in .emacs, it should allow the user to
specify different custom files for different ranges of Emacs versions
and write a `cond' form into .emacs of the type below.  That might be
useful, but I believe we should wait with that until after the release.

(cond ((< emacs-major-version 21)
       (load "~/.custom-20.el"))
      ((< emacs-minor-version 4)
       (load "~/.custom-21.el"))
      (t
       (load "~/.custom-21.4.el")))

Sincerely,

Luc.






reply via email to

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