Re: [Orgmode] Re: Update ispell-dictionary to text language

2010-01-15 Thread Carsten Dominik

I have seen this thread and I am still contemplating what
to do with it.  More input and opinions would be welcome.

- Carsten

On Jan 13, 2010, at 11:20 AM, Sébastien Vauban wrote:


Hi Benjamin,

Benjamin Andresen wrote:

Sébastien Vauban  writes:


Here my proposal (and my very first self-written chunk of ELisp  
code) for
switching to the right language for ispell, upon reading the  
contents of

the meta-tag `LANGUAGE'.


I think using File Variables are better for this. For no particular  
reason
except they are standardized and don't require any additional code  
in Org

Mode.
(info "(emacs)Specifying File Variables")
# -*- ispell-local-dictionary: "german" -*-


I know them, even use them in directories (see `.dir-locals.el'),  
instead of

files.

--8<---cut here---start->8---
((org-mode . ((ispell-local-dictionary . "american")
 (time-stamp-format . "%:y-%02m-%02d")
 (time-stamp-start . "^#\\+DATE: +")
 (time-stamp-end . "$"
--8<---cut here---end--->8---

BUT there is a *language specification* in the Org template:

--8<---cut here---start->8---
#+TITLE: Scorpios.org
#+AUTHOR:Seb Vauban
#+EMAIL: n...@one.com
#+DATE:  2010-01-13 Wed
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
--8<---cut here---end--->8---
^^

AND it is *used by Org* (at least for the HTML export, and for LaTeX  
as well I

think -- or, in any case, it should use it).

Thus, I try to avoid declaring which language is used in the buffer  
at two
different spots, because we can change one and forget to change the  
other.


Therefore, I would like to keep only one language declaration (the  
one of the

Org template, in this case), and get Emacs follow it.

Does this make sense?

Best regards,
 Seb

--
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: hitting tab on last number item in list hides next paragraph

2010-01-15 Thread Carsten Dominik


On Jan 13, 2010, at 4:33 PM, Sébastien Vauban wrote:


Hi Carsten,

Carsten Dominik wrote:

On Jan 13, 2010, at 3:11 PM, Sébastien Vauban wrote:

Eric S Fraga wrote:

Carsten Dominik wrote:

On Jan 12, 2010, at 3:20 PM, Eric S Fraga wrote:


with the attached file, if I position the cursor on the 3rd  
numbered
entry in the first list and hit tab, the following single  
sentence
paragraph is hidden. This seems somewhat non-intuitive to me or  
have I
misunderstood something. My impression was that indentation was  
used to
identify continuing elements in a list or paragraph. Even  
adding more
blank lines between that 3rd entry and the sentence doesn't  
make any

difference.

This is not critical by any means!  Just a curious behaviour.


Yes, this is a shortcoming of list cycling which I cannot fix.  
Folding a
list item will always fold to the next item and not recognize  
the end of

the item as given by indentation.

If you find it too confusing, turn off `org-cycle-include-plain-
lists'.


I may just do that as I don't often want to hide list entries  
actually.


I'll do that as well, as I'm always caught when trying to indent  
correctly

a list item...

But, indeed, this is a very tiny detail.


Well, we could consider changing the defualt value for that  
variable..


I guess it could make sense, yes.

BTW, having updated that var for me (right now, in my `.emacs'  
file), it's OK
for properly indenting the first list item, but the others don't  
move when

TABbing. Any reason?


Yes.  You might be sitting in a deeply indented list structure, and
changing the indentation of an item that has less indentation
than the item above it would change the structure.

Mind that this is inherently tricky, and it has to be heuristic.
I think there is no really good solution to this in the sense
that it would allow you to re-indent an entire buffer using
TAB just like with a programming language.  Indentation has
syntactic meaning in Org.

I myself am using promotion/demotion commands to change
the indentation of list items, and I have trained myself
to make list items as much as possible with M-RET.

Best wishes

- Carsten



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] remote reference

2010-01-15 Thread Karl Eichwalder
I do not understand how I can reference tables (only the first one?)
in remote files.  The manual says:

Remote references
.

You may also reference constants, fields and ranges from a different
table, either in the current file or even in a different file.  The
syntax is

 remote(NAME-OR-ID,REF)

where NAME can be the name of a table in the current file as set by a
`#+TBLNAME: NAME' line before the table.  It can also be the ID of an
entry, even in a different file, and the reference then refers to the
first table in that entry.  REF is an absolute field or range reference
as described above for example `...@3$3' or `$somename', valid in the
referenced table.



remote(FILENAME,REF) does not seem to work.  All the tutorials I
found are either too basic or too advanced or too general.


-- 
Karl Eichwalder



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Update ispell-dictionary to text language

2010-01-15 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Jan 13, 2010, at 11:20 AM, Sébastien Vauban wrote:
>> Benjamin Andresen wrote:
>>> Sébastien Vauban  writes:

 Here my proposal (and my very first self-written chunk of ELisp code) for
 switching to the right language for ispell, upon reading the contents of
 the meta-tag `LANGUAGE'.
>>>
>>> I think using File Variables are better for this. For no particular reason
>>> except they are standardized and don't require any additional code in Org
>>> Mode.
>>> (info "(emacs)Specifying File Variables")
>>> # -*- ispell-local-dictionary: "german" -*-
>>
>> I know them [...] BUT there is a *language specification* in the Org
>> template [...] AND it is *used by Org* (at least for the HTML export, and
>> for LaTeX as well I think -- or, in any case, it should use it).
>>
>> Thus, I try to avoid declaring which language is used in the buffer at two
>> different spots, because we can change one and forget to change the other.
>>
>> Therefore, I would like to keep only one language declaration (the one of
>> the Org template, in this case), and get Emacs follow it.
>>
>> Does this make sense?
>
> I have seen this thread and I am still contemplating what
> to do with it.

My arguments are:

- We have a language specification in the Org template
- That should be used during the export to HTML (DONE)
- That should be used during the export to LaTeX (TODO)
- That should be used for editing the buffer in the right language (TODO/DONE,
  see my proposal)

I'm quite against /mixing language declarations/:
- in the Org template *and*
- in buffer local variables.

Of course, we could imagine the other way around: using the value of
`ispell-local-dictionary' for the 3 objectives (edition in correct language,
correct setting for generated HTML, correct setting for generated LaTeX). It'd
be as good for me.


> More input and opinions would be welcome.

So do I!  ;-)

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: hitting tab on last number item in list hides next paragraph

