Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Faith: not *wanting* to know what is true." -- Friedrich Nietzsche


devel / comp.lang.lisp / tiny editor written in common lisp?

SubjectAuthor
* tiny editor written in common lisp?Jinsong Zhao
+* Re: tiny editor written in common lisp?Jason McBrayer
|`- Re: tiny editor written in common lisp?Jinsong Zhao
+- Re: tiny editor written in common lisp?Peri Didaskalou
+* Re: tiny editor written in common lisp?Peri Didaskalou
|`* Re: tiny editor written in common lisp?Jinsong Zhao
| +- Re: tiny editor written in common lisp?Peri Didaskalou
| `* Re: tiny editor written in common lisp?Jeff Barnett
|  `- Re: tiny editor written in common lisp?Steve G
+- Re: tiny editor written in common lisp?Axel Reichert
`- Re: tiny editor written in common lisp?Steve G

1
tiny editor written in common lisp?

<t3gje0$m2h$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17044&group=comp.lang.lisp#17044

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jszhao@yeah.net (Jinsong Zhao)
Newsgroups: comp.lang.lisp
Subject: tiny editor written in common lisp?
Date: Sun, 17 Apr 2022 16:34:08 +0800
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <t3gje0$m2h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Apr 2022 08:34:09 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1a36802b06d0abe2a40a97720efcef17";
logging-data="22609"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Oc1X9g3uBndP5KRZRRzQV"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:BlquZ7NkI1Z09ClyUcABYXkIFc0=
Content-Language: en-US
 by: Jinsong Zhao - Sun, 17 Apr 2022 08:34 UTC

Hi there,

Is there any tiny editor (the smaller, the better) that is written in
Common Lisp?

Thanks a lot.

Best,
Jinsong

Re: tiny editor written in common lisp?

<87o80za99i.fsf@cassilda.carcosa.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17045&group=comp.lang.lisp#17045

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jmcbray@carcosa.net (Jason McBrayer)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
Date: Sun, 17 Apr 2022 13:51:21 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <87o80za99i.fsf@cassilda.carcosa.net>
References: <t3gje0$m2h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="955023f6e89e72efc9c29911681f6bce";
logging-data="22948"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18utR5am/EvAlrRyesYpOv6"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
Cancel-Lock: sha1:FU7IXqKABiGSkt94xn+7ZcJp4qs=
sha1:NGBu1nQ7dpdPBPpWyL9rjCfPpdw=
 by: Jason McBrayer - Sun, 17 Apr 2022 17:51 UTC

Jinsong Zhao <jszhao@yeah.net> writes:

> Hi there,
>
> Is there any tiny editor (the smaller, the better) that is written in
> Common Lisp?

Have you looked at the "Awesome Common Lisp Applications" lisp?

https://github.com/azzamsa/awesome-cl-software#editors

--
Jason McBrayer | “Strange is the night where black stars rise,
jmcbray@carcosa.net | and strange moons circle through the skies,
| but stranger still is lost Carcosa.”
| ― Robert W. Chambers,The King in Yellow

Re: tiny editor written in common lisp?

<00aa30b3-ec02-a58b-2fd4-e14a4bc405fc@torfree.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17046&group=comp.lang.lisp#17046

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx96.iad.POSTED!not-for-mail
Message-ID: <00aa30b3-ec02-a58b-2fd4-e14a4bc405fc@torfree.net>
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:101.0) Gecko/20100101
Thunderbird/101.0a1
Subject: Re: tiny editor written in common lisp?
Content-Language: en-US
Newsgroups: comp.lang.lisp
References: <t3gje0$m2h$1@dont-email.me>
From: pfd@torfree.net (Peri Didaskalou)
In-Reply-To: <t3gje0$m2h$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 33
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Sun, 17 Apr 2022 19:09:15 UTC
Date: Sun, 17 Apr 2022 15:09:05 -0400
X-Received-Bytes: 1609
 by: Peri Didaskalou - Sun, 17 Apr 2022 19:09 UTC

On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
> Hi there,
>
> Is there any tiny editor (the smaller, the better) that is written in
> Common Lisp?
>
> Thanks a lot.
>
> Best,
> Jinsong

Hi Jinsong,

By 'tiny' do you mean an editor written in CL, which is like a text
editor only, without a built-in REPL, as SLIME and SLY provide within
Emacs and Emacs variants?

If you're willing to learn and use CMUCL, it has Hemlock, and, Robert
Strandh, is onto his 'Second Climacs'
https://github.com/robert-strandh/Second-Climacs

Are you asking because you'd like to investigate building upon such a
'tiny editor' in CL? If so, perhaps you can fork and work on 'Second
Climacs'

If 98.4% written in CL is good enough, take a look at lem
https://github.com/lem-project/lem

Cheers,
Peri

Re: tiny editor written in common lisp?

<fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17047&group=comp.lang.lisp#17047

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx96.iad.POSTED!not-for-mail
Message-ID: <fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:101.0) Gecko/20100101
Thunderbird/101.0a1
Subject: Re: tiny editor written in common lisp?
Content-Language: en-US
Newsgroups: comp.lang.lisp
References: <t3gje0$m2h$1@dont-email.me>
From: pfd@torfree.net (Peri Didaskalou)
In-Reply-To: <t3gje0$m2h$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 33
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Sun, 17 Apr 2022 19:11:16 UTC
Date: Sun, 17 Apr 2022 15:11:07 -0400
X-Received-Bytes: 1609
 by: Peri Didaskalou - Sun, 17 Apr 2022 19:11 UTC

On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
> Hi there,
>
> Is there any tiny editor (the smaller, the better) that is written in
> Common Lisp?
>
> Thanks a lot.
>
> Best,
> Jinsong

Hi Jinsong,

By 'tiny' do you mean an editor written in CL, which is like a text
editor only, without a built-in REPL, as SLIME and SLY provide within
Emacs and Emacs variants?

If you're willing to learn and use CMUCL, it has Hemlock, and, Robert
Strandh, is onto his 'Second Climacs'
https://github.com/robert-strandh/Second-Climacs

Are you asking because you'd like to investigate building upon such a
'tiny editor' in CL? If so, perhaps you can fork and work on 'Second
Climacs'

If 98.4% written in CL is good enough, take a look at lem
https://github.com/lem-project/lem

Cheers,
Peri

Re: tiny editor written in common lisp?

<t3j98p$sjj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17048&group=comp.lang.lisp#17048

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jszhao@yeah.net (Jinsong Zhao)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
Date: Mon, 18 Apr 2022 16:59:06 +0800
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <t3j98p$sjj$1@dont-email.me>
References: <t3gje0$m2h$1@dont-email.me> <87o80za99i.fsf@cassilda.carcosa.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Apr 2022 08:59:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5131d1fb9bb57f519f16daba34722712";
logging-data="29299"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/jx2xVN3wip2KLRrNPiFS2"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:PfVq8tOLO0NY3P5NOHnrtEOviSg=
In-Reply-To: <87o80za99i.fsf@cassilda.carcosa.net>
Content-Language: en-US
 by: Jinsong Zhao - Mon, 18 Apr 2022 08:59 UTC

On 2022/4/18 1:51, Jason McBrayer wrote:
> Jinsong Zhao <jszhao@yeah.net> writes:
>
>> Hi there,
>>
>> Is there any tiny editor (the smaller, the better) that is written in
>> Common Lisp?
>
> Have you looked at the "Awesome Common Lisp Applications" lisp?
>
> https://github.com/azzamsa/awesome-cl-software#editors
>

Thanks for the information. It's great to know so many awesome cl
applications.

Best,
Jinsong

Re: tiny editor written in common lisp?

<t3ja12$2e7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17049&group=comp.lang.lisp#17049

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jszhao@yeah.net (Jinsong Zhao)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
Date: Mon, 18 Apr 2022 17:11:33 +0800
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <t3ja12$2e7$1@dont-email.me>
References: <t3gje0$m2h$1@dont-email.me>
<fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Apr 2022 09:12:03 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5131d1fb9bb57f519f16daba34722712";
logging-data="2503"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190m4Qj1WWj403IXFT3Beva"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:Gquo0wexnRswjSoAEx4W6Xi3fTo=
In-Reply-To: <fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
Content-Language: en-US
 by: Jinsong Zhao - Mon, 18 Apr 2022 09:11 UTC

On 2022/4/18 3:11, Peri Didaskalou wrote:
> On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
>> Hi there,
>>
>> Is there any tiny editor (the smaller, the better) that is written in
>> Common Lisp?
>>
>> Thanks a lot.
>>
>> Best,
>> Jinsong
>
>
> Hi Jinsong,
>
> By 'tiny' do you mean an editor written in CL, which is like a text
> editor only, without a built-in REPL, as SLIME and SLY provide within
> Emacs and Emacs variants?
>
> If you're willing to learn and use CMUCL, it has Hemlock, and, Robert
> Strandh, is onto his 'Second Climacs'
> https://github.com/robert-strandh/Second-Climacs
>
> Are you asking because you'd like to investigate building upon such a
> 'tiny editor' in CL? If so, perhaps you can fork and work on 'Second
> Climacs'
>
> If 98.4% written in CL is good enough, take a look at lem
>  https://github.com/lem-project/lem
>
> Cheers,
> Peri

Hi Peri,

Thanks for pointing me to those editors. I am asking because I'd like to
learn how to write a real application using CL. I also don't have such
experience in CL and other language. Therefore, a tiny editor, which
just does some basic text manipulation, may simple enough for me to
understand. I found ABLE (https://able.common-lisp.dev/), however, I
haven't had time to read and understand it yet.

Best,
Jinsong

Re: tiny editor written in common lisp?

<fedff1af-f3d1-2edd-137d-26cfbb59d052@torfree.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17050&group=comp.lang.lisp#17050

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx47.iad.POSTED!not-for-mail
Message-ID: <fedff1af-f3d1-2edd-137d-26cfbb59d052@torfree.net>
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:101.0) Gecko/20100101
Thunderbird/101.0a1
Subject: Re: tiny editor written in common lisp?
Content-Language: en-US
Newsgroups: comp.lang.lisp
References: <t3gje0$m2h$1@dont-email.me>
<fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
<t3ja12$2e7$1@dont-email.me>
From: pfd@torfree.net (Peri Didaskalou)
In-Reply-To: <t3ja12$2e7$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 68
X-Complaints-To: abuse@UsenetServer.com
NNTP-Posting-Date: Mon, 18 Apr 2022 12:40:45 UTC
Date: Mon, 18 Apr 2022 08:40:33 -0400
X-Received-Bytes: 2993
 by: Peri Didaskalou - Mon, 18 Apr 2022 12:40 UTC

On 2022-04-18 5:11 a.m., Jinsong Zhao wrote:
> On 2022/4/18 3:11, Peri Didaskalou wrote:
>> On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
>>> Hi there,
>>>
>>> Is there any tiny editor (the smaller, the better) that is written in
>>> Common Lisp?
>>>
>>> Thanks a lot.
>>>
>>> Best,
>>> Jinsong
>>
>>
>> Hi Jinsong,
>>
>> By 'tiny' do you mean an editor written in CL, which is like a text
>> editor only, without a built-in REPL, as SLIME and SLY provide within
>> Emacs and Emacs variants?
>>
>> If you're willing to learn and use CMUCL, it has Hemlock, and, Robert
>> Strandh, is onto his 'Second Climacs'
>> https://github.com/robert-strandh/Second-Climacs
>>
>> Are you asking because you'd like to investigate building upon such a
>> 'tiny editor' in CL? If so, perhaps you can fork and work on 'Second
>> Climacs'
>>
>> If 98.4% written in CL is good enough, take a look at lem
>>   https://github.com/lem-project/lem
>>
>> Cheers,
>> Peri
>
> Hi Peri,
>
> Thanks for pointing me to those editors. I am asking because I'd like to
> learn how to write a real application using CL. I also don't have such
> experience in CL and other language. Therefore, a tiny editor, which
> just does some basic text manipulation, may simple enough for me to
> understand. I found ABLE (https://able.common-lisp.dev/), however, I
> haven't had time to read and understand it yet.
>
> Best,
> Jinsong
>
>
Hi Jinsong,

Oh, OK. Best of luck with GUI frameworks/toolkitss and such, in this regard.
Thanks for reminding me about able. As you can see, able's GUI
component(s) are TCL/TK based.

Second-Climacs uses the open-source version of CLIM caleed McCLIM, in
case you haven't noticed yet. https://github.com/McCLIM/McCLIM .

BTW, there's a #commonlisp channel at https://web.libera.chat, where
you'll also find Robert Strandh's #sicl channel.

Also, if you're interested in writing and compiling APL to/within Common
Lisp, check out APRIL: https://github.com/phantomics/april and the
##phantomics channel at libera.chat too!

Best,
Peri

Re: tiny editor written in common lisp?

<87wnfmczw2.fsf@axel-reichert.de>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17051&group=comp.lang.lisp#17051

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mail@axel-reichert.de (Axel Reichert)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
Date: Mon, 18 Apr 2022 14:57:49 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <87wnfmczw2.fsf@axel-reichert.de>
References: <t3gje0$m2h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="79494d510336b4c924194090b31d0f7d";
logging-data="30420"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NjFXrgRFk/HqIG6y1RnV3Q07iBO/Uak0="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:e8h4WDnyU9QGz3rcrooPiKZCUOM=
sha1:QUhu/GuXtnTQT9S3ymUqDdkpPZE=
 by: Axel Reichert - Mon, 18 Apr 2022 12:57 UTC

Jinsong Zhao <jszhao@yeah.net> writes:

> Is there any tiny editor (the smaller, the better) that is written in
> Common Lisp?

A couple of things came to my mind, all only tangentially related to
your question:

https://github.com/hughbarney

https://www.buildyourownlisp.com/

https://web.mit.edu/~yandros/doc/craft-text-editing/index.html

So here is the rub: Hugh Barney has written a couple of very small
emacs-like editors, some even extensible with a small Lisp. These
editors are however written in C. In comes the second link, a nice
little project to learn C and Lisp in a combined way. And finally an
article about implementations, e.g. the gap buffer/buffer gap used in
the tiny editors from above.

Yes, it is a rather lengthy detour to your original goal, but to me it
sounds like a rounded project.

Best regards

Axel

Re: tiny editor written in common lisp?

<t3kb7v$mht$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17052&group=comp.lang.lisp#17052

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jbb@notatt.com (Jeff Barnett)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
Date: Mon, 18 Apr 2022 12:38:50 -0600
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <t3kb7v$mht$1@dont-email.me>
References: <t3gje0$m2h$1@dont-email.me>
<fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
<t3ja12$2e7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64
Injection-Date: Mon, 18 Apr 2022 18:38:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e3d3f6f5c38e380e3a6bb19a3e7cb6b2";
logging-data="23101"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oLcvbta8bu2rBpjUUUt5o9uuEouqhRlg="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:d+WaHbobsgwxCtGGglXLY1Ilsl4=
In-Reply-To: <t3ja12$2e7$1@dont-email.me>
Content-Language: en-US
 by: Jeff Barnett - Mon, 18 Apr 2022 18:38 UTC

On 4/18/2022 3:11 AM, Jinsong Zhao wrote:
> On 2022/4/18 3:11, Peri Didaskalou wrote:
>> On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
>>> Hi there,
>>>
>>> Is there any tiny editor (the smaller, the better) that is written in
>>> Common Lisp?
>>>
>>> Thanks a lot.
>>>
>>> Best,
>>> Jinsong
>>
>>
>> Hi Jinsong,
>>
>> By 'tiny' do you mean an editor written in CL, which is like a text
>> editor only, without a built-in REPL, as SLIME and SLY provide within
>> Emacs and Emacs variants?
>>
>> If you're willing to learn and use CMUCL, it has Hemlock, and, Robert
>> Strandh, is onto his 'Second Climacs'
>> https://github.com/robert-strandh/Second-Climacs
>>
>> Are you asking because you'd like to investigate building upon such a
>> 'tiny editor' in CL? If so, perhaps you can fork and work on 'Second
>> Climacs'
>>
>> If 98.4% written in CL is good enough, take a look at lem
>>   https://github.com/lem-project/lem
>>
>> Cheers,
>> Peri
>
> Hi Peri,
>
> Thanks for pointing me to those editors. I am asking because I'd like to
> learn how to write a real application using CL. I also don't have such
> experience in CL and other language. Therefore, a tiny editor, which
> just does some basic text manipulation, may simple enough for me to
> understand. I found ABLE (https://able.common-lisp.dev/), however, I
> haven't had time to read and understand it yet.
Doing the string manipulations and processing operations will be
straightforward but very time consuming. What will take what seems like
forever is screen (window) management. If you just want to do the first
part, look at the old TECO editor as an example. I believe EMACS was
inspired by it a zillion years ago. I'm pretty sure that someone in this
mail group will have a pointer handy if you are interested; I don't.
--
Jeff Barnett

Re: tiny editor written in common lisp?

<87tu9dssmi.fsf@l0ft.tpl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17107&group=comp.lang.lisp#17107

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 May 2022 07:29:17 -0500
From: Sgonedes1977@gmail.com (Steve G)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
References: <t3gje0$m2h$1@dont-email.me>
<fa9d6702-fb22-70b5-7a06-c4d4a2c6ca32@torfree.net>
<t3ja12$2e7$1@dont-email.me> <t3kb7v$mht$1@dont-email.me>
Date: Wed, 25 May 2022 08:29:09 -0400
Message-ID: <87tu9dssmi.fsf@l0ft.tpl>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:DD+Z6b/VMW2dYV/4uPn/tm/q6W0=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 24
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-kJG5dYScqDDL1A59KUtK69SJnvxT+l1ldrgyIqCoMSyc8a914Gxy1guWtg17EQCGL5w1suY9csJ4zd/!VhFZFCy82V+CXZevhT0ECp8VwzqLr5xaz35g215thFW/1khg
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1832
 by: Steve G - Wed, 25 May 2022 12:29 UTC

Jeff Barnett <jbb@notatt.com> writes:

> On 4/18/2022 3:11 AM, Jinsong Zhao wrote:
>> On 2022/4/18 3:11, Peri Didaskalou wrote:
>>> On 2022-04-17 4:34 a.m., Jinsong Zhao wrote:
>>>> Hi there,
>>>>
>>>> Is there any tiny editor (the smaller, the better) that is written in
>>>> Common Lisp?
>>>>
>>>> Thanks a lot.
>>>>
>>>> Best,
>>>> Jinsong

[ ... ]

> look at the old TECO editor as an example. I believe EMACS was inspired by it
> a zillion years ago. I'm pretty sure that someone in this mail group will have
> a pointer handy if you are interested; I don't.

Yes, if I remeber correctly RMS wrote emacs in TECO. I remeber reading
the code on tape. I do not recommend trying to understand it.

Re: tiny editor written in common lisp?

<87pmk1srnr.fsf@l0ft.tpl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17108&group=comp.lang.lisp#17108

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!buffer2.nntp.dca1.giganews.com!buffer1.nntp.dca1.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 25 May 2022 07:50:09 -0500
From: Sgonedes1977@gmail.com (Steve G)
Newsgroups: comp.lang.lisp
Subject: Re: tiny editor written in common lisp?
References: <t3gje0$m2h$1@dont-email.me>
Date: Wed, 25 May 2022 08:50:00 -0400
Message-ID: <87pmk1srnr.fsf@l0ft.tpl>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Ax3l+/2KCXIMbtRQF0P7gWWNeGU=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 68
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-ncfMRaLYUVLSJ98B0A2WGo6qoWUXC5eEdGK4pilWKZ38JlweIEuqmDo3s9osb3PT9dZcK4FUyFIm/eg!bZjbCIBiN+kPa8xGT5OlS6A9+eNwBvrsya2JbKz/Gl+VOYTd
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3458
 by: Steve G - Wed, 25 May 2022 12:50 UTC

Jinsong Zhao <jszhao@yeah.net> writes:

> Hi there,
>
> Is there any tiny editor (the smaller, the better) that is written in Common
> Lisp?

I have written a terminfo to lisp code compiler. I was trying to
implement a readline like interface to terminfo for the ED function.
Unfortunately I got interrupted again. Let me know if your interested.
It is only ~ 2000 lines :)

I am trying to figure out how to implement the buffer. I would like fast
searching so a gap buffer would be better than a line structure.

I started it out as a rule/planning system to implement the best
possible sequences - the rule engine is too slow for practical use but
it is very fun to play with.

I have a working version that uses linux kernel keysyms. I am
struggling with signals and intervals for text highlighting.

Anyone have a solution for intervals. I was thinking to use displaced
arrays.

The other problem is unicode. I do not understand this. I planned on
just supporting the 96 letters in common lisp.

The rules are simple, they look like:

(define-motion ("cursor_home") (curscr)
(cm-cursor-save-xy curscr)
(setf (screen-cur-x curscr) (screen-beg-x curscr))
(setf (screen-cur-y curscr) (screen-beg-y curscr))
(output-cond! ((=> "home"))
((=> "cup") (output-sequence! "cup" (screen-beg-x curscr) (screen-beg-y curscr)))))

.

After the terminal definition is loaded it expands the rule into the following.

(PROGN
(DEFUN CM-CURSOR-HOME ()
"[cursor_home;home;ho]: home cursor (if no cup)"
(DECLARE
(OPTIMIZE SPEED (SAFETY 1) (DEBUG 2) (SPACE 0) (COMPILATION-SPEED 0)))
(LET ((CURSCR (CURRENT-SCREEN)))
(DECLARE (SCREEN CURSCR))
(CM-CURSOR-SAVE-XY CURSCR)
(SETF (SCREEN-CUR-X CURSCR) (SCREEN-BEG-X CURSCR))
(SETF (SCREEN-CUR-Y CURSCR) (SCREEN-BEG-Y CURSCR))
(BLOCK #:CURSOR-HOME
(LOCALLY
(DECLARE
(OPTIMIZE SPEED (SPACE 0) (DEBUG 3) (SAFETY 3) (COMPILATION-SPEED 0)))
(SB-UNIX:UNIX-WRITE (SCREEN-OFD CURSCR) "\E[H" 0 3)
T))))
(PUSHNEW 'CM-CURSOR-HOME *CM-FUNCTIONS* :TEST #'EQ))

I wanted to use it for goal planning - but this would be far to slow for
a read text editor.

I am using it across virtual terminals successfully. The buffering is a
pain. It also implements termios so that you can set the read to 4 bytes
UTF8.

If you have an example that is simple I would love to hear more.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor