unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Customization Types: Splicing into Lists
@ 2014-09-01 18:36 Daimrod
  2014-09-05 11:16 ` Daimrod
  0 siblings, 1 reply; 2+ messages in thread
From: Daimrod @ 2014-09-01 18:36 UTC (permalink / raw)
  To: emacs-devel

Hi,

When I tried to use org-feed.el (an org-mode module used to follow
RSS/Atom feeds in org files) I found (I think) a weird bug.

It looks like it's impossible to use splicing as it is shown in the
manual.

(info "(elisp) Splicing into Lists") says:
> When the element-type is a ‘choice’, you use ‘:inline’ not in the
> ‘choice’ itself, but in (some of) the alternatives of the ‘choice’.  For
> example, to match a list which must start with a file name, followed
> either by the symbol ‘t’ or two strings, use this customization type:
> 
>      (list file
>            (choice (const t)
>                    (list :inline t string string)))
> 
> If the user chooses the first alternative in the choice, then the
> overall list has two elements and the second element is ‘t’.  If the
> user chooses the second alternative, then the overall list has three
> elements and the second and third must be strings.

To reproduce this "bug" I did:

1. evaluate
   (defcustom foo '("" t)
     "bar"
     :type '(list string (choice (const t)
                                 (list :inline t string string))))
2. M-x customize-variable RET foo RET
3. Change the "Choice" field by the "list" type.
4. Apply the change
5. M-x customize-variable RET foo RET -> error (mismatch)
   It looks like the structure isn't recognized by the Customize interface.

I encountered this "bug" on master, emacs24 and emacs23.


Am I crazy? Did I miss something?

Best,
-- 
Daimrod/Greg



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

* Re: Customization Types: Splicing into Lists
  2014-09-01 18:36 Customization Types: Splicing into Lists Daimrod
@ 2014-09-05 11:16 ` Daimrod
  0 siblings, 0 replies; 2+ messages in thread
From: Daimrod @ 2014-09-05 11:16 UTC (permalink / raw)
  To: emacs-devel

ping?
-- 
Daimrod/Greg



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

end of thread, other threads:[~2014-09-05 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 18:36 Customization Types: Splicing into Lists Daimrod
2014-09-05 11:16 ` Daimrod

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).