Re: [Orgmode] relative scheduling

2007-10-10 Thread Carsten Dominik


On Oct 9, 2007, at 18:09, Carsten Dominik wrote:

However, a different question pops up here.  When rescheduling,
should the +Nd be relative to today, or relative to
the currently scheduled date?

- A good reason to make it relative to today is that you might not
  always know that the entry is already scheduled.  Using today
  as reference would be safe

- A good reason for doing it relative to the scheduled date is
  that you are *re*-scheduling, and then it is a bit more
  logical to think lets push this two days down

Votes?


OK, with no clear majority, the verdict is this:
I give the most weight to the uncertainty whether we a changing
an old time stamp or inserting a new one.  Therefore, +4d will
be always be measured relative to today.  However, you can
use ++4d to explicitly specify that you want this relative
to the default date (which is today for new entries, and the
old date when modifying).

Also you will (in 5.12) be able to use +2w, +2m, and +2y.

- Carsten




- 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




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
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] listp error 5.11b

2007-10-10 Thread Carsten Dominik

Without a backtrace and your configuration, we cannot say anything.

- Carsten

On Oct 7, 2007, at 21:23, Richard G Riley wrote:



I have just fired up emacs get this:

Loading org...done
OVERVIEW
Wrong type argument: listp, #buffer todo.org

I tried an empty todo.org and the same issue.

I tried --debug-init, but nothing triggers.

Can anyone suggest a fix please?


___
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




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
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] FR: A configuration option for the behavior of `org-fit-agenda-window'

2007-10-10 Thread Carsten Dominik


On Oct 10, 2007, at 2:00, John Wiegley wrote:

When I switch to a daily agenda view, I like to know that what I'm 
seeing is
everything there is to see.  The current definition of 
org-fit-agenda-window
sets a maximum height for the agenda view to 3/4 the frame height.  
This
always leaves me wondering if maybe there's one more task, just beyond 
the
bottom of the window.  I recommend the following customization 
variable:


  (defvar org-fit-whole-agenda-window nil)

  (defun org-fit-agenda-window ()
Fit the window to the buffer size.
(and (memq org-agenda-window-setup '(reorganize-frame))
 (fboundp 'fit-window-to-buffer)
 (if org-fit-agenda-window
 (fit-window-to-buffer)
   (fit-window-to-buffer nil (/ (* (frame-height) 3) 4)
 (/ (frame-height) 2)


I guess we can also get rid of the limitations completely and just
call `fit-window-to-buffer'.

- 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


Re: [Orgmode] bug report with org 5.11b and remember 1.19

2007-10-10 Thread Carsten Dominik


This happens because you are calling `remember-mode' interactively.
Org-mode assumes that the command you are using is either `remember'
or `org-remember'.  What are you calling `remember-mode'?  What are
you trying to achieve?

- Carsten

On Oct 9, 2007, at 17:58, Austin Frank wrote:


Hello!

I've been trying to implement a setup based on John Wiegley's day
planner tutorial.  I have a file org-config.el that is loaded in my
.emacs.  org-config.el looks like this:

(require 'org-install)
(require 'remember)

;; basic org-mode configuration
;; keys are set in ekeys.el
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))

(add-hook 'remember-mode-hook 'org-remember-apply-template)

