From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Andersson Newsgroups: gmane.emacs.help Subject: Re: How to describe something in Lisp? Date: Tue, 3 Feb 2009 18:07:23 +0100 Message-ID: <929ccd880902030907t64a0ee67i28ff151e26feb43b@mail.gmail.com> References: <1233676167.44903@arno.fh-trier.de> <7cprhz3259.fsf@pbourguignon.anevia.com> <929ccd880902030844h77859033q9a1c359595a0ece2@mail.gmail.com> <87hc3bea1h.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015174c15f075d39a046206b4a4 X-Trace: ger.gmane.org 1233681234 27934 80.91.229.12 (3 Feb 2009 17:13:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 17:13:54 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 03 18:15:09 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LUOrR-00077w-CB for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 18:14:57 +0100 Original-Received: from localhost ([127.0.0.1]:52112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOq8-0000Cx-Fi for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Feb 2009 12:13:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUOkD-0005D9-4d for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 12:07:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUOk9-00058S-GC for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 12:07:28 -0500 Original-Received: from [199.232.76.173] (port=48221 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUOk9-00058D-Co for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 12:07:25 -0500 Original-Received: from mail-ew0-f20.google.com ([209.85.219.20]:65126) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUOk8-0001v2-Qh for help-gnu-emacs@gnu.org; Tue, 03 Feb 2009 12:07:25 -0500 Original-Received: by ewy13 with SMTP id 13so2784503ewy.18 for ; Tue, 03 Feb 2009 09:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=A/MQ2upDZEo3ztffoGfZJBLZaYPjzdV9ajY8MRI83Wc=; b=UbxozGG1KC7Yzuf6mX8Mbp8glX1QuIlK2FrTHA2enn500z25ch+LuUp/8ZUFlWzbqT 8OTcKVMloIf/pFhQeIgs5lSm8oZ1ESnlDyJ7p0XM3L6VX6iViFHuC3kZyhLkp7b+4krU p9TxYwsldrb/yixh4dFinMEmTCS2ME0s50k3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=GGxcJcceS3iSQnFNjDPrySc8XY+TJnSHFOr5netbcPkrYTZXDiIKM7kpv/c0XuX63w F0uju5qCJwqJMth3tzH5ng/9C4aInZmZOVtGAK7B32gRC5mLPcwdcKJD5Jn9kSmwZaxz xci0TQnLWJ1axEhrEN50H6m8tMrtldBsbqXg8= Original-Received: by 10.210.81.3 with SMTP id e3mr1614663ebb.141.1233680843788; Tue, 03 Feb 2009 09:07:23 -0800 (PST) In-Reply-To: <87hc3bea1h.fsf@thinkpad.tsdh.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61886 Archived-At: --0015174c15f075d39a046206b4a4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks all, I'll go with the plist example! On Tue, Feb 3, 2009 at 5:54 PM, Tassilo Horn wrote: > Johan Andersson writes: > > Hi Johan, > > > All of your examples will work fine in my case. But is it "accepted" > > by Emacs users to code a mode using these structures? > > `defstruct' is part of GNU Emacs (dunno XEmacs) in its cl library > (Common Lisp features library), so you can expect that users have it. > Code which should be included in stock emacs must not require those > features, though. > > EIEIO currently is an external addon, so users would need to install it > before using your mode. > > A simple plist approach like the one I've posted doesn't require > anything, but maybe the other structures are a bit more convenient. > > So it's your choice to make. ;-) > > Bye, > Tassilo > > > > --0015174c15f075d39a046206b4a4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks all, I'll go with the plist example!

On Tue, Feb 3, 2009 at 5:54 PM, Tassilo Horn <tassilo@member.fsf.org> wrote:
Johan Andersson <johan.rejeep@gmail.com> writes:

Hi Johan,

> All of your examples will work fine in my case. But is it "accepted"
> by Emacs users to code a mode using these structures?

`defstruct' is part of GNU Emacs (dunno XEmacs) in its cl library
(Common Lisp features library), so you can expect that users have it.
Code which should be included in stock emacs must not require those
features, though.

EIEIO currently is an external addon, so users would need to install it
before using your mode.

A simple plist approach like the one I've posted doesn't require
anything, but maybe the other structures are a bit more convenient.

So it's your choice to make. ;-)

Bye,
Tassilo




--0015174c15f075d39a046206b4a4--