all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* editable-list widget
@ 2007-04-17 21:47 achambers.home
  0 siblings, 0 replies; only message in thread
From: achambers.home @ 2007-04-17 21:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm struggling to get to grips with how elisp widgets work.  I'd like
to make an editable-list where each item is a group of two editable-
fields side by side.  I can
make the latter part on its own using this...

(apply 'widget-create
      '(group :value ("Y" "Yes")
            (editable-field :format "%v " :size 10)
            (editable-field :format "%v\n" :size 10)))

...I tried to include the group  in an editable-list by doing this....

(apply 'widget-create
       '(editable-list
	 :entry-format "%i%d %v"
	 :value ((group :value ("Y" "Yes")
		  ((editable-field :format "%v " :size 10 "")
		   (editable-field :format "%v\n" :size 10 ""))))
	 (group :value ("" "")
	  ((editable-field :format "%v " :size 10 :value "")
	   (editable-field :format "%v\n" :size 10 :value "")))))

...but it fails at widget-convert

Can anyone point me in the right direction?

Thanks,
Andy Chambers

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-04-17 21:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-17 21:47 editable-list widget achambers.home

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.