DaemonForums  

Go Back   DaemonForums > DaemonForums.org > News

News News regarding BSD and related.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
Default mg gets tinyscheme

From a post by Ted Unangst to the OpenBSD tech mailing list:
Quote:
From: Ted Unangst <ted@xxxxquwe.xxxx>
To: OpenBSD Tech <tech@wwxxxx.org>
Date Sun, Jan 24, 2010 at 11:22 AM
Subject mg + tinyscheme

So one of mg's bugs is that it's not extensible. This doesn't
normally bother me, because I use vi. But I decided to do something
about it. A full lisp like emacs would be a little crazy, given the
point is to have a small editor. But tinyscheme isn't too bad. So in
it goes.

Now just having an extension language isn't too useful unless you an
do something with it. So far, the only thing you can do from mg is
run scheme code (M-x scheme). But you can't see the results. The
scheme code can write into the current buffer with (insert string).
It's not really challenging to add more links, I just didn't do it
yet.

So what can we do? Not a whole lot, unless we add networking. So I
also wrote a small C module that lets tinyscheme open sockets, and a
stupidly simple HTTP client in scheme. Put this all together, and you
can download the source of web pages directly into your text editor.
If you're lucky and you got all the moving pieces together, that is.

It's still pretty alpha and there's some rough edges, but the concept
is working. I put together a little web page with links to the
sources.

http://www.tedunangst.com/mgscheme.html
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #2   (View Single Post)  
Old 24th January 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Interesting, news, perhaps it might be good enough one day to implement vi emulation :-D.

Really the only big gap between mg and the traditional flavours of microemacs, is the lack of scripting. I'll usually keep mg within reach, so I've a multi-window capable editor, without having to use nvi extensions to vi. It's a great little editor tbh, and script support will likely make it better, if there's anyone who actually cares to expand it lol.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Tags
emacs, mg, tinyscheme

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:14 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick