mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 15:00:34 -08:00
Rewrite object-print methods in cedet to be cl-print-object methods
* lisp/cedet/semantic/db-el.el (object-print): Ditto. (object-print): Ditto. * lisp/cedet/semantic/db-global.el (object-print): Ditto. * lisp/cedet/semantic/db.el (object-print): Remove; unused. * lisp/cedet/semantic/db.el (semanticdb-debug-info): New method. (object-print): Rewritten to be cl-print-object. * lisp/emacs-lisp/eieio.el (eieio-object-name): Allow the EXTRA argument to be a list of strings.
This commit is contained in:
parent
c89dc27c2c
commit
1dfd6b4042
4 changed files with 51 additions and 38 deletions
|
|
@ -398,7 +398,14 @@ contents of field NAME is matched against PAT, or they can be of
|
|||
If EXTRA, include that in the string returned to represent the symbol."
|
||||
(cl-check-type obj eieio-object)
|
||||
(format "#<%s %s%s>" (eieio-object-class obj)
|
||||
(eieio-object-name-string obj) (or extra "")))
|
||||
(eieio-object-name-string obj)
|
||||
(cond
|
||||
((null extra)
|
||||
"")
|
||||
((listp extra)
|
||||
(concat " " (mapconcat #'identity extra " ")))
|
||||
(t
|
||||
extra))))
|
||||
(define-obsolete-function-alias 'object-name #'eieio-object-name "24.4")
|
||||
|
||||
(cl-defgeneric eieio-object-set-name-string (obj name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue