<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>39628</integer>
    </number>
    <user>
      <string>metaperl</string>
    </user>
    <title>
      <string>need fn to randomly select a color-theme</string>
    </title>
    <contents>
      <string>I have a list of color-theme functions. Each of theme simply sets the color-theme for my XEmacs. I would like to have an interactive function which randomly selects a function from the list calls it.

(setq color-theme-favorites '(classic infodoc tty-dary))

;;; now somebody write the function to:

(defun color-theme-random ()
   (interactive)
   (let* ((choice (random color-theme-favorites))
           (choice-str (symbol-2-string choice))
           (fn-str (strcat &quot;color-theme-&quot; choice-str))
           (fn (str-2-symbol))
      (apply fn)))
</string>
    </contents>
    <universal-time>
      <integer>3385393039</integer>
    </universal-time>
    <channel>
      <string>#xemacs</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <null/>
    </is-unicode>
    <deletion-requested>
      <null/>
    </deletion-requested>
    <deletion-requested-email>
      <null/>
    </deletion-requested-email>
    <expiration-time>
      <null/>
    </expiration-time>
  </paste>
</paste-with-annotations>
