From unknown Tue Jun 17 21:54:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#15479 <15479@debbugs.gnu.org> To: bug#15479 <15479@debbugs.gnu.org> Subject: Status: Feature request: defcustom inherit type Reply-To: bug#15479 <15479@debbugs.gnu.org> Date: Wed, 18 Jun 2025 04:54:55 +0000 retitle 15479 Feature request: defcustom inherit type reassign 15479 emacs submitter 15479 Devin Homan severity 15479 wishlist tag 15479 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 28 14:23:47 2013 Received: (at submit) by debbugs.gnu.org; 28 Sep 2013 18:23:47 +0000 Received: from localhost ([127.0.0.1]:43438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPzBC-0002f8-En for submit@debbugs.gnu.org; Sat, 28 Sep 2013 14:23:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48880) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VPnw7-0000Cx-1Y for submit@debbugs.gnu.org; Sat, 28 Sep 2013 02:23:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPnvy-0006ei-EG for submit@debbugs.gnu.org; Sat, 28 Sep 2013 02:23:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_05, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPnvy-0006ee-B8 for submit@debbugs.gnu.org; Sat, 28 Sep 2013 02:23:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPnvp-0001xN-Qo for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2013 02:23:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPnvh-0006d6-Dc for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2013 02:23:09 -0400 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:33765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPnvh-0006cz-5W for bug-gnu-emacs@gnu.org; Sat, 28 Sep 2013 02:23:01 -0400 Received: by mail-pb0-f42.google.com with SMTP id un15so3431373pbc.29 for ; Fri, 27 Sep 2013 23:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:subject:content-type:content-transfer-encoding; bh=eWA+moByLAKfh8YEVwJBDF7WsGPfSfWy3bUSxThWD4E=; b=RCEUcQRwv+6j42wx9Pnk9EILSqHI9gggao//++vhlP4yzt3AD1orlOBq7ZmyFUNlJq UCIUL/9i8pvHjnnSO74oD/1Sm5KK72VUevR4wjaVeGZZ4UDmgK+HkddlbF1w53iZTZ/r 9rO7GKNtNehXjF+wpJReHqBeLSjTkVs8bke3mMbmdfThEDS7FBHbamyY2qppFEcqtToM EXLJIpzgHi9Cpm3olCGQfizM2vQJg529u+9nu2cF70fR/jhSlh8GFPxtjYE0+7rsFdLV /QTlM/unxdq8nRk58Q36XaNAX3TGyqvoP3vDvp4J+VtxvnEUfG9kPqHRIoeiSXQmpbdE Xf0g== X-Received: by 10.68.204.5 with SMTP id ku5mr11701191pbc.88.1380349379952; Fri, 27 Sep 2013 23:22:59 -0700 (PDT) Received: from [192.168.1.101] (40-196-137-216.mtaonline.net. [216.137.196.40]) by mx.google.com with ESMTPSA id pu5sm17259722pac.21.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 23:22:59 -0700 (PDT) Message-ID: <52467513.20408@gmail.com> Date: Fri, 27 Sep 2013 22:20:03 -0800 From: Devin Homan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 SeaMonkey/2.20 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Feature request: defcustom inherit type X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 28 Sep 2013 14:23:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) I think that it would be useful for client code to be able to create defcustom variables that inherit their type properties from another defcustom variable so that changes in the provided code are reflected in the client. This would allow client code to create defcustom's that are used as temporary, dynamic bindings that the user can customize without having to worry about additions to the accepted types in the provided code. For example, in the provided source there is: (defcustom foo-bar "A" "Doc." :group foo :type '(string)) (defun foo-smash () "Doc." (message "%s" foo-bar)) (provide 'foo) then the client code can have: (require 'foo) (defcustom cat-thing1 "B" "Doc." :group cat :type '(inherit foo-bar)) (defcustom cat-thing2 "C" "Doc." :group cat :type '(inherit foo-bar)) (let ((foo-bar cat-thing1)) (foo-smash)) (let ((foo-bar cat-thing2)) (foo-smash)) So if the maintainer of 'foo' decides to add an additional type, such as integer, then that change will automatically be shown in 'cat'. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 07 11:32:39 2019 Received: (at 15479) by debbugs.gnu.org; 7 Oct 2019 15:32:39 +0000 Received: from localhost ([127.0.0.1]:48877 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHV03-0007tb-A5 for submit@debbugs.gnu.org; Mon, 07 Oct 2019 11:32:39 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHV01-0007tQ-Q8 for 15479@debbugs.gnu.org; Mon, 07 Oct 2019 11:32:38 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHUzx-000582-SG; Mon, 07 Oct 2019 17:32:36 +0200 From: Lars Ingebrigtsen To: Devin Homan Subject: Re: bug#15479: Feature request: defcustom inherit type References: <52467513.20408@gmail.com> Date: Mon, 07 Oct 2019 17:32:33 +0200 In-Reply-To: <52467513.20408@gmail.com> (Devin Homan's message of "Fri, 27 Sep 2013 22:20:03 -0800") Message-ID: <87muec606m.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Devin Homan writes: > For example, in the provided source there is: > > (defcustom foo-bar "A" "Doc." :group foo :type '(string)) > > (defun foo-smash () "Doc." (message "%s" foo-bar)) > > (provide 'foo) > > then the cli [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15479 Cc: 15479@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Devin Homan writes: > For example, in the provided source there is: > > (defcustom foo-bar "A" "Doc." :group foo :type '(string)) > > (defun foo-smash () "Doc." (message "%s" foo-bar)) > > (provide 'foo) > > then the client code can have: > > (require 'foo) > > (defcustom cat-thing1 "B" "Doc." :group cat :type '(inherit foo-bar)) > > (defcustom cat-thing2 "C" "Doc." :group cat :type '(inherit foo-bar)) This sounds nice, but I don't think it's necessary to have an operator for this. You can just say :type (get 'foo-bar 'custom-type) and get the same effect. So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 07 11:32:46 2019 Received: (at control) by debbugs.gnu.org; 7 Oct 2019 15:32:47 +0000 Received: from localhost ([127.0.0.1]:48880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHV0A-0007ty-KJ for submit@debbugs.gnu.org; Mon, 07 Oct 2019 11:32:46 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iHV08-0007tq-Ts for control@debbugs.gnu.org; Mon, 07 Oct 2019 11:32:45 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iHV06-00058D-5k for control@debbugs.gnu.org; Mon, 07 Oct 2019 17:32:44 +0200 Date: Mon, 07 Oct 2019 17:32:41 +0200 Message-Id: <87lftw606e.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #15479 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 15479 wontfix close 15479 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 15479 wontfix close 15479 quit From unknown Tue Jun 17 21:54:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 05 Nov 2019 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator