From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: :tracker in eieio classes Date: Sat, 13 Feb 2016 11:59:04 +0800 Message-ID: <87lh6pb6rb.fsf@ericabrahamsen.net> References: <87a8n67a9c.fsf@gnus.org> <871t8ibeys.fsf@ericabrahamsen.net> <87mvr6mlhz.fsf@gnus.org> <87fuwxff2d.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455335972 21834 80.91.229.3 (13 Feb 2016 03:59:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Feb 2016 03:59:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 13 04:59:25 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aURMj-0007XG-0k for ged-emacs-devel@m.gmane.org; Sat, 13 Feb 2016 04:59:25 +0100 Original-Received: from localhost ([::1]:38816 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURMi-0003W2-CT for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 22:59:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURMb-0003Tr-Tk for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:59:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aURMW-00076w-Tq for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:59:17 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:60094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aURMW-00076s-N4 for emacs-devel@gnu.org; Fri, 12 Feb 2016 22:59:12 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aURMV-0007Ow-Eu for emacs-devel@gnu.org; Sat, 13 Feb 2016 04:59:11 +0100 Original-Received: from mail.ericabrahamsen.net ([50.56.99.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Feb 2016 04:59:11 +0100 Original-Received: from eric by mail.ericabrahamsen.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 13 Feb 2016 04:59:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mail.ericabrahamsen.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) Cancel-Lock: sha1:KTgk+xtBTP+eXk+nr8mS04IMOIE= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199855 Archived-At: Lars Ingebrigtsen writes: > Chris Feng 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.