From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build: eieio Date: Mon, 17 Jun 2019 12:53:41 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="267200"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 17 12:53:55 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcpGt-0017Nd-J4 for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 12:53:55 +0200 Original-Received: from localhost ([::1]:46034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcpGr-000853-Vt for ged-emacs-devel@m.gmane.org; Mon, 17 Jun 2019 06:53:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45895) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hcpGl-00082a-T0 for emacs-devel@gnu.org; Mon, 17 Jun 2019 06:53:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hcpGk-0007gn-N3 for emacs-devel@gnu.org; Mon, 17 Jun 2019 06:53:47 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:38884) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hcpGk-0007eO-Fy for emacs-devel@gnu.org; Mon, 17 Jun 2019 06:53:46 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hcpGf-0003tk-HJ for emacs-devel@gnu.org; Mon, 17 Jun 2019 12:53:43 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEWbiYEVDAopGhZSQDoK BAPzsxKiAAACeklEQVQ4jT2UgZX0KgiFmdDAohYQYQpQ2AbM2H9N7+Ls/5xzJolfuCJcQ+5qREwD P/UYFEGDxyBXNTxhmljjgByDLoAgw0vMiIgRg4nyvWDVALwZosGY+Q7ceMoFXnCLC0t8x/0FGmYF /+HjL6bmotAK6tptRKZyRjnAddD0blD8B+QGKC6Du3VkpfEH+g+Rmha7CqYzDftLCddpXTSKXuDq 9zeCkemMLiXELhE1TykkzSK937oEYBZoldw5gO+95af0wssKd4SicCgWtd2a1GbCZY4uXexbRtp7 iZT2mVeNl2AA8Ddirw4UrxFyAJcTsRZCVpFx8UQeIFoPeARS6+k34hXzqr2gykGad3i+h7n1ipKo QhgAVWhSEKGy9CTkffwPpP/w0dFcOTkZHtoTUS+BNiD068lqZ8LQfsty1LKcEt8MALLEoLekcEEA ugyj7XX2jhI/W+p4CTqoN10oydk6clhbdLD8ZI+4kwAULeoQRPtIsnnYCr1yHm544xqONmS7URh6 YeOWbmgt0z/+9AQRU6NDpD/T0syEdA/wsLbrHHPLkwYxPtVDxMvX/lSAvhI4ZZWVFDWT/SloPtoK 6+QRQQgpl7bWx4Y3bQVWZzgnNEHfIh8k1EozhVSkS5xugJbLXq1sWXn2Mszh0tzaHoR+7J2rUx4d RnaylrWbubcDvm5n6vDt9l0hhapVRB5yUXve7fGq2AfGkyl9pX4/e3906H3A+gcCQHaFE7WmFCQp Pw9jkn20oRcwUA2UC0fSHFGdbIX/ZrPeNTPW8zFxAH8PBlilxJgwWMrDe0rzN+ZEW3EEo8EnhkJe HXKuM9u+TfMI5iHEJlDy/wDjJ5D7WyPvDgAAAABJRU5ErkJggg== In-Reply-To: (Lars Ingebrigtsen's message of "Mon, 17 Jun 2019 11:51:55 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:237775 Archived-At: In eieio-object-value-get: emacs-lisp/eieio-custom.el:320:15:Warning: `eieio-object-set-name-string' is an obsolete function (as of 25.1); inherit from `eieio-named' and use (setf (slot-value OBJ 'object-name) NAME) instead It's this code: (defun eieio-object-value-get (widget) "Get the value of WIDGET." (let* ((obj (widget-get widget :value)) [...] ;; Set any name updates on it. (if name (eieio-object-set-name-string obj name)) Virtually all of the cedet objects can be customised, so this would require making them all inherit from eieio-named... But I wonder whether this code makes that much sense? Why would anybody, in a Customize buffer, alter the name of the objects? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no