From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: EIEIO built in methods -- question Date: Sat, 15 Jun 2013 00:15:08 +0800 Message-ID: <87k3lwfz3n.fsf@ericabrahamsen.net> References: <87txl77fd3.fsf@ericabrahamsen.net> <87li6jjy81.fsf@kuiper.lan.informatimago.com> <874nd7j9kh.fsf@kuiper.lan.informatimago.com> <87fvwqq85n.fsf@arcor.de> <87hah5jssd.fsf@ericabrahamsen.net> <87wqpznxk7.fsf@arcor.de> <8761xid278.fsf@ericabrahamsen.net> <87ppvqnh7j.fsf@arcor.de> <87sj0l8obz.fsf@ericabrahamsen.net> <87ip1gd8s7.fsf@arcor.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371226533 13834 80.91.229.3 (14 Jun 2013 16:15:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2013 16:15:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 14 18:15:33 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UnWey-00056r-PG for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Jun 2013 18:15:32 +0200 Original-Received: from localhost ([::1]:51659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnWey-00017A-9T for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Jun 2013 12:15:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnWeg-00015P-TW for help-gnu-emacs@gnu.org; Fri, 14 Jun 2013 12:15:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnWeY-0001K9-8Z for help-gnu-emacs@gnu.org; Fri, 14 Jun 2013 12:15:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45819) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnWeX-0001In-Vs for help-gnu-emacs@gnu.org; Fri, 14 Jun 2013 12:15:06 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UnWeW-0004kD-ER for help-gnu-emacs@gnu.org; Fri, 14 Jun 2013 18:15:04 +0200 Original-Received: from 221.216.162.255 ([221.216.162.255]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 18:15:04 +0200 Original-Received: from eric by 221.216.162.255 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Jun 2013 18:15:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.216.162.255 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:T1SU39eEnmUUfvdDmwrFrRCzZ+U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91555 Archived-At: David Engster writes: > Eric Abrahamsen writes: >> There's the eieio-singleton class provided as part of the package, which >> does the same thing in principle: only lets you create one instance of >> the class. > > [...] > >> This is the same idea, yes? > > Yes. You can simply put eieio-singleton in your list of superclasses and > you will inherit this behavior. > >> I don't know why "name" and "slots" aren't passed to >> `call-next-method'. > > That's done by default. You only provide arguments to `call-next-method' > if you'd like to override them. Thanks! That's helps quite a bit.