From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Is there a mod-emacs? Date: Mon, 07 Jan 2008 16:56:17 +1100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <87sl1auqke.fsf@lion.rapttech.com.au> References: <4870e7ae-ab72-4d0b-8d42-9a4ed0a54e8d@e23g2000prf.googlegroups.com> <871w8vwb2e.fsf@lion.rapttech.com.au> <86prwfz310.fsf@timbral.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199688041 18924 80.91.229.12 (7 Jan 2008 06:40:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 06:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 07 07:40:58 2008 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 1JBlfL-00079v-QZ for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 07:40:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBlez-0006VH-0Z for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jan 2008 01:40:33 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!exabot.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!sn-xt-ams-06!sn-xt-ams-03!sn-post-ams-01!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) Cancel-Lock: sha1:mUCh3yedLRbc0ppP6+IqUSfOPS4= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 46 Original-Xref: shelby.stanford.edu gnu.emacs.help:155122 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:50543 Archived-At: thorne writes: > Tim X 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