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)
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.