2010-01-15 Thread Sébastien Vauban
Hi Carsten,

Carsten Dominik wrote:
> On Jan 13, 2010, at 4:33 PM, Sébastien Vauban wrote:
>> Carsten Dominik wrote:
>>> Well, we could consider changing the defualt value for that variable..
>>
>> I guess it could make sense, yes.
>>
>> BTW, having updated that var for me (right now, in my `.emacs' file), it's
>> OK for properly indenting the first list item, but the others don't move
>> when TABbing. Any reason?
>
> Yes. You might be sitting in a deeply indented list structure, and changing
> the indentation of an item that has less indentation than the item above it
> would change the structure.
>
> Mind that this is inherently tricky, and it has to be heuristic. I think
> there is no really good solution to this in the sense that it would allow
> you to re-indent an entire buffer using TAB just like with a programming
> language. Indentation has syntactic meaning in Org.
>
> I myself am using promotion/demotion commands to change the indentation of
> list items, and I have trained myself to make list items as much as possible
> with M-RET.

OK with me...

Thanks for answering!

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: remote reference

2010-01-15 Thread Sébastien Vauban
Hi Karl,

"Karl Eichwalder" wrote:
> I do not understand how I can reference tables (only the first one?)
> in remote files.  The manual says:
>
> [...]
>
> remote(FILENAME,REF) does not seem to work.  All the tutorials I
> found are either too basic or too advanced or too general.

For an example, see my post of 2010-01-13 11:23, with title "Re: org-table and
formulas", trying to answer a (much more complex, in fact) question from Alan
Boudreault.

HTH,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [babel] Re: org-babel-R and windows ?

2010-01-15 Thread Stefan Vollmar
Dear Sébastien,
dear Dan,

On 14.01.2010, at 20:39, Sébastien Vauban wrote:

> Hi Dan,
> 
> Dan Davison wrote:
>> Sébastien Vauban  writes:
> [...]
> So, trying to answer your question, I would split it in two parts:
> 
> - calling scripts,
> - calling applications with some data or description.
> 
> First case: script written for the shell. Without cygwin, your interpreter is
> `cmd.exe', so pretty limited. And, here, we come back to one question I had
> some weeks ago about which interpreter is chosen when executing the snippet:
> bash, Zsh, etc. Same problem here, with a third possible command interpreter.
> 
> Second case: "applications" like R, ditaa, etc. There, I don't see any problem
> for calling them with some data to feed them. The only real condition is that
> the program must be found in the PATH (or the full path to the executable has
> to be given).

I would like to add something which we had to learn the hard way when working 
on a platform-independent project with a commandline-interface: the native 
commandline in MS Windows (cmd.exe) can only digest input with significantly 
fewer characters than the usual shells in Linux and Solaris - and then you get 
really strange and unhelpful error messages. The number of characters for 
Windows XP is 8191 characters, for older systems (Windows 2000) it is about 
2000 characters. This was a showstopper-class problem for us (we worked around 
this by putting all previous commandline arguments into an optional parameter 
file), much later we found an official Microsoft article on this: 
http://support.microsoft.com/kb/830473/EN-US

Warm regards,
 Stefan 
-- 
Dr. Stefan Vollmar, Dipl.-Phys.
Max-Planck-Institut für neurologische Forschung
Gleuelerstr. 50, 50931 Köln, Germany
Tel.: +49-221-4726-213  FAX +49-221-4726-298
Tel.: +49-221-478-5713  Mobile: 0160-93874279
Email: voll...@nf.mpg.de   http://www.nf.mpg.de







___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] remote reference

2010-01-15 Thread Carsten Dominik


On Jan 15, 2010, at 9:49 AM, Karl Eichwalder wrote:


I do not understand how I can reference tables (only the first one?)
in remote files.  The manual says:

Remote references
.

You may also reference constants, fields and ranges from a different
table, either in the current file or even in a different file.  The
syntax is

remote(NAME-OR-ID,REF)

where NAME can be the name of a table in the current file as set by a
`#+TBLNAME: NAME' line before the table.  It can also be the ID of an
entry, even in a different file, and the reference then refers to the
first table in that entry.  REF is an absolute field or range  
reference

as described above for example `...@3$3' or `$somename', valid in the
referenced table.

= 
= 
==


remote(FILENAME,REF) does not seem to work.  All the tutorials I
found are either too basic or too advanced or too general.



For tables in a different file, the remote table must be the first  
table in an outline node, and the outline node must have an ID property.


First configure org-modules and turn on the id module.
Then prepare your target file like this

* here is my table
  :PROPERTIES:
  :ID: DDE64190-0C3D-4088-A303-DA3B60ECEB48
  :END:

   and here we have the table.

   |...|...|...|


The ID can be an arbitrary string, but then you must
make sure yourself that it is globally unique.  Or you
can have Org-mode make the ID for you.

Hope this gets you on the way.

- Carsten





--
Karl Eichwalder



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: remote reference

2010-01-15 Thread Sébastien Vauban
Hi Karl,

> "Karl Eichwalder" wrote:
>> I do not understand how I can reference tables (only the first one?)
>> in remote files.  The manual says:
>>
>> [...]
>>
>> remote(FILENAME,REF) does not seem to work.  All the tutorials I
>> found are either too basic or too advanced or too general.
>
> For an example, see my post of 2010-01-13 11:23, with title "Re: org-table
> and formulas", trying to answer a (much more complex, in fact) question from
> Alan Boudreault.

Sorry, I read too quickly, and didn't spot the fact you wanted to reference a
table in another file...

Interesting question!!

Best regards,
  Seb

-- 
Sébastien Vauban



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Global agenda views creates lots of buffers.

2010-01-15 Thread Óscar Fuentes
Carsten Dominik  writes:

> As Darlan has said, you can exit the agenda with "x" to get
> rid of all buffers that where created to make the agenda
> and have not been modified since making them.

Thanks Darlan and Carsten. I'll resort to using `x' then.

-- 
Óscar



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Update ispell-dictionary to text language

2010-01-15 Thread Torsten Wagner
Hi Seb,
Hi Carsten,

I guess it depends highly on the definition. I can see Sebastien's points. It 
is somewhat strange to have a header-row "language" which does not have 
anything to do with the way how org-mode (resp. emacs) handels the org-buffer.
And the danger to use two different places + the confusion of two slightly 
different styles may confuse esp. newbies like me.

However, on the other side, it is said that C-c C-e t "insert the *export* 
option template". Which strongly refer to export features.

