Re: [Orgmode] Re: BUG - Attachment directories with newlines

2008-11-07 Thread Bernt Hansen
Nick Dokos [EMAIL PROTECTED] writes:

 Carsten Dominik [EMAIL PROTECTED] wrote:

 This is very strange.  I cannot reproduce this.  When I evaluate in
 your example
 
  | (org-id-get (point))
  | (org-entry-get (point) ID)
 
 I get in both cases just the ID, no newline with it.  Also, new
 newlines are created for me after the attachment property.  Can please
 more people try Bernt's example?
 

 I cannot reproduce it either. This is a shot in the dark but I noticed
 that org-entry-get uses a regexp using \\S-, which is supposed to
 match whitespace. Maybe Bernt has somehow modified his syntax tables so
 that newline is not whitespace? If so, I believe that the return value
 will include the newline and org-id-get will return it unchanged as well,
 thereby explaining what Bernt sees.

I haven't knowingly modified it :)  I'll try again with a minimal emacs
and see if it goes away.

More details later...

-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] MacOSX: Notifications with Growl

2008-11-07 Thread Rick Moynihan

Alex Ott wrote:

Hi all

I wrote small note about show notifications with Growl under Mac OS X.
This could be useful when using org-mode.  Note is could be found on my site
http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html


Thanks for this, this'll prove handy at work.  I took the liberty of 
simplifying the elisp a little.  This version doesn't create a temporary 
file, and instead uses a shell HEREDOC.


