all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* :file keyword for Customize
@ 2008-05-08 16:35 Drew Adams
  2008-05-08 16:43 ` Jason Rumney
                   ` (3 more replies)
  0 siblings, 4 replies; 30+ messages in thread
From: Drew Adams @ 2008-05-08 16:35 UTC (permalink / raw)
  To: 'Emacs-Devel'

How about adding a :file keyword for `defcustom' and `defface'?

(defcustom foo-bar-flag t
  "Non-nil means toto."
  :type 'boolean :group 'foo
  :file (if (eq system-type 'windows-nt)
            "C:\\foo-stuff\\foo-cus.el"
          "/toto/foo-stuff/foo-cus.el"))

Its argument would be evaluated to a file name. That particular `defcustom' or
`defface' setting would be saved in that file, instead of in `custom-file' or
`init-file'. A nil or "" value for :file would mean the same thing as the
absence of a :file keyword: as now, use `custom-file' or, if no `custom-file',
`init-file'.

This could provide a little more modularity for packages (and for any other
groupings of options & faces). It could help deal with things like platform
differences (for a package) and initialization order of settings. It could allow
users a little more flexibility in terms of when some groups of Customize
settings are loaded (currently, all Customize settings are loaded at once). It
could simplify communication with package authors about bugs (e.g. automatically
include the package's Customize settings in a bug report).

I don't have a particular use-case in mind; it's just something that occurred to
me. There is nothing special in this, but I think it might help organize things
a bit. A user's `custom-file' or `init-file' can become a monolithic blob, and
this could help cut down on that.





^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2008-05-13 21:48 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-08 16:35 :file keyword for Customize Drew Adams
2008-05-08 16:43 ` Jason Rumney
2008-05-08 16:59   ` Drew Adams
2008-05-08 17:08     ` Jason Rumney
2008-05-08 17:41       ` Ted Zlatanov
2008-05-08 18:00         ` Drew Adams
2008-05-08 19:12           ` Ted Zlatanov
2008-05-08 21:27             ` Drew Adams
2008-05-09 14:01               ` Ted Zlatanov
2008-05-08 20:00           ` Stephen J. Turnbull
2008-05-08 21:27             ` Drew Adams
2008-05-08 21:34               ` Jason Rumney
2008-05-09  6:43               ` Stephen J. Turnbull
2008-05-09  8:37             ` Bastien
2008-05-08 18:00       ` Drew Adams
2008-05-08 20:48 ` David Kastrup
2008-05-08 21:34   ` Drew Adams
2008-05-08 21:48     ` Jason Rumney
2008-05-08 22:10       ` Drew Adams
2008-05-08 22:31         ` David Kastrup
2008-05-08 21:51     ` David Kastrup
2008-05-09 14:11   ` Ted Zlatanov
2008-05-09 14:34     ` David Kastrup
2008-05-09 15:07       ` Ted Zlatanov
2008-05-09 21:17         ` Stephen J. Turnbull
2008-05-12 13:13           ` :password customize type (was: :file keyword for Customize) Ted Zlatanov
2008-05-09 11:12 ` :file keyword for Customize Richard M Stallman
2008-05-13 13:53 ` Paul R
2008-05-13 14:28   ` Stefan Monnier
2008-05-13 21:48   ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.