emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode and remind integration
@ 2008-12-31 11:53 Daniel Martins
  2009-01-09  8:17 ` Carsten Dominik
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Martins @ 2008-12-31 11:53 UTC (permalink / raw)
  To: Carsten Dominik, Emacs-orgmode, bastien.guerry


[-- Attachment #1.1: Type: text/plain, Size: 1608 bytes --]

I changed from planner-el to org-mode after reading Sachas comments and some
videos: mostly Carsten and Russell ones.

However I use remind a lot. I like wyrd for remote operation and I have
remind - diary - ical and planner-el very integrated.

I think that org-mode would be improved from using remind. The ical ->
org-mode could be done using the longer path

ical -> remind -> diary -> org-mode

Via

ical -> remind:  http://wiki.43folders.com/index.php/*ICal2Rem*

remind -> diary:   Sacha's rem2diary

diary -> org-mode:  (setq org-agenda-include-diary t)


the reverse path could be directly

org-mode -> ical

.reminders.org.deadline
 .reminders.org.scheduled

However if I want to add all my appts in
.reminders.org.deadline and
 .reminders.org.scheduled
  from inside org-mode

I think that

org2rem

is lacking a few features

1. It does not work with priorities since

*** TODO  [#A] something
    DEADLINE: <2009-01-05>

generates

REM 30 Dec 2008 MSG [#A] something

which yields problems with remind parser

org2rem should eliminate the priorities at all

REM 30 Dec 2008 MSG something

or eliminate the brackets
REM 30 Dec 2008 MSG #A something


2. timed deadlines are not included
*** TODO  something
    DEADLINE: <2008-12-31 Wed 19:00>


generates
REM 31 Dec 2008 MSG something%

and should generate

REM 31 Dec 2008 AT 19:00 MSG something%



I tried to send an emacs bug report but as I do not use Emacs for sending
email (yet!).  It seems that the bug was not reported.

I must also admit that gnus always frightened me!

First thanks for all the good work done with org-mode


Daniel

[-- Attachment #1.2: Type: text/html, Size: 2107 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: 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] 9+ messages in thread
* Re: org-mode and remind integration
@ 2009-02-11 14:23 Sharad Pratap
  0 siblings, 0 replies; 9+ messages in thread
From: Sharad Pratap @ 2009-02-11 14:23 UTC (permalink / raw)
  To: danielemc; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 355 bytes --]

Hi Daniel,

Your regular expression working fine!!, I have made few change with
same regular expression, and it has worked for me.

I wish `org2rem' could be as robust as `org-export-icalendar'.

Like me you also want orgmode outside editor, So I have added to
executable script `org2remind' and `show-agenda'.