I guess it would be more clear if there is a #+EXPORT_LANGUAGE tag.
But to change this now is stupid as well. 

So not right sure what to do. 
Maybe leave it to people and offer a flag to say in the org config something 
like 
export_language is equal to ispell_language (maybe working both directions) 

Just two newbie-cents

Totti



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: refiling

2010-01-15 Thread Richard Riley


enter does indeed work now - I had reinstalled emacs in debian testing
and the version was way back at 6.21 for some reason. So sorry for that
bum steer. I wonder if it was because I built my own deb from source as
I didnt have that level of version before. I also cleaned up my accrued
org settings (ongoing) and now the ido completion for the refile target
is exceptionally fast too.

I am trying to set up a multi project org system using recursive org
files (find-lisp-find-files) and might still have issues with the "end
node" for refiling - I'm still being offered to complete to actual org
tasks as opposed to just the "level" and I'm not sure if this is a
limitation of the org hierarchical system or my
understanding/setup. I'll post more dumb questions when I've
experimented some more ;)

I knew I should never have stopped using org for a while, but the
building back from scratch is good for a clean out of my org-settings ;)

r.


Carsten Dominik  writes:

> On Jan 13, 2010, at 8:07 PM, John Rakestraw wrote:
>
>>> Richard Riley writes:
>>
>>> That is fine and as expected. My point is more that I am unable to
>>> file to linux.org/general since it has elements filed there. It  
>>> offers
>>> me to select an actual existing org item as opposed to letting me
>>> store the rewritten item to linux.org/general.
>>
>> Not sure I understand you here, so this might not be helpful. However,
>> when I do what I think you're trying to do, hitting the space bar  
>> after
>> "linux.org/general" is in the mini-buffer allows me to save directly  
>> to
>> "linux.org/general."
>
> Do you need to press SPACE, or does RET also do the trick?
> Because, as Manish points out in another message, SPC should
> really be allowed as a character in a new headline you define.
> Apparently right now it is not allowed as it is treated as
> a completion command.
>
> Could you please test if, in your setup, RET works as well?
>
> Thanks.
>
> - Carsten
>
>> This assumes that :level and/or :maxlevel are set
>> appropriately in the org-refile-targets variable.
>>
>> -- 
>> John Rakestraw
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> - Carsten
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] remote reference

2010-01-15 Thread Giovanni Ridolfi

Carsten,  

I cannot reference fields in tables as the manual says. 
Org-mode version 6.34
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON

Example:
-
* [2010-01-15 ven] table & reference
** table a
#+TBLNAME: Taba
|   | # |  x | y |
|---+---++---|
|   | 1 | -2 | 4 |
|   | 2 | -1 | 1 |
|   | 3 |  0 | 0 |
|   | 4 |  1 | 1 |
|   | 5 |  2 | 4 |
| ^ |   || a |
** table b
the manual says:  
: remote(NAME-OR-ID,REF)
: REF is an absolute field or range reference
: as described above for example `...@3$3' or `$somename', valid in the
: referenced table.

But I found that as a REF I can only  use: 
+ field  a cell  @5$1=remote(Taba,$a)
+ and *NOT* range reference (as $somename) or 
ranges such as @1$...@5$2, 
  but in the manual is not explicitly said.
  So I could have misunderstoot the meaning of "range".

See the non working examples:
*** variables
#+TBLNAME: Tabb
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $b=remote(Taba,$a)
*** columns  
#+TBLNAME: Tabc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $2=remote(Taba,$4)

#+TBLNAME: Tabcc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$...@5$2=remote(Taba,$4)
*** ranges: 
#+TBLNAME: Tabr
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$...@5$2=remote(Taba,@1$...@5$3)

Is my analysis correct? 
Did I misunderstand the meanong of "range"?
Is the documentation incomplete? 
Is there a bug  and  the documentation is correct?

cheers,
Giovanni


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] clock and WAIT

2010-01-15 Thread Richard Riley

When I put a task into certain states it would be nice to stop the clock
automatically. It is done for DONE at the moment.

Would it make sense to make

org-clock-out-when-done

a list of state names rather than (or in addition to) a bool?

That way I could make it DONE, WAIT so when I cycle the state to WAIT (eg for
an email confirming something works) the clock is stopped automatically?

Or is there another mechanism for this? Or is the mantra more to keep
stop/start manual until the obvious state for "DONE"?

regards

r.


-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Timeline View Ouput for a Project

2010-01-15 Thread Russell Adams
On Fri, Jan 15, 2010 at 01:36:24AM -0600, Xiaolong Tang wrote:
> Hi all,
> 
> I am in the case of keep tracking of my development on a project in org-mode.
> Suppose that I have a project called "lambda". Preferably I set up a file 
> "lambda.org" for this project. 

I use Org to execute every one of my professional projects. Outside of
two files I use for my Agenda and as a Remember target, every project
gets its own file just like that. Most of my projects are fairly short
and get closed up completely and archived.

> 
> Each day I may push more TODO lists into the project while making
> some progress on those TODO lists set up before (All of the TODO
> lists are with the same tag, for example, "lambda"). In order to
> report my performance, each time I start to work on the project, I
> check in by "C-c C-x C-i", namely, clock-in, and check out by "C-c
> C-x C-o", namely, clock-out. So far so good with the org-mode. 

Another item you may consider is that while you are working, you may
not close anything immediately. Each time I switch tasks in the Org
tree or come back to my computer I insert an inactive timestamp into
my file. Suddenly, it's a timestamped project journal!

You can use C-u C-c . , or I posted a piece of elisp a while back that
binds that to F9.

> 
> Next, I expect to have the per day report of the project in terms of the 
> items and the daily time length I spend on these times. In my mind, the view 
> looks like something as below:
> 
> Monday 11 January 2010 
>   Scheduled [Headline] 
>   TODO [Headline]   [Time Length] :@lambda::
>   TODO [Headline]   [Time Length] :@lambda::
>   ...
> Tuesday12 January 2010
>   Scheduled [Headline] 
>   TODO [Headline]   [Time Length] :@lambda::
>   TODO [Headline]   [Time Length] :@lambda::
>   ...
> ...
> 
> The timeline view of a single org file does not fit, and neither
> does the agenda view with clock report. So, I am wondering how I can
> achieve to have the daily report on a project. If my mental model on
> a project tracking does not make much sense, is there any
> suggestions or advices for using Org-mode to keep track of the
> development of a project?

The view I use is the logbook mode in Agenda.

