[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turning Gnus groups into real objects

From: Stefan Monnier
Subject: Re: Turning Gnus groups into real objects
Date: Fri, 19 Jul 2019 18:10:12 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> (defclass gnus-server ()
>   ((address :type string)
>   ...))
> (defclass gnus-nnimap (gnus-server)
>   ((capabilities
>     :type string)
>    (newlinep
>     :type boolean)
>    ...))


    (cl-defstruct (gnus-server)
      (address nil :type string))

    (cl-defstruct (gnus-nnimap
                   (:include gnus-server))
      (capabilities nil :type string)
      (newlinep     nil :type boolean))

> (cl-defmethod gnus-request-list ((server gnus-nnimap))

BTW, I was wondering whether we could preserve backward compatiblity with
defvoo and defffoo.  But I guess for `defvoo`, we'd need the equivalent
of `define-symbol-macro` whereas we currently only have `cl-symbol-macrolet`.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]