all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Is there a mod-emacs?
Date: Mon, 07 Jan 2008 16:56:17 +1100	[thread overview]
Message-ID: <87sl1auqke.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: 86prwfz310.fsf@timbral.net

thorne <thorne@timbral.net> writes:

> Tim X <timx@nospam.dev.null> writes:
>
>> There is an emacs elisp httpd server (at least there use to be one), but no
>> mod_emacs that I'm aware of. 
>
> I wonder about the security of such a thing.  But it would be fun to try
> getting it to serve my personal web page.
>
>> Of course, this is a rather resource expensive way of serving a few pages -
>> you would always have to have an emacs image loaded or accept fairly slow
>> responses (depending on machine/resoruces etc). 
>>
>> I think a better solution would be to add a hook to the org mode save
>> function that does an automatic export as html whenever the org file is
>> updated. The pages can then be served by a regular httpd process and as a
>> new export is done whenever the org file is saved, the pages will always be
>> up-to-date (provided they are edited by emacs of course).
>
> True, but the fun would be in using Emacs to do dynamically generated
> pages.  Emacs could be the world's slowest Web Application
> Framework(tm).
>

...and there is nothing wrong with trying to do something just to see if it
can be done. I've never written an apache module, but suspect it could be a
little difficult to do a true mod_emacs. It would be interesting to see if
you could do something using the new emacs multiple tty support through
emacs server. 

Another approach that might be interesting is to create an emacs lisp
package for common lisp. You could then take advantage of mod_lisp. Not
sure how you would handle the lisp1 vs lisp2 differences, but I suspect it
would be possible. In fact, its probably fairly straight-forward to
implement elisp inside common lisp - going the other direction may prove
difficult (I'm talking ansi compatibility not just function compatibility
as is provided by the 'cl package). 

Certainly could be an interesting project for someone wanting something to
sink their teeth into and get to actually know elisp.

Tim

-- 
tcross (at) rapttech dot com dot au

  reply	other threads:[~2008-01-07  5:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03 16:37 Is there a mod-emacs? rustom
2008-01-03 21:06 ` Bastien
2008-01-06  9:35 ` Tim X
2008-01-06 10:01   ` thorne
2008-01-07  5:56     ` Tim X [this message]
2008-01-07 16:55       ` Mathias Dahl
2008-01-08  1:11         ` Mike Mattie
2008-01-08  1:16         ` Tim X
     [not found] ` <mailman.5676.1199394418.18990.help-gnu-emacs@gnu.org>
2008-01-07 19:52   ` Joel J. Adamson
2008-01-07 21:29     ` thorne
2008-01-08  1:05     ` Tim X
2008-01-08 15:56       ` Joel J. Adamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sl1auqke.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.