Re: [Orgmode] Setting org-log-into-drawer in a property

2009-05-20 Thread Daniel J. Sinder

As Carsten Dominik so eloquently wrote on 5/19/2009 1:38 AM:


On May 19, 2009, at 7:54 AM, Daniel J. Sinder wrote:

Most of my tasks have only one state change (TODO-DONE), so I like 
to be able to quickly see my log notes by fully expanding all 
headings in a sub-tree.  Thus, I do NOT use the LOGBOOK property.


However, for repeating items the list of log entries can get quite 
long.  If I fully expand a sub-tree with a repeating task, the log 
notes push the rest of the tree off the screen.  I'd rather if *only* 
repeating tasks (and perhaps select other tasks) used the LOGBOOK 
property to keep the log notes hidden in a drawer.


This brings me to my question and possible feature request.  The 
LOGGING property allows us to set logging preference on a sub-tree 
basis.  Is it possible to set the value of org-log-into-drawer on a 
sub-tree basis, either via the LOGGING property or some other 
property?  If not, would it be possible to add this capability?


That does make sense.

Please use the new LOG_INTO_DRAWER property for this purpose.

- Carsten



(Being more precise (see *emphasis*) to avoid claiming credit for 
something I had nothing to do with)


Carsten,

I subscribed to this list in April '06, and I remember suggesting the
*note* logging feature later that year
(http://article.gmane.org/gmane.emacs.orgmode/612).  The next release
(version 4.50) included *note* logging.  Incredibly, three years later, 
despite

the explosive growth of orgmode and its community of users  developers,
you still implemented my feature request (coincidentally related to
logging) within a day!

Three years ago, I eagerly absorbed each new feature.  Now, although I'm
still an avid user of orgmode, the growth in my personal use lags behind
the pace of development, and there are many new features that I have not
even touched.  In fact, I often can't even keep up with the volume of
this list.  Yet, the new features have little or no impact on the
features I do use, even though I keep my version nearly at the bleeding
edge via git.  This is just great software design and management!

Anyway, this is my way of saying a profound thank you for a great tool
and superb support.

Dan



___
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


[Orgmode] Re: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Baoqiu Cui
Hi Dale,

Dale Smith dsm...@vtiinstruments.com writes:

 {{{maxro}}} expansion does not happen for docbook export until an html
 export is done.  After that, macros seems to be expanded properly for
 docbook export.

Thanks for reporting this bug.  For some reason I missed the coverage of
macro support in DocBook exporter, and the bug was caused by an
optimization that I thought I did in the code...  Variable
org-export-opt-plist should have been set but it was not in DocBook
exporter.

Attached please find the patch for the fix.  Please let me know if it
works.

Thanks,
Baoqiu

diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el
index eab30d8..11f65e3 100644
--- a/lisp/org-docbook.el
+++ b/lisp/org-docbook.el
@@ -419,9 +419,10 @@ publishing directory.
 			 (+ (funcall outline-level)
 (if org-odd-levels-only 1 0)))
 			 0))
-	 (opt-plist (if subtree-p
-			(org-export-add-subtree-options opt-plist rbeg)
-		  opt-plist))
+	 (opt-plist (setq org-export-opt-plist
+			  (if subtree-p
+			  (org-export-add-subtree-options opt-plist rbeg)
+			opt-plist)))
 	 ;; The following two are dynamically scoped into other
 	 ;; routines below.
 	 (org-current-export-dir
___
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] Setting org-log-into-drawer in a property

2009-05-20 Thread Carsten Dominik

Hi Daniel,

On May 20, 2009, at 7:56 AM, Daniel J. Sinder wrote:


As Carsten Dominik so eloquently wrote on 5/19/2009 1:38 AM:


On May 19, 2009, at 7:54 AM, Daniel J. Sinder wrote:

Most of my tasks have only one state change (TODO-DONE), so I  
like to be able to quickly see my log notes by fully expanding all  
headings in a sub-tree.  Thus, I do NOT use the LOGBOOK property.


However, for repeating items the list of log entries can get quite  
long.  If I fully expand a sub-tree with a repeating task, the log  
notes push the rest of the tree off the screen.  I'd rather if  
*only* repeating tasks (and perhaps select other tasks) used the  
LOGBOOK property to keep the log notes hidden in a drawer.


This brings me to my question and possible feature request.  The  
LOGGING property allows us to set logging preference on a sub-tree  
basis.  Is it possible to set the value of org-log-into-drawer on  
a sub-tree basis, either via the LOGGING property or some other  
property?  If not, would it be possible to add this capability?


That does make sense.

Please use the new LOG_INTO_DRAWER property for this purpose.

- Carsten


Carsten,

I subscribed to this list in April '06, and I remember suggesting  
the logging feature later that year (http://article.gmane.org/gmane.emacs.orgmode/612 
).  The next release (version 4.50) included logging.  Incredibly,  
three years later, despite the explosive growth of orgmode and its  
community of users  developers, you still implemented my feature  
request (coincidentally related to logging) within a day!


Three years ago, I eagerly absorbed each new feature.  Now, although  
I'm still an avid user of orgmode, the growth in my personal use  
lags behind the pace of development, and there are many new features  
that I have not even touched.  In fact, I often can't even keep up  
with the volume of this list.


Yet, the new features have little or no impact on the features I do  
use, even though I keep my version nearly at the bleeding edge via  
git.


I am glad you say this, because when we fail to make the simple core  
survive, we will have lost our way.




This is just great software design and management!

Anyway, this is my way of saying a profound thank you for a great  
tool and superb support.


Thank you for your nice words.

- 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] Gather all high-priority (A) items in the agenda view

2009-05-20 Thread Manish
On Wed, May 20, 2009 at 3:27 AM, Marcelo de Moraes Serpa wrote:
 Hello list!

 Is there a way to query for all the high-priority items in the
 agenda view?

http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php
http://article.gmane.org/gmane.emacs.orgmode/10819

-- 
Manish