-- 
Regard
        (`
        _) h a r a d

[-- Attachment #1.2: Type: text/html, Size: 457 bytes --]

[-- Attachment #2: org2rem.el.patch --]
[-- Type: text/x-patch, Size: 2355 bytes --]

--- org2rem.el.old	2009-01-09 09:00:48.000000000 +0000
+++ org2rem.el.new	2009-02-11 13:59:16.777712000 +0000
@@ -34,13 +34,21 @@
 (eval-when-compile
   (require 'cl))
 
+(defvar org2rem-pure-timestamps-string  ;we need it.
+ (concat  "\\(" org-deadline-string "\\|"
+          org-scheduled-string  "\\)\\{0\\}"))
+
 (defvar org2rem-scheduled-reminders nil)
 (defvar org2rem-deadline-reminders nil)
+(defvar org2rem-pure-timestamps-reminders nil)
+
 (defvar pure-time nil)
 (defvar org2rem-scheduled-remind-file 
   "~/.reminders.org.scheduled")
 (defvar org2rem-deadline-remind-file 
   "~/.reminders.org.deadline")
+(defvar org2rem-pure-timestamps-remind-file
+  "~/.reminders.org.pure-timestamps")
 
 (defun org2rem-list-reminders (regexp)
   "Make a list of appointments. 
@@ -95,9 +103,15 @@
 
 	  (setq rem-task (concat "REM" rem-time "MSG "  task "%")
 		)
-	  (if (equal regexp org-scheduled-string)
-	      (push rem-task org2rem-scheduled-reminders)
-	    (push rem-task org2rem-deadline-reminders)))))))
+
+          (cond
+           ((equal regexp org2rem-pure-timestamps-string)
+            (push rem-task org2rem-pure-timestamps-reminders))
+           ((equal regexp org-scheduled-string)
+            (push rem-task org2rem-scheduled-reminders))
+           ((equal regexp org-deadline-string)
+            (push rem-task org2rem-deadline-reminders))
+           ))))))
 
 (defun org2rem-write-file (file reminders)
   "Write reminders list to files."
@@ -116,13 +130,19 @@
   (interactive)
   (setq org2rem-scheduled-reminders nil)
   (setq org2rem-deadline-reminders nil)
+  (setq org2rem-pure-timestamps-string nil)
   (save-window-excursion
     (org2rem-list-reminders org-scheduled-string)
     (org2rem-list-reminders org-deadline-string)
-    (org2rem-write-file "~/.reminders.org.scheduled" 
+    (org2rem-list-reminders org2rem-pure-timestamps-string)
+
+    (org2rem-write-file org2rem-scheduled-remind-file ;"~/.reminders.org.scheduled" 
 			org2rem-scheduled-reminders)
-    (org2rem-write-file "~/.reminders.org.deadline"
-			org2rem-deadline-reminders)))
+    (org2rem-write-file org2rem-deadline-remind-file ;"~/.reminders.org.deadline"
+			org2rem-deadline-reminders)
+    (org2rem-write-file org2rem-pure-timestamps-remind-file ;"~/.reminders.org.pure-timestamps"
+			org2rem-pure-timestamps-reminders)
+    ))
 
 
 \f

[-- Attachment #3: org2remind --]
[-- Type: application/octet-stream, Size: 847 bytes --]

#! /usr/bin/emacs --script


(load-file "~/.emacs")
(require 'org2rem)

(defun org2remind ()
  "batch org2rem function"
  (setq org2rem-scheduled-reminders nil)
  (setq org2rem-deadline-reminders nil)
  (setq org2rem-pure-timestamps-string nil)
  (save-window-excursion
    (find-file "~/my/test.org")
    (org2rem-list-reminders org-scheduled-string)
    (org2rem-list-reminders org-deadline-string)
    (org2rem-list-reminders org2rem-pure-timestamps-string)

    (org2rem-write-file org2rem-scheduled-remind-file ;"~/.reminders.org.scheduled" 
			org2rem-scheduled-reminders)
    (org2rem-write-file org2rem-deadline-remind-file ;"~/.reminders.org.deadline"
			org2rem-deadline-reminders)
    (org2rem-write-file org2rem-pure-timestamps-remind-file ;"~/.reminders.org.pure-timestamps"
			org2rem-pure-timestamps-reminders)
    ))

(org2remind)

[-- Attachment #4: show-agenda --]
[-- Type: application/octet-stream, Size: 1611 bytes --]

#!/usr/bin/emacs --script
;;
;; be.el
;; 
;; Made by s
;; Login   <s@taj>
;; 
;; Started on  Wed Feb  4 21:51:00 2009 s
;; Last update Wed Feb 11 17:17:09 2009 Sharad Pratap


(setq
 european-calendar-style nil
 diary-mail-days 7 
 diary-file "~/.Organize/emacs/diary/diary")

(org-batch-agenda "a"
                  european-calendar-style nil
                  diary-mail-days 12
                  org-agenda-ndays 20
                  diary-file "~/.Organize/emacs/diary/diary"
                  org-agenda-files
                  (file-expand-wildcards "~/.Organize/emacs/org/*/*.org"))
;                   org-agenda-files
;                   (quote 
;                    (
;                     "~/.Organize/emacs/org/myself/test.org"
;                     )))
;                  )

;;;      emacs -batch -l ~/.emacs -eval '(org-batch-agenda "t")' | lpr

;;; You may also modify parameters on the fly like this:

;;;      emacs -batch -l ~/.emacs                                      \
;;;         -eval '(org-batch-agenda "a"                               \
;;;                  org-agenda-ndays 300                              \
;;;                  org-agenda-include-diary nil                      \
;;;                  org-agenda-files (quote ("~/org/project.org")))'  \
;;;         | lpr

;;;     (org-batch-agenda "S")



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; from: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg10679.html
;;emacs --batch --no-init-file -q  -l ~/.emacs.slim --eval "(progn
;;(org-agenda-list) (princ (buffer-string)))" 2> /dev/null

[-- Attachment #5: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: 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] 9+ messages in thread

end of thread, other threads:[~2009-02-11 14:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-31 11:53 org-mode and remind integration Daniel Martins
2009-01-09  8:17 ` Carsten Dominik
2009-01-09  8:57   ` Daniel Martins
2009-01-09 14:39     ` Olaf Dietsche
2009-01-10 13:21       ` Daniel Martins
2009-01-10 21:18         ` Olaf Dietsche
2009-01-11 20:19           ` Daniel Martins
2009-01-13 21:06             ` Olaf Dietsche
  -- strict thread matches above, loose matches on Subject: below --
2009-02-11 14:23 Sharad Pratap

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