From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to save custom variable programmatically? Date: Tue, 17 Nov 2020 17:38:13 +0100 Message-ID: <87sg982b2i.fsf@web.de> References: <87blg5e9re.fsf@web.de> <87o8k5b7oq.fsf@web.de> <87h7pwgbg1.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26049"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 17 17:40:57 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kf42L-0006gx-PE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 17:40:57 +0100 Original-Received: from localhost ([::1]:54482 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf42K-0002nJ-Pl for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 17 Nov 2020 11:40:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40010) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf40H-00015Z-MY for help-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:38:49 -0500 Original-Received: from mout.web.de ([212.227.15.4]:46505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf40F-00024O-EF for help-gnu-emacs@gnu.org; Tue, 17 Nov 2020 11:38:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1605631094; bh=Yseo7qSqS7CVzlVM8YOJJgf7cL/Dj4u8J197Gz2ex9M=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=LTPyDetemSfphUIXJEuE0nKja/+PjL8CvjQydno8YyArZq32HhLWkV0JGHsWMSWxA o4LuzNL4b4wMiveqFpTqWvYRF0wpqWCZMVGW+LaS4buUqJZmMb87VcOVAZ6TDKJDGI zgYyqM1uYcnrQ1gGTVVCXBYZtkn1KVzEFbDnjhpk= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.218.215.213]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MejX6-1kuMqz3Bsm-00ODh8; Tue, 17 Nov 2020 17:38:13 +0100 In-Reply-To: (Jean Louis's message of "Tue, 17 Nov 2020 18:44:07 +0300") X-Provags-ID: V03:K1:VLv/LzZ0nLPlMJA+QhE4cXi5tHMTYFIDDplkC/TDcCiDQa7qGlu GTR8O0mWdrg7zhsRFH+lv6eotpqK1+2DKoXsQZWwAjgchBTBW2pKS+HXJMPzucA1kbOEdhN k3Tewg69VeYoDvbGBjjLXKEjK6MfTI5y6c60DXbSWal2NKPxR7DEAnYHp/eOBt8CzhHBhy1 0Z4Hr2GPqb50Cqb0xCc/Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:o3Nh9J73nJ0=:PLtJb4pN6pciJaKCjtN9Ug qen5b5axQk4zF3YyoZiLYR7LzLtZyrUMRK65xXuRqWXvleH4Dh99v4nYp6r9MoWLgvdnuYfEs 2UKXjCRKT1XFdgO4IrLw+iJDhV+DOhKVMU/EQ1wgQHeY9Z30pvJ1aRPkTWfiL3PyYEsid/y3p rM1HglASaxBzlA6KbjdriWRlfmxDtia4GJAr7wLaaQ8Bxe+IxxTEXESB0OVXMy9p2Y9EjESEg 7YNh7BuhWFsRudFVk4tqMVtc+Exanx0xZTm7sz6SQEx+O1Wr40shXhFWfHV1GP84wdxPMwVfV myKZK9b/TNS3WMkSKHCnuvgJN1tzg4brWFC9iNSxAzrEJTxDxYRPUdJ6g7m8EE/PrEE7VFj/t 8AmJeVg7zatpuL5be44tvkn1ygYbz1EqHoDgPhwQKt2MBw3xcEeEGwJb83mDamS8OPUhO+FO0 E7bCC7saO65z3v1J7jZfaiPY1ygW/H6fG6DYQkgPCO9mzSBt6hFUjuvAFoKID9ABl8GCt7DO7 JWn7bo54aO0lFMSKxrMeLMOZYYnHg8mBedxX7vCggJKAwVPr5BGmEL3RZxCFj7nwTVcyw46GP Sm+nmxLOFFfHgbE9PpxNY1tYXnSva+6t9KyfLtkO9Lz9+qmoEshNZioWvsuLORaBlmhdH5SLl ki2982vr09Fh5UTbtBgN9xE64sRl8v1TFVRh+XOz8y1chLv+RNWBqMGimqBvV8dGcH8vGgDvr 4ROjawJbFwENX2OMeeR9U6FhO0Hj0GSAgdH0Gn+63BEGS831x3+YlXtzj/LlbBjkYsixKSTM Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 11:38:45 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125300 Archived-At: Jean Louis writes: > I remember from Common Lisp about `defstruc' and more than that I did > not use. But I remember `defstruct' preparing various methods > (probably methods) automatically. For the sake of completeness: In Emacs Lisp we also have structs via `cl-defstruct'. These are not part of EIEIO (though EIEIO knows how to handle them). Accessors, constructors etc are ordinary functions and macros. Independent of EIEIO and structs Emacs Lisp has also generic functions and methods. Michael.