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: Fri, 12 Feb 2016 16:47:52 +0800 Message-ID: <87r3gi9ux3.fsf@ericabrahamsen.net> References: <87a8n67a9c.fsf@gnus.org> <871t8ibeys.fsf@ericabrahamsen.net> <87mvr6mlhz.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455266915 22591 80.91.229.3 (12 Feb 2016 08:48:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Feb 2016 08:48:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 12 09:48:26 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 1aU9Or-0003UO-7R for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 09:48:25 +0100 Original-Received: from localhost ([::1]:58634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU9Oq-0004XY-6h for ged-emacs-devel@m.gmane.org; Fri, 12 Feb 2016 03:48:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU9Od-0004XF-Dn for emacs-devel@gnu.org; Fri, 12 Feb 2016 03:48:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aU9Oa-0006ne-8N for emacs-devel@gnu.org; Fri, 12 Feb 2016 03:48:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:48543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aU9Oa-0006nZ-1Q for emacs-devel@gnu.org; Fri, 12 Feb 2016 03:48:08 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aU9OW-0003B8-7a for emacs-devel@gnu.org; Fri, 12 Feb 2016 09:48:06 +0100 Original-Received: from 116.1.70.96 ([116.1.70.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2016 09:48:04 +0100 Original-Received: from eric by 116.1.70.96 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Feb 2016 09:48:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 116.1.70.96 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:t+3YkhNFoubmF1LW37PoFTet8Yw= 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:199801 Archived-At: 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). Whoops, sorry for the hasty answer. I usually use eieio-oref, which is a function and wants a symbol. `oref' is defined as a macro: (defmacro oref (obj slot) (declare (debug (form symbolp))) `(eieio-oref ,obj (quote ,slot))) I've always been a little confused about whether one thing or the other was preferred.