___
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] [ANN] [Solved] org-crypt Version 0.3

2009-05-20 Thread Ian Barton

Ian Barton wrote:


The attached version of org-crypt fixes a few bugs and is just about
ready to be included in org proper.  The only thing it might need before
inclusion in org is automatic encryption via hooks.


Peter,
I have just been trying out org-crypt. With a minimal org file:

-*- mode: org; before-save-hook: (org-encrypt-entries) -*-
#+STARTUP: showall
#+STARTUP: hidestars

* Headline 1

* Headline 2 :crypt:
-BEGIN PGP MESSAGE-
Version: GnuPG v1.4.9 (GNU/Linux)

[Rest of buffer deleted]

I get the following error:

---
The local variables list in test_crypt.org contains variables that are 
risky (**).


Do you want to apply it?

** before-save-hook: (org-encrypt-entries)
---

I am presuming that this error is coming from org. Any idea what might 
be causing it?




I have now fixed this by adding:

(setq safe-local-variable-values (quote ((before-save-hook 
org-encrypt-entries


to my .emacs.

Ian.


___
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] recursive todo/checkbox statistics

2009-05-20 Thread Carsten Dominik

Hi Alexander,

in the latest git version you can do

(setq org-hierarchical-todo-statistics nil)

Or, if you want this only for specific trees, you can
set a property[1]

:COOKIE_DATA: todo recursive

HTH

- Carsten

[1] The todo part in the property is unnecessary if the
entry does not have checkboxes

On May 19, 2009, at 4:13 PM, Alexander wrote:


Hi,

I've now switched to following the development version because several
things that I've wanted have been implemented in the short time I've
been using org-mode already! And I was impressed with orgmode at the
outset...

I tried version 6.26trans, and the hierarchical checkbox statistics
works as expected. But I can't get the same behavior for TODO's. I
just wanted to check that this is correct - that I'm not doing
something wrong.

Maybe I should explain more what I use org-mode for in this case to
make things clearer. I use it to keep track of the readings I have to
do for a qualifying exam. I categorize the readings according to
topic, and then track the progress of each reading as a TODO. The
reason I want to be able to check the global number of readings is to
make sure that I'm keeping the right pace. The list is pretty long
(223 entries in ~20 topics), so it's cumbersome to do by hand.

This is a better representation of the file I use:

* readings [0/0]
 :PROPERTIES:
 :COOKIE_DATA: todo
 :END:
** topic a
*** TODO book 1
*** TODO book 2
** topic b
*** TODO article 1
*** TODO article 2
** topic c
*** TODO book 1
*** TODO article 2

So is it possible to have the cookie at the top count the TODO's at
the lower levels?

If not, it's not a big problem really - I can count them reasonably
using grep and wc, but it just seems like a combination of
hierarchical-checkbox-statistics and COOKIE_DATA: todo would do it?

Best,

Alexander


On 5/19/09, Carsten Dominik carsten.domi...@gmail.com wrote:

We have had the same discussion recently about checkboxes,
and added a variable org-hierarchical-checkbox-statistics.

However, my personal view is that the outline hierarchy is
different, because if you are organizing tasks into a hierarchy,
so it does not make sense to add TODO's on different levels.

- Carsten

On May 19, 2009, at 12:11 AM, Alexander wrote:


Hi,

Forgive me if there is an obvious way to do this that I haven't  
found.


Is there an easy way to calculate the total number of  tasks for a
file or a subtree?
For example, if the checkbox/todo progress cookie would calculate  
the

number of checkboxes/todos recursively for a subtree.

so that this:

* TODO heading 1 [1/3]
** DONE task A
** TODO task B
** TODO task C
*** TODO task C1
*** TODO task C2

would be this instead:

* TODO heading 1 [1/5]
** DONE task A
** TODO task B
** TODO task C
*** TODO task C1
*** TODO task C2

I would be fine with any other solution as well, it was just that it
seems closest to the checkbox/todo functionality.

Thanks you,

Alexander


___
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


[Orgmode] colview min/mean/max

2009-05-20 Thread Mikael Fornius

I have changed my org-colview.el so that it is possible to get min, mean
and max values calculated instead of just sums in the table summaries.

I use orgmode as a dayplanner and physical exercise diary.

My exercise data is stored as properties in a year-month-day tree and
it is very nice for med to get an overview of my fastest run or average
heartrate over time with columnview. 

If you developers like it I can make the same changes to
org-colview-xemacs.el and document it in the manual for use in future
releases?

New column operators: min, mean, max, :min, :mean, :max. When prefixed
with ':' use timevalue output format.

Example (I measure speed in min/km):

#+COLUMNS:  %DISTANCE{+;%.1f} %HEARTRATE{mean;%.1f} %MAXHEARTRATE{max} 
%SPEED{:min} 

Here is the patch:
diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 377343d..04bfeb0 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -869,12 +869,13 @@ Don't set this, this is meant for dynamic scoping.)
   (interactive)
   (let* ((re (concat ^ outline-regexp))
 	 (lmax 30) ; Does anyone use deeper levels???
-	 (lsum (make-vector lmax 0))
+	 (lvals (make-vector lmax nil))
 	 (lflag (make-vector lmax nil))
 	 (level 0)
 	 (ass (assoc property org-columns-current-fmt-compiled))
 	 (format (nth 4 ass))
 	 (printf (nth 5 ass))
+	 (fun (nth 6 ass))
 	 (beg org-columns-top-level-marker)
 	 last-level val valflag flag end sumpos sum-alist sum str str1 useval)
 (save-excursion
@@ -892,7 +893,7 @@ Don't set this, this is meant for dynamic scoping.)
 	(cond
 	 (( level last-level)
 	  ;; put the sum of lower levels here as a property
-	  (setq sum (aref lsum last-level)   ; current sum
+	  (setq sum (apply fun (aref lvals last-level))
 		flag (aref lflag last-level) ; any valid entries from children?
 		str (org-columns-number-to-string sum format printf)
 		str1 (org-add-props (copy-sequence str) nil 'org-computed t 'face 'bold)
@@ -908,18 +909,18 @@ Don't set this, this is meant for dynamic scoping.)
 	(org-entry-put nil property (if flag str val)))
 	  ;; add current to current  level accumulator
 	  (when (or flag valflag)
-	(aset lsum level (+ (aref lsum level)
-(if flag sum (org-column-string-to-number
-	  (if flag str val) format
+	(push (if flag sum
+		(org-column-string-to-number (if flag str val) format))
+		  (aref lvals level))
 	(aset lflag level t))
 	  ;; clear accumulators for deeper levels
 	  (loop for l from (1+ level) to (1- lmax) do
-		(aset lsum l 0)
+		(aset lvals l nil)
 		(aset lflag l nil)))
 	 ((= level last-level)
 	  ;; add what we have here to the accumulator for this level
-	  (aset lsum level (+ (aref lsum level)
-			  (org-column-string-to-number (or val 0) format)))
+	  (push (org-column-string-to-number (or val 0) format)
+		(aref lvals level))
 	  (and valflag (aset lflag level t)))
 	 (t (error This should not happen)))
 
@@ -990,23 +991,34 @@ Don't set this, this is meant for dynamic scoping.)
 (if (equal s [X]) 1. 0.01))
(t (string-to-number s
 
+(defvar org-columns-compile-map
+  '((: add_times +) 
+(+ add_numbers   +) 
+($ currency  +) 
+(X checkbox  +) 
+(X/checkbox-n-of-m   +) 
+(X%checkbox-percent  +)
+(max   add_numbers   max)   
+(min   add_numbers   min)  
+(mean  add_numbers   (lambda (rest x) (/ (apply '+ x) (float (length x)
+(:max  add_times max)   
+(:min  add_times min)  
+(:mean add_times (lambda (rest x) (/ (apply '+ x) (float (length x))
+  Operator - format,fuction map.)
+
 (defun org-columns-uncompile-format (cfmt)
   Turn the compiled columns format back into a string representation.
-  (let ((rtn ) e s prop title op width fmt printf)
+  (let ((rtn ) e s prop title op op-match width fmt printf)
 (while (setq e (pop cfmt))
   (setq prop (car e)
 	title (nth 1 e)
 	width (nth 2 e)
 	op (nth 3 e)
 	fmt (nth 4 e)
-	printf (nth 5 e))
-  (cond
-   ((eq fmt 'add_times) (setq op :))
-   ((eq fmt 'checkbox) (setq op X))
-   ((eq fmt 'checkbox-n-of-m) (setq op X/))
-   ((eq fmt 'checkbox-percent) (setq op X%))
-   ((eq fmt 'add_numbers) (setq op +))
-   ((eq fmt 'currency) (setq op $)))
+	printf (nth 5 e)
+	fun (nth 6 e))
+  (when (setq op-match (rassoc (list fmt fun) org-columns-compile-map))
+	(setq op (car op-match)))
   (if (and op printf) (setq op (concat op ; printf)))
   (if (equal title prop) (setq title nil))
   (setq s (concat % (if width (number-to-string width))
@@ -1025,8 +1037,9 @@ titlethe title field for the columns
 widththe column width in characters, can be nil for automatic
 operator the operator if any
 format   the output format for computed results, derived from operator
-printf   a printf format for computed values
-  

[Orgmode] how to change the font color of the hidden leading star in custom theme?

2009-05-20 Thread Jevgeni Holodkov
Hi,

  I am using org-mode with option Hiding leading stars enabled.
However, since I am using a non standard theme - my background is dark
blue, the stars are visible, since their color is black. I org manual
it is said, that I may have to customize something, in order to hide
these stars, such as setting the font color. How can I change the font
of the hidden star and align it with my background?

Thanks and best regards,
Jevgeni Holodkov


___
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] html export with htmlized code blocks [SOLVED]

2009-05-20 Thread Dirk-Jan C. Binnema
Hi Dan,

Op Tue 19 May 2009, om 21:10 (+0200) schreef Dan Davison:

 
 Dirk-Jan C. Binnema djcb.b...@gmail.com writes:
 
 
  I seems that I should be able to automate that a bit... ie., maybe
  something like:
 
  #+BEGIN_CODE(perl)
  print hello, world!;
  #+END_CODE
 
 
  But I'm not really sure if that would be the best approach. Did anyone
  do something like this before?
 
 Hi Dirk,
 
 I think what you are describing is achieved by
 
 * some heading
 #+BEGIN_SRC perl
 print hello, world!;
 #+END_SRC
 
 Then you just export the buffer as HTML.
 
 See 
 
 http://orgmode.org/manual/Literal-examples.html#Literal-examples
 
 Sorry if I've misunderstood.

Wow, exactly what I was looking for! [/me falls from chair in
amazement]. Org-mode is even more fantastic than I thought. Silly me for
not finding that in the docs.

Thanks!!
Dirk.

-- 
Dirk-Jan C. Binnema  Helsinki, Finland
e:d...@djcbsoftware.nl   w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C


___
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] recursive todo/checkbox statistics

2009-05-20 Thread Alexander
Thanks!

It works great. However, I can't get it to work on a per-file basis, ie with:
#+COOKIE_DATA: recursive

It works fine for my purposes - I just set it on a per-tree basis, but
I don't know if this is desired behavior or not.

Best,

Alexander


On 5/20/09, Carsten Dominik carsten.domi...@gmail.com wrote:
 Hi Alexander,

 in the latest git version you can do

 (setq org-hierarchical-todo-statistics nil)

 Or, if you want this only for specific trees, you can
 set a property[1]

 :COOKIE_DATA: todo recursive

 HTH

 - Carsten

 [1] The todo part in the property is unnecessary if the
  entry does not have checkboxes

 On May 19, 2009, at 4:13 PM, Alexander wrote:

 Hi,

 I've now switched to following the development version because several
 things that I've wanted have been implemented in the short time I've
 been using org-mode already! And I was impressed with orgmode at the
 outset...

 I tried version 6.26trans, and the hierarchical checkbox statistics
 works as expected. But I can't get the same behavior for TODO's. I
 just wanted to check that this is correct - that I'm not doing
 something wrong.

 Maybe I should explain more what I use org-mode for in this case to
 make things clearer. I use it to keep track of the readings I have to
 do for a qualifying exam. I categorize the readings according to
 topic, and then track the progress of each reading as a TODO. The
 reason I want to be able to check the global number of readings is to
 make sure that I'm keeping the right pace. The list is pretty long
 (223 entries in ~20 topics), so it's cumbersome to do by hand.

 This is a better representation of the file I use:

 * readings [0/0]
  :PROPERTIES:
  :COOKIE_DATA: todo
  :END:
 ** topic a
 *** TODO book 1
 *** TODO book 2
 ** topic b
 *** TODO article 1
 *** TODO article 2
 ** topic c
 *** TODO book 1
 *** TODO article 2

 So is it possible to have the cookie at the top count the TODO's at
 the lower levels?

 If not, it's not a big problem really - I can count them reasonably
 using grep and wc, but it just seems like a combination of
 hierarchical-checkbox-statistics and COOKIE_DATA: todo would do it?

 Best,

 Alexander


 On 5/19/09, Carsten Dominik carsten.domi...@gmail.com wrote:
 We have had the same discussion recently about checkboxes,
 and added a variable org-hierarchical-checkbox-statistics.

 However, my personal view is that the outline hierarchy is
 different, because if you are organizing tasks into a hierarchy,
 so it does not make sense to add TODO's on different levels.

 - Carsten

 On May 19, 2009, at 12:11 AM, Alexander wrote:

 Hi,

 Forgive me if there is an obvious way to do this that I haven't
 found.

 Is there an easy way to calculate the total number of  tasks for a
 file or a subtree?
 For example, if the checkbox/todo progress cookie would calculate
 the
 number of checkboxes/todos recursively for a subtree.

 so that this:

 * TODO heading 1 [1/3]
 ** DONE task A
 ** TODO task B
 ** TODO task C
 *** TODO task C1
 *** TODO task C2

 would be this instead:

 * TODO heading 1 [1/5]
 ** DONE task A
 ** TODO task B
 ** TODO task C
 *** TODO task C1
 *** TODO task C2

 I would be fine with any other solution as well, it was just that it
 seems closest to the checkbox/todo functionality.

 Thanks you,

 Alexander


 ___
 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


[Orgmode] Re: colview min/mean/max

2009-05-20 Thread Mikael Fornius

I forgot to make org-columns-edit-attributes be fully comptiable with
new operators so I will fix this and I will make this change for
org-colview-xemacs as well.

Finally update manual and make a new post here.

-- 
Mikael Fornius


___
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] how to change the font color of the hidden leading star in custom theme?

2009-05-20 Thread Matthew Lundin
Hi Jevgeni,

Jevgeni Holodkov jevgeni.holod...@gmail.com writes:

   I am using org-mode with option Hiding leading stars enabled.
 However, since I am using a non standard theme - my background is dark
 blue, the stars are visible, since their color is black. I org manual
 it is said, that I may have to customize something, in order to hide
 these stars, such as setting the font color. How can I change the font
 of the hidden star and align it with my background?

You can type:

M-x customize-face RET org-hide RET

You can then change the face's foreground color to match your
background.

Regards,
Matt


___
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] positioning inline image

2009-05-20 Thread Eric Schulte
Carsten Dominik carsten.domi...@gmail.com writes:

 On May 20, 2009, at 12:56 AM, Marvin Doyley wrote:

 Hi everyone,

 Does anyone knows how to vary the position of inline images. The
 default position appear to be is center, but it would be nice to
 vary the location especially when exporting as html

 I am not sure.

 http://orgmode.org/manual/Images-in-HTML-export.html#Images-in-HTML-export

 shows how to add attributes to the img tag, but that may not be enough.


I've actually been wondering this myself, and the attributes line did
the trick for me.  The position (left, center, right) of the image can
be controlled with the float style directive.

#+ATTR_HTML: style=float:left
[[file:out.png]]

This actually works for images exported using org-exp-blocks as well,
which was a nice surprise.

Thanks -- Eric


 I don't know much about HTML.  Can you describe what kind of HTML code
 you'd like to generate to vary the position of an image?

 - 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


___
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] how to change the font color of the hidden leading star in custom theme?

2009-05-20 Thread Spike Spiegel
 You can type:

 M-x customize-face RET org-hide RET

 You can then change the face's foreground color to match your
 background.

I can toggle it on/off but I can't set the colour, is that a new
thing? I'm running a somewhat oldish 6.21

thanks

-- 
Behind every great man there's a great backpack - B.


___
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: colview min/mean/max

2009-05-20 Thread Carsten Dominik


On May 20, 2009, at 3:21 PM, Mikael Fornius wrote:



I forgot to make org-columns-edit-attributes be fully comptiable with
new operators so I will fix this and I will make this change for
org-colview-xemacs as well.

Finally update manual and make a new post here.


No hurry, better to get it complete and tested...

:-)

- Carsten



--
Mikael Fornius


___
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: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Dale Smith
Baoqiu Cui cbao...@yahoo.com writes:

 Thanks for reporting this bug.  For some reason I missed the coverage of
 macro support in DocBook exporter, and the bug was caused by an
 optimization that I thought I did in the code...  Variable
 org-export-opt-plist should have been set but it was not in DocBook
 exporter.

 Attached please find the patch for the fix.  Please let me know if it
 works.

Works great!

This bug may be related to another I noticed.  I don't yet have a clear
picture yet of what is (not) going on.  Basically, the time reported
by modification time was just plain wrong.  By over a day.  And I
*know* I just saved the file.

I'm guessing now that the property was cached.  If so, that property
should *not* be. It really needs to be fresh every time an export is
done.

-Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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] positioning inline image

2009-05-20 Thread Marvin Doyley

Thanks

cheers
MMD
On May 20, 2009, at 9:33 AM, Eric Schulte wrote:


Carsten Dominik carsten.domi...@gmail.com writes:


On May 20, 2009, at 12:56 AM, Marvin Doyley wrote:


Hi everyone,

Does anyone knows how to vary the position of inline images. The
default position appear to be is center, but it would be nice to
vary the location especially when exporting as html


I am not sure.

http://orgmode.org/manual/Images-in-HTML-export.html#Images-in-HTML-export

shows how to add attributes to the img tag, but that may not be  
enough.




I've actually been wondering this myself, and the attributes line did
the trick for me.  The position (left, center, right) of the image can
be controlled with the float style directive.

#+ATTR_HTML: style=float:left
[[file:out.png]]

This actually works for images exported using org-exp-blocks as well,
which was a nice surprise.

Thanks -- Eric



I don't know much about HTML.  Can you describe what kind of HTML  
code

you'd like to generate to vary the position of an image?

- 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






___
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] Gather all high-priority (A) items in the agenda view

2009-05-20 Thread Marcelo de Moraes Serpa
Thank you.

On Wed, May 20, 2009 at 2:58 AM, Manish mailtomanish.sha...@gmail.comwrote:

 On Wed, May 20, 2009 at 3:27 AM, Marcelo de Moraes Serpa wrote:
  Hello list!
 
  Is there a way to query for all the high-priority items in the
  agenda view?

 http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php
 http://article.gmane.org/gmane.emacs.orgmode/10819

 --
 Manish

___
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: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Baoqiu Cui
Dale Smith dsm...@vtiinstruments.com writes:

 Baoqiu Cui cbao...@yahoo.com writes:

 Thanks for reporting this bug.  For some reason I missed the coverage of
 macro support in DocBook exporter, and the bug was caused by an
 optimization that I thought I did in the code...  Variable
 org-export-opt-plist should have been set but it was not in DocBook
 exporter.

 Attached please find the patch for the fix.  Please let me know if it
 works.

 Works great!

Thanks for the confirmation.

 This bug may be related to another I noticed.  I don't yet have a clear
 picture yet of what is (not) going on.  Basically, the time reported
 by modification time was just plain wrong.  By over a day.  And I
 *know* I just saved the file.

 I'm guessing now that the property was cached.  If so, that property
 should *not* be. It really needs to be fresh every time an export is
 done.

I am not able to reproduce this problem.  I tried adding the following
line in an Org file

   {{{modification-time(%Y-%m-%d %H:%M:%S)}}}

and then tried to save the file multiple times with minor changes, and
was able to consistently get the correct time in the exported DocBook
file.

Baoqiu



___
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: {{{macro}}} expansion not working properly for docbook export

2009-05-20 Thread Dale Smith
Baoqiu Cui cbao...@yahoo.com writes:

 This bug may be related to another I noticed.  I don't yet have a clear
 picture yet of what is (not) going on.  Basically, the time reported
 by modification time was just plain wrong.  By over a day.  And I
 *know* I just saved the file.

 I'm guessing now that the property was cached.  If so, that property
 should *not* be. It really needs to be fresh every time an export is
 done.

 I am not able to reproduce this problem.  I tried adding the following
 line in an Org file

{{{modification-time(%Y-%m-%d %H:%M:%S)}}}

 and then tried to save the file multiple times with minor changes, and
 was able to consistently get the correct time in the exported DocBook
 file.

Indeed is *is* now working correctly.  So I guessing that the time was
frozen at the point I did an html export.  Now that the docbook
exporter is generating the properties, the time is being updated.
Yay!

Thanks again,
  -Dale

-- 
Dale P. Smith
da...@vtiinstruments.com
216-447-4059 x2018
216-447-8951 FAX

(Company mandated disclaimer follows...)

The information in this e-mail and any attachments is intended solely
for use by the recipient(s) to whom this e-mail is addressed and may
contain confidential and/or privileged information which is exempt
from disclosure.  If you are not an intended recipient, or an employee
or agent responsible for delivering this message to the intended
recipient, you are hereby notified that you have received this e-mail
and any attachments in error and that dissemination, distribution,
review or copying of this e-mail and its attachments is strictly
prohibited.  If you have received this e-mail in error, please notify
the sender immediately and delete all electronic and paper copies of
this e-mail as well as any attachments.
Thank you.

http://www.vtiinstruments.com/images/vtiemaillogo.gif


___
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] Integrating the journaling system with the GTD system

2009-05-20 Thread Marcelo de Moraes Serpa
I keep a journal using the simple journal-mode, and eventually, journal
entries give origin to new items (projects or next actions, in the GTD
context).

When you are writing the journal post, and if a project, next action comes
to your mind, you don't want to switch context and go to the org file to add
this entry. So, what I thought was to either:
 * Add each journal file to the agenda list (which could be inefficient, as
the list would eventually grow too big, not sure how this would affect
performance?)
 * Copy these entries to the main gtd.org file

The objective is to do it automagically, when saving the file (or in the
case of the first option, when the file is created).

However, I would need to mark them somehow, maybe between tags? Like:
[gtd][/inbox] (means it should go to the gtd.org file)
[inbox][/inbox] (means it is unprocessed info that should go into the
inbox.org file, just as remember-org does)

This way, we would have a nice and simple journaling system that would
integrate itself with the GTD system. The only thing lacking would be a UI
to browse the journal entries (to give the overview), but I'm planning to
develop one soon, following the agenda overview view.

I find journaling a very good habit that helps you to dump your thoughts and
reflect on them. It sits on the reference category of GTD. I used to use a
tomboy daily note, but it got lost in the myriad of other notes I had, so I
started using emacs -- and that's why I'd like to develop a view that showed
me something like:
  Year
|___ Month
|_ Day:Weekday

But this is another story :)

Thanks,

Marcelo.
___
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: colview min/mean/max

2009-05-20 Thread Mikael Fornius

This is my suggestion of an implementation of min/mean/max computation
in columnview summaries. If you like it feel free to use it.

New operators: {min}, {max} and {mean} possibly prefixed with : for use
with timevalues.

Example from my running exercise diary:

#+COLUMNS: %DISTANCE{+;%.1f} %HEARTRATE{mean;%.1f} %SPEED{:min} %CALORIES{+}

Gives a colview with summaries:

total distance, mean heartrate, fastest speed (min/km) and total
calories.

I have tested it on emacs-23 and it works well for me now, also with the
interactive colview functions.

But you never know really. ;-) Anyway, there should not be any emacs-23
specific elisp code added afik.

(Because I do not use xemacs I have not tested it with xemacs but the
small changes I made should be compitable to both xemacs and emacs. I
would appreciate if someone on this list who uses xemacs will give it a
try for me. Thanks!)

(This fix also opens up for using user defined lisp functions to
calculate colview summaries, but I am not sure if that is something
useful. Like this:

(defun std (rest values)
  Compute standard deviation.
  ...)

#+COLUMNS: %DATA{eval:std}

If someone finds this attractive it would now be easy to implement as well.)

doc/org.texi   |6 +++
lisp/org-colview-xemacs.el |   87 +---
lisp/org-colview.el|   87 +---
3 files changed, 104 insertions(+), 76 deletions(-)

I have attached four small patches, one for each file changed and the
last one for all changes.

diff --git a/lisp/org-colview.el b/lisp/org-colview.el
index 377343d..5e2810f 100644
--- a/lisp/org-colview.el
+++ b/lisp/org-colview.el
@@ -698,7 +698,25 @@ around it.
 		(org-columns-display-here (cdr x)))
 	  cache)
 
-(defun org-columns-new (optional prop title width op fmt rest rest)
+(defvar org-columns-compile-map
+  '((none  none  +)
+(: add_times +) 
+(+ add_numbers   +) 
+($ currency  +) 
+(X checkbox  +) 
+(X/checkbox-n-of-m   +) 
+(X%checkbox-percent  +)
+(max   max_numbers   max)   
+(min   min_numbers   min)  
+(mean  mean_numbers  (lambda (rest x) (/ (apply '+ x) (float (length x)
+(:max  max_times max)   
+(:min  min_times min)  
+(:mean mean_times(lambda (rest x) (/ (apply '+ x) (float (length x))
+  Operator - format,fuction map.
+Used to compile/uncompile columns format and completing read in
+interactive function org-columns-new.)
+
+(defun org-columns-new (optional prop title width op fmt fun rest rest)
   Insert a new column, to the left of the current column.
   (interactive)
   (let ((editp (and prop (assoc prop org-columns-current-fmt-compiled)))
@@ -712,19 +730,18 @@ around it.
 	(setq width (string-to-number width))
   (setq width nil))
 (setq fmt (org-ido-completing-read Summary [none]: 
-			   '((none) (add_numbers) (currency) (add_times) (checkbox) (checkbox-n-of-m) (checkbox-percent))
-			   nil t))
-(if (string-match \\S- fmt)
-	(setq fmt (intern fmt))
-  (setq fmt nil))
+   (mapcar (lambda (x) (list (symbol-name (cadr x org-columns-compile-map)
+   nil t))
+(setq fmt (intern fmt)
+	  fun (cadr (assoc fmt (mapcar 'cdr org-columns-compile-map
 (if (eq fmt 'none) (setq fmt nil))
 (if editp
 	(progn
 	  (setcar editp prop)
-	  (setcdr editp (list title width nil fmt)))
+	  (setcdr editp (list title width nil fmt nil fun)))
   (setq cell (nthcdr (1- (current-column))
 			 org-columns-current-fmt-compiled))
-  (setcdr cell (cons (list prop title width nil fmt)
+  (setcdr cell (cons (list prop title width nil fmt nil fun)
 			 (cdr cell
 (org-columns-store-format)
 (org-columns-redo)))
@@ -869,12 +886,13 @@ Don't set this, this is meant for dynamic scoping.)
   (interactive)
   (let* ((re (concat ^ outline-regexp))
 	 (lmax 30) ; Does anyone use deeper levels???
-	 (lsum (make-vector lmax 0))
+	 (lvals (make-vector lmax nil))
 	 (lflag (make-vector lmax nil))
 	 (level 0)
 	 (ass (assoc property org-columns-current-fmt-compiled))
 	 (format (nth 4 ass))
 	 (printf (nth 5 ass))
+	 (fun (nth 6 ass))
 	 (beg org-columns-top-level-marker)
 	 last-level val valflag flag end sumpos sum-alist sum str str1 useval)
 (save-excursion
@@ -892,7 +910,7 @@ Don't set this, this is meant for dynamic scoping.)
 	(cond
 	 (( level last-level)
 	  ;; put the sum of lower levels here as a property
-	  (setq sum (aref lsum last-level)   ; current sum
+	  (setq sum (apply fun (aref lvals last-level))
 		flag (aref lflag last-level) ; any valid entries from children?
 		str (org-columns-number-to-string sum format printf)
 		str1 (org-add-props (copy-sequence str) nil 'org-computed t 'face 'bold)
@@ -908,18 +926,18 @@ Don't set this, this is meant for dynamic scoping.)
 	

[Orgmode] Re: how to change the font color of the hidden leading star in custom theme?

2009-05-20 Thread Eric S Fraga
Jevgeni Holodkov jevgeni.holod...@gmail.com writes:

 Hi,

   I am using org-mode with option Hiding leading stars enabled.
 However, since I am using a non standard theme - my background is dark
 blue, the stars are visible, since their color is black. I org manual
 it is said, that I may have to customize something, in order to hide
 these stars, such as setting the font color. How can I change the font
 of the hidden star and align it with my background?

Typing C-u C-x =
when cursor at start of a line with hidden stars, it tells me the face
is org-hide.  Maybe customise that face?

HTH.



___
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: Integrating the journaling system with the GTD system

2009-05-20 Thread Bernt Hansen
Marcelo de Moraes Serpa celose...@gmail.com writes:

 I keep a journal using the simple journal-mode, and eventually,
 journal entries give origin to new items (projects or next actions, in
 the GTD context).

 When you are writing the journal post, and if a project, next action
 comes to your mind, you don't want to switch context and go to the org
 file to add this entry. So, what I thought was to either:
  * Add each journal file to the agenda list (which could be
inefficient, as the list would eventually grow too big, not sure how
this would affect performance?)
  * Copy these entries to the main gtd.org file

 The objective is to do it automagically, when saving the file (or in
 the case of the first option, when the file is created).


Why not just use remember mode to record these things?  You don't have
to stop what you are doing - just hit the key sequence to invoke
org-remember and enter the details of your item and C-c C-c and you're
done.

Just create a remember note with a target of your gtd.org file - or file
to tasks.org and use the refile mechanism with ido completion later to
move the task to the right place efficiently.

My setup is described here:

http://doc.norang.ca/org-mode.html#Remember
http://doc.norang.ca/org-mode.html#Refiling

HTH,

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


[Orgmode] regex to find *.org in subdirectories for agenda

2009-05-20 Thread Michael McAndrew
Hi there,

I'm just getting started with org mode after having watched the google tech
talk.  from my experiences so far, i think it is the tool i have been
waiting for a long time!

i've have transferred by entire huge nested todo list (which i was
previously managing in a local mediawiki) and that has been great.  but am
now excited about being able to split up and recompile all my todos
automatically - so i can keep everything contextually organised.

I have my projects organised in directories and sub directories under two
projects directories, ~/work and ~/home.  i want to keep *.org lists in
each of these directories and have them automatically picked up by orgmode
when i hit C-ca.  so i might have  ~/work/bbc/todo.org and ~/home/garden/
todo.org

I found this post
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg08945.html

so i presume that i need to use a regular expression in find-lisp-find-files
to create this list of files to feed to some variable like
org-agenda-files...

and have tried a million regex inspired expressions in my emacs config like:

(load-library find-lisp)
(set org-agenda files (find-lisp-find-files ~ (rx seq(string-start (or
work home) .org string-end

but it isn't working.

i'm kind of out of my depth with emacs (aquamacs actually - only have a few
days experience) and have never got to grips with regex! but also loving it
and would be grateful if someone could pull me out of this hole :)

Thanks,
Michael
___
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: regex to find *.org in subdirectories for agenda

2009-05-20 Thread Bernt Hansen
Michael McAndrew michaelmcand...@gmail.com writes:

 Hi there,


Hi Michael!

 I'm just getting started with org mode after having watched the google
 tech talk.  from my experiences so far, i think it is the tool i have
 been waiting for a long time!

 i've have transferred by entire huge nested todo list (which i was
 previously managing in a local mediawiki) and that has been great. 
 but am now excited about being able to split up and recompile all my
 todos automatically - so i can keep everything contextually organised.

 I have my projects organised in directories and sub directories under
 two projects directories, ~/work and ~/home.  i want to keep *.org
 lists in each of these directories and have them automatically picked
 up by orgmode when i hit C-ca.  so i might have  ~/work/bbc/todo.org
 and ~/home/garden/todo.org

I don't use org-mode like this myself but just did a quick minimal emacs
test and it seems to work fine.   You can set org-agenda-files to the
directories you want to include in the agenda and all files matching the
org-agenda-file-regexp will be included in the agenda.


 I found this post
 http://www.mail-archive.com/emacs-orgmode@gnu.org/msg08945.html

 so i presume that i need to use a regular expression in
 find-lisp-find-files to create this list of files to feed to some
 variable like org-agenda-files...

 and have tried a million regex inspired expressions in my emacs config
 like:

 (load-library find-lisp)
 (set org-agenda files (find-lisp-find-files ~ (rx seq(string-start (or 
 work home) .org string-end
 ^
 |
   no space here.  It should be org-agenda-files


 but it isn't working.

 i'm kind of out of my depth with emacs (aquamacs actually - only have
 a few days experience) and have never got to grips with regex! but
 also loving it and would be grateful if someone could pull me out of
 this hole :)

Here's my test setup -- I just added the directories to org-agenda-files:

I just created files in /tmp/play/ /tmp/work/ and /tmp/foo and added
some tasks to some of these just to see if they show up in the agenda
(and they did).

,[ My test directory layout ]
| be...@gollum:~/git/org-mode$ tree /tmp/play /tmp/work /tmp/foo
| /tmp/play
| |-- a.org
| |-- b.org
| |-- c.org
| |-- d.org
| `-- e.org
| /tmp/work
| |-- w-g.org
| |-- w-h.org
| |-- w-i.org
| |-- w-j.org
| `-- w-l.org
| /tmp/foo
| |-- foo-r.org
| |-- foo-s.org
| `-- foo-t.org
| 
| 0 directories, 13 files
`

,[ /tmp/minimal.emacs ]
| (add-to-list 'load-path (expand-file-name ~/git/org-mode/lisp))
| (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . 
org-mode))
| (require 'org-install)
| 
| (global-font-lock-mode t)
| (global-set-key \C-cl 'org-store-link)
| (global-set-key \C-ca 'org-agenda)
| (global-set-key \C-cb 'org-iswitchb)
| 
| (setq org-agenda-files (list /tmp/work /tmp/play /tmp/foo))
`

,[ /tmp/work/w-l.org ]
| #+STARTUP:
| * TODO Something for work
|   SCHEDULED: 2009-05-19 Tue
`

,[ /tmp/foo/foo-s.org ]
| * Meeting
|   DEADLINE: 2009-05-22 Fri 12:00
`

,[ /tmp/play/c.org ]
| #+STARTUP:
| * TODO Play with this
|   SCHEDULED: 2009-05-21 Thu 15:00
`

Starting emacs with:

emacs -q -l /tmp/minimal.emacs

and hitting C-c a a shows the following agenda

,[ /tmp/agenda.txt ]
| Week-agenda (W21):
| Monday 18 May 2009 W21
| Tuesday19 May 2009
|   w-l:Scheduled:  TODO Something for work
| Wednesday  20 May 2009
|   w-l:Sched. 2x:  TODO Something for work
|   foo-s:  In   2 d.:  Meeting
| Thursday   21 May 2009
|   c:  15:00.. Scheduled:  TODO Play with this
| Friday 22 May 2009
|   foo-s:  12:00.. Deadline:   Meeting
| Saturday   23 May 2009
| Sunday 24 May 2009
`

HTH,
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


[Orgmode] Re: regex to find *.org in subdirectories for agenda

2009-05-20 Thread Michael McAndrew
yes it was.  thanks, bernt, that was fantastic and helped me out of a big
hole (that i dug for myself :)

I decided to build a little hill to stand on next to the hole by adding the
following two lines

(setq org-agenda-files (find-lisp-find-files ~/Documents/Projects/Current
(rx (seq .org string-end
(add-to-list 'org-agenda-files ~/Documents)

which dynamically fills my todo with all files from any subdirectory in
projects and then adds todo files from my Documents directory and I can add
other directories when the I feel like it.  I guess I could try and rewrite
that as one big regex, but life is short.

thanks again!





2009/5/21 Bernt Hansen be...@norang.ca

 Michael McAndrew michaelmcand...@gmail.com writes:

  Hi there,
 

 Hi Michael!

  I'm just getting started with org mode after having watched the google
  tech talk.  from my experiences so far, i think it is the tool i have
  been waiting for a long time!
 
  i've have transferred by entire huge nested todo list (which i was
  previously managing in a local mediawiki) and that has been great.
  but am now excited about being able to split up and recompile all my
  todos automatically - so i can keep everything contextually organised.
 
  I have my projects organised in directories and sub directories under
  two projects directories, ~/work and ~/home.  i want to keep *.org
  lists in each of these directories and have them automatically picked
  up by orgmode when i hit C-ca.  so i might have  ~/work/bbc/todo.org
  and ~/home/garden/todo.org

 I don't use org-mode like this myself but just did a quick minimal emacs
 test and it seems to work fine.   You can set org-agenda-files to the
 directories you want to include in the agenda and all files matching the
 org-agenda-file-regexp will be included in the agenda.

 
  I found this post
  http://www.mail-archive.com/emacs-orgmode@gnu.org/msg08945.html
 
  so i presume that i need to use a regular expression in
  find-lisp-find-files to create this list of files to feed to some
  variable like org-agenda-files...
 
  and have tried a million regex inspired expressions in my emacs config
  like:
 
  (load-library find-lisp)
  (set org-agenda files (find-lisp-find-files ~ (rx seq(string-start (or
 work home) .org string-end
  ^
 |
   no space here.  It should be org-agenda-files

 
  but it isn't working.
 
  i'm kind of out of my depth with emacs (aquamacs actually - only have
  a few days experience) and have never got to grips with regex! but
  also loving it and would be grateful if someone could pull me out of
  this hole :)

 Here's my test setup -- I just added the directories to org-agenda-files:

 I just created files in /tmp/play/ /tmp/work/ and /tmp/foo and added
 some tasks to some of these just to see if they show up in the agenda
 (and they did).

 ,[ My test directory layout ]
 | be...@gollum:~/git/org-mode$ tree /tmp/play /tmp/work /tmp/foo
 | /tmp/play
 | |-- a.org
 | |-- b.org
 | |-- c.org
 | |-- d.org
 | `-- e.org
 | /tmp/work
 | |-- w-g.org
 | |-- w-h.org
 | |-- w-i.org
 | |-- w-j.org
 | `-- w-l.org
 | /tmp/foo
 | |-- foo-r.org
 | |-- foo-s.org
 | `-- foo-t.org
 |
 | 0 directories, 13 files
 `

 ,[ /tmp/minimal.emacs ]
 | (add-to-list 'load-path (expand-file-name ~/git/org-mode/lisp))
 | (add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ .
 org-mode))
 | (require 'org-install)
 |
 | (global-font-lock-mode t)
 | (global-set-key \C-cl 'org-store-link)
 | (global-set-key \C-ca 'org-agenda)
 | (global-set-key \C-cb 'org-iswitchb)
 |
 | (setq org-agenda-files (list /tmp/work /tmp/play /tmp/foo))
 `

 ,[ /tmp/work/w-l.org ]
 | #+STARTUP:
 | * TODO Something for work
 |   SCHEDULED: 2009-05-19 Tue
 `

 ,[ /tmp/foo/foo-s.org ]
 | * Meeting
 |   DEADLINE: 2009-05-22 Fri 12:00
 `

 ,[ /tmp/play/c.org ]
 | #+STARTUP:
 | * TODO Play with this
 |   SCHEDULED: 2009-05-21 Thu 15:00
 `

 Starting emacs with:

 emacs -q -l /tmp/minimal.emacs

 and hitting C-c a a shows the following agenda

 ,[ /tmp/agenda.txt ]
 | Week-agenda (W21):
 | Monday 18 May 2009 W21
 | Tuesday19 May 2009
 |   w-l:Scheduled:  TODO Something for work
 | Wednesday  20 May 2009
 |   w-l:Sched. 2x:  TODO Something for work
 |   foo-s:  In   2 d.:  Meeting
 | Thursday   21 May 2009
 |   c:  15:00.. Scheduled:  TODO Play with this
 | Friday 22 May 2009
 |   foo-s:  12:00.. Deadline:   Meeting
 | Saturday   23 May 2009
 | Sunday 24 May 2009
 `

 HTH,
 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


[Orgmode] Serial Number in Table

2009-05-20 Thread Raghav Kumar Gautam
Hi all,
Can someone tell me how to put serial numbers in org-mode tables ? I
have already tried to google it out, but to no avail.

With Regards,
Raghav.



___
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