From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pierre Lorenzon Newsgroups: gmane.emacs.help Subject: Re: Display an eieio object Date: Fri, 15 Jun 2018 03:18:21 +0200 (CEST) Message-ID: <20180615.031821.1789559207825262254.devel@pollock-nageoire.net> References: <20180614074508.124fe601@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1529026922 22155 195.159.176.226 (15 Jun 2018 01:42:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Jun 2018 01:42:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: joer@san.rr.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 15 03:41:58 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fTdkT-0005Zi-Fy for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jun 2018 03:41:57 +0200 Original-Received: from localhost ([::1]:43801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTdma-0008E7-2l for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jun 2018 21:44:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTdlc-0008AI-65 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2018 21:43:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTdlZ-0003Ot-14 for help-gnu-emacs@gnu.org; Thu, 14 Jun 2018 21:43:08 -0400 Original-Received: from smtp03.smtpout.orange.fr ([80.12.242.125]:37894 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTdlY-0003Ma-MF for help-gnu-emacs@gnu.org; Thu, 14 Jun 2018 21:43:04 -0400 Original-Received: from localhost ([86.246.99.191]) by mwinf5d38 with ME id ypj11x00A47lkGN03pj1Yw; Fri, 15 Jun 2018 03:43:02 +0200 X-ME-Helo: localhost X-ME-Date: Fri, 15 Jun 2018 03:43:02 +0200 X-ME-IP: 86.246.99.191 In-Reply-To: <20180614074508.124fe601@gauss> X-Mailer: Mew version 6.7 on Emacs 27.0 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 80.12.242.125 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:117165 Archived-At: Hi, From: Joe Riel Subject: Display an eieio object Date: Thu, 14 Jun 2018 07:45:08 -0700 > Is there a way to nicely display an eieio object? Depending where you want to launch the displaying from. By simply issuing a command from the interactive emacs ara I dont think so. By writing a small piece of code : everrything is possible ! In fact, more precisely the `eieio-customize-object' is appliable on every eieio object and display it in a readable form, not as C-h v does ! But this method cannot be called interactively. Moreover it is subject to object definition. If slot customization has not been defined properly displaying can be very bad. You may say that `eieio-customize-object' is not the right method for you since you only want to see the object and not interact with it. Anway at least in my knowledge there is no weaker method that only allows to show the object without interacting with it. Notice that interaction is determined by all type of interactions provided by the widget package, since eieio-customize-object is based on the widget package. Regards Pierre > Using describe-variable (C-h v) shows the > values but not the slot names, which makes it less > than helpful. > > -- > Joe Riel > >