all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Custom themes: safe themes
@ 2011-09-07 17:52 Edward O'Connor
  2011-10-01 18:28 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Edward O'Connor @ 2011-09-07 17:52 UTC (permalink / raw)
  To: emacs-devel

Hi,

When I first tried to load my Emacs-23-compatible Custom theme in a
nightly build of Emacs 24, I was prompted with "Loading a theme can run
Lisp code. Really load?" Since I wrote the theme myself, I'd like to
prevent this prompt.

The `custom-safe-themes' mechanism doesn't really work for me, because
different machines might have different versions of the theme installed.
I'd really rather not carry around N sha1 hashes in my .emacs file, and
I don't want to get prompted anew whenever I happen to make a change in
the theme.

So I guess I have to use the (new) NO-CONFIRM argument to `load-theme'.
Because I use the same .emacs across all machines & have different Emacs
versions installed in different places, the only safe way to call
`load-theme' with this argument looks to be:

                     (condition-case nil
                         (load-theme 'foo t)
                       (wrong-number-of-arguments
                        (load-theme 'foo)))

This is kind of gross. It would be nice if `custom-safe-themes' had a
way to bless all versions of some theme, instead of requiring a
different entry per version.

(Actually, I ended up not even using `load-theme' to load my theme, but
for another reason which I'll detail in my next email.)


Ted



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

end of thread, other threads:[~2011-10-01 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-07 17:52 Custom themes: safe themes Edward O'Connor
2011-10-01 18:28 ` Chong Yidong

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.