emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [ANN] org-protocol-httpd
@ 2010-08-03 22:12 Andreas Burtzlaff
  2010-08-04  5:10 ` Torsten Wagner
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Burtzlaff @ 2010-08-03 22:12 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANN] org-protocol-httpd
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Torsten Wagner @ 2010-08-04  5:10 UTC (permalink / raw)
  To: Andreas Burtzlaff; +Cc: emacs-orgmode

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.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ANN] org-protocol-httpd
  2010-08-04  5:10 ` Torsten Wagner
@ 2010-08-04 13:38   ` Andreas Burtzlaff
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Burtzlaff @ 2010-08-04 13:38 UTC (permalink / raw)
  To: Torsten Wagner; +Cc: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-04 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).