Given my file is composed of todo's with lots of inactive timestamps
and the occasional logged todo state change there is plenty to view.

Load agenda, and press L for logbook. You can adjust the duration
covered by the view (day/week/month), and by default the inactive
timestamps are not shown. Use '[' to enable the display of the
inactive timestamps.

The output will be very similar to what you're asking for. In fact, it
may be identical. You'll see task by day & time, with status and
duration clocked.

When I have finished a project, I will frequently mail my customer the
project notes exported to HTML and include an html export of the
logbook so they can see what was done when, and to justify the hours.

Good luck!


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: refiling

2010-01-15 Thread John Rakestraw
> Carsten Dominik writes:

> Do you need to press SPACE, or does RET also do the trick? Because, as
> Manish points out in another message, SPC should really be allowed as
> a character in a new headline you define. Apparently right now it is
> not allowed as it is treated as a completion command.

When refiling an already existing note (using C-c C-w), then RET works.
However, when filing a new note created by org-remember (using C-c C-c),
RET merely prompts me with the possible next-level headings. Pressing
SPACE and then RET files the new note under the first-level heading. 

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Timeline View Ouput for a Project

2010-01-15 Thread Xiaolong Tang
At Fri, 15 Jan 2010 07:24:15 -0600,
Russell Adams wrote:
> 
> On Fri, Jan 15, 2010 at 01:36:24AM -0600, Xiaolong Tang wrote:
> > Hi all,
> > 
> > I am in the case of keep tracking of my development on a project in 
> > org-mode.
> > Suppose that I have a project called "lambda". Preferably I set up a file 
> > "lambda.org" for this project. 
> 
> I use Org to execute every one of my professional projects. Outside of
> two files I use for my Agenda and as a Remember target, every project
> gets its own file just like that. Most of my projects are fairly short
> and get closed up completely and archived.
> 
> > 
> > Each day I may push more TODO lists into the project while making
> > some progress on those TODO lists set up before (All of the TODO
> > lists are with the same tag, for example, "lambda"). In order to
> > report my performance, each time I start to work on the project, I
> > check in by "C-c C-x C-i", namely, clock-in, and check out by "C-c
> > C-x C-o", namely, clock-out. So far so good with the org-mode. 
> 
> Another item you may consider is that while you are working, you may
> not close anything immediately. Each time I switch tasks in the Org
> tree or come back to my computer I insert an inactive timestamp into
> my file. Suddenly, it's a timestamped project journal!
> 
> You can use C-u C-c . , or I posted a piece of elisp a while back that
> binds that to F9.
> 

Certainly inserting an (inactive) timestamp in the case as you mentioned is 
necessary (to me). Your code is preferred, of course, if you had time. 

> > 
> > Next, I expect to have the per day report of the project in terms of the 
> > items and the daily time length I spend on these times. In my mind, the 
> > view looks like something as below:
> > 
> > Monday 11 January 2010 
> >   Scheduled [Headline] 
> >   TODO [Headline]   [Time Length] :@lambda::
> >   TODO [Headline]   [Time Length] :@lambda::
> >   ...
> > Tuesday12 January 2010
> >   Scheduled [Headline] 
> >   TODO [Headline]   [Time Length] :@lambda::
> >   TODO [Headline]   [Time Length] :@lambda::
> >   ...
> > ...
> > 
> > The timeline view of a single org file does not fit, and neither
> > does the agenda view with clock report. So, I am wondering how I can
> > achieve to have the daily report on a project. If my mental model on
> > a project tracking does not make much sense, is there any
> > suggestions or advices for using Org-mode to keep track of the
> > development of a project?
> 
> The view I use is the logbook mode in Agenda.
> 
> Given my file is composed of todo's with lots of inactive timestamps
> and the occasional logged todo state change there is plenty to view.
> 
> Load agenda, and press L for logbook. You can adjust the duration
> covered by the view (day/week/month), and by default the inactive
> timestamps are not shown. Use '[' to enable the display of the
> inactive timestamps.
> 
> The output will be very similar to what you're asking for. In fact, it
> may be identical. You'll see task by day & time, with status and
> duration clocked.

Yes, you are correct. Yet I have a few questions. 

1. The agenda view with logbook-mode enabled does not show the deadline for a 
project in some cases. For example, I scheduled a project on Monday January 11, 
and set up its deadline, say, March 20. Thus, the original headline looks like:

* TODO XX
  SCHEDULED: <2010-01-11 Mon> DEADLINE: <2010-03-20 Sat>

The view output, however, does not show the deadline. I guess that the 
logbook-mode wold not show just because the deadline is far away from today, 
and it in principle only shows those happenings. Am I right?

2. Generally creating the agenda view works for all agenda files. So, in case 
that one want to create the view for an org file, is there any efficient way to 
do that? I have not figured out a satisfying method. Do you have any comment on 
this? 

3. As you mentioned below, you export the view to HTML. How do you get this 
done? 

> 
> When I have finished a project, I will frequently mail my customer the
> project notes exported to HTML and include an html export of the
> logbook so they can see what was done when, and to justify the hours.

I agree with you on this opinion. 
A lot of thanks to Russell.

  Best, 

Xiaolong



> 
> Good luck!
> 
> 
> --
> Russell Adamsrlad...@adamsinfoserv.com
> 
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
> 
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
> 
> 
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode 

Re: [Orgmode] clock and WAIT

2010-01-15 Thread Manish
On Fri, Jan 15, 2010 at 4:52 PM, Richard Riley wrote:
>
> When I put a task into certain states it would be nice to stop the clock
> automatically. It is done for DONE at the moment.
>
> Would it make sense to make
>
> org-clock-out-when-done
>
> a list of state names rather than (or in addition to) a bool?
>
> That way I could make it DONE, WAIT so when I cycle the state to WAIT (eg for
> an email confirming something works) the clock is stopped automatically?
>
> Or is there another mechanism for this? Or is the mantra more to keep
> stop/start manual until the obvious state for "DONE"?
>

Not for a list of states but it can be done for at least one state.
See variable org-clock-out-switch-to-state.

HTH
-- 
Manish


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Timeline View Ouput for a Project

2010-01-15 Thread Russell Adams
On Fri, Jan 15, 2010 at 09:38:39AM -0600, Xiaolong Tang wrote:
> Certainly inserting an (inactive) timestamp in the case as you
> mentioned is necessary (to me). Your code is preferred, of course,
> if you had time.

