Mercurial > hg > xemacs-beta
diff lisp/cl-extra.el @ 440:8de8e3f6228a r21-2-28
Import from CVS: tag r21-2-28
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:33:38 +0200 |
parents | 3ecd8885ac67 |
children | abe6d1db359e |
line wrap: on
line diff
--- a/lisp/cl-extra.el Mon Aug 13 11:32:27 2007 +0200 +++ b/lisp/cl-extra.el Mon Aug 13 11:33:38 2007 +0200 @@ -639,12 +639,11 @@ ;; XEmacs: our `get' groks DEFAULT. (defalias 'get* 'get) -(defun getf (plist tag &optional def) - "Search PROPLIST for property PROPNAME; return its value or DEFAULT. -PROPLIST is a list of the sort returned by `symbol-plist'." +(defun getf (plist property &optional default) + "Search PLIST for property PROPERTY; return its value or DEFAULT. +PLIST is a list of the sort returned by `symbol-plist'." (setplist '--cl-getf-symbol-- plist) - (or (get '--cl-getf-symbol-- tag) - (and def (get* '--cl-getf-symbol-- tag def)))) + (get '--cl-getf-symbol-- property default)) (defun cl-set-getf (plist tag val) (let ((p plist))