Re: Wrapping my head around icon-map-list
Antonio Romano <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> writes: > > Non-nil Lists are conses: > > (A B ...) == (A . (B ...)) > > See the definition of `x-gtk-stock-map' which uses the second syntax. > > >> Having read this, I tried edited the `icon-map-list` as by prepending >> a personal alist as follows: >> >> (setopt icon-map-list (cons '("etc/images/diropen" . "document-new") >> icon-map-list)) >> => (("etc/images/diropen" . "document-new") x-gtk-stock-map) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > This is not an alist, it is a single element. >> ... > So there is a level of parens missing, no? That is true. However, the way the custom variable is set up makes me think that this is the intended arrangement: (defcustom icon-map-list '(x-gtk-stock-map) "A list of alists [...]" :version "22.2" :type '(choice (const :tag "Don't use stock icons" nil) (repeat (choice symbol (cons (string :tag "Emacs icon") (string :tag "Stock/named"))))) :group 'pgtk)