emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: eieio


From: Stefan Monnier
Subject: Re: Towards a cleaner build: eieio
Date: Sun, 16 Jun 2019 18:39:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> So that's the way it is with an object-print method on the object.  If I
> apply the following patch, I then get identical output:
>
> (cl-print-object obj (current-buffer))
> #<semanticdb-table-emacs-lisp semanticdb-table-emacs-lisp-15884632da6c 
> (proxy)>
[...]
> +(cl-defmethod cl-print-object ((obj semanticdb-table-emacs-lisp) stream)
> +  "Pretty printer extension for `semanticdb-table-emacs-lisp'."
> +  (princ (eieio-object-name obj " (proxy)") stream))

Hmm... how does this code result in

    #<semanticdb-table-emacs-lisp semanticdb-table-emacs-lisp-15884632da6c 
(proxy)>

?

This said, I'm not sure why we should care very much about preserving
the detailed output in this particular case, since I don't think the
rest of code will ever do much with it (it's only for human consumption
and it's not particularly good at it).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]