all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: general customize-like data editor?
Date: Wed, 14 Dec 2016 10:02:32 -0500	[thread overview]
Message-ID: <87pokuk0zb.fsf@lifelogs.com> (raw)

Several times[1] I've wished for a general data editor.

It would behave like Customize but at the data level. The closest I've
found is `eieio-customize-object' from eieio-custom.el. The EIEIO
facilities make a lot of sense for this, and I don't think it's a big
burden for packages to map their *editable* structures to defclasses,
even if they don't buy into it generally.

So my questions are:

1) are there non-EIEIO field editors, based on alists or plists when you
don't know all the fields in advance, but can specify their type? The
use case here is "I have a data structure with integer keys x, y, z; all
the rest should default to string editing."

2) inside Emacs, `eieio-customize-object' is only used by CEDET. Are
there other packages that use it? Any experiences, positive or negative?

3) currently `eieio-customize-object' is focused on editing a single
object. Are there table editors that would allow changing multiple
objects? For instance the process environment editor in
https://github.com/dgtized/list-environment.el could use that. The
use case here is "I have a data structure with a list of strings I'd
like to edit."

Clearly this parallels the Customize interface, which knows how to
validate and edit things like '(repeat string) etc. so if there are ways
to simply use that interface, that's probably easiest. But that doesn't
solve editing multiples as in (3) and seems to have a lot of hard-coded
behavior specific to customizing named variables. So I'm not sure what
to do.

Thanks
Ted


[1] https://github.com/vmware/govmomi/issues/646 and https://github.com/dgtized/list-environment.el/issues/2 for instance




             reply	other threads:[~2016-12-14 15:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-14 15:02 Ted Zlatanov [this message]
2016-12-14 16:30 ` general customize-like data editor? raman
2016-12-14 17:52 ` Eric Abrahamsen
2016-12-15  7:39 ` Andreas Röhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pokuk0zb.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.