From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Little help with defcustom Date: Mon, 09 Nov 2020 14:41:03 +0100 Message-ID: <87pn4mps0g.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9140"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.6; emacs 27.1.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 14:48:34 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kc7X8-0002Gk-38 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 14:48:34 +0100 Original-Received: from localhost ([::1]:43992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc7X7-0004gq-4R for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 08:48:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59508) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc7Q8-0006sx-Sq for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 08:41:20 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:59215) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc7Px-0001MZ-1H for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 08:41:20 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 91D67757 for ; Mon, 9 Nov 2020 08:41:06 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 09 Nov 2020 08:41:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=HbWUdwlqbP6n6RwAogM0CgbHkS kJryioTRVzIJs1jcs=; b=VCiZG77jmiVhE+YPHDRXHBXWRj38EMIYOeHUPYWlfV cI6JxTOoEQblHIlzIvVgGzDEOEU+BfmkFfrNlSkhFpN3of+jmwdTbXki+eOSNiFp 6SRDSPKPivSo59hEsRzzJLn+c3dpV5dr5zMZnHLoLoqIsudwaPyKMPHdKg3dZDfI B/c3fLBUigB/iWkBstsfWWOrl0phzh9QxiYV/nglMUfYG5E3R6iaXqd7tI0mGpVU H0yxC2v5d29Jd1Oo5HDxEqtUc7piuLaMvtTWZatbXH4Wm+rT3kRV4qidAMdZDThv 9LzIXi2RE1Y114v8mWmbJvfd4q42UC+hzoOgHc/A/eeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=HbWUdw lqbP6n6RwAogM0CgbHkSkJryioTRVzIJs1jcs=; b=OHYIn0+VS3n/1f4cRJjhm2 l2alRIJxzefF5FwNg1301t9fbUBtWaPIDDWmUBLCCvGDi2Q3Kgg7x4uE5Cvr0vSC VCaXiCe3HpzZcxwEyNHZBiM9kNkUsSGgz+56ByYHMTSMkAanBPI8sJP6Wr4+wRhq yrP1LPNFVbXWtdkYqNZuL7wtqLPetoYRO6ViKNLWY6u/vuf/Dgtak3w8ScH33Ppf mFXtgAXzMMy0LslsNVPliI1R8h3+0Mgh17DSw31hnqKJLhXolUrBKIRL9JCBjkJR D6jA64/SC8VdZQr6bfDKdBFk+D05ug3BsLOSDxce4LE298plxeqAkVKAwMV20gKg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffujgffkfggtgesthdtre dttdertdenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghm vghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhephfduffeuhfdule fhgfelueekgeduveettdduudfhfeetueegvdevtdduudfgffefnecukfhppeelhedrledt rddvvdegrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0e9.dynamic.kabel-deutschland.de [95.90.224.233]) by mail.messagingengine.com (Postfix) with ESMTPA id 784FE328005A for ; Mon, 9 Nov 2020 08:41:05 -0500 (EST) In-reply-to: Received-SPF: pass client-ip=64.147.123.20; envelope-from=joostkremers@fastmail.fm; helo=wout4-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/09 08:29:31 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125129 Archived-At: 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) > > And then to define second defcustom structure with multiple inserts > INS DEL: > > - Server name (referencing the above server name) > - Set name (belonging to this server) > - Node ID (integer, by default empty) > - Updatable (boolean) You can get the multiple inserts with the customisation type `repeat'. 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. -- Joost Kremers Life has its moments