GNU bug report logs - #15479
Feature request: defcustom inherit type

Previous Next

Package: emacs;

Reported by: Devin Homan <devinwh7 <at> gmail.com>

Date: Sat, 28 Sep 2013 18:24:01 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 15479 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Devin Homan <devinwh7 <at> gmail.com>
Cc: 15479 <at> debbugs.gnu.org
Subject: Re: bug#15479: Feature request: defcustom inherit type
Date: Mon, 07 Oct 2019 17:32:33 +0200
Devin Homan <devinwh7 <at> gmail.com> 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




This bug report was last modified 5 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.