Add this to your .emacs, and F9 will insert an inactive timestamp for
"now". C-u C-c . RET is four keystrokes, this is a single. Its a great
shortcut. Forgive the duplication, I think I posted this twice to the
ML in the last six months.

;; Insert immediate timestamp
(define-key global-map (kbd "")
  '(lambda () (interactive)
 (when (eq major-mode 'org-mode)
   (org-insert-time-stamp nil t t)
   (insert "\n"

> Yes, you are correct. Yet I have a few questions. 
> 
> 1. The agenda view with logbook-mode enabled does not show the
> deadline for a project in some cases. For example, I scheduled a
> project on Monday January 11, and set up its deadline, say, March
> 20. Thus, the original headline looks like:
> 
> * TODO XX
>   SCHEDULED: <2010-01-11 Mon> DEADLINE: <2010-03-20 Sat>
> 
> The view output, however, does not show the deadline. I guess that
> the logbook-mode wold not show just because the deadline is far away
> from today, and it in principle only shows those happenings. Am I
> right?

I just checked my agenda in logbook mode, I do see scheduled and
deadline items, but only on *today*. It won't tell you if you met
them.

> 2. Generally creating the agenda view works for all agenda
> files. So, in case that one want to create the view for an org file,
> is there any efficient way to do that? I have not figured out a
> satisfying method. Do you have any comment on this?

When I'm working in a project file, I'll call agenda and restrict it
to the current file (C-c a 1 a). I don't typically add a project file
to my main agenda list. This also helps with exporting, a customer
doesn't need to see *my* agenda, just the project items.

> 3. As you mentioned below, you export the view to HTML. How do you
> get this done?

http://orgmode.org/manual/Exporting-Agenda-Views.html#Exporting-Agenda-Views

I do not setup export views for C-c a e, I don't do them often
enough. I'll just goto the logbook view, and C-x C-w.

Alternatively I think you can just call M-x htmlize-buffer.

Enjoy!

--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Setting up org-ctags and exporting ctags links

2010-01-15 Thread Juan Reyero
Greetings,

I've just installed org-ctags in my system and it works beautifully.
One note, though, for those of you running on OS-X: you need to setq
org-ctags-path-to-ctags pointing to your ctags executable before
requiring org-ctags, otherwise it fails as it tries to call a
non-existing (operating-system) function.

Also, there was some talk a while ago about exporting the org-ctags
links; Carsten pointed out that a function that returns the target's
filename was required
(http://www.mail-archive.com/emacs-orgmode@gnu.org/msg20565.html) and
Paul wrote org-ctags-get-filename-for-tag for this purpose.  I wonder,
has anybody used it to actually export HTML with ctags links?  I'd
like my web publishing to take advantage of the great ctags package.

Best,

Juan
-- 
http://juanreyero.com/


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] remote reference

2010-01-15 Thread Carsten Dominik

Hi Giovanni,

ranges are possible in remote references.  However, what
is not allowed it to assign them to a range.  On the left
side of equations you can only have single fields
like @2$3 or a column like $3.

So you might ask what the use of range references then
is?  You can put the ranges into calc functions like
vsum or vmean, or you can get them as lists in an
elisp formula.

Hope this clarifies it a bit

Looks like someone needs to write a tutorial about that! :-)

- Carsten

On Jan 15, 2010, at 11:29 AM, Giovanni Ridolfi wrote:



Carsten,

I cannot reference fields in tables as the manual says.
Org-mode version 6.34
GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON

Example:
-
* [2010-01-15 ven] table & reference
** table a
#+TBLNAME: Taba
|   | # |  x | y |
|---+---++---|
|   | 1 | -2 | 4 |
|   | 2 | -1 | 1 |
|   | 3 |  0 | 0 |
|   | 4 |  1 | 1 |
|   | 5 |  2 | 4 |
| ^ |   || a |
** table b
the manual says:
: remote(NAME-OR-ID,REF)
: REF is an absolute field or range reference
: as described above for example `...@3$3' or `$somename', valid in the
: referenced table.

But I found that as a REF I can only  use:
+ field  a cell  @5$1=remote(Taba,$a)
+ and *NOT* range reference (as $somename) or
  ranges such as @1$...@5$2,
but in the manual is not explicitly said.
So I could have misunderstoot the meaning of "range".

See the non working examples:
*** variables
#+TBLNAME: Tabb
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $b=remote(Taba,$a)
*** columns
#+TBLNAME: Tabc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: $2=remote(Taba,$4)

#+TBLNAME: Tabcc
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$...@5$2=remote(Taba,$4)
*** ranges:
#+TBLNAME: Tabr
|   |   |
|   |   |
|   |   |
|   |   |
|   |   |
|---+---|
| ^ | b |
#+TBLFM: @1$...@5$2=remote(Taba,@1$...@5$3)

Is my analysis correct?
Did I misunderstand the meanong of "range"?
Is the documentation incomplete?
Is there a bug  and  the documentation is correct?

cheers,
Giovanni


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Setting up org-ctags and exporting ctags links

2010-01-15 Thread Carsten Dominik


On Jan 15, 2010, at 4:55 PM, Juan Reyero wrote:


Greetings,

I've just installed org-ctags in my system and it works beautifully.
One note, though, for those of you running on OS-X: you need to setq
org-ctags-path-to-ctags pointing to your ctags executable before
requiring org-ctags, otherwise it fails as it tries to call a
non-existing (operating-system) function.



Hmm.  Maybe we could actually use executable-find to initialize
the variable.  I'll look into it.



Also, there was some talk a while ago about exporting the org-ctags
links; Carsten pointed out that a function that returns the target's
filename was required
(http://www.mail-archive.com/emacs-orgmode@gnu.org/msg20565.html) and
Paul wrote org-ctags-get-filename-for-tag for this purpose.  I wonder,
has anybody used it to actually export HTML with ctags links?  I'd
like my web publishing to take advantage of the great ctags package.


This part is not yet implemented.  Patches welcome!

- Carsten



Best,

Juan
--
http://juanreyero.com/


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Bug: org-make-link-string incorrect with URL containing escapes [6.34a]

2010-01-15 Thread Geert Kloosterman
Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.3)
 of 2009-12-02 on x86-7.fedora.phx.redhat.com
Package: Org-mode version 6.34a

Hi all,

When an org link is created from an URL containing a hex escape
`org-make-link-string' creates a link that ends up corrupted the moment
it is followed (e.g. using `org-open-at-point').

I've traced this back to `org-link-escape' and `org-link-unescape'.  The
following shows how the hex code "%2B" is converted to a "+" after an
escaping round trip:

(org-link-unescape (org-link-escape 
"http://some.host.com/form?&id=blah%2Bblah";))
==> 
"http://some.host.com/form?&id=blah+blah";

In my case this small change ended up in a broken URL.

Additionally, when the URL-escape happens to be in lower case (or
otherwise not present in `org-link-escape-chars') we end up with an
error:

(org-link-unescape (org-link-escape 
"http://some.host.com/form?&id=blah%2bblah";))
==> 
Debugger entered--Lisp error: (wrong-type-argument characterp nil)
  char-to-string(nil)
  ...

When `org-url-encoding-use-url-hexify' is set to `t' we do get a proper
round trip of the URL containing hex-escapes:

(setq org-url-encoding-use-url-hexify t)
(org-link-unescape (org-link-escape 
"http://some.host.com/form?&id=blah%2bblah";))
==>
"http://some.host.com/form?&id=blah%2bblah";


Setting `org-url-encoding-use-url-hexify' does not fix the complete
problem however: `org-open-at-point' still did not end up with the
proper URL.   Within `org-open-at-point' there is another call to
`org-link-escape':

(org-link-escape path org-link-escape-chars-browser)

This time a mapping table is passed in explicitly (the second argument).
However, when `org-url-encoding-use-url-hexify' is set,a this mapping
table isn't used, resulting (again) in a broken URL.

I have attached a patch that fixes the problem: do not use url-hexify in
`org-link-escape' and `org-link-unescape' when an explicit mapping table
has been specified.  

In summary:
 - the default behaviour of `org-link-escape', with
   `org-url-encoding-use-url-hexify' set to nil, has some issues with
   handling URLS which contain url-encoded hex escapes
 - when a mapping table is passed to `org-link-escape' and
   `org-link-unescape', they should probably not use url-hexify.
   Patch attached. 

Best regards,
Geert Kloosterman


--- org.el.orig	2010-01-12 08:54:31.0 +0100
+++ org.el	2010-01-15 14:14:38.0 +0100
@@ -7893,7 +7893,7 @@
 
 (defun org-link-escape (text &optional table)
   "Escape characters in TEXT that are problematic for links."
-  (if org-url-encoding-use-url-hexify
+  (if (and org-url-encoding-use-url-hexify (not table))
   (url-hexify-string text)
 (setq table (or table org-link-escape-chars))
 (when text
@@ -7910,7 +7910,7 @@
 
 (defun org-link-unescape (text &optional table)
   "Reverse the action of `org-link-escape'."
-  (if org-url-encoding-use-url-hexify
+  (if (and org-url-encoding-use-url-hexify (not table))
   (url-unhex-string text)
 (setq table (or table org-link-escape-chars))
 (when text
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-mobile-push and agenda IDs

2010-01-15 Thread Tom Tobin
I recently upgraded my org-mode, and found that org-mobile-push
started to litter my org files with property drawers.  I finally
figured out how to turn these off (via
org-mobile-force-id-on-agenda-items), but the org-mode manual makes it
sound like they're necessary for the proper operation of MobileOrg
[1].  I have a ton of TODO items on my agenda, and I really don't want
property drawers all over my files (even if they're collapsed to a
single line); is there a better way to handle this in my case?

[1]  "While
creating the agendas, Org-mode will force1 an ID property on all
entries referenced by the agendas, so that these entries can be
uniquely identified if MobileOrg flags them for further action."


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: clock and WAIT

2010-01-15 Thread Richard Riley
Manish  writes:

> On Fri, Jan 15, 2010 at 4:52 PM, Richard Riley wrote:
>>
>> When I put a task into certain states it would be nice to stop the clock
>> automatically. It is done for DONE at the moment.
>>
>> Would it make sense to make
>>
>> org-clock-out-when-done
>>
>> a list of state names rather than (or in addition to) a bool?
>>
>> That way I could make it DONE, WAIT so when I cycle the state to WAIT (eg for
>> an email confirming something works) the clock is stopped automatically?
>>
>> Or is there another mechanism for this? Or is the mantra more to keep
>> stop/start manual until the obvious state for "DONE"?
>>
>
> Not for a list of states but it can be done for at least one state.
> See variable org-clock-out-switch-to-state.
>
> HTH

Thats a different issue. That determines which state the task is
automatically switched to when you actually remember to clock out.

I'm not sure I would find that useful since there are multiple states I
might be in with and without the clock running and I wouldnt want stopping the
clock to reset the state.

-- 
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mobile-push and agenda IDs

2010-01-15 Thread Richard Moreland
Hi Tom,

They are not required, but they eliminate potential problems that may
be encountered with the simple path-based node identification scheme.
The risk level is fairly low, and you should be fine with the force
option disabled.

The path-based id scheme fails if you have this:

* Parent
** A name
*** A node you didn't edit
** A name
*** A node you edited

The path to the node you edited is ambiguous and will cause a sync
conflict.  As long as you keep this in mind, you should be fine.

Hope this helps,
Richard


On Fri, Jan 15, 2010 at 12:02 PM, Tom Tobin  wrote:
> I recently upgraded my org-mode, and found that org-mobile-push
> started to litter my org files with property drawers.  I finally
> figured out how to turn these off (via
> org-mobile-force-id-on-agenda-items), but the org-mode manual makes it
> sound like they're necessary for the proper operation of MobileOrg
> [1].  I have a ton of TODO items on my agenda, and I really don't want
> property drawers all over my files (even if they're collapsed to a
> single line); is there a better way to handle this in my case?
>
> [1]  "While
> creating the agendas, Org-mode will force1 an ID property on all
> entries referenced by the agendas, so that these entries can be
> uniquely identified if MobileOrg flags them for further action."
>
>
> ___
> Emacs-orgmode mailing list
> Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: clock and WAIT

2010-01-15 Thread Manish
On Fri, Jan 15, 2010 at 10:40 PM, Richard Riley wrote:
> Manish writes:
>
>> On Fri, Jan 15, 2010 at 4:52 PM, Richard Riley wrote:
>>>
>>> When I put a task into certain states it would be nice to stop the clock
>>> automatically. It is done for DONE at the moment.
>>>
>>> Would it make sense to make
>>>
>>> org-clock-out-when-done
>>>
>>> a list of state names rather than (or in addition to) a bool?
>>>
>>> That way I could make it DONE, WAIT so when I cycle the state to WAIT (eg 
>>> for
>>> an email confirming something works) the clock is stopped automatically?
>>>
>>> Or is there another mechanism for this? Or is the mantra more to keep
>>> stop/start manual until the obvious state for "DONE"?
>>>
>>
>> Not for a list of states but it can be done for at least one state.
>> See variable org-clock-out-switch-to-state.
>>
>> HTH
>
> Thats a different issue. That determines which state the task is
> automatically switched to when you actually remember to clock out.

You are right.  I misunderstood.  Sorry.

>
> I'm not sure I would find that useful since there are multiple states I
> might be in with and without the clock running and I wouldnt want stopping the
> clock to reset the state.

How about this?

--8<---cut here---start->8---
(add-hook 'org-after-todo-state-change-hook
 '(lambda ()
;; clock out when switching to WAIT
;; based on Eric Fraga's recent post to org-mode list
(if (string= state "WAIT") (org-clock-out t
--8<---cut here---end--->8---

Not sure if this is exactly what you need but guess it's a starting point..

-- 
Manish


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-mobile-push and agenda IDs

2010-01-15 Thread Tom Tobin
On Fri, Jan 15, 2010 at 12:12 PM, Richard Moreland  wrote:
> Hi Tom,
>
> They are not required, but they eliminate potential problems that may
> be encountered with the simple path-based node identification scheme.
> The risk level is fairly low, and you should be fine with the force
> option disabled.
>
> The path-based id scheme fails if you have this:
>
> * Parent
> ** A name
> *** A node you didn't edit
> ** A name
> *** A node you edited
>
> The path to the node you edited is ambiguous and will cause a sync
> conflict.  As long as you keep this in mind, you should be fine.

So as long as I don't duplicate names in the same level, I should be
okay?  I don't see myself ever doing that anyway, so that seems
harmless enough.

Aside — there's no way to cycle the visibility of drawers to
*completely* hidden, is there?  I wouldn't mind the property drawers
as much if I could completely ignore their existence during routine
org-mode editing.  :-)


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] clock and WAIT

2010-01-15 Thread Carsten Dominik


On Jan 15, 2010, at 12:22 PM, Richard Riley wrote:



When I put a task into certain states it would be nice to stop the  
clock

automatically. It is done for DONE at the moment.

Would it make sense to make

org-clock-out-when-done

a list of state names rather than (or in addition to) a bool?


I think that is a useful extension, so it now works like this.

Thanks.

- Carsten



That way I could make it DONE, WAIT so when I cycle the state to  
WAIT (eg for
an email confirming something works) the clock is stopped  
automatically?


Or is there another mechanism for this? Or is the mantra more to keep
stop/start manual until the obvious state for "DONE"?

regards

r.


--
Google Talk : rileyrg...@googlemail.com  http://www.google.com/talk



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: Bug: [Orgmode] bug in latex export [6.34b]

2010-01-15 Thread Carsten Dominik
Hi, this is not a bug.  Org-mode treats laTeX environments as  
implicitly literal.

As we have discussed a few days ago here, you can work around it using

#+LaTeX: {}\begin{multicol}[2]

- Carsten

P.S. this is becoming another subject for a FAQ which should cover both
 org-special-blocks.el and the workaround I show above.
 Would anyone like to volunteer writing it?  Thanks.

On Jan 15, 2010, at 7:05 AM, iem...@gmail.com wrote:


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?   
See


   http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I exported the following example test.org to latex, the content  
between

\begin{multicols}{2} and \end{multicols} hadn't been replaced with
latex code.

-test.org
#-*- mode: org; coding: utf-8 -*-
#+LATEX_HEADER: \usepackage{multicol}

* title

\begin{multicols}{2}

** subtitle

1. first
2. second

\end{multicols}
-end of test.org

I got the following result

-test.tex
% Created 2010-01-15 Fri 13:51
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{soul}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{multicol}

\title{test}
\author{}
\date{15 January 2010}

\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{title}
\label{sec-1}


\begin{multicols}{2}

**  subtitle

1. first
2. second

\end{multicols}

\end{document}
-end of test.tex

Emacs  : GNU Emacs 23.1.90.1 (i386-mingw-nt5.1.2600)
of 2009-12-16 on BREPNB
Package: Org-mode version 6.34b

current state:
==
(setq
org-log-done t
org-agenda-skip-scheduled-if-deadline-is-shown t
org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
vars)

org-special-ctrl-a/e t
org-agenda-files '("~/org/todo.org" "~/org/refile.org")
org-startup-truncated nil
org-agenda-skip-timestamp-if-done t
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-agenda-text-search-extra-files '(agenda-archives)
org-special-ctrl-k t
org-export-latex-format-toc-function 'org-export-latex-format-toc- 
default

org-agenda-skip-scheduled-if-done t
org-latex-to-pdf-process '("xelatex -interaction nonstopmode %s"
"xelatex -interaction nonstopmode %s")
org-export-preprocess-hook '(org-export-blocks-preprocess
org-export-bibtex-preprocess)
org-agenda-diary-file "~/org/todo.org"
org-tab-first-hook '(org-hide-block-toggle-maybe)
org-src-mode-hook '(org-src-mode-configure-edit-buffer)
org-confirm-shell-link-function 'yes-or-no-p
org-export-first-hook '(org-beamer-initialize-open-trackers)
org-clock-sound "d:/sound/Ringtone.mp3"
org-todo-keywords '((sequence "TODO(t)" "WAIT(w@/!)" "FUTURE(f)" "|"
"DONE(d!/!)" "NOTE(n@)" "CANCELED(c@/!)"))
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-default-notes-file "refile.org"
org-directory "~/org/"
org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-export-preprocess-before-normalizing-links-hook
'(org-remove-file-link-modifiers)
org-use-speed-commands t
org-mode-hook '(turn-on-org-cdlatex
   (lambda nil (org-add-hook (quote
change-major-mode-hook) (quote org-show-block-all) (quote append)
(quote local)))
   (lambda nil (visual-line-mode 1) (auto-complete-mode
1) (auto-complete-mode-maybe)))
org-agenda-ndays 1
org-refile-targets '((org-agenda-files :level . 1) (nil :level . 1))
org-confirm-elisp-link-function 'yes-or-no-p
org-fast-tag-selection-single-key 'expert
org-agenda-skip-deadline-if-done t
org-deadline-string "DUE:"
org-occur-hook '(org-first-headline-recenter)
org-from-is-user-regexp nil
org-export-preprocess-before-selecting-backend-code-hook
'(org-beamer-select-beamer-code)
org-remember-templates '(("todo" 116 "* TODO %?\n%U\n%a" nil bottom  
nil)

("note" 110 "* NOTE %?\n%U\n%a"
"~/org/todo.archive" "Notes" nil)
("diary" 100 "* %t %?" "~/org/todo.org" date- 
tree)

("appointment" 97 "* %^T %^{Event} -
%^{Place}\n%?\n%U" nil bottom nil))
org-export-latex-final-hook '(org-beamer-amend-header
org-beamer-fix-toc org-beamer-auto-fragile-frames
 org-beamer-place-default-actions-for- 
lists)

)


--
Kind regards,

Tian Qiu


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





_

Re: [Orgmode] Re: refiling

2010-01-15 Thread Carsten Dominik


On Jan 15, 2010, at 3:35 PM, John Rakestraw wrote:


Carsten Dominik writes:


Do you need to press SPACE, or does RET also do the trick? Because,  
as

Manish points out in another message, SPC should really be allowed as
a character in a new headline you define. Apparently right now it is
not allowed as it is treated as a completion command.


When refiling an already existing note (using C-c C-w), then RET  
works.
However, when filing a new note created by org-remember (using C-c C- 
c),

RET merely prompts me with the possible next-level headings. Pressing
SPACE and then RET files the new note under the first-level heading.


Hi John, thank you for the clear reply.  I need to look into
sanitizing this part.

- Carsten



--
John Rakestraw




___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Repeating dates on named weekdays

2010-01-15 Thread William Halliburton
Hello all, please excuse me if this is a FAQ, I can't seem to find any
discussion on it.

How can one enter in repeating dates such as

every third thursday of each month

or

the first and third wendsdays of each month

?

Thank you very much.
Will
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug: org-make-link-string incorrect with URL containing escapes [6.34a]

2010-01-15 Thread Carsten Dominik

Hi Geert,

wow, this was awesome!  This is the best kind of bug report I can  
imagine.

Thank you, your patch has been applied.

- Carsten

On Jan 15, 2010, at 2:41 PM, Geert Kloosterman wrote:


Emacs  : GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.18.3)
of 2009-12-02 on x86-7.fedora.phx.redhat.com
Package: Org-mode version 6.34a

Hi all,

When an org link is created from an URL containing a hex escape
`org-make-link-string' creates a link that ends up corrupted the  
moment

it is followed (e.g. using `org-open-at-point').

I've traced this back to `org-link-escape' and `org-link-unescape'.   
The

following shows how the hex code "%2B" is converted to a "+" after an
escaping round trip:

   (org-link-unescape (org-link-escape "http://some.host.com/form?&id=blah%2Bblah 
"))

   ==>
   "http://some.host.com/form?&id=blah+blah";

In my case this small change ended up in a broken URL.

Additionally, when the URL-escape happens to be in lower case (or
otherwise not present in `org-link-escape-chars') we end up with an
error:

   (org-link-unescape (org-link-escape "http://some.host.com/form?&id=blah%2bblah 
"))

   ==>
   Debugger entered--Lisp error: (wrong-type-argument characterp nil)
 char-to-string(nil)
 ...

When `org-url-encoding-use-url-hexify' is set to `t' we do get a  
proper

round trip of the URL containing hex-escapes:

   (setq org-url-encoding-use-url-hexify t)
   (org-link-unescape (org-link-escape "http://some.host.com/form?&id=blah%2bblah 
"))

   ==>
   "http://some.host.com/form?&id=blah%2bblah";


Setting `org-url-encoding-use-url-hexify' does not fix the complete
problem however: `org-open-at-point' still did not end up with the
proper URL.   Within `org-open-at-point' there is another call to
`org-link-escape':

   (org-link-escape path org-link-escape-chars-browser)

This time a mapping table is passed in explicitly (the second  
argument).

However, when `org-url-encoding-use-url-hexify' is set,a this mapping
table isn't used, resulting (again) in a broken URL.

I have attached a patch that fixes the problem: do not use url- 
hexify in
`org-link-escape' and `org-link-unescape' when an explicit mapping  
table

has been specified.

In summary:
- the default behaviour of `org-link-escape', with
  `org-url-encoding-use-url-hexify' set to nil, has some issues with
  handling URLS which contain url-encoded hex escapes
- when a mapping table is passed to `org-link-escape' and
  `org-link-unescape', they should probably not use url-hexify.
  Patch attached.

Best regards,
Geert Kloosterman


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


- Carsten





___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Repeating dates on named weekdays

2010-01-15 Thread William Halliburton
I've seen that page but I do not believe it covers the type of repetition
that I am interested in.

For instance, if I have an event like

"every third Monday of each month"

my first thought would be

<2010-01-18 Mon +1m>

but that repeats on the February 18,  which is a Thursday.

These type of repetitions are common for organization in this area and I
would like to avoid having to enter in each date separately

Thank you,
Will



On Fri, Jan 15, 2010 at 4:30 PM, Glauber Alex Dias Prado
wrote:

> William Halliburton  writes:
>
> > Hello all, please excuse me if this is a FAQ, I can't seem to find any
> > discussion on it.
> kind of
> >
> > How can one enter in repeating dates such as
> >
> > every third thursday of each month
> >
>
> http://www.gnu.org/software/emacs/manual/html_node/org/Repeating-items.html#Repeating-items
> http://orgmode.org/manual/Repeated-tasks.html#Repeated-tasks
>
> > or
> >
> > the first and third wendsdays of each month
> >
> > ?
> >
> > Thank you very much.
> > Will
> > ___
> > Emacs-orgmode mailing list
> > Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Repeating dates on named weekdays

2010-01-15 Thread John Rakestraw

> every third Monday of each month

I'm by no means the org/emacs expert, but here's what I'd do:

* Meeting on 3d Monday of each month
  <%%(diary-float t 1 3)>

(see
http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
and http://orgmode.org/manual/Weekly_002fdaily-agenda.html)

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Repeating dates on named weekdays

2010-01-15 Thread William Halliburton
Thanks much. That is exactly what I was wishing for.

On Fri, Jan 15, 2010 at 6:08 PM, John Rakestraw wrote:

>
> > every third Monday of each month
>
> I'm by no means the org/emacs expert, but here's what I'd do:
>
> * Meeting on 3d Monday of each month
>  <%%(diary-float t 1 3)>
>
> (see
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
> and http://orgmode.org/manual/Weekly_002fdaily-agenda.html)
>
> --
> John Rakestraw
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode