From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [ANN, OT] Emacs web-server, a new option for serving Org-mode files Date: Sat, 11 Jan 2014 14:53:37 -0700 Message-ID: <87r48eyyla.fsf@gmail.com> References: <87zjn24cgx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26Wi-000810-26 for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 16:55:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W26Wd-0004ax-Vw for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 16:55:31 -0500 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:58807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W26Wd-0004at-Jf for emacs-orgmode@gnu.org; Sat, 11 Jan 2014 16:55:27 -0500 Received: by mail-pa0-f50.google.com with SMTP id kq14so397356pab.23 for ; Sat, 11 Jan 2014 13:55:26 -0800 (PST) In-Reply-To: (Thomas S. Dye's message of "Sat, 11 Jan 2014 09:12:54 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org Mode Mailing List tsd@tsdye.com (Thomas S. Dye) writes: > Hi Eric, > > This worked out of the box for me. Neat! > Great. > > I ran into a problem with an optional step: > > poto:emacs-web-server dk$ emacs --version > GNU Emacs 24.3.1 > Copyright (C) 2013 Free Software Foundation, Inc. > GNU Emacs comes with ABSOLUTELY NO WARRANTY. > You may redistribute copies of Emacs > under the terms of the GNU General Public License. > For more information about these matters, see the file named COPYING. > poto:emacs-web-server dk$ make > emacs --batch --execute '(add-to-list (quote load-path) > "/Users/dk/org-local/emacs-web-server")' -f batch-byte-compile > web-server-status-codes.el web-server-test.el web-server.el > Wrote /Users/dk/org-local/emacs-web-server/web-server-status-codes.elc > > In toplevel form: > web-server-test.el:9:1:Error: Cannot open load file: eieio > > In toplevel form: > web-server.el:33:1:Error: Cannot open load file: eieio > make: *** [src] Error 1 > I'm not sure what to make of that, as eieio.el is distributed as part of Emacs, so it should be in lisp/emacs-lisp/ under your installed Emacs directory, which should be in the load-path. Regardless, since everything is running successfully, Emacs can obviously find eieio at runtime, so I wouldn't worry about batch compilation not working. Best, > > All the best, > Tom > > Eric Schulte writes: > >> A non-Org announcement which I believe may still be of interest given >> the recurring discussion of ways to serve Org-mode files as web pages. >> >> I've written an Emacs web-server [1], which may be used to interact with >> Org-mode over HTTP. It has no dependencies aside from needing Emacs 24 >> or later and it should be easy to install and use [2]. >> >> Three simple examples of how it may be used with Org-mode include; >> 1. web server which exports Org files on demand [3], >> 2. an export *service* [4] which allows users to upload Org-mode files >> and then download exported versions, or >> 3. simply a way to serve your daily agenda as a web page [5]. >> >> I've ported the Org-ehtml editable Org-mode Wiki [6] from Elnode to this >> new web-server, and I now find that it is both easier to install, and is >> more stable, and faster [7]. I know that Elnode setup had been a >> barrier to some users of org-ehtml, hopefully that barrier is now >> removed. >> >> I hope this is of interest and not too far off topic. >> >> Best, >> >> Footnotes: >> [1] https://github.com/eschulte/emacs-web-server >> >> [2] http://eschulte.github.io/emacs-web-server/tutorials/#sec-1 >> >> [3] >> http://eschulte.github.io/emacs-web-server/Org_002dmode-Export.html#Org_002dmode-Export >> >> [4] >> https://github.com/eschulte/emacs-web-server/blob/master/examples/013-org-export-service.el >> >> [5] >> https://github.com/eschulte/emacs-web-server/blob/master/examples/011-org-agenda.el >> >> [6] https://github.com/eschulte/org-ehtml >> >> [7] http://eschulte.github.io/emacs-web-server/benchmark/ -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D