(defun output-to-growl (msg)
(shell-command (format osascript ENDSCRIPT
tell application \GrowlHelperApp\
 notify with name \Emacs Notification\ title \Emacs alert\ \
   description «data utxt%s» as Unicode text \
   application name \Emacs\
   end tell
ENDSCRIPT  (osd-text-to-utf-16-hex msg

(defun osd-text-to-utf-16-hex (text)
  (let* ((utext (encode-coding-string text 'utf-16))
 (ltext (string-to-list utext)))
(apply #'concat
 (mapcar (lambda (x) (format %02x x)) ltext


R.


___
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] Org-mode idea?

2008-11-07 Thread Eric Schulte
Dennis Groves (CISG) [EMAIL PROTECTED] writes:

 Now my idea is this could agenda be made to read the subdirectories
 recursively and scan the files there in for todo's? Sorta, like a compile?
 Or could I have a single file that is simply a list of all the files to look
 into in order to create my agenda?


This thread should help
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg08942.html


___
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] Org-mode idea?

2008-11-07 Thread Charles Sebold
On 6 Nov 2008, Dennis Groves wrote:

 I recently suffered a loss of data on my main computer. And as such I
 really want to get my data into a git repository and have that backed
 up regularly.

 (but I have been in management now for so long my developer tech
 skills have really suffered - and this stuff isn't as obvious as it
 once was...)

I did this.  There are a lot of places you could start on something like
this; I think John Wiegley's PDF on how to use Git was mentioned
yesterday, and that was pretty good.

The great thing about Git is that you can either treat this like
traditional source control, and set up a central repository somewhere
that gets backed up, or you can just clone the one you maintain on your
main computer to your server that gets backed up sometimes.  In either
place you have the complete history of your changes.

For myself, I have a primary system that is live on the internet, so I
can get my files from anywhere (with SSH, anyway).  Then my main place
to actually use the org files is on my laptop running Windows, and I do
most things there and regularly push commits in just so I have the
backup.  Then I have my main computer at home, a Debian system, and when
I'm at home that's often the place where I live with my org files.
Git handles this stuff pretty straightforwardly.

If I were to do it over again, though, I might not bother with the
central one, assuming that I was getting regular backups with one of the
other two main computers.

 Now my idea is this could agenda be made to read the subdirectories
 recursively and scan the files there in for todo's? Sorta, like a
 compile?  Or could I have a single file that is simply a list of all
 the files to look into in order to create my agenda?

For this you want to look at (info (org)Agenda files) for everything
you need.  You can certainly do the second one out of the box.  I have
it reading everything in the top level of my org directory, then I
manually add things in the subdirectories, because sometimes I'm messing
with something that I don't want in the ordinary agenda.  You can
manually add a file that you're in right now with C-c [ as you can see
from the info link above.

Then you could get really crazy and start having multiple
agendas... like a lot of people on here seem to be doing (and I just
started, and I am hooked on it).
-- 
Charles Sebold 7th of November, 2008
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) | Gnus v5.11 | org-mode 6.11pre01
 


___
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] Org-mode idea?

2008-11-07 Thread Nick Dokos
Charles Sebold [EMAIL PROTECTED] wrote:

 Then you could get really crazy and start having multiple
 agendas... like a lot of people on here seem to be doing (and I just
 started, and I am hooked on it).

Say, what?!? I must have missed the discussion. Can you provide a reference?
Or a short introduction?

Thanks,
Nick



___
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: Properties and Columns

2008-11-07 Thread Mikael Fornius
Dennis Groves (CISG) [EMAIL PROTECTED] writes:

 Can anbody give me some examples of how they use the Properties and Columns
 stuff - it looks like that would be way more flexible and useful than what I
 did with all my spreadsheets...

Say we want to collect body weight data. I would make notes of my weight
in a timestamped heading with the weight as property:

M-RET
C-c . RET
M-x org-set-property

Results in entry:

* 2008-11-07 fre
  :PROPERTIES:
  :weight:   68
  :END:

With point on property-drawer magic key C-c C-c makes adding more or
editing properties easy.

Now I define what columns to show with: 

#+COLUMNS: %TIMESTAMP %weight

now when doing C-c C-x C-c on the heading will show the data as a table
row instead of a heading. Columns can be defined globally (as I did in
my example) or for a subtree by setting :COLUMNS: property in root of
folding tree.

For more info see info page
M-: (info (org) Properties and Columns)

Personally I think it is cool to be able to view headings as columns
although the alignment of the columns is not in a straight line when
viewing over many subtrees.

It is nice that org-columns preserves the tree view you have folded, so
you can limit your columns view with tag searches.

At the top of the columns table there is headlines and you can tell org
to sum a column and have it displayed, sum times or numbers. Thats it as
far as I know.

 How would you do calculations for calculated or derived data from the data
 points you do gather? (for example, I do lean body mass calculations based
 on a number of physical metrics I gather each day...)

You can dump a org-columns view to a standard org-table with a dynamic
block, then maybe apply some table formulas on it for more advanced use.

I am not sure if the TABLEFM can be kept outside of the dblock? (So it
is not erased when updating.)

/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] Re: Does this happen to you? Aquamacs messes with you! (but I still like my Mac)

2008-11-07 Thread Peter Frings


On 07 Nov 2008, at 16:33, Peter Jones wrote:


Ben Alexander [EMAIL PROTECTED] writes:
I normally use Aquamacs.  It's very pretty, and uses the mouse  
without

having to start an X server.


[snip]

Ben, Aquamacs isn't the only option for Emacs on Mac OS X, it's  
actually

the worst option for Emacs on Mac OS X, IMHO.


I second that. I've been using Carbon Emacs 22.2.50.1 and its  
predecessors for years now, trying Aquamacs now and then, but never  
felt the urge to switch. Do check it out.


The 'official' stable release is on http://homepage.mac.com/zenitani/emacs-e.html 
 -- and I just noticed he's got the 22.3 release available :-)


Cheers,
Peter.



___
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 - Attachment directories with newlines

2008-11-07 Thread Bernt Hansen
Charles Sebold [EMAIL PROTECTED] writes:

 On 6 Nov 2008, Carsten Dominik wrote:

 I get in both cases just the ID, no newline with it.  Also, new
 newlines are created for me after the attachment property.  Can please
 more people try Bernt's example?

 Same for me, just the ID, no newline.

I'm not losing my mind... honest!

But today I don't get the newline either.  I cut and pasted the previous
example from the message window after evaluating the lisp expressions.

-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] MacOSX: Notifications with Growl

2008-11-07 Thread Jonathan Arkell
I am chiming in a little late here, but...

Try out Todochiku, which is a notifications package I wrote for emacs:  
http://www.emacswiki.org/emacs/ToDoChiKu

It works with appt (and thus with org mode) and it is compatible across 
different notification programs (and OS).  It has a customization option 
todochiku-appts that will set up a growl notifier as your appt-display-function.

Enjoy.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Moynihan
Sent: Friday, November 07, 2008 4:26 AM
To: Alex Ott
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] MacOSX: Notifications with Growl

Alex Ott wrote:
 Hi all
 
 I wrote small note about show notifications with Growl under Mac OS X.
 This could be useful when using org-mode.  Note is could be found on my site
 http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html

Thanks for this, this'll prove handy at work.  I took the liberty of 
simplifying the elisp a little.  This version doesn't create a temporary 
file, and instead uses a shell HEREDOC.

(defun output-to-growl (msg)
 (shell-command (format osascript ENDSCRIPT
tell application \GrowlHelperApp\
  notify with name \Emacs Notification\ title \Emacs alert\ \
description «data utxt%s» as Unicode text \
application name \Emacs\
end tell
ENDSCRIPT  (osd-text-to-utf-16-hex msg

(defun osd-text-to-utf-16-hex (text)
   (let* ((utext (encode-coding-string text 'utf-16))
  (ltext (string-to-list utext)))
 (apply #'concat
  (mapcar (lambda (x) (format %02x x)) ltext


R.


___
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] Org-mode idea?

2008-11-07 Thread Charles Sebold
On 7 Nov 2008, Nick Dokos wrote:

 Say, what?!? I must have missed the discussion. Can you provide a
 reference?  Or a short introduction?

I think I meant custom agenda views, not multiple agendas.  But the
effect is much the same, it seems to me, especially if you're entirely
changing context when you change views.

I've got everything in my life in my org files, but if I want to just
see work (which is frequently), I have something like this in my .emacs
stuff:

(setq org-agenda-custom-commands
  '((w agenda Work Agenda
 ((org-agenda-files '(~/org/work.org))

Maybe I've been misunderstanding some of the discussions going on around
here.  I don't know how long one could do that, but it's things like
this that make org-mode act like an extension of my brain.
-- 
Charles Sebold 7th of November, 2008
GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) | Gnus v5.11 | org-mode 6.11pre01
 


___
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] Does this happen to you? Aquamacs messes with you! (but I still like my Mac)

2008-11-07 Thread Ben Alexander
I normally use Aquamacs.  It's very pretty, and uses the mouse without  
having to start an X server.  But I'm starting to get a bit cheesed  
about all the things that don't work with org-mode (I have FINALLY got  
a fixed width font for the tab bar, so my column mode headings line up  
with the text in the buffer!!!)


New problem: I have a very simple org mode buffer

* TODO Mealplans
** Mealplan Fri

If I go into column view and my cursor is the beginning of the file  
and I hit the down arrow, my cursor moves to the beginning of the next  
column (From the default column of ITEM to TODO).  This happens  
everywhere, somewhat randomly.


I switched to the command line version of emacs, and this didn't happen.

My first thought was to check keyboard bindings.  In emacs C-n and  
down map to next-line, but in Aquamacs they map to visual-line- 
down.  If I toggle visual-line-mode, the problem goes away (under  
quick testing)


My question for the list.

1) Does anyone use visual-line-mode with org?  Use it and like, I mean.

2) How did this happen to me?  Is this an Aquamacs default that I can  
customize back to 'normal'?  I can't find visual-line-mode documented  
in the info pages for Emacs.


3) On my mode line, I have a (Org vl Fill).  the 'vl' does not go away  
when I toggle visual-line-mode.  What is that? Another irritant lurking?


---

Ok, I let this email sit awhile (never click send when angry!)

If anyone else is living with this, I have an answer for 2) and 3)

2) Answer: Aquamacs has a customization group 'Aquamacs Is More Than  
Emacs'.  This will be my first stop for the next irritation .


3) Answer: That customization group has an option for 'global-visual- 
line-mode'.  Toggle that and the 'vl' goes away.


Just in case anyone is wondering (because of all my complaining), I  
should advertise that Mac OS is a great machine for emacs users.  For  
example, I'm still using Apple's Mail program and many emacs key  
strokes work auto-magically.  C-n and C-p work visually, and C-f and C- 
b work normally, and  C-a and C-e work on logical lines.  Even C-k and  
C-y just work inside of most of the UI textboxes.  Strangely, killing  
a line means you can yank it, even into another window, but it's a  
different clipboard than cmd-C and cmd-V.  Even C-t works. Alas, C-u C- 
f does NOT work.


None of this seems documented, so I don't know what other easter eggs  
are lurking, but I don't get frustrated moving from my org-mode buffer  
into an Apple Mail window just because of the typing.  Aquamacs does  
let transient mark mode with with the shift-mouse-click, and cmd-C  
lets me pull text out of Aquamacs and into Mail.


I'd bet that many of you on a mac already know this because of how  
hard it is to NOT type a C-p when you want to go up!


Anyway, thanks for listening to the rant, and I hope it helps someone  
out there.


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


Re: [Orgmode] Org-mode idea?

2008-11-07 Thread Nick Dokos
Charles Sebold [EMAIL PROTECTED] wrote:

 On 7 Nov 2008, Nick Dokos wrote:
 
  Say, what?!? I must have missed the discussion. Can you provide a
  reference?  Or a short introduction?
 
 I think I meant custom agenda views, not multiple agendas.  But the
 effect is much the same, it seems to me, especially if you're entirely
 changing context when you change views.
 
 I've got everything in my life in my org files, but if I want to just
 see work (which is frequently), I have something like this in my .emacs
 stuff:
 
 (setq org-agenda-custom-commands
   '((w agenda Work Agenda
((org-agenda-files '(~/org/work.org))
 
 Maybe I've been misunderstanding some of the discussions going on around
 here.  I don't know how long one could do that, but it's things like
 this that make org-mode act like an extension of my brain.

OK, I think I see. Thanks for the reply!

Nick



___
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: orgmode and physical fitness training

2008-11-07 Thread Mikael Fornius
Thanks for org-collector.el, now I have read it and tried it out.

It is very nice to have the possibility to evaluate lisp expressions as
values, that is something missing in org-columns!

But it was only a few seconds faster than column-view and column dblock
and therefore not fast enough for my slow computer ;-). I timed it to 62
seconds to insert exercise data table for one year (83 headings) with 4
columns and no calculations.

* ELP Profiling Results 

|---+---+--+--|
| org-dblock-write:propview | 1 |62.158395 |62.158395 |
| org-propview-collect  | 1 |60.578724 |60.578724 |
| org-map-entries   | 1 |60.519551 |60.519551 |
| org-scan-tags | 1 |60.267157 |60.267157 |
| org-entry-properties  |94 | 57.451918999 | 0.6111906276 |
| org-get-tags-at   |94 | 54.06939 | 0.5752063829 |
| org-up-heading-all|   365 | 53.664638999 | 0.1470264082 |
| outline-up-heading|   365 |53.647627 |0.1469798 |
| outline-previous-heading  | 29751 | 39.418412999 | 0.0013249441 |
| org-outline-level | 30306 | 6.097154 | 0.0002011863 |
| org-split-string  |   555 | 2.062975 | 0.0037170720 |
|---+---+--+--|

It is clear from above who is the time thief.

* Comment

It did not work at first because sometimes I have properties without
values, they then gets the empty string assigned, .

I had to adjust function org-read-prop because in my emacs (GNU Emacs
23.0.60.5):

(stringp )   - t

and

(string-to-number )  - 0
(string-to-number 0) - 0

and then at line 34 it tries to take substring out of .

Attaches diff if interested :-)
*** /home/mfo/org/org-collector.el~	2008-11-07 17:19:12.0 +0100
--- /home/mfo/org/org-collector.el	2008-11-07 18:14:23.0 +0100
***
*** 27,45 
  Otherwise if prop looks like a list (meaning it starts with a
  '(') then read it as lisp, otherwise return it unmodified as a
  string.
!   (if (stringp prop)
!   (if prop
! 	  (let ((out (string-to-number prop)))
! 	(if (equal out 0)
! 		(if (or (equal ( (substring prop 0 1)) (equal ' (substring prop 0 1)))
! 		(read prop)
! 		(if (string-match ^\\(+0\\|-0\\|0\\)$ prop)
! 			0
! 			(progn (set-text-properties 0 (length prop) nil prop)
! 			   prop)))
! 		out))
! 	  nil)
!   prop))
  
  (defun org-dblock-write:propview (params)
collect the column specification from the #+cols line
--- 27,43 
  Otherwise if prop looks like a list (meaning it starts with a
  '(') then read it as lisp, otherwise return it unmodified as a
  string.
!   (if (and (stringp prop) (not (equal prop )))
!   (let ((out (string-to-number prop)))
! 	(if (equal out 0)
! 	(if (or (equal ( (substring prop 0 1)) (equal ' (substring prop 0 1)))
! 		(read prop)
! 	  (if (string-match ^\\(+0\\|-0\\|0\\)$ prop)
! 		  0
! 		(progn (set-text-properties 0 (length prop) nil prop)
! 		   prop)))
! 	  out))
! prop))
  
  (defun org-dblock-write:propview (params)
collect the column specification from the #+cols line

/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


[Orgmode] Org-mode idea?

2008-11-07 Thread Dennis Groves (CISG)
Hello All,

I am sort of new to org-mode; I have been using it for some time but since I
am not a software engineer I am afraid I am not able to make use of all the
capabilities nor do I fully understand them all...

That said, in terms of life management; nothing even comes close to the
power and utility of org-mode in my experience so I use it.

I use org-mode for projects, exercise and fitness, and a daily task-diary.
And I currently do this all in one big giant unwieldy file.

I recently suffered a loss of data on my main computer. And as such I really
want to get my data into a git repository and have that backed up regularly.

(but I have been in management now for so long my developer tech skills have
really suffered - and this stuff isn't as obvious as it once was...)

I would also like to get the big file split out into many small files, so
that they are easier to work with.  I want to split this up into potentially
dozens of files in different subdirectories in my org folder. The structure
reflects my own mental outline of course.

Now my idea is this could agenda be made to read the subdirectories
recursively and scan the files there in for todo's? Sorta, like a compile?
Or could I have a single file that is simply a list of all the files to look
into in order to create my agenda?

Thank you,

And again, please forgive my 'newbness' ---

Dennis



___
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: orgmode and physical fitness training

2008-11-07 Thread Eric Schulte
Mikael Fornius [EMAIL PROTECTED] writes:

 Thanks for org-collector.el, now I have read it and tried it out.

 It is very nice to have the possibility to evaluate lisp expressions as
 values, that is something missing in org-columns!


I'm happy someone else is finding it useful!


 But it was only a few seconds faster than column-view and column dblock
 and therefore not fast enough for my slow computer ;-). I timed it to 62
 seconds to insert exercise data table for one year (83 headings) with 4
 columns and no calculations.

 * ELP Profiling Results 

 |---+---+--+--|
 | org-dblock-write:propview | 1 |62.158395 |62.158395 |
 | org-propview-collect  | 1 |60.578724 |60.578724 |
 | org-map-entries   | 1 |60.519551 |60.519551 |
 | org-scan-tags | 1 |60.267157 |60.267157 |
 | org-entry-properties  |94 | 57.451918999 | 0.6111906276 |
 | org-get-tags-at   |94 | 54.06939 | 0.5752063829 |
 | org-up-heading-all|   365 | 53.664638999 | 0.1470264082 |
 | outline-up-heading|   365 |53.647627 |0.1469798 |
 | outline-previous-heading  | 29751 | 39.418412999 | 0.0013249441 |
 | org-outline-level | 30306 | 6.097154 | 0.0002011863 |
 | org-split-string  |   555 | 2.062975 | 0.0037170720 |
 |---+---+--+--|

 It is clear from above who is the time thief.


Speeding up these functions would also pay off if/when org-mode is used
on more portable handheld computers.


 Attaches diff if interested :-)

Thanks,

I will certainly apply this to org-collector.el.  In fact if you would
be interested in collaborating on this tool --for speed, stability,
cleaner arguments and results printing-- I could upload this to worg
where we could both make changes.

Best -- Eric


 *** /home/mfo/org/org-collector.el~   2008-11-07 17:19:12.0 +0100
 --- /home/mfo/org/org-collector.el2008-11-07 18:14:23.0 +0100
 ***
 *** 27,45 
   Otherwise if prop looks like a list (meaning it starts with a
   '(') then read it as lisp, otherwise return it unmodified as a
   string.
 !   (if (stringp prop)
 !   (if prop
 !   (let ((out (string-to-number prop)))
 ! (if (equal out 0)
 ! (if (or (equal ( (substring prop 0 1)) (equal ' (substring 
 prop 0 1)))
 ! (read prop)
 ! (if (string-match ^\\(+0\\|-0\\|0\\)$ prop)
 ! 0
 ! (progn (set-text-properties 0 (length prop) nil prop)
 !prop)))
 ! out))
 !   nil)
 !   prop))
   
   (defun org-dblock-write:propview (params)
 collect the column specification from the #+cols line
 --- 27,43 
   Otherwise if prop looks like a list (meaning it starts with a
   '(') then read it as lisp, otherwise return it unmodified as a
   string.
 !   (if (and (stringp prop) (not (equal prop )))
 !   (let ((out (string-to-number prop)))
 ! (if (equal out 0)
 ! (if (or (equal ( (substring prop 0 1)) (equal ' (substring prop 
 0 1)))
 ! (read prop)
 !   (if (string-match ^\\(+0\\|-0\\|0\\)$ prop)
 !   0
 ! (progn (set-text-properties 0 (length prop) nil prop)
 !prop)))
 !   out))
 ! prop))
   
   (defun org-dblock-write:propview (params)
 collect the column specification from the #+cols line

 /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


[Orgmode] Properties and Columns

2008-11-07 Thread Dennis Groves (CISG)
I just read about this in the manual, as prompted by trying to understand
how Mikael tracks his exercise and stuff compared to mine. Basically, I
converted a bunch of my old spreadsheets to org-spreadsheet-tables.

Can anbody give me some examples of how they use the Properties and Columns
stuff - it looks like that would be way more flexible and useful than what I
did with all my spreadsheets...

How would you do calculations for calculated or derived data from the data
points you do gather? (for example, I do lean body mass calculations based
on a number of physical metrics I gather each day...)

I like the stuff I read, but I am not certain how to implement it.

Dennis



___
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] modular block exportation was patch [Feature Addition] exporting comments on org files to html

2008-11-07 Thread Eric Schulte
Hi,

This has had me thinking about the exportation of blocks in general.  I
think it makes sense to pull block exportation out into it's own
component both for simplicity and for ease of code-reading, hacking, and
customization.

with a set of blocks of forms like...

#+begin_html

#+begin_src

#+begin_comment

#+begin_example

etc...

We could have an alist in which we look up the type of the block, and
call the appropriate function to handle exportation.  Users could then
add their own custom block export functions to this list.

The optional exportation of these blocks could then be controlled by a
single #+option variable which takes a list of blocks not to export.
For example

#+OPTION   hidden_blocks:comment,src

I'd be interested to hear anyone's thoughts on this.  If it sounds like
a good idea I'd be happy to take a stab at implementation.

Cheers -- Eric


___
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] Org-mode idea?

2008-11-07 Thread Manish
  On Thu, Nov 6, 2008 at 7:51 PM, Dennis Groves (CISG) wrote:
   Hello All,
  
   I am sort of new to org-mode; I have been using it for some time
   but since I am not a software engineer I am afraid I am not able
   to make use of all the capabilities nor do I fully understand them
   all...
  
   That said, in terms of life management; nothing even comes close
   to the power and utility of org-mode in my experience so I use it.
  

Yep. +1 :)

   I use org-mode for projects, exercise and fitness, and a daily
   task-diary.  And I currently do this all in one big giant unwieldy
   file.

FWIW, I currently split it mainly into personal.org and
my-current-employer.org.

  
   I recently suffered a loss of data on my main computer. And as
   such I really want to get my data into a git repository and have
   that backed up regularly.

I also suffered a massive data loss last February and lost years of
collected documentation, reports, scripts, email.  I never want to
have to be in same situations again So I dealt with this problem at
various levels.

1. Human mistakes

I have split all my major data into logically separate directories,
turned each of them into separate git repositories (I have 10 main
repos now) and set up .gitignore well.

Managing more than a few repositories becomes tedious quicly so I
resort to using Joey Hess' mr [1].  Also I tend to be very easily
distracted and forget to commit changes even I should have; so a shell
script is fired (by a batch script which is called by Windows
Scheduler) every hour that commits latest changes to the repo (with a
default commit message with timestamp.)

I suspect git is probably not meant to be used this way but it helps
in my case and I do not have to remember anything.  Committing when
you want to is still possible anyways (using command line or magit or
dvc or emacs-git or..)

2. Loss of hardware

Once the script is done committing, it checks if my home desktop
computer is available (when on home network  not on VPN) and then
rsyncs the data (approx. 15 GB of it) to a RAID 1 mirrored pair of
drives (this also happens every hour.)

3. Reinstallations/setup in case of hardware loss

I try to use portable applications [2] where possible and also install
Cygwin [3], Windows native Emacs, Org mode, Freemind, R etc. in a
single directory tree so that I can just copy the directory tree from
my desktop to a new machine quite easily.

Do let me know if you want further explanation of or to look into any
part of the setup.

HTH,
-- 
Manish

1. http://joey.kitenet.net/code/mr/
2. http://portableapps.com/
3. On a new computer, you would need to setup mount points and PATH,
   of course.


___
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] Including state-changed headings in the agenda

2008-11-07 Thread Hsiu-Khuern Tang
* On Thu 08:04AM +, 06 Nov 2008, Carsten Dominik ([EMAIL PROTECTED]) wrote:
 
 On Oct 29, 2008, at 8:17 PM, Hsiu-Khuern Tang wrote:
 
  Hi,
 
  Let's say I have a repeating task like this:
 
  ** TODO Do this
SCHEDULED: 2008-10-29 Wed +1w
 
  Cycling to a done state will track the done time and increment the
  scheduled
  time according to the repeater:
 
  ** TODO Do this
- State DONE   [2008-10-29 Wed 10:44]
SCHEDULED: 2008-11-05 Wed +1w
 
  How can I display such items in the daily agenda?  Turning on log
  mode will
  only display CLOSED items, but since the above task is not closed,
  it doesn't
  show up.
 
 This is now possible.  To do it just for a single view,
 press `C-u l' instead of `l' in the daily/weekly agenda.
 
 If you like what you see and want this always to be present when you
 turn on log mode, customize the variable `org-agenda-log-mode-items'.
 
 Now, if you finish only ones task during a day, but with several state
 changes, you can feel very productive already :-)
 
 HTH

Yes, it does help!  I tested this using the development version, and things
work just as described.  I now have org-agenda-log-mode-items configured to
(closed state).

Thank you very much for implementing this!

-- 
Best,
Hsiu-Khuern.


___
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] [PATCH] Fix typos on website Changes documentation

2008-11-07 Thread Bernt Hansen

- Fix minor grammar issues
- Fix typos
- Fix typo is variable name for example lisp code
---

Carsten: This commit is available at git://git.norang.ca/org-mode in the
 branch fix-website-changelog

-Bernt


 ORGWEBPAGE/Changes.org |   42 +-
 1 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/ORGWEBPAGE/Changes.org b/ORGWEBPAGE/Changes.org
index 5980861..6dcb05d 100644
--- a/ORGWEBPAGE/Changes.org
+++ b/ORGWEBPAGE/Changes.org
@@ -23,19 +23,19 @@
 ** Details
 
 *** Yanking subtree with =C-y= now adjusts the tree level
-When yanking a cut/copied subtree or a series of trees, even
-the nomal yank key =C-y= does now adjust the level of the tree
-to make it fit into the current outline position, without
-loosing its identity, and without swallowing other subtrees.
+When yanking a cut/copied subtree or a series of trees, the
+normal yank key =C-y= now adjusts the level of the tree to
+make it fit into the current outline position, without losing
+its identity, and without swallowing other subtrees.
 
 This uses the command =org-past-subtree=.  An additional
-change in that command has been implemented:  Normally, this
+change in that command has been implemented: Normally, this
 command picks the right outline level from the surrounding
-*visible* headlines, and uses the smaller on.  So it the
+*visible* headlines, and uses the smaller one.  So if the
 cursor is between a level 4 and a level 3 headline, the tree
-will be pasted as level 3.  Now, if the cursor is actually
-*at* the beginning of a headline, the level of that headline
-will be used.  So lets say you have a tree like this:
+will be pasted as level 3.  If the cursor is actually *at*
+the beginning of a headline, the level of that headline will
+be used.  For example, lets say you have a tree like this:
 
 #+begin_src org
 ,* Level one
@@ -48,7 +48,7 @@
 insertion.  When at (1), the tree will be pasted as level 2.
 When at (2), it will be pasted as level 1.
 
-If you do not like =C-y= to behave like this, configure the
+If you do not want =C-y= to behave like this, configure the
 variable =org-yank-adjusted-subtrees=.
 
 Thanks to Samuel Wales for this idea and a partial implementation.
@@ -56,17 +56,17 @@
 *** State changes can now be shown in the log mode in the agenda
 
 If you configure the variable =org-agenda-log-mode-items=,
-you can now request that all logged state changes should also
-show up in the agenda when log mode is active.  If you find
-this too much for normal applications, you can also
-temporarily request the inclusion of state changes by
-pressing =C-u l= in the agenda.
+you can now request that all logged state changes be included
+in the agenda when log mode is active.  If you find this too
+much for normal applications, you can also temporarily
+request the inclusion of state changes by pressing =C-u l= in
+the agenda.
 
 This was a request by Hsiu-Khuern Tang.
 
 *** Footnote in HTML export are now collected at the end of the document
 Previously, footnotes would be left in the document where
-they are defined, bow that are all collected and put into a
+they are defined, now they are all collected and put into a
 special =div= at the end of the document.
 
 Thanks to Sebastian Rose for this request.
@@ -75,15 +75,15 @@
 
 Thanks to Sebastian Rose for pushing this cleanup.
 
-*** The clock can be now resumed after exiting and re-starting Emacs
+*** The clock can now be resumed after exiting and re-starting Emacs
 
-If the option =org-clock-resume= is t, and the first clock
+If the option =org-clock-in-resume= is t, and the first clock
 line in an entry is unclosed, clocking into that task resumes
 the clock from that time.
 
 Thanks to James JD Smith for a patch to this effect.
 
-*** Clock-related data can be saved and resumed accross Emacs sessions
+*** Clock-related data can be saved and resumed across Emacs sessions
 
 The data saved include the contents of =org-clock-history=,
 and the running clock, if there is one.
@@ -113,7 +113,7 @@
 
 Inserting file links with =C-u C-c C-l= was buggy if the
 setting of `org-link-file-path-type' was `adaptive' (the
-default).  Absolute file path's were not abbreviated relative
+default).  Absolute file paths were not abbreviated relative
 to the users home directory.  This bug has been fixed.
 
 Thanks to Matt Lundin for the report.
@@ -130,7 +130,7 @@
 Here is the setup you need:
 
 #+begin_src emacs-lisp
-(setq org-ling-abbrev-alist '((att . org-attach-expand-link)))
+(setq org-link-abbrev-alist '((att . org-attach-expand-link)))
 #+end_src
 
 After this, a link like this will work
-- 
1.6.0.3.523.g304d0



___
Emacs-orgmode mailing 

Re: [Orgmode] Re: orgmode and physical fitness training

2008-11-07 Thread Carsten Dominik

Hi,

if you do not need the tags, calling

   (org-entry-properties nil 'standard)

will be a lot faster.

- Carsten

On Nov 6, 2008, at 5:56 PM, Eric Schulte wrote:


Mikael Fornius [EMAIL PROTECTED] writes:


David O'Toole [EMAIL PROTECTED] writes:

Does anyone else here use org-mode for fitness and/or health  
tracking?

[...]
Lately I have been thinking of and trying to implement a true org- 
mode

running diary. Which means to use the org-mode file as raw-data file
(properties) instead of my parallell sexp-assoc-list-elisp-data-file.

I tried column mode but it is far too slow for 300 headings and the
calculations possible is only sums but I need much more.



Hi Mikael,

I ran into a very similar issue with column view lately while trying  
to

use org-mode to collect experimental results.  I created the attached
file, which can be used to collect data from properties in a manner
similar to column view, but using a simpler method meant only for  
table
display, rather than column viewing, and allowing for the  
application of

general elisp to the values before they are dumped into the table.  I
think it would work in your case as well.

I applied it to the data you posted with the following results.  The
mechanics are working, but it could use some display cleaning.  The  
file

`org-collector.el' is attached

org-collector.elmime-attachment.txtmime-attachment.txt




___
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: orgmode and physical fitness training

2008-11-07 Thread Eric Schulte
Mikael Fornius [EMAIL PROTECTED] writes:

 Eric Schulte [EMAIL PROTECTED] writes:
[...]
 Yes, I am interested in collaboration. You have read my reply about my
 personal goals of a all-round statistical diary. I think that this tool
 can be a nice beginning.


Great,

I've placed org-collector.el up on worg.  See the
http://legito.net/worg/org-devel.php page on Worg (which should
propagate within an hour or so) for information and links.

Note: While this seems like an appropriate use of Worg to me, if anyone
with more Worg experience thinks this is a misuse of the repo, please
let me know and I'll gladly move this somewhere else.

Tally Ho -- Eric


___
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: orgmode and physical fitness training

2008-11-07 Thread Mikael Fornius
Carsten Dominik [EMAIL PROTECTED] writes:

(org-entry-properties nil 'standard)

 will be a lot faster.

Thanks! But I have already noticed that, and that it is about 10-times
faster to get properties of a subtree without inherited tags. :-)

The problem is that I like to use inherited tags in my document
structure. I am planning to use tags and properties to generate subsets
of my heading data, for tables and statistics.

* :2008:
** :november:
*** 2008-11-05 :temperature:
*** 2008-11-07 :weight:
*** 2008-11-09 :running:interval:
*** 2008-11-10 :skiing:
 :PROPERTIES:...
Wow what a ride!

I want to be able to get subset of lets say skiing in year 2008 then
Wow what a ride! should match if all tags are inherited.

(org-tags-at Wow what a ride!) - :2008:november:skiing:

/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