From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Subject: Re: :tracker in eieio classes
Date: Sat, 13 Feb 2016 11:59:04 +0800 [thread overview]
Message-ID: <87lh6pb6rb.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87fuwxff2d.fsf@gnus.org
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Chris Feng <chris.w.feng@gmail.com> writes:
>
>>>> I've noticed that, while tag references to slots work, the compiler
>>>> wants a symbol. I think if you just switch that to (oref db 'tracker) it
>>>> should be quiet. Or (eieio-oref db 'tracker).
>>>
>>> Then it says
>>>
>>> In toplevel form:
>>> gnus/registry.el:182:21:Warning: Unknown slot `(quote tracker)'
>>
>> It should be (oref db tracker).
>
> There's also code like:
>
> (cl-defmethod initialize-instance :after ((this registry-db) slots)
> "Set value of data slot of THIS after initialization."
> (with-slots (data tracker) this
> (unless (member :data slots)
> (setq data
> (make-hash-table :size 10000 :rehash-size 2.0 :test 'equal)))
> (unless (member :tracker slots)
> (setq tracker (make-hash-table :size 100 :rehash-size 2.0)))))
>
> That should be 'tracker in that `member', perhaps?
No, "slots" is a plist, not an object.
next prev parent reply other threads:[~2016-02-13 3:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-12 5:44 :tracker in eieio classes Lars Ingebrigtsen
2016-02-12 6:49 ` Eric Abrahamsen
2016-02-12 7:32 ` Lars Ingebrigtsen
2016-02-12 7:39 ` Chris Feng
2016-02-12 8:47 ` Eric Abrahamsen
2016-02-13 3:46 ` Lars Ingebrigtsen
2016-02-13 3:59 ` Eric Abrahamsen [this message]
2016-02-13 5:05 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lh6pb6rb.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.