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: Customization list Date: Mon, 15 Jul 2024 08:37:00 +0200 Message-ID: <86ed7vtb3n.fsf@fastmail.fm> References: <87seweessj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Tassilo Horn , help-gnu-emacs@gnu.org To: Ergus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 15 08:37:51 2024 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 1sTFLJ-0003uS-Tm for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 15 Jul 2024 08:37:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sTFKh-0006Ey-Gz; Mon, 15 Jul 2024 02:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTFKg-0006Ep-Iw for help-gnu-emacs@gnu.org; Mon, 15 Jul 2024 02:37:10 -0400 Original-Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sTFKe-0001Fm-Mp; Mon, 15 Jul 2024 02:37:10 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id EAA5811481B0; Mon, 15 Jul 2024 02:37:05 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 15 Jul 2024 02:37:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1721025425; x=1721111825; bh=EbyNnMJH4B5XCZ3nX7tQbFZV3Jeix8gwMlvZTSPUvxA=; b= kldyMki2DVafFVYNeuh2uId0UkuGE0MEPPBQHo0bSuCDWKt6zevOsF04J91mKSx3 6bYom2H1IbXNHqdTzLRuPSDD1hsQBMG4Lf50BLdbD1NGFxc7niLKXVufbT6nHTn8 QDz8YOnMAr44uIqjWIm00ESRqtrHVmlbuKyeiesIn4mB1+FX2gM6y45JwL7n6qIW vJ+ZESVdCPqCOjm9tAeIGOkdfe6e/A64rx+RyCKIDzoCjZnJpSSm6fl94ra2GwLZ hwDrnxZIioIECsJNW8Ctq9WWVnEjWsZlIXPhZLF4f/R+KSH6H8UrMpW/x6tI/8D0 sBSgENf4GeSWH9PNSkK9Zg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1721025425; x= 1721111825; bh=EbyNnMJH4B5XCZ3nX7tQbFZV3Jeix8gwMlvZTSPUvxA=; b=c ejGykgUI7lo+QDI1xNR4p1QbtnVxN5xUPXr+kQA/R4p6lqrkIVAOps8mFwfjU3gb jrMTVGOD0DIuRGY3J7FNjHuqJgkXxLs15FSsLg1/o6q9Gn6vKqOPj+rnw4XHZvt9 K3i2rxalcefhMlF6SOqx6m+8JepH4s3V2NR7+0mOLw1EgehoKQC3GWQuXoP4CoBZ uEeXbBQ0UoCOH2YMnyiscPB6/gqrx7UtM+gAIAl501qHFd3Gq50N/IFPrCf4P5VM ldiWMWjbG7/DA/Q0igqKSJaT66slRUijLyz88B/GUdnFCk+OASrokHBQdsR2bZhl px+nyH0XdPIytC1x9hFhQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgedugdduuddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhffkfggtgfgsehtqh ertddttdejnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgv mhgvrhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeffhfeiuddtff ejtedvjeevjefgiefgieeklefftdeffedvgfehuedvtdekheejgfenucffohhmrghinhep ghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 Jul 2024 02:37:03 -0400 (EDT) In-Reply-To: (Ergus's message of "Fri, 12 Jul 2024 21:15:29 +0200") Received-SPF: pass client-ip=103.168.172.153; envelope-from=joostkremers@fastmail.fm; helo=fhigh2-smtp.messagingengine.com 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_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147213 Archived-At: On Fri, Jul 12 2024, Ergus wrote: >>> Suppose I have a variable: >>> >>> (defcustom my-features '(feature1 feature2 feature3) >>> :type ???) >>> >>> This is a variable that may have a list of possible determined values, >>> so I was expecting to get something like this in the customization menu: >>> >>> [x] feature1 >>> [x] feature2 >>> [x] feature3 >>> [ ] feature4 >>> [ ] feature5 Hmm, looks like what you're after is the 'set' type. An example from one of= my packages: ``` (defcustom writeroom-global-effects '(writeroom-set-fullscreen writeroom-set-alpha writeroom-set-menu-bar-lines writeroom-set-tool-bar-lines writeroom-set-vertical-scroll-bars writeroom-set-bottom-divider-width) "List of global effects for `writeroom-mode'. These effects are enabled when `writeroom-mode' is activated in the first buffer and disabled when it is deactivated in the last buffer." :group 'writeroom :type '(set (const :tag "Fullscreen" writeroom-set-fullscreen) (const :tag "Disable transparency" writeroom-set-alpha) (const :tag "Disable menu bar" writeroom-set-menu-bar-lines) (const :tag "Disable tool bar" writeroom-set-tool-bar-lines) (const :tag "Disable scroll bar" writeroom-set-vertical-scrol= l-bars) (const :tag "Enable bottom window divider" writeroom-set-bott= om-divider-width) (const :tag "Add border" writeroom-set-internal-border-width) (const :tag "Display frame on all workspaces" writeroom-set-s= ticky) (repeat :inline t :tag "Custom effects" function))) ``` (See .) In the Customisation buffer, you'll get this: ``` Hide Writeroom Global Effects: Set: [ ] Fullscreen [X] Disable transparency [X] Disable menu bar [X] Disable tool bar [X] Disable scroll bar [X] Enable bottom window divider [ ] Add border [ ] Display frame on all workspaces [ ] Custom effects: INS State : CHANGED outside Customize. List of global effects for =E2=80=98writeroom-mode=E2=80=99. Hide These effects are enabled when =E2=80=98writeroom-mode=E2=80=99 is activ= ated in the first buffer and disabled when it is deactivated in the last buffer. Groups: Writeroom ``` You can tick each box to in/exclude the option, and you can tick the final = box to add custom options. Each option corresponds to a symbol that is added to= or removed from the list. HTH --=20 Joost Kremers Life has its moments