[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15479: Feature request: defcustom inherit type
From: |
Lars Ingebrigtsen |
Subject: |
bug#15479: Feature request: defcustom inherit type |
Date: |
Mon, 07 Oct 2019 17:32:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Devin Homan <devinwh7@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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#15479: Feature request: defcustom inherit type,
Lars Ingebrigtsen <=