[OT] Re: [Orgmode] Emacs bindings for remember the milk (work in progress)

2010-07-29 Thread Xiao-Yong Jin
Hi, this is OT.  But where can I find your public key?  I
cannot find it on the servers I know of.
-- 
Jc/*__o/*
X<\ * (__
Y*/\  <

___
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


Re: [Orgmode] Emacs bindings for remember the milk (work in progress)

2010-07-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

On 29/07/10 10:48, Friedrich Delgado Friedrichs wrote:
> Hi!
> 
> Rainer M Krug schrieb:
>> any news on the implementation of two-way-sync with RTM?
> ---Zitatende---
> 
> No, I didn't get around to do it, yet.
> 
> I think the rtm-api for emacs lisp is just about ready and would allow
> two-way sync, but there's nothing wrt to org-integration at all yet.
> 
> Somebody else has expressed interest in picking it up and I've sent
> him my code so far, but I don't know about the status of that project.

I'll keep my fingers crossed - it would be brilliant to add TODO Items
created with org-capture to RTM.

Cheers,

Rainer

> 
> 
> 
> 
> ___
> 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


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRQ2kACgkQoYgNqgF2egpxLgCfZ4+vu+YZirFCqi8b7yu5/jhH
t9AAn3VhNpDFIqxSd45/8+DhcUiTi47j
=YC8K
-END PGP SIGNATURE-

___
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


Re: [Orgmode] Emacs bindings for remember the milk (work in progress)

2010-07-29 Thread Friedrich Delgado Friedrichs
Hi!

Rainer M Krug schrieb:
> any news on the implementation of two-way-sync with RTM?
---Zitatende---

No, I didn't get around to do it, yet.

I think the rtm-api for emacs lisp is just about ready and would allow
two-way sync, but there's nothing wrt to org-integration at all yet.

Somebody else has expressed interest in picking it up and I've sent
him my code so far, but I don't know about the status of that project.

-- 
Friedrich Delgado 
 TauPan on Ircnet and Freenode ;)


pgpqLC6eaP3CT.pgp
Description: PGP signature
___
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


Re: [Orgmode] Emacs bindings for remember the milk (work in progress)

2010-07-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

any news on the implementation of two-way-sync with RTM?

Cheers,

Rainer


On 24/02/10 15:08, Friedrich Delgado Friedrichs wrote:
> Hi!
> 
> Since someone just asked about remember the milk sync, I thought I
> could post my remember the milk bindings for emacs. This is still
> pretty much raw and it's far from usable for org-mode. The next step
> would be to devise a way to map org-mode todos onto remember the milk
> and come up with an algorithm for synchronisation (both ways).
> 
> But I'd appreciate some feedback and/or hacks from you, so fire away
> :)
> 
> Kind regards
>  Friedel
> 
> 
> 
> ___
> 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


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxRNuAACgkQoYgNqgF2egrpVgCeKpKz6dvArJYTqjhUwjDrQXb5
0DEAnjmzmOtfYgjjRDR40Acb24SoAffY
=zqlC
-END PGP SIGNATURE-

___
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


[Orgmode] Emacs bindings for remember the milk (work in progress)

2010-02-24 Thread Friedrich Delgado Friedrichs
Hi!

Since someone just asked about remember the milk sync, I thought I
could post my remember the milk bindings for emacs. This is still
pretty much raw and it's far from usable for org-mode. The next step
would be to devise a way to map org-mode todos onto remember the milk
and come up with an algorithm for synchronisation (both ways).

But I'd appreciate some feedback and/or hacks from you, so fire away
:)

Kind regards
 Friedel
-- 
Friedrich Delgado Friedrichs 
 TauPan on Ircnet and Freenode ;)
;;; rtm.el --- An elisp implementation of the Remember The Milk API

;; Copyright (C) 2009 Friedrich Delgado Friedrichs
;; uses parts of org-rtm.el Copyright (C) 2008  Avdi Grimm

;; Author: Friedrich Delgado Friedrichs 
;; Created: Oct 18 2009
;; Version: 0.0
;; Keywords: remember the milk productivity todo

;; This product uses the Remember The Milk API but is not endorsed or
;; certified by Remember The Milk

;; This file is NOT part of GNU Emacs.

;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.

;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to
;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;; TODO Write commentary

;;; Code:

(eval-when-compile (require 'cl))
(require 'url-http)
(require 'url-util)
(require 'xml)
(require 'custom)

 Customisation

(defgroup rtm nil
  "Options for emacs lisp integration of Remember The Milk"
  :tag "elisp RTM"
  :group 'applications)

(defcustom rtm-api-key ""
  "Your own API key for Remember The Milk."
  :type 'string :group 'rtm)
(defcustom rtm-api-shared-secret ""
  "Your shared secret for your Remember The Milk API Key.

Note that in an open source application it is not easily possible to
hide the secret. That's why it's probably the best solution for every
user to register their own API key.

See also
http://groups.google.com/group/rememberthemilk-api/browse_thread/thread/dcb035f162d4dcc8%3Fpli%3D1

You can register your own API key and secret under
http://www.rememberthemilk.com/services/api/requestkey.rtm

In the description just tell them you're going to use the emacs lisp
API Kit"
  :type 'string :group 'rtm)

 constants and variables

(defconst rtm-rest-uri "http://api.rememberthemilk.com/services/rest/";
  "Endpoint URL for REST requests. See
  http://www.rememberthemilk.com/services/api/request.rest.rtm";)

(defconst rtm-auth-uri "http://www.rememberthemilk.com/services/auth/";
  "Authentication service URL, see
  http://www.rememberthemilk.com/services/api/authentication.rtm";)

(defvar rtm-auth-token ""
  "Auth token received from RTM Website, after the user authenticated
  your app")

(defconst rtm-ui-buffer-name "*rtm*"
  "Name for the rtm user interface buffer")

(defconst rtm-auth-token-file ".rtm-auth-token"
  "Name for storing the auth token for the current session")

(defvar rtm-current-timeline nil
  "The current timeline")

(defvar rtm-debug nil
  "debug level")

 API wrappers
(defmacro def-rtm-method (methodname rtm-method-name call-func result-func
 result-path &rest parms)
  (declare (indent 1))
  `(defun ,methodname ,parms
 (,result-func ,result-path
   (,call-func ',rtm-method-name
   ,@(mapcar (lambda (sym)
   (list 'backquote
 (cons (symbol-name sym)
   (list ', sym
 ;; remove lambda keywords
 (remove-if (lambda (sym)
  (or (eq sym '&optional)
  (eq sym '&rest)))
parms))

(defmacro def-rtm-macro (macro-name call-func result-func)
  (declare (indent 0))
  `(defmacro ,macro-name (methodname rtm-method-name result-path &rest parms)
 (declare (indent 1))
 `(def-rtm-method ,methodname ,rtm-method-name ,',call-func
  ,',result-func
  ',result-path ,@parms)))

(def-rtm-macro def-rtm-signed-scalar-method
   rtm-call-signed rtm-get-scalar-from-response)

(def-rtm-macro def-rtm-authenticated-scalar-method
   rtm-call-authenticated rtm-get-scalar-fro