Re: beamer: completion for \usetheme and \usecolortheme

Reiner Steib <[email protected]>
Newsgroups gmane.emacs.auc-tex
Organization Dept. of Theoretical Physics, University of Ulm
Message-ID <[email protected]>
On Thu, Mar 03 2005, Ralf Angeli wrote:

> Does the following definition do what you want?
[...]
> 		 (repeat :tag "List"
> 			 :value ("Antibes" "Bergen" "Szeged" "Warsaw")
> 			 (string))))

It doesn't offer the nice check-boxes:

,----
| LaTeX-beamer-themes: Hide Value Value Menu List:
| Set:
| [X] Antibes
| [X] Bergen
| [X] Szeged
| [X] Warsaw
| Other:
|[...]
`----

Hm, it works when selecting "List" two times in a row (both in Emacs
CVS and in 21.4).  Looks like a bug in customize, doesn't it?  To
reproduce:

(1) Create a file /tmp/cus-test.el:

--8<---------------cut here---------------start------------->8---
(defcustom my-test 'foo-bar
  "Foo bar"
  :group 'LaTeX-macro
  :type '(choice (const :tag "TeX search" foo-bar)
                 (function :tag "Other function")
                 (list (set :inline t
                            (const "Antibes")
                            (const "Warsaw"))
                       (repeat :inline t
                               :tag "Other"
                               (string)))))
(customize-variable 'my-test)
--8<---------------cut here---------------end--------------->8---

(2) emacs -q -no-site-file -l /tmp/cus-test.el

(3) Select "Value menu" -> "List":

,----
| My Test: Hide Value Value Menu invalid ((nil nil))
|    State: EDITED, shown value does not take effect until you set or save it.
| 
| Foo bar
| Parent groups: Latex Macro
`----

(4) Select "Value menu" -> "List" again:

,----
| My Test: Hide Value Value Menu List:
| Set:
| [ ] Antibes
| [ ] Warsaw
| Other:
| INS
|    State: EDITED, shown value does not take effect until you set or save it.
| 
| Foo bar
| Parent groups: Latex Macro
`----

I'll file a bug report.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.