(custom-set-variables
 '(org-agenda-include-diary t)
 '(org-log-done t)
 '(org-export-with-toc nil)
 '(org-export-with-section-numbers nil)
 '(org-agenda-files (quote (~/todo.org)))
 '(org-default-notes-file ~/notes.org)
 '(org-agenda-ndays 7)
 '(org-deadline-warning-days 14)
 '(org-agenda-show-all-dates t)
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-start-on-weekday nil)
 '(org-reverse-note-order t)
 '(org-fast-tag-selection-single-key (quote expert))
 '(org-remember-store-without-prompt t)
 '(org-remember-templates
   (quote ((116 * TODO %?\n  %u ~/todo.org Tasks)
   (110 * %u %? ~/notes.org Notes
 '(remember-annotation-functions (quote (org-remember-annotation)))
 '(remember-handler-functions (quote (org-remember-handler


When I try to store a note using remember, I get the following error:
Symbol's value as variable is void:  initial

And here's the debugger output.

Debugger entered--Lisp error: (void-variable initial)
  org-remember-apply-template()
  run-hooks(remember-mode-hook)
  remember-mode()
  call-interactively(remember-mode)


Is there something incorrect about my setup?

Thanks,
/au

--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc



___
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




--
Carsten Dominik
Sterrenkundig Instituut Anton Pannekoek
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477



___
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] Code snippet for bolding or italicizing A/C priority strings

2007-10-10 Thread John Wiegley
John Wiegley [EMAIL PROTECTED] writes:

 This code snippet will modify your agenda buffer upon creation so that the
 string [#A] is bolded, and [#C] is italicized.  It keeps whatever color it
 had, it's just now strong or weak based on priority.

Actually, I'm finding I like having the whole title bolded or italicized, just
like Gnus does:

(defun org-fontify-priorities ()
  (interactive)
  (save-excursion
(let ((inhibit-read-only t))
  (goto-char (point-min))
  (while (re-search-forward \\[#\\([A-C]\\)\\] nil t)
(let ((priority (match-string 1)))
  (cond ((string= priority A)
 (overlay-put (make-overlay (match-beginning 0)
;;(match-end 0)
(line-end-position))
  'face 'bold))
((string= priority C)
 (overlay-put (make-overlay (match-beginning 0)
;;(match-end 0)
(line-end-position))
  'face 'italic

(add-hook 'org-finalize-agenda-hook 'org-fontify-priorities)

John


___
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] Modify org-remember-templates to include a name to show when selecting it

2007-10-10 Thread Matiyam
Hi!

In my setup i have 5 org-remember-templates.

Since my memory is not very good :), i have modified org-remember-templates
to include another element in the list that tells me the name of it.

And then org-remember-apply-template to, when prompting for selecting the
template, show the name along with the keycode.

Something like:

Select template: Work (w) Home (h)

I think the patch is easy enough, so i haven't created a bug.

I hope this helps somebody.

Thanks for org-mode, it's helping me a lot!!!

-- M

---
=== modified file 'org.el'
--- org.el  2007-10-10 09:37:27 +
+++ org.el  2007-10-10 10:05:28 +
@@ -1411,11 +1411,14 @@
 (defcustom org-remember-templates nil
   Templates for the creation of remember buffers.
 When nil, just let remember make the buffer.
-When not nil, this is a list of 4-element lists.  In each entry, the first
+When not nil, this is a list of 5-element lists.  In each entry, the first
 element is a character, a unique key to select this template.
-The second element is the template.  The third element is optional and can
+The second element is a string that will appear when you are prompted to
+select which template to use, so it's easier to choose one when you have 
+more than a couple of them.
+The third element is the template.  The fourth element is optional and can
 specify a destination file for remember items created with this template.
-The default file is given by `org-default-notes-file'.  An optional forth
+The default file is given by `org-default-notes-file'.  An optional fifth
 element can specify the headline in that file that should be offered
 first when the user is asked to file the entry.  The default headline is
 given in the variable `org-remember-default-headline'.
@@ -12445,10 +12448,10 @@
(t
 (message Select template: %s
  (mapconcat
-  (lambda (x) (char-to-string (car x)))
+  (lambda (x) (format %s (%s) (cadr x)
(char-to-string (car x
   org-remember-templates  ))
 (read-char-exclusive)
-(entry (cdr (assoc char org-remember-templates)))
+(entry (cddr (assoc char org-remember-templates)))
 (tpl (car entry))
 (plist-p (if org-store-link-plist t nil))
 (file (if (and (nth 1 entry) (stringp (nth 1 entry))


=== modified file 'org.el'
--- org.el	2007-10-10 09:37:27 +
+++ org.el	2007-10-10 10:05:28 +
@@ -1411,11 +1411,14 @@
 (defcustom org-remember-templates nil
   Templates for the creation of remember buffers.
 When nil, just let remember make the buffer.
-When not nil, this is a list of 4-element lists.  In each entry, the first
+When not nil, this is a list of 5-element lists.  In each entry, the first
 element is a character, a unique key to select this template.
-The second element is the template.  The third element is optional and can
+The second element is a string that will appear when you are prompted to
+select which template to use, so it's easier to choose one when you have 
+more than a couple of them.
+The third element is the template.  The fourth element is optional and can
 specify a destination file for remember items created with this template.
-The default file is given by `org-default-notes-file'.  An optional forth
+The default file is given by `org-default-notes-file'.  An optional fifth
 element can specify the headline in that file that should be offered
 first when the user is asked to file the entry.  The default headline is
 given in the variable `org-remember-default-headline'.
@@ -12445,10 +12448,10 @@
 			(t
 			 (message Select template: %s
   (mapconcat
-   (lambda (x) (char-to-string (car x)))
+   (lambda (x) (format %s (%s) (cadr x) (char-to-string (car x
    org-remember-templates  ))
 			 (read-char-exclusive)
-	 (entry (cdr (assoc char org-remember-templates)))
+	 (entry (cddr (assoc char org-remember-templates)))
 	 (tpl (car entry))
 	 (plist-p (if org-store-link-plist t nil))
 	 (file (if (and (nth 1 entry) (stringp (nth 1 entry))


___
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: Code snippet for bolding or italicizing A/C priority strings

2007-10-10 Thread Rainer Stengele
John Wiegley schrieb:
 John Wiegley [EMAIL PROTECTED] writes:
 
 This code snippet will modify your agenda buffer upon creation so that the
 string [#A] is bolded, and [#C] is italicized.  It keeps whatever color it
 had, it's just now strong or weak based on priority.
 
 Actually, I'm finding I like having the whole title bolded or italicized, just
 like Gnus does:
 
 (defun org-fontify-priorities ()
   (interactive)
   (save-excursion
 (let ((inhibit-read-only t))
   (goto-char (point-min))
   (while (re-search-forward \\[#\\([A-C]\\)\\] nil t)
   (let ((priority (match-string 1)))
 (cond ((string= priority A)
(overlay-put (make-overlay (match-beginning 0)
   ;;(match-end 0)
   (line-end-position))
 'face 'bold))
   ((string= priority C)
(overlay-put (make-overlay (match-beginning 0)
   ;;(match-end 0)
   (line-end-position))
 'face 'italic
 
 (add-hook 'org-finalize-agenda-hook 'org-fontify-priorities)
 
 John
 
 
 ___
 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
 

Excellent! I appreciate your function very much!
It helps a lot to get a better overview in the agenda!

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] Re: Html export suggestion (use of div)

2007-10-10 Thread cezar

Carsten Dominik [EMAIL PROTECTED] writes:

 I have no opinion and no knowledge to decide this question - please
 work it out among yourselves and tell me what needs to be done.

 Thanks.

 How would that work without divs? The problem is (I think) that
 sometimes an org section is represented in html as a header plus
 following text:

 h3HEADER TEXT/h3
 pBODY TEXT/p
 pMORE BODY TEXT/p

I thing this ^^^ is good but should have the category name as a class
like this:

h3 class=work
  Header here
/h3
p class=work
  normal text
/p
p class=work
  some more text
/p

h3 class=school
  Header here
/h3
p class=school
  normal text
/p
p class=school
  some more text
/p

Also a div should be optional for those who need it, so the whole
category can be wraped in a div class=category/div like this:


div class=work
  h3 class=work
Header here
  /h3
  p class=work
normal text
  /p
  p class=work
some more text
  /p
/div

div class=school  
  h3 class=school
Header here
  /h3
  p class=school
normal text
  /p
  p class=school
some more text
  /p
/div

Maybe by using a tag or something !


Cheers,
Cezar



___
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: Html export suggestion (use of div)

2007-10-10 Thread cezar
[EMAIL PROTECTED] writes:

 Also a div should be optional for those who need it, so the whole
 category can be wraped in a div class=category/div like this:


 div class=work
   h3 class=work
 Header here
   /h3
   p class=work
 normal text
   /p
   p class=work
 some more text
   /p
 /div

 div class=school  
   h3 class=school
 Header here
   /h3
   p class=school
 normal text
   /p
   p class=school
 some more text
   /p
 /div

 Maybe by using a tag or something !


Actually in this case, we don't need the class on each element, just the
div:

div class=school  
  h3
Header here
  /h3
  p
normal text
  /p
  p
some more text
  /p
/div



___
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] depending TODOs, scheduling following TODOs automatically

2007-10-10 Thread Bastien
Eddward DeVilla [EMAIL PROTECTED] writes:

 If org becomes popular enough that people pass data around in it, then
 it could be more of an issue.  Especially since I think the triggers
 would be in drawers which are all always hidden unless you go and
 explicitly open each one.

The pool of (possibly) triggered actions would have two purposes then:

- make the list of current triggers for this file *visible*;
- selectively let the user prevent an action to be triggered.

And as proposed before, we could also have a set of `safe-org-triggers'.

-- 
Bastien


___
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: bug report with org 5.11b and remember 1.19

2007-10-10 Thread Austin Frank
On Wed, Oct 10 2007, Carsten Dominik wrote:

 This happens because you are calling `remember-mode' interactively.
 Org-mode assumes that the command you are using is either `remember'
 or `org-remember'.  What are you calling `remember-mode'?  What are
 you trying to achieve?

Carsten--

So far I am just trying to mirror the setup described in John Wiegley's
day planner tutorial.  Eventually there are some things I mean to
customize to fit my work flow, but for now I've just been working on
replicating John's set up.  Thanks for the help with this!  Your post
helped me find my error.

I had

(global-set-key \C-cr 'remember-mode)

when I should have had

(global-set-key \C-cr 'remember)

Making this change has everything working as advertised.

Thanks again,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc


pgpT6N5xC7i06.pgp
Description: PGP signature
___
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: Modify org-remember-templates to include a name to show when selecting it

2007-10-10 Thread Rainer Stengele
Matiyam schrieb:
 Hi!
 
 In my setup i have 5 org-remember-templates.
 
 Since my memory is not very good :), i have modified org-remember-templates
 to include another element in the list that tells me the name of it.
 
 And then org-remember-apply-template to, when prompting for selecting the
 template, show the name along with the keycode.
 
 Something like:
 
 Select template: Work (w) Home (h)
 
 I think the patch is easy enough, so i haven't created a bug.
 
 I hope this helps somebody.
 
 Thanks for org-mode, it's helping me a lot!!!
 
 -- M
 
 ---
 === modified file 'org.el'
 --- org.el  2007-10-10 09:37:27 +
 +++ org.el  2007-10-10 10:05:28 +
 @@ -1411,11 +1411,14 @@
  (defcustom org-remember-templates nil
Templates for the creation of remember buffers.
  When nil, just let remember make the buffer.
 -When not nil, this is a list of 4-element lists.  In each entry, the first
 +When not nil, this is a list of 5-element lists.  In each entry, the first
  element is a character, a unique key to select this template.
 -The second element is the template.  The third element is optional and can
 +The second element is a string that will appear when you are prompted to
 +select which template to use, so it's easier to choose one when you have 
 +more than a couple of them.
 +The third element is the template.  The fourth element is optional and can
  specify a destination file for remember items created with this template.
 -The default file is given by `org-default-notes-file'.  An optional forth
 +The default file is given by `org-default-notes-file'.  An optional fifth
  element can specify the headline in that file that should be offered
  first when the user is asked to file the entry.  The default headline is
  given in the variable `org-remember-default-headline'.
 @@ -12445,10 +12448,10 @@
 (t
  (message Select template: %s
   (mapconcat
 -  (lambda (x) (char-to-string (car x)))
 +  (lambda (x) (format %s (%s) (cadr x)
 (char-to-string (car x
org-remember-templates  ))
  (read-char-exclusive)
 -(entry (cdr (assoc char org-remember-templates)))
 +(entry (cddr (assoc char org-remember-templates)))
  (tpl (car entry))
  (plist-p (if org-store-link-plist t nil))
  (file (if (and (nth 1 entry) (stringp (nth 1 entry))
 
 
 
 
 
 
 ___
 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

sounds very useful for me too. Carsten, I vote to include this in the
standard.

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