emacs-devel
[Top][All Lists]
Advanced

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

Re: desktop.el and minor modes


From: Lars Hansen
Subject: Re: desktop.el and minor modes
Date: Tue, 08 Jun 2004 18:10:30 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk



It doesn't work when dired-omit-files-p is saved in .emacs by customize.

Yes it does, but you have to load dired-x first somehow. You may considered it a bug in the old version of dired-x that dired-omit-files-p wasn't declared with :require 'dired-x or had an autoload cookie. Anyway, you had to load dired-x before the custom-set-variables call, just as with the new version of dired-x. So in this respect, nothing is changed.

For example, try in a new Emacs session:

(progn
(custom-set-variables '(dired-omit-files-p t))
(require 'dired-x)
dired-omit-files-p)

Returns: nil
Try

(progn
 (require 'dired-x)
 (custom-set-variables '(dired-omit-files-p t))
 dired-omit-files-p)

or

(progn
 (custom-set-variables '(dired-omit-files-p t nil (dired-x)))
 dired-omit-files-p)

Both return t as expected.







reply via email to

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