all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Little help with defcustom
Date: Mon, 9 Nov 2020 19:35:20 +0300	[thread overview]
Message-ID: <X6lvyNpsMCujxR1k@protected.rcdrun.com> (raw)
In-Reply-To: <87pn4mps0g.fsf@fastmail.fm>

* Joost Kremers <joostkremers@fastmail.fm> [2020-11-09 16:48]:

> On Mon, Nov 09 2020, Jean Louis wrote:
> > I need little help with defcustom. I would like to define defcustom
> > structure for:
> >
> > Multiple inserts INS DEL:
> >
> > - Server name
> >   - Host name
> >   - User name
> >   - Password 
> >   - Port number (integer up to 65535)
> >   - Activated (boolean)

  :type '(repeat
	  (list :tag "Dynamical User Sets"
		(string :tag "  Server")
		(string :tag "Set name")
		(string :tag " Node ID"))))

Thank you.

I have succeeded randomly with the above. I know that is not best
style of programming (too nicely said) and I do read documentation but
I do not read enough.

I see that to achieve best formatting I have to pad with spaces those
strings. Is there maybe better way?

> Other than that, it's hard to give you any specific advice because
> you're not saying what you're having trouble with. Have you looked
> at the documentation (info "(elisp) Customization")? There are also
> tons of defcustoms in the Emacs source, so you could take a user
> option in a Customize buffer that looks like what you want and then
> check out how it's defined.

Before sending email I have read documentation and I searching similar
example to what I was thinking should be similar. And did not finish
searching examples. Most similar example was for accounts set in
jabber.el XMPP chat client.

Is there a way to make sure that field is not empty?




  reply	other threads:[~2020-11-09 16:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09  9:12 Little help with defcustom Jean Louis
2020-11-09 13:41 ` Joost Kremers
2020-11-09 16:35   ` Jean Louis [this message]
2020-11-09 19:14     ` Joost Kremers
2020-11-09 20:31       ` Jean Louis

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=X6lvyNpsMCujxR1k@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /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.