Mercurial > emacs
comparison lisp/emacs-lisp/eieio-base.el @ 106840:5df8e547a422
Fix typos in docstrings.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 14 Jan 2010 19:59:31 +0100 |
parents | 1d1d5d9bd884 |
children | 280c8ae2476d 376148b31b5e |
comparison
equal
deleted
inserted
replaced
106839:7d4dcdf87b91 | 106840:5df8e547a422 |
---|---|
148 :allocation :class | 148 :allocation :class |
149 :documentation | 149 :documentation |
150 "The only instance of this class that will be instantiated. | 150 "The only instance of this class that will be instantiated. |
151 Multiple calls to `make-instance' will return this object.")) | 151 Multiple calls to `make-instance' will return this object.")) |
152 "This special class causes subclasses to be singletons. | 152 "This special class causes subclasses to be singletons. |
153 A singleton is a class which will only ever have one instace." | 153 A singleton is a class which will only ever have one instance." |
154 :abstract t) | 154 :abstract t) |
155 | 155 |
156 (defmethod constructor :STATIC ((class eieio-singleton) name &rest slots) | 156 (defmethod constructor :STATIC ((class eieio-singleton) name &rest slots) |
157 "Constructor for singleton CLASS. | 157 "Constructor for singleton CLASS. |
158 NAME and SLOTS initialize the new object. | 158 NAME and SLOTS initialize the new object. |
307 access to it." | 307 access to it." |
308 :abstract t) | 308 :abstract t) |
309 | 309 |
310 (defmethod slot-missing ((obj eieio-named) | 310 (defmethod slot-missing ((obj eieio-named) |
311 slot-name operation &optional new-value) | 311 slot-name operation &optional new-value) |
312 "Called when a on-existant slot is accessed. | 312 "Called when a non-existent slot is accessed. |
313 For variable `eieio-named', provide an imaginary `object-name' slot. | 313 For variable `eieio-named', provide an imaginary `object-name' slot. |
314 Argument OBJ is the named object. | 314 Argument OBJ is the named object. |
315 Argument SLOT-NAME is the slot that was attempted to be accessed. | 315 Argument SLOT-NAME is the slot that was attempted to be accessed. |
316 OPERATION is the type of access, such as `oref' or `oset'. | 316 OPERATION is the type of access, such as `oref' or `oset'. |
317 NEW-VALUE is the value that was being set into SLOT if OPERATION were | 317 NEW-VALUE is the value that was being set into SLOT if OPERATION were |