[Orgmode] Re: OSD alerts for appointment reminders (+ erc hook to use OSD)

2008-09-25 Thread Paul R
On Thu, 25 Sep 2008 02:43:56 +0200, Richard Riley [EMAIL PROTECTED] said:

Richard I dont know if the gnome-osd stuff will work on kde, but try
Richard it and see.

osd_cat outputs to X OSD, with no desktop dependency at all.

-- 
  Paul


___
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


Re: [Orgmode] Re: how to change the set of agenda org files between custom agenda commands

2008-09-25 Thread Carsten Dominik

On Sep 24, 2008, at 11:25 PM, Rainer Stengele wrote:


Dan Griswold wrote:

Rainer Stengele [EMAIL PROTECTED] writes:

I am struggling to switch the set of used agenda org files between
different custom agenda commands.

I tried something like

(setq org-agenda-custom-commands
 '(
(k . Kundenbezogene / Ketegoriebezogene TODOs ...)
   (ka tags-todo CATEGORY=\ADMIN\)
   (kP tags-todo CATEGORY=\PRIVAT\
 ((org-agenda-files (quote (~/org/PRIVAT/PRIVAT.org)

Playing with customize I came up with this possibility:
(setq org-agenda-custom-commands
 '(
(k . Kundenbezogene / Ketegoriebezogene TODOs ...)
   (ka tags-todo CATEGORY=\ADMIN\)
   (kP tags-todo CATEGORY=\PRIVAT\
 ((org-agenda-files
   '(~/org/PRIVAT/PRIVAT.org))
Will that do it?
Dan


Dan, thank you. I somehow does and doesn't.
After using the command I get the private entries.
After using another command analogous to this it seems I cannot  
reset the org-agenda-files variable. Looks like it only adds files  
to it?

I played around a lot but could not get it to function as wanted.


Hi Rainer, Dan

I just tested this, with

(setq org-agenda-custom-commands
  '((ka aaa alltodo 
 ((org-agenda-files
   '(~/lib/emacs/work/org-mode/test/a.org
(kb bbb alltodo 
 ((org-agenda-files
   '(~/lib/emacs/work/org-mode/test/b.org))

with small files a.org and b.org containing just one TODO entry, and  
of course my full suite of TODO entries available with `C-c a t'.


And then I do

C-c a t
C-c a a
C-c a b
C-c a t

and it all works just fine, going back end forth between these in any  
sequence.



Anyway, the syntax is quite complex.
I wonder if some more examples for changing agenda files when  
executing custom commands would be helpful.
Anyone else who wants to see Agenden at home from different sets of  
agenda files?


I think a good way is also to keep the list of agenda files in a file,  
like

~/.agenda_files_home and ~/.agenda_files_work.

The you can have different sets of files, and switch by making org- 
agenda-files


(defun org-my-toggle-agenda-file-set ()
 (interactive)
 (if (equal org-agenda-files ~/.agenda_files_work)
 (setq org-agenda-files ~/.agenda_files_home)
   (setq org-agenda-files ~/.agenda_files_work))
 (message Using %s org-agenda-files))

- Carsten



___
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


[Orgmode] Re: how to change the set of agenda org files between custom agenda commands

2008-09-25 Thread Rainer Stengele

Carsten Dominik wrote:

On Sep 24, 2008, at 11:25 PM, Rainer Stengele wrote:


Dan Griswold wrote:

Rainer Stengele [EMAIL PROTECTED] writes:

I am struggling to switch the set of used agenda org files between
different custom agenda commands.

I tried something like

(setq org-agenda-custom-commands
 '(
(k . Kundenbezogene / Ketegoriebezogene TODOs ...)
   (ka tags-todo CATEGORY=\ADMIN\)
   (kP tags-todo CATEGORY=\PRIVAT\
 ((org-agenda-files (quote (~/org/PRIVAT/PRIVAT.org)

Playing with customize I came up with this possibility:
(setq org-agenda-custom-commands
 '(
(k . Kundenbezogene / Ketegoriebezogene TODOs ...)
   (ka tags-todo CATEGORY=\ADMIN\)
   (kP tags-todo CATEGORY=\PRIVAT\
 ((org-agenda-files
   '(~/org/PRIVAT/PRIVAT.org))
Will that do it?
Dan


Dan, thank you. I somehow does and doesn't.
After using the command I get the private entries.
After using another command analogous to this it seems I cannot reset 
the org-agenda-files variable. Looks like it only adds files to it?

I played around a lot but could not get it to function as wanted.


Hi Rainer, Dan

I just tested this, with

(setq org-agenda-custom-commands
  '((ka aaa alltodo 
 ((org-agenda-files
   '(~/lib/emacs/work/org-mode/test/a.org
(kb bbb alltodo 
 ((org-agenda-files
   '(~/lib/emacs/work/org-mode/test/b.org))

with small files a.org and b.org containing just one TODO entry, and of 
course my full suite of TODO entries available with `C-c a t'.


And then I do

C-c a t
C-c a a
C-c a b
C-c a t

and it all works just fine, going back end forth between these in any 
sequence.



Anyway, the syntax is quite complex.
I wonder if some more examples for changing agenda files when 
executing custom commands would be helpful.
Anyone else who wants to see Agenden at home from different sets of 
agenda files?


I think a good way is also to keep the list of agenda files in a file, like
~/.agenda_files_home and ~/.agenda_files_work.

The you can have different sets of files, and switch by making 
org-agenda-files


(defun org-my-toggle-agenda-file-set ()
 (interactive)
 (if (equal org-agenda-files ~/.agenda_files_work)
 (setq org-agenda-files ~/.agenda_files_home)
   (setq org-agenda-files ~/.agenda_files_work))
 (message Using %s org-agenda-files))

- Carsten



___
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



Hi all,

I found the problem. I used org-agenda-directory instead of org-agenda-files.
Not recognising that this variable doesn't seem to exist (did it ever exist?)
I assumed I can use it to indicate the org files folder.

With org-agenda-files everything works perfectly.

I now have about 48 custom commands (partly of course hierarchical) and with
dynamically changing the set of org files I really feel I have control over my 
todos!


I am very happy with org!


Thank you both!

Rainer


___
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


RE: [Orgmode] OSD alerts for appointment reminders (+ erc hook to useOSD)

2008-09-25 Thread Chris Randle
Richard Riley wrote:
 I thought some of you linux users might like this - use 
 gnome-osd-client to put an on screen reminder of your looming 
 appointments.

In a similar vein, I've coded something for Windows. It's an interactive
function currently called my-org-update-desktop-from-agenda. It takes
the current week's agenda view and sets it as the desktop's wallpaper.
Not an alert, but it keeps your workload forever in front of you.

It needs a couple of functions defined in .emacs and a windows
executable (90KB) that I've written which updates the desktop wallpaper
from an html file.

The wallpaper will look exactly the same as the agenda view you'd
normally see within org-mode. It's trivial to adjust one of the
functions if you prefer more/fewer days than 7 displayed.

Only tested on the setup quoted in sig. Anyone who'd like a bundled copy
of the required bits, just drop me an email:
chris[at]amlog[dot]co[dot]uk. Off-list might be best.

-- 
Chris Randle
Windows XP SP3 - GNU Emacs 22.1.1 - Org-mode 6.07b



___
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


[Orgmode] Possible bug in task breakdown recounting, narrowing problem from agenda or sparse tree?

2008-09-25 Thread Charles Sebold
In an org file that looks like this:


#+STARTUP: odd
#+STARTUP: hidestars
#+TAGS: :meta:test:
#+CATEGORY: Test

* PROJECT [0/5] Made up of several todo's
*** TODO first
*** TODO second
*** TODO third
*** TODO fourth
*** TODO fifth


And with my todo keywords looking like this:


(setq org-todo-keywords
  '(
(sequence INBOX(i) TICKLER(t!) | FILE(f@) CANCELED(k@))
(sequence TODO WAITING VERIFY | DONE REASSIGNED)
(sequence DAILY(d!) | DONEDLY UNSCHEDDLY(D@))
(sequence WEEKLY(e!) | DONEWKLY UNSCHEDWKLY(E@))
(sequence MONTHLY(m!) | DONEMNTHLY UNSCHEDMNTHLY(M@))
(sequence APPT RESCHEDULE(s@) | APPTPAST APPTCANCELED(n@))
(sequence REQUEST(r!) REQWAITING(w@/!) REQVERIFY(v) |
  REQCLOSED(c!) REQREASSIGNED(a@))
(sequence PROJECT(P!) PROJWAITING(W@/!) PROJVERIFY(V) |
  PROJCLOSED(C!) PROJREASSIGNED(A@))
))


According to (info (org)Breaking down tasks) marking one of these as
one of the DONE states (in this sequence it would be either DONE or
REASSIGNED) should change the PROJECT breakdown to [1/5].  If I am in
the buffer with that org file, it's completely unfolded, and I do it,
that's the effect I get.

However, if:

(a) the outline of that project is partially or completely folded to
begin with, and
(b) I change the TODO to DONE in the Agenda buffer, it seems to narrow
around that TODO item, and the breakdown becomes [0/1] or some
smaller number than the actual number of subtasks under the
project.

I just tried it with a sparse tree that only unfolded to display the
third TODO item, and the same thing happened, so I guess it's probably
something to do with the way the sparse tree works with folding.

I'm running org-mode 6.07b downloaded from the website.

Sorry if this is a known problem; I didn't see it on the bugs page in
the info file.
-- 
Charles Sebold
http://merbc.invigorated.org/
http://triablogue.blogspot.com/


___
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


[Orgmode] font lock mode can't get to work

2008-09-25 Thread Graham Smith
I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having
a problem with the font lock mode.

adding -*- mode: org; -*- to the file itself works fine, but simply
loading a test.org file doesn't activate org mode.

I have tried commenting out and back in different options in .emacs,
but none seem to work.

I only have these lines in .emacs at the moment.


; Org -Mode;;

(setq load-path (cons ~/EmacsAddins/Orgmode/lisp load-path))
(setq load-path (cons ~/EmacsAddins/Orgmode/contrib/lisp load-path))
(require 'org-install)

;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))
(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)

(global-font-lock-mode 1); for all buffers
(add-hook 'org-mode-hook 'turn-on-font-lock) ; Org buffers only

I presume I am doing something stupid, but can someone tell me what it might be.

Thanks,

Graham


___
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


[Orgmode] Re: font lock mode can't get to work

2008-09-25 Thread Bernt Hansen
Graham Smith [EMAIL PROTECTED] writes:

 I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having
 a problem with the font lock mode.

 adding -*- mode: org; -*- to the file itself works fine, but simply
 loading a test.org file doesn't activate org mode.

 I have tried commenting out and back in different options in .emacs,
 but none seem to work.

 I only have these lines in .emacs at the moment.


 ; Org -Mode;;

 (setq load-path (cons ~/EmacsAddins/Orgmode/lisp load-path))
 (setq load-path (cons ~/EmacsAddins/Orgmode/contrib/lisp load-path))
 (require 'org-install)

 ;; The following lines are always needed. Choose your own keys.
 (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))

This line looks wrong.  What's the extra \\' for after .org?

I have the following:

(add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\)$ . org-mode))

so that any files ending in .org or .org_archive trigger org-mode.

-Bernt


___
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


RE: [Orgmode] Re: font lock mode can't get to work

2008-09-25 Thread Sullivan, Gregory (US SSA)
I think the \\' after .org is to match the end of the filename.

From emacs info section Regexp Backslash,

`\''
 matches the empty string, but only at the end of the string or
 buffer (or its accessible portion) being matched against.

--Greg

--
Gregory T. Sullivan, Ph.D.
BAE Systems Advanced Information Technologies
6 New England Executive Park, Burlington, MA 01803
781-262-4553 (office),  978-430-3461 (cell)
[EMAIL PROTECTED] 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Bernt Hansen
Sent: Thursday, September 25, 2008 3:54 PM
To: Graham Smith
Cc: emacs-orgmode@gnu.org
Subject: [Orgmode] Re: font lock mode can't get to work

Graham Smith [EMAIL PROTECTED] writes:

 I am using emacs/org mode 6.07b on linux (ubuntu Hardy) and am having
 a problem with the font lock mode.

 adding -*- mode: org; -*- to the file itself works fine, but simply
 loading a test.org file doesn't activate org mode.

 I have tried commenting out and back in different options in .emacs,
 but none seem to work.

 I only have these lines in .emacs at the moment.


 ; Org -Mode;;

 (setq load-path (cons ~/EmacsAddins/Orgmode/lisp load-path))
 (setq load-path (cons ~/EmacsAddins/Orgmode/contrib/lisp load-path))
 (require 'org-install)

 ;; The following lines are always needed. Choose your own keys.
 (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode))

This line looks wrong.  What's the extra \\' for after .org?

I have the following:

(add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\)$ .
org-mode))

so that any files ending in .org or .org_archive trigger org-mode.

-Bernt


___
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



___
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


Re: [Orgmode] Re: font lock mode can't get to work

2008-09-25 Thread Graham Smith
2008/9/25 Sullivan, Gregory (US SSA) [EMAIL PROTECTED]:
 I think the \\' after .org is to match the end of the filename.

 From emacs info section Regexp Backslash,

 `\''
 matches the empty string, but only at the end of the string or
 buffer (or its accessible portion) being matched against.

I'm afraid I was just copying it across, without giving any specific
thoughts to the syntax.

Graham


___
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


[Orgmode] Tutorial for Org-plot

2008-09-25 Thread Carsten Dominik


Hi everyone,

Eric has put up a great tutorial about org-plot on worg.  Make sure to  
check it out


- Carsten

http://orgmode.org/worg/org-tutorials/org-plot.php
___
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


Re: [Orgmode] Tutorial for Org-plot

2008-09-25 Thread Xiao-Yong Jin
Carsten Dominik [EMAIL PROTECTED] writes:

 Hi everyone,

 Eric has put up a great tutorial about org-plot on worg.  Make sure to check
 it out

 - Carsten

 http://orgmode.org/worg/org-tutorials/org-plot.php

Bravo!  Excellent work.

Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


___
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


[Orgmode] Re: OSD alerts for appointment reminders (+ erc hook to use OSD)

2008-09-25 Thread Richard Riley

Richard Riley [EMAIL PROTECTED] writes:

 I thought some of you linux users might like this - use gnome-osd-client
 to put an on screen reminder of your looming appointments. I include a
 screenshot link below. I'm sure the code can be improved as I'm not much
 of an elisp programmer. I have also included an erc hook to use OSD to
 display messages in your subscribed irc channels directed at you. Hope
 you like it. I dont know if the gnome-osd stuff will work on kde, but
 try it and see.

 http://www.imagebucket.in/images/layopataa1r203lmuwp3.png


 org stuff:

 ,
 | ; Update appt each time agenda opened.
 | (add-hook 'org-finalize-agenda-hook 'org-agenda-to-appt)
 | 
 | (setq appt-display-format 'window)
 | 
 | (defun org-osd-display (min-to-app new-time msg)
 |   (osd-display msg msg -1 center center Verdana 20)
 | )
 | 
 | (setq appt-disp-window-function (function org-osd-display))
 | 
 | ;; see my-osd for plugins
 | 
 | (require 'diary-lib)
 | (add-hook 'diary-display-hook 'fancy-diary-display)
 | 
 | ;; Run once, activate and schedule refresh
 | (run-at-time nil 3600 'org-agenda-to-appt)
 | (appt-activate t)
 `

 osd stuff:

 ,
 | (defun osd-display (id msg optional delay vattrib hattrib font)
 | 
 |   Display a message with an id of ID for delay seconds with message msg
 | 
 |   (unless vattrib (setq vattrib top))
 |   (unless hattrib (setq hattrib right))
 |   (unless delay (setq delay 5000))
 |   (unless font (setq font Serif Bold Italic 32))
 | 
 |   (save-window-excursion
 | (shell-command
 |  (format
 |   gnome-osd-client -f \message id='%s' osd_fake_translucent_bg='off' 
 osd_font='%s' animations='on' hide_timeout='%d' osd_vposition='%s' 
 osd_halignment='%s'%s/message\
 |   id
 |   font
 |   delay
 |   vattrib
 |   hattrib
 |   msg)
 |  nil nil)
 | ))
 | 
 | ;(osd-display i2 and OSD... 500)
 | ;(osd-display id Welcome to Emacs 1000 top center Verdana 20)
 | 
 `

 Finally the erc hook stuff:

 ,
 | (defun erc-notify-osd (matched-type nick msg)
 |   (when (string= matched-type current-nick)
 | (message msg)
 | (string-match .*:\\(.*\\)$ msg)
 | (setq msg (match-string 1 msg))
 | (osd-display (concat erc-msg :  (erc-extract-nick nick)) (concat 
 (erc-extract-nick nick)  :  msg) 1 bottom center Verdana 23)
 |  ))
 | 
 | (add-hook 'erc-text-matched-hook 'erc-notify-osd)
 `

I forgot to mention you need to enable the erc module match

e.g my erc-modules is:

(setq  erc-modules (quote (autoaway autojoin button completion match
menu move-to-prompt noncommands readonly scrolltobottom services smiley
stamp spelling truncate highlight-nicknames netsplit fill readonly
noncommands irccontrols move-to-prompt)))



___
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