emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andreas Burtzlaff <andy13@gmx.net>
To: Torsten Wagner <torsten.wagner@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ANN] org-protocol-httpd
Date: Wed, 04 Aug 2010 15:38:50 +0200	[thread overview]
Message-ID: <878w4mxzth.fsf@gmx.net> (raw)
In-Reply-To: <4C58F65D.5090407@gmail.com> (Torsten Wagner's message of "Wed, 04 Aug 2010 14:10:53 +0900")

Hello Torsten,

Torsten Wagner <torsten.wagner@gmail.com> writes:

> Hi Andreas,
>
> this sounds very interesting and I would like to look further inside.
> The following idea just came to my mind:
> Might it be possible to use org-protocol-httpd as a server for
> mobileorg? Because this would allow to have a light-weight client on a
> smartphone (only to display the requested results) and to do all the
> magic within org-mode and emacs on the server side.
> E.g. I could ask the server to generate dynamically a particular
> html-export of an agenda and display it in a browser like application on
> my phone. Sure there need to be something like https and some other
> security measures if it operates as an public accessible server.

It is technically possible to make Emacs serve html exports of Org files
and Org agendas through http and provide functionality to edit them
through http requests. I thought of that too, but I'm not sure this
has real advantages over using a plain web server or Dropbox and the
likes, as MobileOrg does. After all not everybody has his own server.

The only remotely sensible thing I can think of at the moment is having
javascript code for viewing and sending changes to an Emacs server that
updates the html accordingly. That would be a platform independent port
of MobileOrg, without third-party services for syncing involved and
with an UI that is not really native to the device.

Anyway, I'm interested in your elaborations on this.

Andreas

>
> However, by using the original export functions of org-mode, there would
> be no need to parse org-files throw other programs to extract the
> necessary information.
>
> Running a emacs session on a server might be strange for some, but the
> smartphone application might even provide a way to connect over ssh to
> the emacs session. With this you would have easy viewing and simple
> editing of org-mode files and if needed a full featured org-mode session
> on your smartphone (yep I'm aware some here run emacs natively on there
> phone).
>
> Best regards
>
> Torsten
>
>
>
> On 08/04/2010 07:12 AM, Andreas Burtzlaff wrote:
>> Hello all,
>> 
>> org-protocol-httpd is an Http-server running in Emacs that responds to
>> requests where the path is:
>> 
>>  - an org-protocol action.
>>    In this case the associated handler from org-protocol is executed.
>>  - an org-protocol-httpd action.
>>    In this case the associated handler is executed 
>>    and its return value is passed back to the client.
>> 
>> My reason for writing this is that I needed a proper way to retrieve
>> information from Emacs for use in Fireforg, but it might be interesting
>> for those of you having problems configuring protocols in Firefox as
>> well. For details on how to use it from a Firefox bookmark please refer
>> to the in-file documentation.
>> 
>> org-protocol-httpd.el is available in the lisp/ directory from the
>> 'org-protocol-httpd' branch on:
>> 
>> git://github.com/atheb/org-mode.git
>> 
>> (Please note, that the small change to org-protocol.el in that branch is
>> needed.)
>> 
>> Although I deem it stable, testing is very appreciated.
>> 
>> Andreas
>> 
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2010-08-04 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-03 22:12 [ANN] org-protocol-httpd Andreas Burtzlaff
2010-08-04  5:10 ` Torsten Wagner
2010-08-04 13:38   ` Andreas Burtzlaff [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=878w4mxzth.fsf@gmx.net \
    --to=andy13@gmx.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=torsten.wagner@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).