Re: [Orgmode] Status google calendar sync

2011-01-26 Thread Mark Elston

On 1/26/2011 4:52 PM, Arun Persaud wrote:

Hi


You are right that googlecl is poorly documented, and worse, it doesn't
even work as the documentation says it should.  Try retrieving calendar
events with --fields="title,when" and see what happens.  I get the
title printed out but the "when" always comes out as None.


my man pages for googlecl don't mention a "fields" options. Doing

"google calendar list when,where,title"

works for me though (using googlecl that comes with openSUSE 11.3).



I try this and get absolutely nothing.  Just an empty calendar line.
I am using the latest (0.9.12), BTW.  If you enter

  google --help

part of the help is:

  --fields=FIELDS   Fields to list with list task.



However, I have had better luck with the python gdata interface.  The
docs aren't much better but I have managed to figure out how to modify
an existing event using it.  And, there are examples of how to search
for specific events...


cool, do you have this integrated with org? if so could you post the code?


Not yet.  I have just started playing with it so I wanted to get a feel
for how to do some of the basics (which took some playing first).  There
are some really simple examples on the website but for anything more
complicated you need to look at either how the XML is structured or
take a look at JSON info and try to deduce from there what is needed in
the python code.  It isn't always (or even usually) obvious...  At least
it hasn't been for me so far.


While using googlecl might be interesting it would probably be simpler
to come up with a specific library for doing the things that need to
be done directly with gdata (which is what googlecl uses anyway) and
calling scripts that make use of this specific library, instead.


I guess one could also use google calendar completely without googlecl
or gdata, since you can point google at an .ics file to import it into
google's calendar and Eric's script already handles the other way
(google->org).


Perhaps, but one of the things I want to do is to share a couple of my
Google calendars with specific groups of people. I have a home, work,
and two different teaching calendars.  If I have an .ics file on my
machine that doesn't help much in the sharing, does it?  I don't know
as I have never used an .ics file for anything yet.

I would like to maintain info about upcoming classes in my org file and,
when things change, update the calendar with the appropriate
information.  Occasionally I have had to reschedule classes, for
example, or break a single session into two sessions.  What I want is
to publish the resulting information after all my org file manipulations
are done so my students can see the results.

Mark

___
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] Status google calendar sync

2011-01-26 Thread Arun Persaud
Hi

> You are right that googlecl is poorly documented, and worse, it doesn't
> even work as the documentation says it should.  Try retrieving calendar
> events with --fields="title,when" and see what happens.  I get the
> title printed out but the "when" always comes out as None.

my man pages for googlecl don't mention a "fields" options. Doing

"google calendar list when,where,title"

works for me though (using googlecl that comes with openSUSE 11.3).

> However, I have had better luck with the python gdata interface.  The
> docs aren't much better but I have managed to figure out how to modify
> an existing event using it.  And, there are examples of how to search
> for specific events...

cool, do you have this integrated with org? if so could you post the code?

> While using googlecl might be interesting it would probably be simpler
> to come up with a specific library for doing the things that need to
> be done directly with gdata (which is what googlecl uses anyway) and
> calling scripts that make use of this specific library, instead.

I guess one could also use google calendar completely without googlecl
or gdata, since you can point google at an .ics file to import it into
google's calendar and Eric's script already handles the other way
(google->org).

Arun

___
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] Possible Calc support for Org-Babel?

2011-01-26 Thread Christopher Allan Webber
(failed to wide-reply initially)

I just had use for this for some quick calculations I wanted to add to
one of my files, but...

Any idea why variables inside of parentheses don't work, but variables
outside of them do?

#+BEGIN_SRC calc :var testvar=9000
testvar - 200
#+END_SRC

#+results:
: 8800


#+BEGIN_SRC calc :var testvar=9000
(testvar - 200) 800
#+END_SRC

#+results:
: 800 testvar - 16

"Eric Schulte"  writes:

> Alright,
>
> I've just pushed up support for variables.  The following should all
> work as expected (or at least as I would expect them to).  Note that
> most all of these blocks would have an effect on the calc stack.  I
> think the next step would be to allow different sessions to specify
> different stacks.
>
> ** playing with calc support
> #+begin_src emacs-lisp :results silent
>   (require 'ob-calc)
> #+end_src
> #+begin_src calc :var some=8
>   some
>   some
>   '*
>   1
>   '+
> #+end_src
>
> #+results:
> : 65
>
> #+begin_src calc
>   2*(8+8)
> #+end_src
>
> #+results:
> : 32
>
> #+begin_src calc
>   2*e
> #+end_src
>
> #+results:
> : 5.43656365692
>
> #+begin_src calc :var something=9
>   2*something
> #+end_src
>
> #+results:
> : 18
>
> There are very likely some bugs, and as always I'm eager for a calc
> power user to show me the light of how this support could be make more
> "calc idiomatic".
>
> Cheers -- Eric
>
> Eric S Fraga  writes:
>
>> Forgot to CC the list et al.
>>
>> "Eric Schulte"  writes:
>>
>>> Eric S Fraga  writes:
>>
>> [...]
>>
 I now wonder if it would be worthwhile discussing the choices you have
 made regarding stack versus algebraic evaluation.  I would rather have
 the quote mean an algebraic expression, just from the simple reason that
 these will be longer than stack operations and so the overhead of a
 quote is smaller as a percentage of keystrokes...

>>>
>>> Hmm, one point against prefixing the algebraic expressions is that they
>>> would be more likely to be used by themselves in an inline code block.
>>
>> Yes, I guess so.  My initial thoughts were that we have plenty of
>> algebraic languages available already through babel (octave, R, python,
>> ...) so why not support a stack based one more directly.   However, the
>> real benefit of calc is that it is *emacs* and not external!  Algebraic
>> is more natural to most people so making it easy for them to express
>> themselves makes sense.
>
> ___
> 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] Status google calendar sync

2011-01-26 Thread Mark Elston

On 1/26/2011 4:33 AM, Eric S Fraga wrote:

Arun Persaud  writes:

[...]


For the other route, org to Google, I use the googlecl (command line)
interface:

http://article.gmane.org/gmane.emacs.orgmode/27214


don't really know that much lisp, but I guess you add the entries
directly to google when you create them via org-capture? What happens if
you later edit an entry, say change the time/date? This is something I
do very often and I would need google to reflect those changes. I also
only want to export certain tags and entries that have a date-range
(e.g. start and stop time), but I guess that could be easily arranged in
the lisp function that you wrote?


The short answer is that I don't have any automation for updating events
that change unfortunately.  I imagine one could get googlecl to do this
but given the lack of documentation on that interface, it could be
tricky.  If anybody figures out how to do all of this with googlecl, I
would be more than happy!


You are right that googlecl is poorly documented, and worse, it doesn't
even work as the documentation says it should.  Try retrieving calendar
events with --fields="title,when" and see what happens.  I get the
title printed out but the "when" always comes out as None.

However, I have had better luck with the python gdata interface.  The
docs aren't much better but I have managed to figure out how to modify
an existing event using it.  And, there are examples of how to search
for specific events...

While using googlecl might be interesting it would probably be simpler
to come up with a specific library for doing the things that need to
be done directly with gdata (which is what googlecl uses anyway) and
calling scripts that make use of this specific library, instead.

Mark


___
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] Make text below heading not part of the heading

2011-01-26 Thread Jeff Horn
On Wed, Jan 26, 2011 at 3:55 PM, Marcelo de Moraes Serpa
 wrote:
> Would the current behavior be considered a bug or a feature?

I consider it a feature. I don't know what your use case is (why you
want to do this), but if you want to callout particular information,
as a header, without messing with folding, I suggest trying
org-inlinetask-insert-task. You can delete the "TODO" keyword if it
pops up.

You could also use list items instead of headers if you want to
visually separate text from the body, like a note to self.

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

___
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] Make text below heading not part of the heading

2011-01-26 Thread Marcelo de Moraes Serpa
Thanks Christian,

Would the current behavior be considered a bug or a feature?

Marcelo.

On Wed, Jan 26, 2011 at 2:33 PM, Christian Moe  wrote:
> Hi,
>
> I think you need to give the final text a dummy heading of its own. A
> further partial solution would be to set the VISIBILITY property of the
> dummy heading to `content' or `all', so the text would always be visible on
> startup.
>
> Yours,
> Christian
>
>
> On 1/26/11 6:16 PM, Marcelo de Moraes Serpa wrote:
>>
>> Hi list,
>>
>> This might be a stupid question, but I still could not find a proper
>> solution for the following issue:
>>
>> Let's say I have the following text in an org buffer:
>>
>> * A folded heading with some text beneath...
>>
>> And that I want to keep the document going by typing below this
>> heading. However, the text *should not* belong to the heading in
>> question. It is "headless".
>>
>> The issue is that org always tries to "eat" any text below a heading.
>> If I fold it and then type the text beneath, it seems to work, until I
>> unfold,fold again (or reload the file) just to see the text as part of
>> that item again.
>>
>> is there a way to have text below an org heading not be part of the
>> heading itself, in org terms ?
>>
>> Thanks,
>>
>> Marcelo.
>>
>> ___
>> 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] Make text below heading not part of the heading

2011-01-26 Thread Christian Moe

Hi,

I think you need to give the final text a dummy heading of its own. A 
further partial solution would be to set the VISIBILITY property of 
the dummy heading to `content' or `all', so the text would always be 
visible on startup.


Yours,
Christian


On 1/26/11 6:16 PM, Marcelo de Moraes Serpa wrote:

Hi list,

This might be a stupid question, but I still could not find a proper
solution for the following issue:

Let's say I have the following text in an org buffer:

* A folded heading with some text beneath...

And that I want to keep the document going by typing below this
heading. However, the text *should not* belong to the heading in
question. It is "headless".

The issue is that org always tries to "eat" any text below a heading.
If I fold it and then type the text beneath, it seems to work, until I
unfold,fold again (or reload the file) just to see the text as part of
that item again.

is there a way to have text below an org heading not be part of the
heading itself, in org terms ?

Thanks,

Marcelo.

___
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] org-mode without stars

2011-01-26 Thread brian powell
The original "outline-mode" in EMACS which predates "org-mode" used stars.

Using stars "*" is the best way to do it; the reasons are many--OrgMode
files are flat text files and this is great too--but keep this in mind
here--think about searches, etc.

PYTHON uses indentation (and thats great); LISP silly/wonderful parens,
etc.--for EMACS use stars!  They look great!  They are the best thing to use
here:

Stars "*" are also used as the symbol for "regular-expressions"--based on
neurology/neurons/dendrites/trees/outline-trees/etc. and the "Kleene
Closure" (i.e. the mathematician Kleene)--the study of neurology and
regular-expressions and the stars "*" are intertwined--the history dates at
least back to the 1930s--and LISP/lambda calculus/Alonso Church/Kleene--the
1950s.

A star "*" @is@ a "Kleene Closure"--math.

A star "*" is easily recognized as a symbol for a note: From
http://Wiktionary.com: "  "*"== "Used at the beginning of a footnote ,
especially if it is the only one on the page, and after a word, phrase, or
sentence that this ..."

"So, why should I care"!? (you might have been thinking)

Well, howsabout this: Say you are searching for a string and/or regular
expression in a flat text file--you wouldn't search for "*"--you would
usually be search for a string (maybe an indentation level of stars "*")
using EMACS--which is by the way the fastest way to find such things --if
you are typing in real-time--emacs will highlight a search as you type
it--this function is very fast--Suggest you try these 2 examples: Cs
blah-search-string "***"--and maybe Mx search-for-regexp "***"---they have
different uses/meanings--when searching in EMACS) since emacs is the fastest
regular expression engine (for 1st-character(s)-recoginition (the engine is
optimized for this) so for this case/this type of search there is @nothing
faster@ (BTW check out QEMACS if you're working with a huge/gigabyte size
files--its fun to edit huge files with QEMACS--written by the same guy that
calculated PI with a desktop computer--to the longest # he also wrote QEMU
(Fabrice Bellard: http://bellard.org) for this type of regular-expression
search (many other engines are faster and use different algorithms--for the
purposes they were built for--and so they should be used then--each regexp
engine seems to have a niche.)

Use EMACS OrgMode and use stars "*", they really are the best for this case;
my brain is overheating thinking of the many good reasons.  But, "How do
they look when you print them out!?", etc.; well, I suggest you tailor that
with PERL, thats what I use--I quickly change doc formats to TeX--TeX is the
only thing that @really@ looks pretty!

Please "leave well enough alone"! That said, I hope you do whatever you want
and don't listen to me or anyone else on such matters--EMACS is infinitely
extensible, have fun!

;-)

On Wed, Jan 26, 2011 at 11:57 AM, Samuel Wales  wrote:

> Hi Bayle,
>
> On 2011-01-22, Bayle Shanks  wrote:
> > get new laptop
> >
> > organize interstellar dust meeting
> >  book the meeting room
> >  organize LOC
> >  Invited speakers
> >   - Draine
> >   - Tielens
> >   - Hollenbach
> >  1st announcement
> >
> > fix the bell in the hall
>
> I indent by spaces by 2 a lot to save typing.  c-c - and c-c * will
> convert.  They do not handle indentation, but that might be a very
> useful feature (I would use it too).
>
> This does handle indentation.  I wrote it a very long time ago for a
> different, 8-space indentation.
>
> (defun alpha-orgify ()
>  "quick hack.  create org format from my indented outline
> format, which consists of 8-space indentation.  operate on the
> region.  assume a certain number of stars and odd levels."
>  (interactive)
>  (let ((b (region-beginning))
>(e (region-end))
>;;manually mod for now.  headline vs. bullet.
>(bulletp nil))
>(loop
>   while
> (progn
>   (save-excursion
> ;;use (re-)search-forward and replace-match when no query?  i'd
> ;;prefer without the pattern (i.e. just ^) but you might be
> ;;re-orgifying an already-orgified region.  btw match-string is
> ;;how you get the string.
> (perform-replace "^\\([^*]\\)"
>  (if bulletp
>  "  \\1"
>"*** \\1")
>  t ;interactive
>  t nil nil nil
>  b
>  e))
>   (save-excursion
> (perform-replace ""
>  (if bulletp
>  "  "
>"**")
>  t ;interactive
>  t nil nil nil
>  b
>  e))
>   (when bulletp
> (progn
>   ;;how to make it greedy?
>   (perfo

Re: [Orgmode] [PATCH] Preserve trailing blank lines

2011-01-26 Thread Jason Dunsmore
Bastien  writes:

> Jason Dunsmore  writes:
>
>> I now understand this is a formatting convention issue.  
>
> I'm trying to figure out when this patch is useful.  I understand this
> is when `org-blank-before-new-entry' doesn't set heading to t or auto, 
> but I don't understand what it the difference the patch introduces then.
>
> Could you send a _visual_ example, with useless empty lines that you
> want to get rid off when org-metaup etc ?

Convention 1: Newline above headings

This seems to be used more often when the body does not have delimiting
newlines.

Configuration:

--8<---cut here---start->8---
(setq org-blank-before-new-entry '((heading . t)
   (plain-list-item . t)))
--8<---cut here---end--->8---

Org example:

--8<---cut here---start->8---

* Section

** Subsection 1
Body

** Subsection 2
Body
--8<---cut here---end--->8---


Convention 2: Newline after bodies

This seems to be used more often when the body does have delimiting
newlines.

Configuration:

--8<---cut here---start->8---
(setq org-blank-before-new-entry '((heading . nil)
   (plain-list-item . nil)))
--8<---cut here---end--->8---

Org example:

--8<---cut here---start->8---
* Section
** Subsection 1

Body

** Subsection 2

Body

--8<---cut here---end--->8---

I've seen both conventions in use on Worg and in Org-mode tutorials.

I just tested these configurations and Org examples out with the patch
and it seems to work well.  I've been using the patch on my systems for
a while now and haven't noticed any bad side-effects.

Let me know if you need any other information.

Regards,
Jason

___
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: [ANN] Changes to lists

2011-01-26 Thread Karl Maihofer
Nicolas,

Nicolas Goaziou  gmail.com> writes:
> I would like to announce, and submit to discussion, some list code
> upgrades. So, let me introduce the changes done in development branch:

Great! Thanks a lot. I just tested the inline task part and have an issue with
demoting of list items, please see below.

>  As a special case, inline tasks, though starting at column 0, are
>  always considered part of the first item above in the list.
>  Consider the following example, with (require 'org-inlinetask),
>  and try moving first sub-item, or exporting:
> 
>  - A list with
>+ A sub-list
> *** TODO Stuff waiting
> 1. First good reason to delay the task
> 2. Second good reason to delay it
> *** END
>+ Another sub-item

Pressing M- with the cursor on "Item 2" in the example below inserts a
space before the inline task, so that it's no longer recognized as a task.

--- Example --
- Item 1
- Item 2
  - Item 2.1

*** Inline Task
Text
*** END

  - Item 2.2
- Item 3
---

Kind regards,
Karl



___
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: org mode in multi-mode

2011-01-26 Thread Bastien
Hi Hopsing,

Hopsing K  writes:

> Appended is a patch to implement kind of a "break" on
> a child entry:
>
> -- a.org ---
> a
> a
> * s1
> b
> b
> * #
> c
> c
> ---
>
> When doing a TAB on "* s1" only the "b" section will fold.
> "* #" (a heading with name "#") is implemented as a
> child that is made visible by default when when unfolding.
> It is also shown by default when cycling globally. 
> Works at all sublevels.

Are you actually using this patch yourself?

I couldn't not apply it because of trailing whitespaces.

I'm skeptical about the real benefit, and I'm reluctant to 
add more syntactical complexity to the handling of headline.

I'd be curious to head if anyone else would find this useful.

Thanks!

-- 
 Bastien

___
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


[Accepted] [Orgmode] Quote \[cmd] in docstring of org-export-with-LaTeX-fragments

2011-01-26 Thread Bastien Guerry
Patch 550 (http://patchwork.newartisans.com/patch/550/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1295529226-12765-1-git-send-email-wence%40gmx.li%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Quote \[cmd] in docstring of 
> org-export-with-LaTeX-fragments
> Date: Thu, 20 Jan 2011 18:13:46 -
> From: Lawrence Mitchell 
> X-Patchwork-Id: 550
> Message-Id: <1295529226-12765-1-git-send-email-we...@gmx.li>
> To: emacs-orgmode@gnu.org
> Cc: Lawrence Mitchell 
> 
> * org-exp.el (org-export-with-LaTeX-fragments): Fix docstring so that
> \\[ a = b \\] is not interpreted as a keybinding by
> `substitute-command-keys'.
> 
> In a docstring \\[text] is used to indicate that text should be
> interpreted by `substitute-command-keys'.  To avoid this
> interpretation, we need to prefix it with \\=.
> 
> ---
> lisp/org-exp.el |4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 7c814cd..9954227 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -475,8 +475,8 @@ This option can also be set with the +OPTIONS line, e.g. 
> \"TeX:nil\"."
>"Non-nil means process LaTeX math fragments for HTML display.
>  When set, the exporter will find and process LaTeX environments if the
>  \\begin line is the first non-white thing on a line.  It will also find
> -and process  the math delimiters like $a=b$ and \\( a=b \\) for inline math,
> -$$a=b$$ and \\[ a=b \\] for display math.
> +and process the math delimiters like $a=b$ and \\( a=b \\) for inline math,
> +$$a=b$$ and \\=\\[ a=b \\] for display math.
>  
>  This option can also be set with the +OPTIONS line, e.g. \"LaTeX:mathjax\".
>  
> 

___
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


[Accepted] [Orgmode] use @result{} instead of --> (looks nicer)

2011-01-26 Thread Bastien Guerry
Patch 458 (http://patchwork.newartisans.com/patch/458/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1291842341-15199-1-git-send-email-bjg%40network-theory.co.uk%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] use @result{} instead of --> (looks nicer)
> Date: Thu, 09 Dec 2010 02:05:23 -
> From: Brian Gough 
> X-Patchwork-Id: 458
> Message-Id: <1291842341-15199-1-git-send-email-...@network-theory.co.uk>
> To: emacs-orgmode@gnu.org
> Cc: Barry Gidden ,
>   Brian Gough 
> 
> ---
>  doc/org.texi |   54 +++---
>  1 files changed, 27 insertions(+), 27 deletions(-)
> 
> 
> diff --git a/doc/org.texi b/doc/org.texi
> index 7df03fe..94a4290 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -5304,20 +5304,20 @@ various inputs will be interpreted, the items filled 
> in by Org-mode are
>  in @b{bold}.
>  
>  @example
> -3-2-5 --> 2003-02-05
> -2/5/3 --> 2003-02-05
> -14--> @b{2006}-@b{06}-14
> -12--> @b{2006}-@b{07}-12
> -2/5   --> @b{2007}-02-05
> -Fri   --> nearest Friday (default date or later)
> -sep 15--> @b{2006}-09-15
> -feb 15--> @b{2007}-02-15
> -sep 12 9  --> 2009-09-12
> -12:45 --> @b{2006}-@b{06}-@b{13} 12:45
> -22 sept 0:34  --> @b{2006}-09-22 0:34
> -w4--> ISO week for of the current year @b{2006}
> -2012 w4 fri   --> Friday of ISO week 4 in 2012
> -2012-w04-5--> Same as above
> +3-2-5 @result{} 2003-02-05
> +2/5/3 @result{} 2003-02-05
> +14@result{} @b{2006}-@b{06}-14
> +12@result{} @b{2006}-@b{07}-12
> +2/5   @result{} @b{2007}-02-05
> +Fri   @result{} nearest Friday (default date or later)
> +sep 15@result{} @b{2006}-09-15
> +feb 15@result{} @b{2007}-02-15
> +sep 12 9  @result{} 2009-09-12
> +12:45 @result{} @b{2006}-@b{06}-@b{13} 12:45
> +22 sept 0:34  @result{} @b{2006}-09-22 0:34
> +w4@result{} ISO week for of the current year @b{2006}
> +2012 w4 fri   @result{} Friday of ISO week 4 in 2012
> +2012-w04-5@result{} Same as above
>  @end example
>  
>  Furthermore you can specify a relative date by giving, as the
> @@ -5329,13 +5329,13 @@ a single letter, you use the abbreviation of day 
> name, the date will be
>  the Nth such day.  E.g.
>  
>  @example
> -+0--> today
> -. --> today
> -+4d   --> four days from today
> -+4--> same as above
> -+2w   --> two weeks from today
> -++5   --> five days from default date
> -+2tue --> second Tuesday from now.
> ++0@result{} today
> +. @result{} today
> ++4d   @result{} four days from today
> ++4@result{} same as above
> ++2w   @result{} two weeks from today
> +++5   @result{} five days from default date
> ++2tue @result{} second Tuesday from now.
>  @end example
>  
>  @vindex parse-time-months
> @@ -5349,9 +5349,9 @@ start time and a duration (in HH:MM format). Use `-' or 
> `-{}-' as the separator
>  in the former case and use '+' as the separator in the latter case. E.g.
>  
>  @example
> -11am-1:15pm--> 11:00-13:15
> -11am--1:15pm   --> same as above
> -11am+2:15  --> same as above
> +11am-1:15pm@result{} 11:00-13:15
> +11am--1:15pm   @result{} same as above
> +11am+2:15  @result{} same as above
>  @end example
>  
>  @cindex calendar, for selecting date
> @@ -13295,9 +13295,9 @@ Org will move the following key bindings in Org 
> files, and in the agenda
>  buffer (but not during date selection).
>  
>  @example
> -S-UP  ->  M-p S-DOWN ->  M-n
> -S-LEFT->  M-- S-RIGHT->  M-+
> -C-S-LEFT  ->  M-S--   C-S-RIGHT  ->  M-S-+
> +S-UP  @result{}  M-p S-DOWN @result{}  M-n
> +S-LEFT@result{}  M-- S-RIGHT@result{}  M-+
> +C-S-LEFT  @result{}  M-S--   C-S-RIGHT  @result{}  M-S-+
>  @end example
>  
>  @vindex org-disputed-keys
> 

___
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


[Accepted] [Orgmode] PATCH: Support `org-export-process-option-filters' in latex export

2011-01-26 Thread Bastien Guerry
Patch 554 (http://patchwork.newartisans.com/patch/554/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Cm14o92l2wz.fsf%4094.197.132.141.threembb.co.uk%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] PATCH: Support `org-export-process-option-filters' in latex
>   export
> Date: Fri, 21 Jan 2011 19:58:04 -
> From: Dan Davison 
> X-Patchwork-Id: 554
> Message-Id: 
> To: emacs-orgmode@gnu.org
> 
> `org-export-process-option-filters' is supported for HTML export but not
> for latex export. The patch at the bottom fixes that.
> 
> I note that there is one other location in the same function where it
> seems the same change could be made. I suspect this is not necessary,
> but if someone is familiar with the org-latex code they might like to
> have a look. (I didn't manage to understand the roles of the several
> variables with names like *-opt-plist *-options-plist in that function.)
> 
> I'm protecting this patch from patchwork with ^$; it's the patch at the
> bottom that I propose.
> 
> $ diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> $ index 51ee6d2..53d6b40 100644
> $ --- a/lisp/org-latex.el
> $ +++ b/lisp/org-latex.el
> $ @@ -700,7 +700,8 @@ when PUB-DIR is set, use this as the publishing 
> directory."
> $  '(:org-license-to-kill nil
> $(org-update-radio-target-regexp)
> $(org-export-latex-set-initial-vars ext-plist arg)
> $ -  (setq org-export-opt-plist org-export-latex-options-plist)
> $ +  (setq org-export-opt-plist
> $ +   (org-export-process-option-filters org-export-latex-options-plist))
> $(org-install-letbind)
> $(run-hooks 'org-export-latex-after-initial-vars-hook)
> $(let* ((wcf (current-window-configuration))
> $ 
> 
> Support `org-export-process-option-filters' in latex export
> 
> * lisp/org-latex.el (org-export-as-latex): Process export property
> list with `org-export-process-option-filters' early in latex export
> 
>   Modified lisp/org-latex.el
> 
> 
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index ecaf1c0..51ee6d2 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el
> @@ -704,7 +704,8 @@ when PUB-DIR is set, use this as the publishing 
> directory."
>(org-install-letbind)
>(run-hooks 'org-export-latex-after-initial-vars-hook)
>(let* ((wcf (current-window-configuration))
> -  (opt-plist org-export-latex-options-plist)
> +  (opt-plist
> +   (org-export-process-option-filters org-export-latex-options-plist))
>(region-p (org-region-active-p))
>(rbeg (and region-p (region-beginning)))
>(rend (and region-p (region-end)))
> 

___
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: - Bug: [CLOSED ?] Agenda view switches back to week with "g" [7.4]

2011-01-26 Thread Joel James Adamson
Michael Brand  writes:

> On Wed, Dec 22, 2010 at 12:54, Giovanni Ridolfi
>  wrote:
>> adams...@email.unc.edu (Joel J. Adamson) writes:
> [...]
>>> today is Wednesday so pressing "d" brings me the third day of the week.
>>> I then press
>>> "g" (org-agenda-redo)  which takes me back to week view.
> [...]
>> It seems to me that this bug has been fixed.
>
> This is still an issue for custom agenda views. With the today's
> release_7.4-246-g9658a99 and the test config
> (setq org-agenda-custom-commands '(("x" "test" ((agenda)
> I observe:
> - `C-c a a' like expected:
>   1) `d g' stays on "view day"
>   2) `w f d g' stays on "view day" and also stays on the day of the next week
> - `C-c a x' is expected by me to do the same as above but it does:
>   1) `d g' switches back to "view week"
>   2) `w f d g' switches back to "view week" and changes back to current week

I forgot to mention that I use the following custom agenda:

(setq org-agenda-custom-commands
  '(("c" "Agenda with Current Projects"
 ((agenda "")
  (tags "CURRENT" nil)

I am still experiencing this problem on

org-version => 7.4

Joel

-- 
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill

FSF Member #8164
http://www.unc.edu/~adamsonj


pgpcLF5MiogsH.pgp
Description: PGP signature
___
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


[Accepted] [Orgmode] Re: [PATCH] org: remove org-invisible-p

2011-01-26 Thread Bastien Guerry
Patch 560 (http://patchwork.newartisans.com/patch/560/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3Csa3wrlshsnu.fsf%40cigue.easter-eggs.fr%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Re: [PATCH] org: remove org-invisible-p
> Date: Wed, 26 Jan 2011 15:21:25 -
> From: Julien Danjou 
> X-Patchwork-Id: 560
> Message-Id: 
> To: emacs-orgmode@gnu.org
> 
> I just found a left over in org-list.el. :)
> 
> Updated patch attached.
> 
> 
> >From bf6c65a42e04d4753c58795442a479685bb5f318 Mon Sep 17 00:00:00 2001
> From: Julien Danjou 
> Date: Wed, 26 Jan 2011 11:14:11 +0100
> Subject: [PATCH] org: remove org-invisible-p
> 
> * org.el: Remove org-invisible-p: outline-invisible-p is
> available in Emacs 22 and in recent XEmacs 21. Replace in
> various files.
> 
> Signed-off-by: Julien Danjou 
> ---
>  lisp/org-clock.el |2 +-
>  lisp/org-crypt.el |2 +-
>  lisp/org-exp.el   |2 +-
>  lisp/org-list.el  |3 +-
>  lisp/org.el   |   59 +---
>  5 files changed, 28 insertions(+), 40 deletions(-)
> 
> diff --git a/lisp/org-clock.el b/lisp/org-clock.el
> index 8bb67d9..dac035f 100644
> --- a/lisp/org-clock.el
> +++ b/lisp/org-clock.el
> @@ -2481,7 +2481,7 @@ The details of what will be saved are regulated by the 
> variable
> (goto-char (cdr resume-clock))
> (let ((org-clock-auto-clock-resolution nil))
>   (org-clock-in)
> - (if (org-invisible-p)
> + (if (outline-invisible-p)
>   (org-show-context))
>  
>  ;;;###autoload
> diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
> index 1d76104..1758a81 100644
> --- a/lisp/org-crypt.el
> +++ b/lisp/org-crypt.el
> @@ -112,7 +112,7 @@ This setting can also be overridden in the CRYPTKEY 
> property."
>  (let ((start-heading (point)))
>(forward-line)
>(when (not (looking-at "-BEGIN PGP MESSAGE-"))
> -(let ((folded (org-invisible-p))
> +(let ((folded (outline-invisible-p))
>(epg-context (epg-make-context nil t t))
>(crypt-key (org-crypt-key-for-heading))
>(beg (point))
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 7c814cd..e84a7c2 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -2615,7 +2615,7 @@ command."
>(goto-char (point-min))
>(while (re-search-forward org-drawer-regexp nil t)
>   (goto-char (match-beginning 1))
> - (or (org-invisible-p) (org-flag-drawer nil
> + (or (outline-invisible-p) (org-flag-drawer nil
>  (with-current-buffer buffer (erase-buffer))
>  (save-excursion
>(setq s (goto-char (point-min)))
> diff --git a/lisp/org-list.el b/lisp/org-list.el
> index bc8e7bd..0c519fc 100644
> --- a/lisp/org-list.el
> +++ b/lisp/org-list.el
> @@ -44,7 +44,6 @@
>  (defvar org-ts-regexp)
>  (defvar org-ts-regexp-both)
>  
> -(declare-function org-invisible-p "org" ())
>  (declare-function org-on-heading-p "org" (&optional invisible-ok))
>  (declare-function outline-next-heading "outline" ())
>  (declare-function org-back-to-heading "org" (&optional invisible-ok))
> @@ -1101,7 +1100,7 @@ item is invisible."
>(unless (or (not (org-in-item-p))
> (save-excursion
>   (goto-char (org-get-item-beginning))
> - (org-invisible-p)))
> + (outline-invisible-p)))
>  (if (save-excursion
> (goto-char (org-get-item-beginning))
> (org-at-item-timer-p))
> diff --git a/lisp/org.el b/lisp/org.el
> index fcdf245..d6b9c0d 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -6010,7 +6010,7 @@ in special contexts.
>(save-excursion
>   (goto-char eos)
>   (outline-next-heading)
> - (if (org-invisible-p) (org-flag-heading nil
> + (if (outline-invisible-p) (org-flag-heading nil
>   ((and (or (>= eol eos)
>  (not (string-match "\\S-" (buffer-substring eol eos
>  (or has-children
> @@ -6024,7 +6024,7 @@ in special contexts.
>(save-excursion
>   (goto-char eos)
>   (outline-next-heading)
> - (if (org-invisible-p) (org-flag-heading nil)))
> + (if (outline-invisible-p) (org-flag-heading nil)))
>(setq org-cycle-subtree-status 'children)
>(run-hook-with-args 'org-cycle-hook 'children))
>   ((or children-skipped
> @@ -6191,9 +6191,9 @@ This function is the default value of the hook 
> `org-cycle-hook'."
> ;; Properly fold already folded siblings
> (goto-char (point-min))
> (while (re-search-forward re nil t)
> - (if (and (not (org-invisible-p))
> + (if (and (not (outline-invisible-p))
>(save-excursion
> -(goto-char (point-at-eol)) (org-invisible-p)))
> +

Re: [Orgmode] Re: [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Eric S Fraga
Sébastien Vauban  writes:

> Hi Eric,
>

[...]

> For test purpose, a silly workaround: what about removing the line?  That way,
> we could see if either:
>
> - the nil option is not respected,
> - the t option comes from somewhere else..
>
> Best regards,
>   Seb

No need. the problem was my lack of careful reading of the documentation
and assuming that the third argument indicated whether the package
should be included or not; in fact, it indicates whether it should be
used for latex snippets.

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.239.g65ac.dirty)

___
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


[Accepted] [Orgmode] org-agenda: fix regexp in progress for state logging

2011-01-26 Thread Bastien Guerry
Patch 562 (http://patchwork.newartisans.com/patch/562/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1296057132-14557-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-agenda: fix regexp in progress for state logging
> Date: Wed, 26 Jan 2011 20:52:12 -
> From: Julien Danjou 
> X-Patchwork-Id: 562
> Message-Id: <1296057132-14557-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * org-agenda.el (org-agenda-get-progress): Fix regexp for statep: it
> must has \\ at the end of the line. This avoid matching the following
> heading when there's no newline between the logged state and the next
> heading.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org-agenda.el |   18 +-
>  1 files changed, 9 insertions(+), 9 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 3c1104e..6e8d07a 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -4814,15 +4814,15 @@ be skipped."
>(setq clocked (match-string 2 rest)))
>   (setq clocked "-")))
>   (save-excursion
> -   (setq extra nil)
> -   (cond
> -((not org-agenda-log-mode-add-notes))
> -(statep
> - (and (looking-at ".*\n[ \t]*\\([^-\n \t].*?\\)[ \t]*$")
> -  (setq extra (match-string 1
> -(clockp
> - (and (looking-at ".*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$")
> -  (setq extra (match-string 1)
> +   (setq extra
> + (cond
> +  ((not org-agenda-log-mode-add-notes) nil)
> +  (statep
> +   (and (looking-at ".*\n[ \t]*\\([^-\n \t].*?\\)[ \t]*$")
> +(match-string 1)))
> +  (clockp
> +   (and (looking-at ".*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$")
> +(match-string 1)
> (if (not (re-search-backward "^\\*+ " nil t))
> (setq txt org-agenda-no-heading-message)
>   (goto-char (match-beginning 0))
> 

___
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: - Bug: [CLOSED ?] Agenda view switches back to week with "g" [7.4]

2011-01-26 Thread Michael Brand
On Wed, Dec 22, 2010 at 12:54, Giovanni Ridolfi
 wrote:
> adams...@email.unc.edu (Joel J. Adamson) writes:
[...]
>> today is Wednesday so pressing "d" brings me the third day of the week.
>> I then press
>> "g" (org-agenda-redo)  which takes me back to week view.
[...]
> It seems to me that this bug has been fixed.

This is still an issue for custom agenda views. With the today's
release_7.4-246-g9658a99 and the test config
(setq org-agenda-custom-commands '(("x" "test" ((agenda)
I observe:
- `C-c a a' like expected:
  1) `d g' stays on "view day"
  2) `w f d g' stays on "view day" and also stays on the day of the next week
- `C-c a x' is expected by me to do the same as above but it does:
  1) `d g' switches back to "view week"
  2) `w f d g' switches back to "view week" and changes back to current week

Michael

___
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] Make text below heading not part of the heading

2011-01-26 Thread Marcelo de Moraes Serpa
Hi list,

This might be a stupid question, but I still could not find a proper
solution for the following issue:

Let's say I have the following text in an org buffer:

* A folded heading with some text beneath...

And that I want to keep the document going by typing below this
heading. However, the text *should not* belong to the heading in
question. It is "headless".

The issue is that org always tries to "eat" any text below a heading.
If I fold it and then type the text beneath, it seems to work, until I
unfold,fold again (or reload the file) just to see the text as part of
that item again.

is there a way to have text below an org heading not be part of the
heading itself, in org terms ?

Thanks,

Marcelo.

___
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-mode without stars

2011-01-26 Thread Samuel Wales
Hi Bayle,

On 2011-01-22, Bayle Shanks  wrote:
> get new laptop
>
> organize interstellar dust meeting
>  book the meeting room
>  organize LOC
>  Invited speakers
>   - Draine
>   - Tielens
>   - Hollenbach
>  1st announcement
>
> fix the bell in the hall

I indent by spaces by 2 a lot to save typing.  c-c - and c-c * will
convert.  They do not handle indentation, but that might be a very
useful feature (I would use it too).

This does handle indentation.  I wrote it a very long time ago for a
different, 8-space indentation.

(defun alpha-orgify ()
  "quick hack.  create org format from my indented outline
format, which consists of 8-space indentation.  operate on the
region.  assume a certain number of stars and odd levels."
  (interactive)
  (let ((b (region-beginning))
(e (region-end))
;;manually mod for now.  headline vs. bullet.
(bulletp nil))
(loop
   while
 (progn
   (save-excursion
 ;;use (re-)search-forward and replace-match when no query?  i'd
 ;;prefer without the pattern (i.e. just ^) but you might be
 ;;re-orgifying an already-orgified region.  btw match-string is
 ;;how you get the string.
 (perform-replace "^\\([^*]\\)"
  (if bulletp
  "  \\1"
"*** \\1")
  t ;interactive
  t nil nil nil
  b
  e))
   (save-excursion
 (perform-replace ""
  (if bulletp
  "  "
"**")
  t ;interactive
  t nil nil nil
  b
  e))
   (when bulletp
 (progn
   ;;how to make it greedy?
   (perform-replace "^\\( +\\)\\([^ ]\\)" "\\1- \\2"
t ;interactive
t nil nil nil)))

Samuel

-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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] [PATCH] org-agenda: fix regexp in progress for state logging

2011-01-26 Thread Julien Danjou
On Wed, Jan 26 2011, Giovanni Ridolfi wrote:

> Julien Danjou  writes:
>
> Hi, Julien
>> * org-agenda.el (org-agenda-get-progress): Fix regexp for statep: 
>> it must has \\ at the end of the line. This avoid matching the following
>   it must have ?

Yes, sorry, that's not a catz. :)

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpgNOUR8m5rP.pgp
Description: PGP signature
___
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: [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Eric S Fraga
Lawrence Mitchell  writes:

> Eric S Fraga wrote:
>
>> I need to use the amsmath package for a paper I am writing.  This
>> conflicts, unfortunately, with the wasysym package which is loaded by
>> default in the org-latex exporter.
>
>> Checking the documentation for org-export-latex-classes, I find:
>
>> ,
>> | - Calls to \usepackage for all packages mentioned in the variables
>> |   `org-export-latex-default-packages-alist' and
>> |   `org-export-latex-packages-alist'.  Thus, your header definitions should
>> |   avoid to also request these packages.
>> `
>
>> I then checked out the first of these lists and customised it (first, by
>> hand, then by emacs's own customisation method) to turn off the
>> inclusion of wasysym.  The value of the variable, upon restarting emacs
>> just to make sure, is:
>
> [...]
>
>> If SNIPPET-FLAG is t, the package also needs to be included when
>> compiling LaTeX snippets into images for inclusion into HTML.
>
> You've set SNIPPET-FLAG to nil for wasysym, but this means
> that wasysym will not be included for compiling latex snippets.
> When producing the whole document it will still be included.

Ahhh, I missed this.  Too much reading today and I obviously didn't
concentrate enough on this bit... 

I guess I should have simply deleted that entry from the list now that I
better understand (I think ;-) the settings in this variable.

> To use wasysym along with amsmath, you need to pass the
> "integrals" option to wasysym.
>
> To do this, customize the options list of the wasysym entry to be
>  ("integrals" "wasysym" t)
>
> rather than
>  ("" "wasysym" t)
>
> This is what I do to use amsmath in Org exports:
>
> | (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t))
> | (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist)
> | "integrals")
>
> The latter has to be done after loading org-latex.

Perfect!  A bit "magical incantation" at first glance but it makes
sense.  I've done this and it works like a charm.

Many thanks.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.239.g65ac.dirty)

___
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] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Eric S Fraga
Eric S Fraga  writes:

> I need to use the amsmath package for a paper I am writing.  This
> conflicts, unfortunately, with the wasysym package which is loaded by
> default in the org-latex exporter.

[...]

I forgot to state what version of org I was using; see my signature
below.  Thanks again.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.239.g65ac.dirty)

___
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] [PATCH] org-agenda: fix regexp in progress for state logging

2011-01-26 Thread Giovanni Ridolfi
Julien Danjou  writes:

Hi, Julien
> * org-agenda.el (org-agenda-get-progress): Fix regexp for statep: 
> it must has \\ at the end of the line. This avoid matching the following
  it must have ?

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] Re: [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Lawrence Mitchell
Eric S Fraga wrote:

> I need to use the amsmath package for a paper I am writing.  This
> conflicts, unfortunately, with the wasysym package which is loaded by
> default in the org-latex exporter.

> Checking the documentation for org-export-latex-classes, I find:

> ,
> | - Calls to \usepackage for all packages mentioned in the variables
> |   `org-export-latex-default-packages-alist' and
> |   `org-export-latex-packages-alist'.  Thus, your header definitions should
> |   avoid to also request these packages.
> `

> I then checked out the first of these lists and customised it (first, by
> hand, then by emacs's own customisation method) to turn off the
> inclusion of wasysym.  The value of the variable, upon restarting emacs
> just to make sure, is:

[...]

> If SNIPPET-FLAG is t, the package also needs to be included when
> compiling LaTeX snippets into images for inclusion into HTML.

You've set SNIPPET-FLAG to nil for wasysym, but this means
that wasysym will not be included for compiling latex snippets.
When producing the whole document it will still be included.

To use wasysym along with amsmath, you need to pass the
"integrals" option to wasysym.

To do this, customize the options list of the wasysym entry to be
 ("integrals" "wasysym" t)

rather than
 ("" "wasysym" t)

This is what I do to use amsmath in Org exports:

| (add-to-list 'org-export-latex-packages-alist '("" "amsmath" t))
| (setcar (rassoc '("wasysym" t) org-export-latex-default-packages-alist)
| "integrals")

The latter has to be done after loading org-latex.

[...]

Cheers,
Lawrence


___
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: [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Sébastien Vauban
Hi Eric,

Eric S Fraga wrote:
> I need to use the amsmath package for a paper I am writing.  This
> conflicts, unfortunately, with the wasysym package which is loaded by
> default in the org-latex exporter.
>
> [...]
>
> You can customize this variable.
>
> Value: (("AUTO" "inputenc" t)
>  ("T1" "fontenc" t)
>  ("" "fixltx2e" nil)
>  ("" "graphicx" t)
>  ("" "longtable" nil)
>  ("" "float" nil)
>  ("" "wrapfig" nil)
>  ("" "soul" t)
>  ("" "textcomp" t)
>  ("" "marvosym" t)
>  ("" "wasysym" nil)
>  ("" "latexsym" t)
>  ("" "amssymb" t)
>  ("" "hyperref" nil)
>  "\\tolerance=1000")
>
> Original value was 
> (("AUTO" "inputenc" t)
>  ("T1" "fontenc" t)
>  ("" "fixltx2e" nil)
>  ("" "graphicx" t)
>  ("" "longtable" nil)
>  ("" "float" nil)
>  ("" "wrapfig" nil)
>  ("" "soul" t)
>  ("" "textcomp" t)
>  ("" "marvosym" t)
>  ("" "wasysym" t)
>  ("" "latexsym" t)
>  ("" "amssymb" t)
>  ("" "hyperref" nil)
>  "\\tolerance=1000")
>
> Note that wasysym is turned off in the setting I have.  However, when I
> export my org file, I find.
>
> ,
> | ...
> | \usepackage{marvosym}
> | \usepackage{wasysym}
> | \usepackage{latexsym}
> | ...
> `

For test purpose, a silly workaround: what about removing the line?  That way,
we could see if either:

- the nil option is not respected,
- the t option comes from somewhere else..

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] [PATCH] org-agenda: fix regexp in progress for state logging

2011-01-26 Thread Julien Danjou
* org-agenda.el (org-agenda-get-progress): Fix regexp for statep: it
must has \\ at the end of the line. This avoid matching the following
heading when there's no newline between the logged state and the next
heading.

Signed-off-by: Julien Danjou 
---
 lisp/org-agenda.el |   18 +-
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 3c1104e..6e8d07a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4814,15 +4814,15 @@ be skipped."
 (setq clocked (match-string 2 rest)))
(setq clocked "-")))
(save-excursion
- (setq extra nil)
- (cond
-  ((not org-agenda-log-mode-add-notes))
-  (statep
-   (and (looking-at ".*\n[ \t]*\\([^-\n \t].*?\\)[ \t]*$")
-(setq extra (match-string 1
-  (clockp
-   (and (looking-at ".*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$")
-(setq extra (match-string 1)
+ (setq extra
+   (cond
+((not org-agenda-log-mode-add-notes) nil)
+(statep
+ (and (looking-at ".*\n[ \t]*\\([^-\n \t].*?\\)[ \t]*$")
+  (match-string 1)))
+(clockp
+ (and (looking-at ".*\n[ \t]*-[ \t]+\\([^-\n \t].*?\\)[ \t]*$")
+  (match-string 1)
  (if (not (re-search-backward "^\\*+ " nil t))
  (setq txt org-agenda-no-heading-message)
(goto-char (match-beginning 0))
-- 
1.7.2.3


___
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] Maximum ranges information lost in org-schedule

2011-01-26 Thread Giovanni Ridolfi
Osamu OKANO  writes:

 Hi Osamu,

1. Which org-version do you use?
>
>  * TODO run auto cleaner
>  SCHEDULED: <2011-01-25 Tue .+1d/3d>

Here: Org-mode version 7.4
  commit-de39bf05bea84b842711faa49e560ea4bc087211
  (a bit old I know)

I cannot reproduce.

what does this repeater "/3d" mean?

>
> After postpone.
which command did you use to postpone?
did you postpone from the Agenda? C-rightarrow?


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


Re: [Orgmode] org-mode without stars

2011-01-26 Thread Giovanni Ridolfi
Bayle Shanks  writes:

> is there a way to use org-mode with spaces instead of stars 
I don't think so.

> (and
> possibly to have to use some other delimiter at some points, if the
> lack of stars causes ambiguity)? i.e.

The use of stars as headline is defined in  
org-set-autofill-regexps in org.el.

Please have a look at the clean view:

http://orgmode.org/manual/Clean-view.html#Clean-view

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] [bug] latex export ignores org-export-latex-default-packages-alist?

2011-01-26 Thread Eric S Fraga
I need to use the amsmath package for a paper I am writing.  This
conflicts, unfortunately, with the wasysym package which is loaded by
default in the org-latex exporter.

Checking the documentation for org-export-latex-classes, I find:

,
| - Calls to \usepackage for all packages mentioned in the variables
|   `org-export-latex-default-packages-alist' and
|   `org-export-latex-packages-alist'.  Thus, your header definitions should
|   avoid to also request these packages.
`

I then checked out the first of these lists and customised it (first, by
hand, then by emacs's own customisation method) to turn off the
inclusion of wasysym.  The value of the variable, upon restarting emacs
just to make sure, is:

--8<---cut here---start->8---
org-export-latex-default-packages-alist is a variable defined in `org.el'.
Its value is shown below.

Documentation:
Alist of default packages to be inserted in the header.
Change this only if one of the packages here causes an incompatibility
with another package you are using.
The packages in this list are needed by one part or another of Org-mode
to function properly.

- inputenc, fontenc:  for basic font and character selection
- textcomp, marvosymb, wasysym, latexsym, amssym: for various symbols used
  for interpreting the entities in `org-entities'.  You can skip some of these
  packages if you don't use any of the symbols in it.
- graphicx: for including images
- float, wrapfig: for figure placement
- longtable: for long tables
- hyperref: for cross references

Therefore you should not modify this variable unless you know what you
are doing.  The one reason to change it anyway is that you might be loading
some other package that conflicts with one of the default packages.
Each cell is of the format ( "options" "package" snippet-flag).
If SNIPPET-FLAG is t, the package also needs to be included when
compiling LaTeX snippets into images for inclusion into HTML.

You can customize this variable.

Value: (("AUTO" "inputenc" t)
 ("T1" "fontenc" t)
 ("" "fixltx2e" nil)
 ("" "graphicx" t)
 ("" "longtable" nil)
 ("" "float" nil)
 ("" "wrapfig" nil)
 ("" "soul" t)
 ("" "textcomp" t)
 ("" "marvosym" t)
 ("" "wasysym" nil)
 ("" "latexsym" t)
 ("" "amssymb" t)
 ("" "hyperref" nil)
 "\\tolerance=1000")

Original value was 
(("AUTO" "inputenc" t)
 ("T1" "fontenc" t)
 ("" "fixltx2e" nil)
 ("" "graphicx" t)
 ("" "longtable" nil)
 ("" "float" nil)
 ("" "wrapfig" nil)
 ("" "soul" t)
 ("" "textcomp" t)
 ("" "marvosym" t)
 ("" "wasysym" t)
 ("" "latexsym" t)
 ("" "amssymb" t)
 ("" "hyperref" nil)
 "\\tolerance=1000")
--8<---cut here---end--->8---

Note that wasysym is turned off in the setting I have.  However, when I
export my org file, I find.

,
| ...
| \usepackage{marvosym}
| \usepackage{wasysym}
| \usepackage{latexsym}
| ...
`

I am confused.  I was trying to avoid setting the full export
information manually but I may have to.

Any suggestions?  Am I doing something incredibly silly?

Thanks,
Eric

-- 
Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)

___
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-mode without stars

2011-01-26 Thread Bayle Shanks
is there a way to use org-mode with spaces instead of stars (and
possibly to have to use some other delimiter at some points, if the
lack of stars causes ambiguity)? i.e.


get new laptop

organize interstellar dust meeting
 book the meeting room
 organize LOC
 Invited speakers
  - Draine
  - Tielens
  - Hollenbach
 1st announcement

fix the bell in the hall


? thanks,
  bayle

___
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] Filtering org file according to priorities

2011-01-26 Thread Renger van Nieuwkoop
Hi

I have the following list in an org-file
* Work
** [#A] Goal1
** [#B] Goal2
** [#A] Goal3

I want to filter for all entries with priority A. If I use C-c / p
PRIORITY A Org-mode highlights all the entries with [#A] but also shows
the other entries with [#B].
How can I hide those entries?

Thanks

Renger



Modelworks
Gewerbestrasse 15
3600 Thun - Switzerland
+41 79 818 53 73
i...@modelworks.ch
blog.modelworks.ch


___
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] Maximum ranges information lost in org-schedule

2011-01-26 Thread Osamu OKANO
Hi!

When I move schedule with org-schdule,
timestamp lose information about maximum ranges.

 * TODO run auto cleaner
 SCHEDULED: <2011-01-25 Tue .+1d/3d>

After postpone.

 * TODO run auto cleaner
 SCHEDULED: <2011-01-26 Wed .+1d>

Regards.

___
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-archive-subtree keeping inherited tags

2011-01-26 Thread Osamu OKANO
Hi !
I'd like to org-archive-subtree keeping inherited tags.
Can I do like blow?
===~/org/action.org===
 #+FILETAGS: Action
 * office :@office:
 ** DONE I'd like to archive this subtree keeping inherited tags
 *** DONE step1
 *** DONE step2
 *** DONE step3
===~/org/action.org_archive===
 Archived entries from file  ~/org/action.org
 * DONE I'd like to archive this subtree keeping inherited tags :Action:@office:
 :PROPERTIES:
 :ARCHIVE_TIME: 2011-01-25 tue 19:00
 :ARCHIVE_FILE: ~/org/action.org
 :ARCHIVE_OLPATH: office
 :ARCHIVE_TODO: DONE
 :ARCHIVE_ITAGS: Action @office
 :END:
 ** DONE step1
 ** DONE step2
 ** DONE step3

Regards.

___
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] [PATCH] org-crypt: fix decrypt outline display bug

2011-01-26 Thread Julien Danjou
* org-crypt.el (org-decrypt-entry): Delete \n on top level heading.
This avoids a display bug showing the heading outlined where the text
is not since it does not have the outline property.
Restore subtree visibility state after decryption.

Cc: John Wiegley 
Cc: Peter Jones 
Signed-off-by: Julien Danjou 
---
 lisp/org-crypt.el |   43 ++-
 1 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
index 1758a81..7c28d70 100644
--- a/lisp/org-crypt.el
+++ b/lisp/org-crypt.el
@@ -140,23 +140,32 @@ This setting can also be overridden in the CRYPTKEY 
property."
   (unless (org-before-first-heading-p)
 (save-excursion
   (org-back-to-heading t)
-  (forward-line)
-  (when (looking-at "-BEGIN PGP MESSAGE-")
-   (let* ((beg (point))
-  (end (save-excursion
- (search-forward "-END PGP MESSAGE-")
- (forward-line)
- (point)))
-  (epg-context (epg-make-context nil t t))
-  (decrypted-text
-   (decode-coding-string
-(epg-decrypt-string
- epg-context
- (buffer-substring-no-properties beg end))
-'utf-8)))
- (delete-region beg end)
- (insert decrypted-text)
- nil)
+  (let ((heading-point (point))
+   (heading-was-invisible-p
+(save-excursion
+  (outline-end-of-heading)
+  (outline-invisible-p
+   (forward-line)
+   (when (looking-at "-BEGIN PGP MESSAGE-")
+ (let* ((end (save-excursion
+   (search-forward "-END PGP MESSAGE-")
+   (forward-line)
+   (point)))
+(epg-context (epg-make-context nil t t))
+(decrypted-text
+ (decode-coding-string
+  (epg-decrypt-string
+   epg-context
+   (buffer-substring-no-properties (point) end))
+  'utf-8)))
+   ;; Delete region starting just before point, because the
+   ;; outline property starts at the \n of the heading.
+   (delete-region (1- (point)) end)
+   (insert "\n" decrypted-text)
+   (when heading-was-invisible-p
+ (goto-char heading-point)
+ (org-flag-subtree t))
+   nil))
 
 (defun org-encrypt-entries ()
   "Encrypt all top-level entries in the current buffer."
-- 
1.7.2.3


___
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] Status google calendar sync

2011-01-26 Thread Eric S Fraga
Arun Persaud  writes:

[...]

>> For the other route, org to Google, I use the googlecl (command line)
>> interface:
>> 
>> http://article.gmane.org/gmane.emacs.orgmode/27214
>
> don't really know that much lisp, but I guess you add the entries
> directly to google when you create them via org-capture? What happens if
> you later edit an entry, say change the time/date? This is something I
> do very often and I would need google to reflect those changes. I also
> only want to export certain tags and entries that have a date-range
> (e.g. start and stop time), but I guess that could be easily arranged in
> the lisp function that you wrote?

The short answer is that I don't have any automation for updating events
that change unfortunately.  I imagine one could get googlecl to do this
but given the lack of documentation on that interface, it could be
tricky.  If anybody figures out how to do all of this with googlecl, I
would be more than happy!
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.239.g65ac.dirty)

___
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: [PATCH] org: remove org-invisible-p

2011-01-26 Thread Julien Danjou

I just found a left over in org-list.el. :)

Updated patch attached.

From bf6c65a42e04d4753c58795442a479685bb5f318 Mon Sep 17 00:00:00 2001
From: Julien Danjou 
Date: Wed, 26 Jan 2011 11:14:11 +0100
Subject: [PATCH] org: remove org-invisible-p

* org.el: Remove org-invisible-p: outline-invisible-p is
available in Emacs 22 and in recent XEmacs 21. Replace in
various files.

Signed-off-by: Julien Danjou 
---
 lisp/org-clock.el |2 +-
 lisp/org-crypt.el |2 +-
 lisp/org-exp.el   |2 +-
 lisp/org-list.el  |3 +-
 lisp/org.el   |   59 +---
 5 files changed, 28 insertions(+), 40 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 8bb67d9..dac035f 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2481,7 +2481,7 @@ The details of what will be saved are regulated by the variable
 	  (goto-char (cdr resume-clock))
 	  (let ((org-clock-auto-clock-resolution nil))
 		(org-clock-in)
-		(if (org-invisible-p)
+		(if (outline-invisible-p)
 		(org-show-context))
 
 ;;;###autoload
diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
index 1d76104..1758a81 100644
--- a/lisp/org-crypt.el
+++ b/lisp/org-crypt.el
@@ -112,7 +112,7 @@ This setting can also be overridden in the CRYPTKEY property."
 (let ((start-heading (point)))
   (forward-line)
   (when (not (looking-at "-BEGIN PGP MESSAGE-"))
-(let ((folded (org-invisible-p))
+(let ((folded (outline-invisible-p))
   (epg-context (epg-make-context nil t t))
   (crypt-key (org-crypt-key-for-heading))
   (beg (point))
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 7c814cd..e84a7c2 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2615,7 +2615,7 @@ command."
   (goto-char (point-min))
   (while (re-search-forward org-drawer-regexp nil t)
 	(goto-char (match-beginning 1))
-	(or (org-invisible-p) (org-flag-drawer nil
+	(or (outline-invisible-p) (org-flag-drawer nil
 (with-current-buffer buffer (erase-buffer))
 (save-excursion
   (setq s (goto-char (point-min)))
diff --git a/lisp/org-list.el b/lisp/org-list.el
index bc8e7bd..0c519fc 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -44,7 +44,6 @@
 (defvar org-ts-regexp)
 (defvar org-ts-regexp-both)
 
-(declare-function org-invisible-p "org" ())
 (declare-function org-on-heading-p "org" (&optional invisible-ok))
 (declare-function outline-next-heading "outline" ())
 (declare-function org-back-to-heading "org" (&optional invisible-ok))
@@ -1101,7 +1100,7 @@ item is invisible."
   (unless (or (not (org-in-item-p))
 	  (save-excursion
 		(goto-char (org-get-item-beginning))
-		(org-invisible-p)))
+		(outline-invisible-p)))
 (if (save-excursion
 	  (goto-char (org-get-item-beginning))
 	  (org-at-item-timer-p))
diff --git a/lisp/org.el b/lisp/org.el
index fcdf245..d6b9c0d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6010,7 +6010,7 @@ in special contexts.
   (save-excursion
 	(goto-char eos)
 	(outline-next-heading)
-	(if (org-invisible-p) (org-flag-heading nil
+	(if (outline-invisible-p) (org-flag-heading nil
  ((and (or (>= eol eos)
 	   (not (string-match "\\S-" (buffer-substring eol eos
 	   (or has-children
@@ -6024,7 +6024,7 @@ in special contexts.
   (save-excursion
 	(goto-char eos)
 	(outline-next-heading)
-	(if (org-invisible-p) (org-flag-heading nil)))
+	(if (outline-invisible-p) (org-flag-heading nil)))
   (setq org-cycle-subtree-status 'children)
   (run-hook-with-args 'org-cycle-hook 'children))
  ((or children-skipped
@@ -6191,9 +6191,9 @@ This function is the default value of the hook `org-cycle-hook'."
 	  ;; Properly fold already folded siblings
 	  (goto-char (point-min))
 	  (while (re-search-forward re nil t)
-	(if (and (not (org-invisible-p))
+	(if (and (not (outline-invisible-p))
 		 (save-excursion
-		   (goto-char (point-at-eol)) (org-invisible-p)))
+		   (goto-char (point-at-eol)) (outline-invisible-p)))
 		(hide-entry
 	(org-cycle-show-empty-lines 'overview)
 	(org-cycle-hide-drawers 'overview)
@@ -6526,7 +6526,7 @@ the headline hierarchy above."
 	(progn
 	  (org-mark-ring-push org-goto-start-pos)
 	  (goto-char selected-point)
-	  (if (or (org-invisible-p) (org-invisible-p2))
+	  (if (or (outline-invisible-p) (org-invisible-p2))
 	  (org-show-context 'org-goto)))
   (message "Quit"
 
@@ -6571,7 +6571,7 @@ or nil."
 		  (org-show-siblings t)
 		  (org-show-following-heading t))
 	  (goto-char org-goto-start-pos)
-	  (and (org-invisible-p) (org-show-context)))
+	  (and (outline-invisible-p) (org-show-context)))
 	  (goto-char (point-min)))
 	(let (org-special-ctrl-a/e) (org-beginning-of-line))
 	(message "Select location and press RET")
@@ -6786,14 +6786,14 @@ This is important for non-interactive uses of the command."
 	(cond
 	 ((and (org-on-heading-p) (bolp)
 	   (or (bobp)
-		   (s

[Orgmode] [PATCH] org: remove org-invisible-p

2011-01-26 Thread Julien Danjou
* org.el: Remove org-invisible-p: outline-invisible-p is
available in Emacs 22 and in recent XEmacs 21. Replace in
various files.

Signed-off-by: Julien Danjou 
---
 lisp/org-clock.el |2 +-
 lisp/org-crypt.el |2 +-
 lisp/org-exp.el   |2 +-
 lisp/org-list.el  |2 +-
 lisp/org.el   |   59 +---
 5 files changed, 28 insertions(+), 39 deletions(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 8bb67d9..dac035f 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -2481,7 +2481,7 @@ The details of what will be saved are regulated by the 
variable
  (goto-char (cdr resume-clock))
  (let ((org-clock-auto-clock-resolution nil))
(org-clock-in)
-   (if (org-invisible-p)
+   (if (outline-invisible-p)
(org-show-context))
 
 ;;;###autoload
diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
index 1d76104..1758a81 100644
--- a/lisp/org-crypt.el
+++ b/lisp/org-crypt.el
@@ -112,7 +112,7 @@ This setting can also be overridden in the CRYPTKEY 
property."
 (let ((start-heading (point)))
   (forward-line)
   (when (not (looking-at "-BEGIN PGP MESSAGE-"))
-(let ((folded (org-invisible-p))
+(let ((folded (outline-invisible-p))
   (epg-context (epg-make-context nil t t))
   (crypt-key (org-crypt-key-for-heading))
   (beg (point))
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 7c814cd..e84a7c2 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -2615,7 +2615,7 @@ command."
   (goto-char (point-min))
   (while (re-search-forward org-drawer-regexp nil t)
(goto-char (match-beginning 1))
-   (or (org-invisible-p) (org-flag-drawer nil
+   (or (outline-invisible-p) (org-flag-drawer nil
 (with-current-buffer buffer (erase-buffer))
 (save-excursion
   (setq s (goto-char (point-min)))
diff --git a/lisp/org-list.el b/lisp/org-list.el
index bc8e7bd..56d00c9 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -1101,7 +1101,7 @@ item is invisible."
   (unless (or (not (org-in-item-p))
  (save-excursion
(goto-char (org-get-item-beginning))
-   (org-invisible-p)))
+   (outline-invisible-p)))
 (if (save-excursion
  (goto-char (org-get-item-beginning))
  (org-at-item-timer-p))
diff --git a/lisp/org.el b/lisp/org.el
index fcdf245..d6b9c0d 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -6010,7 +6010,7 @@ in special contexts.
   (save-excursion
(goto-char eos)
(outline-next-heading)
-   (if (org-invisible-p) (org-flag-heading nil
+   (if (outline-invisible-p) (org-flag-heading nil
  ((and (or (>= eol eos)
   (not (string-match "\\S-" (buffer-substring eol eos
   (or has-children
@@ -6024,7 +6024,7 @@ in special contexts.
   (save-excursion
(goto-char eos)
(outline-next-heading)
-   (if (org-invisible-p) (org-flag-heading nil)))
+   (if (outline-invisible-p) (org-flag-heading nil)))
   (setq org-cycle-subtree-status 'children)
   (run-hook-with-args 'org-cycle-hook 'children))
  ((or children-skipped
@@ -6191,9 +6191,9 @@ This function is the default value of the hook 
`org-cycle-hook'."
  ;; Properly fold already folded siblings
  (goto-char (point-min))
  (while (re-search-forward re nil t)
-   (if (and (not (org-invisible-p))
+   (if (and (not (outline-invisible-p))
 (save-excursion
-  (goto-char (point-at-eol)) (org-invisible-p)))
+  (goto-char (point-at-eol)) (outline-invisible-p)))
(hide-entry
(org-cycle-show-empty-lines 'overview)
(org-cycle-hide-drawers 'overview)
@@ -6526,7 +6526,7 @@ the headline hierarchy above."
(progn
  (org-mark-ring-push org-goto-start-pos)
  (goto-char selected-point)
- (if (or (org-invisible-p) (org-invisible-p2))
+ (if (or (outline-invisible-p) (org-invisible-p2))
  (org-show-context 'org-goto)))
   (message "Quit"
 
@@ -6571,7 +6571,7 @@ or nil."
  (org-show-siblings t)
  (org-show-following-heading t))
  (goto-char org-goto-start-pos)
- (and (org-invisible-p) (org-show-context)))
+ (and (outline-invisible-p) (org-show-context)))
  (goto-char (point-min)))
(let (org-special-ctrl-a/e) (org-beginning-of-line))
(message "Select location and press RET")
@@ -6786,14 +6786,14 @@ This is important for non-interactive uses of the 
command."
(cond
 ((and (org-on-heading-p) (bolp)
   (or (bobp)
-  (save-excursion (backward-char 1) (not (org-invisible-p)
+  (save-excursion (backward-char 1) (not 
(outline-invis

Re: [Orgmode] Bug: tags grouping not working

2011-01-26 Thread Bastien
Carsten Dominik  writes:

> On Jan 25, 2011, at 7:03 PM, Jason Dunsmore wrote:
>
>> Yep, this commit needs to be reverted.  See my message about this:
>>
>> http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00942.html
>>
>> Can you do this Bastien?
>
> Seems Bastien is too busy right now, so I have reverted this commit.

Indeed, thanks Carsten!

-- 
 Bastien

___
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


[Accepted] [Orgmode] Always add sitemap file to project files if sitemap is requested

2011-01-26 Thread Carsten Dominik
Patch 523 (http://patchwork.newartisans.com/patch/523/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87fwt4keyp.wl%25jan.seeger%40thenybble.de%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Always add sitemap file to project files if sitemap is
>   requested
> Date: Fri, 07 Jan 2011 18:42:22 -
> From: Jan Seeger 
> X-Patchwork-Id: 523
> Message-Id: <87fwt4keyp.wl%jan.see...@thenybble.de>
> To: emacs-orgmode@gnu.org
> 
> Greetings!
> 
> I noticed some wonkiness in getting my sitemap created on my webserver
> when pushing my website, and the problem seems to lie in
> org-publish-get-base-files only returning existing files, and not
> picking up on the soon to be generated sitemap. My patch always adds
> the sitemap file to the list of returned files if a sitemap is
> requested, regardless of if it exists or not.
> 
> Regards, Jan Seeger
> 
> 
> diff --git a/lisp/org-publish.el b/lisp/org-publish.el
> index f29b402..baf282a 100644
> --- a/lisp/org-publish.el
> +++ b/lisp/org-publish.el
> @@ -434,6 +434,9 @@ matching filenames."
>;; org-publish-compare-directory-files:
>(sitemap-requested
> (plist-get project-plist :auto-sitemap))
> +  (sitemap-filename
> +   (or (plist-get project-plist :sitemap-filename)
> +   "sitemap.org"))
>(sitemap-sort-folders
> (if (plist-member project-plist :sitemap-sort-folders)
> (plist-get project-plist :sitemap-sort-folders)
> @@ -454,6 +457,9 @@ matching filenames."
>(setq sitemap-sort-folders nil))
>  
>  (setq org-publish-temp-files nil)
> +(if sitemap-requested
> + (pushnew (expand-file-name (concat base-dir sitemap-filename))
> +   org-publish-temp-files))
>  (org-publish-get-base-files-1 base-dir recurse match
> ;; FIXME distinguish exclude regexp
> ;; for skip-file and skip-dir?
> 

___
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: [babel] Painless integration of source blocks with language

2011-01-26 Thread Sébastien Vauban
Hi Dan,

Dan Davison wrote:
> Eric S Fraga  writes:
>> "Eric Schulte"  writes:
>>> Eric S Fraga  writes:
>>
 management issue: I find it difficult (a) to remember what all my source
 code snippets are called and (b) to navigate to any given snippet. I
 would love to see a babel table of contents popup (a la the table of
 contents popup with reftex implements for latex files). Is something like
 this already available? If not, how difficult would it be to implement
 (I'm happy to try given a pointer in the right direction(s)...).
>>>
>>> There was some talk of merging imenu with Babel which would provide the
>>> functionality you describe, I don't believe this ever resulting in working
>>> code however. There are a couple of options...
>>>
>>> If you know the name of the code block you want to find you can use
>>> `org-babel-goto-named-src-block' (bound to C-c C-v g) to jump to a named
>>> code block (∃ a similar function for finding named results).
>
> Would anyone object if I change that function slightly so that it
> doesn't strip text properties, so that the search hits come up in the
> minibuffer with the in-context fontification?

Not sure either to understand what you mean...


>>> This function provides completion on the block names, the function
>>> `org-babel-src-block-names' returns a list of all named blocks in the
>>> current buffer, so it could be used to built up such a table.  In fact
>>> the following code block will insert a table of such names in the
>>> current buffer.  Note: you will need to pull the latest as I had to fix
>>> a small bug in `org-babel-src-block-names'.
>>>
>>> #+begin_src emacs-lisp :results list
>>>   (mapcar #'list (reverse (org-babel-src-block-names)))
>>> #+end_src
>
> As a different approach, `occur' is good for doing this (results listed
> in a separate buffer with jump-back links). The function below can be
> extended in the obvious way.
>
> #+begin_src emacs-lisp
> (defun dan/find-in-buffer ()
>   (interactive)
>   (let ((targets
>  `(("" . ,org-babel-src-name-regexp)
>("" . ,org-babel-result-regexp
> (occur
>  (cdr
>   (assoc
>(ido-completing-read "Find: " (mapcar #'car targets))
>targets)))
> (other-window 1)))
> #+end_src

Thanks for sharing this.

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: Embedded code

2011-01-26 Thread Sébastien Vauban
Hi Eric and Ido,

Ido Magal wrote:
> I've gotten the fix and am trying to verify it, however I keep seeing
>
>> File local-variables error: (invalid-function org-save-outline-visibility)
>
> I'm not sure if it's relevant or not.  This is my test file:
>
> 
> # -*- eval: (org-babel-execute-buffer) -*-
>
> src_sh[:results append]{ls -t ~/org/ *.txt|head -5}
> 

When this call is executed, the table results is inserted *before* the call
line. Is this the intended behavior?

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


[Accepted] [Orgmode] org-agenda: simplify start/stop/duration time computing

2011-01-26 Thread Carsten Dominik
Patch 506 (http://patchwork.newartisans.com/patch/506/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C1293036946-14552-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] org-agenda: simplify start/stop/duration time computing
> Date: Wed, 22 Dec 2010 21:55:46 -
> From: Julien Danjou 
> X-Patchwork-Id: 506
> Message-Id: <1293036946-14552-1-git-send-email-jul...@danjou.info>
> To: emacs-orgmode@gnu.org
> Cc: Julien Danjou 
> 
> * org-agenda.el (org-format-agenda-item): Simplify time comuting.
> 
> Signed-off-by: Julien Danjou 
> 
> ---
> lisp/org-agenda.el |   31 +++
>  1 files changed, 11 insertions(+), 20 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 1cdaaa0..8f597f5 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -5165,7 +5165,7 @@ Any match of REMOVE-RE will be removed from TXT."
>  (if (stringp dotime) dotime "")
>  (and org-agenda-search-headline-for-time txt
>  (time-of-day (and dotime (org-get-time-of-day ts)))
> -stamp plain s0 s1 s2 t1 t2 rtn srp l
> +stamp plain s0 s1 s2 rtn srp l
>  duration thecategory)
>(and (org-mode-p) buffer-file-name
>  (add-to-list 'org-agenda-contributing-files buffer-file-name))
> @@ -5192,26 +5192,17 @@ Any match of REMOVE-RE will be removed from TXT."
>   ;; Normalize the time(s) to 24 hour
>   (if s1 (setq s1 (org-get-time-of-day s1 'string t)))
>   (if s2 (setq s2 (org-get-time-of-day s2 'string t)))
> +
> + ;; Try to set s2 if s1 and `org-agenda-default-appointment-duration' 
> are set
> + (when (and s1 (not s2) org-agenda-default-appointment-duration)
> +   (setq s2
> + (org-minutes-to-hh:mm-string
> +  (+ (org-hh:mm-string-to-minutes s1) 
> org-agenda-default-appointment-duration
> +
>   ;; Compute the duration
> - (when s1
> -   (setq t1 (+ (* 60 (string-to-number (substring s1 0 2)))
> -   (string-to-number (substring s1 3)))
> - t2 (cond
> - (s2 (+ (* 60 (string-to-number (substring s2 0 2)))
> -(string-to-number (substring s2 3
> - (org-agenda-default-appointment-duration
> -  (+ t1 org-agenda-default-appointment-duration))
> - (t nil)))
> -   (setq duration (if t2 (- t2 t1)
> -
> -  (when (and s1 (not s2) org-agenda-default-appointment-duration
> -  (string-match "\\([0-9]+\\):\\([0-9]+\\)" s1))
> - (let ((m (+ (string-to-number (match-string 2 s1))
> - (* 60 (string-to-number (match-string 1 s1)))
> - org-agenda-default-appointment-duration))
> -   h)
> -   (setq h (/ m 60) m (- m (* h 60)))
> -   (setq s2 (format "%02d:%02d" h m
> + (when s2
> +   (setq duration (- (org-hh:mm-string-to-minutes s2)
> + (org-hh:mm-string-to-minutes s1)
>  
>(when (string-match (org-re "\\([ \t]+\\)\\(:[[:alnum:]_@#%:]+:\\)[ 
> \t]*$")
> txt)
> 

___
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: tags grouping not working

2011-01-26 Thread Carsten Dominik


On Jan 25, 2011, at 7:03 PM, Jason Dunsmore wrote:


Benjamin Andresen  writes:


Hey there,

I've just upgraded to the latest org-mode HEAD and noticed that the  
tag
behavior changed. (It now sorts entries, except now grouping is  
broken.)


This is how it used to work:
(Assume "#+TAGS: { foo(f) bar(b) } quux(q)" for all of this.)

* Foo :foo:

now using M-x org-set-tags-command and pressing 'b' will result in:

* Foo :bar:

now selecting 'q' in the same prompt will result in:

* Foo :bar:quux:

but instead what will happen is:

* Foo :quux:

The offending commit is:
   commit c7d1e0f997d2aa1043c9cbbf72d03f05195d692e
   Author: Bastien Guerry 
   Date:   Tue Jan 18 00:50:32 2011 +0100

just reverting that piece of code on the current HEAD makes grouping
work again.

best regards,
benny

P.S. Sorry if that has been reported before, I couldn't find any  
mention

of tags. Also git bisect is handy.


Yep, this commit needs to be reverted.  See my message about this:

http://lists.gnu.org/archive/html/emacs-orgmode/2011-01/msg00942.html

Can you do this Bastien?


Seems Bastien is too busy right now, so I have reverted this commit.

- 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


[Accepted] [Orgmode] Latex: exporting a tree

2011-01-26 Thread Carsten Dominik
Patch 493 (http://patchwork.newartisans.com/patch/493/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C87sjxuty6w.wl%25n.goaziou%40gmail.com%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Latex: exporting a tree
> Date: Sun, 19 Dec 2010 05:15:35 -
> From: Nicolas Goaziou 
> X-Patchwork-Id: 493
> Message-Id: <87sjxuty6w.wl%n.goaz...@gmail.com>
> To: Carsten Dominik 
> Cc: Org Mode 
> 
> Hello,
> 
> > Carsten Dominik writes:
> 
> >> Though, shouldn't I replace all those calls to
> >> `org-get-limited-outline-regexp' with `org-with-limited-levels'
> >> macro?
> 
> > I have not looked closely at your new code - but yes, this is what
> > the macro is for!
> 
> The following patch does that, 3 times. I replaced one condition-case
> with ignore-errors in the process.
> 
> As `org-store-link' is also modified, I did not apply it myself.
> 
> Regards,
> 
> -- Nicolas
> >From 2764d0a0fadec4fd6a2b3eab0ff98ca2e77d32d5 Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou 
> Date: Sun, 19 Dec 2010 00:39:13 +0100
> Subject: [PATCH] Small refactoring with org-with-limited-levels macro
> 
> ---
> lisp/org.el |  365 +--
>  1 files changed, 181 insertions(+), 184 deletions(-)
> 
> diff --git a/lisp/org.el b/lisp/org.el
> index 53039e4..75fb221 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -7022,12 +7022,10 @@ in the region."
>"Return the level of the current entry, or nil if before the first 
> headline.
>  The level is the number of stars at the beginning of the headline."
>(save-excursion
> -(let ((outline-regexp (org-get-limited-outline-regexp)))
> -  (condition-case nil
> -   (progn
> - (org-back-to-heading t)
> - (funcall outline-level))
> - (error nil)
> +(org-with-limited-levels
> + (ignore-errors
> +   (org-back-to-heading t)
> +   (funcall outline-level)
>  
>  (defun org-get-previous-line-level ()
>"Return the outline depth of the last headline before the current line.
> @@ -8275,183 +8273,183 @@ For file links, arg negates 
> `org-context-in-file-links'."
>(interactive "P")
>(org-load-modules-maybe)
>(setq org-store-link-plist nil)  ; reset
> -  (let ((outline-regexp (org-get-limited-outline-regexp))
> - link cpltxt desc description search txt custom-id agenda-link)
> -(cond
> -
> - ((run-hook-with-args-until-success 'org-store-link-functions)
> -  (setq link (plist-get org-store-link-plist :link)
> - desc (or (plist-get org-store-link-plist :description) link)))
> -
> - ((equal (buffer-name) "*Org Edit Src Example*")
> -  (let (label gc)
> - (while (or (not label)
> -(save-excursion
> -  (save-restriction
> -(widen)
> -(goto-char (point-min))
> -(re-search-forward
> - (regexp-quote (format org-coderef-label-format label))
> - nil t
> -   (when label (message "Label exists already") (sit-for 2))
> -   (setq label (read-string "Code line label: " label)))
> - (end-of-line 1)
> - (setq link (format org-coderef-label-format label))
> - (setq gc (- 79 (length link)))
> - (if (< (current-column) gc) (org-move-to-column gc t) (insert " "))
> - (insert link)
> - (setq link (concat "(" label ")") desc nil)))
> -
> - ((equal (org-bound-and-true-p org-agenda-buffer-name) (buffer-name))
> -  ;; We are in the agenda, link to referenced location
> -  (let ((m (or (get-text-property (point) 'org-hd-marker)
> -(get-text-property (point) 'org-marker
> - (when m
> -   (org-with-point-at m
> - (setq agenda-link
> -   (if (interactive-p)
> -   (call-interactively 'org-store-link)
> - (org-store-link nil)))
> -
> - ((eq major-mode 'calendar-mode)
> -  (let ((cd (calendar-cursor-to-date)))
> - (setq link
> -   (format-time-string
> -(car org-time-stamp-formats)
> -(apply 'encode-time
> -   (list 0 0 0 (nth 1 cd) (nth 0 cd) (nth 2 cd)
> - nil nil nil
> - (org-store-link-props :type "calendar" :date cd)))
> -
> - ((eq major-mode 'w3-mode)
> -  (setq cpltxt (if (and (buffer-name)
> - (not (string-match "Untitled" (buffer-name
> -(buffer-name)
> -  (url-view-url t))
> - link (org-make-link (url-view-url t)))
> -  (org-store-link-props :type "w3" :url (url-view-url t)))
> -
> - ((eq major-mode 'w3m-mode)
> -  (setq cpltxt (or w3m-current-title w3m-current-url)
> - link (org-make-link w3m-current-url))
> -  (org-store-li

[Accepted] [Orgmode] Add new option for ignoring past or future items in the global todo list

2011-01-26 Thread Carsten Dominik
Patch 545 (http://patchwork.newartisans.com/patch/545/) is now "Accepted".

Maintainer comment: none

This relates to the following submission:

http://mid.gmane.org/%3C8739orgso1.fsf_-_%40fastmail.fm%3E

Here is the original message containing the patch:

> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: [Orgmode] Add new option for ignoring past or future items in the
>   global todo list
> Date: Tue, 18 Jan 2011 01:51:42 -
> From: Matt Lundin 
> X-Patchwork-Id: 545
> Message-Id: <8739orgso1.fsf...@fastmail.fm>
> To: Paul Sexton 
> Cc: emacs-orgmode@gnu.org
> 
> * lisp/org-agenda.el: (org-agenda-todo-ignore-deadlines): New option.
>   (org-agenda-todo-ignore-scheduled): New option.
>   (org-agenda-todo-ignore-timestamp): New option.
>   (org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item): Allow user
>   to specify custom distance to ignore (future or past).
>   (org-agenda-todo-custom-ignore-p): New function.
> 
> This patch gives users greater control over which past or future items
> they would like to ignore in the global todo list. By setting
> org-agenda-todo-ignore-scheduled to 7, for instance, a user can ignore
> all items scheduled 7 or more days in the future. Similarly, by
> setting org-agenda-todo-ignore-scheduled to -1, a user can ignore all
> items that are truly in the past (unlike the 'past setting, which
> ignores items scheduled today). Thanks to Paul Sexton for the idea for
> this new functionality.
> 
> ---
> lisp/org-agenda.el |   42 +++---
>  1 files changed, 39 insertions(+), 3 deletions(-)
> 
> diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
> index 0cd620c..68e781a 100644
> --- a/lisp/org-agenda.el
> +++ b/lisp/org-agenda.el
> @@ -599,6 +599,14 @@ all  Don't show any entries with a timestamp in the 
> global todo list.
>   The idea behind this is that by setting a timestamp, you
>   have already \"taken care\" of this item.
>  
> +This variable can also have an integer as a value. If positive (N),
> +todos with a timestamp N or more days in the future will be ignored. If
> +negative (-N), todos with a timestamp N or more days in the past will be
> +ignored. If 0, todos with a timestamp either today or in the future will
> +be ignored. For example, a value of -1 will exclude todos with a
> +timestamp in the past (yesterday or earlier), while a value of 7 will
> +exclude todos with a timestamp a week or more in the future.
> +
>  See also `org-agenda-todo-ignore-with-date'.
>  See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
>  to make his option also apply to the tags-todo list."
> @@ -608,7 +616,8 @@ to make his option also apply to the tags-todo list."
> (const :tag "Ignore future timestamp todos" future)
> (const :tag "Ignore past or present timestamp todos" past)
> (const :tag "Ignore all timestamp todos" all)
> -   (const :tag "Show timestamp todos" nil)))
> +   (const :tag "Show timestamp todos" nil)
> +   (integer :tag "Ignore if N or more days in past(-) or future(+).")))
>  
>  (defcustom org-agenda-todo-ignore-scheduled nil
>"Non-nil means, ignore some scheduled TODO items when making TODO list.
> @@ -627,6 +636,9 @@ all  Don't show any scheduled entries in the global 
> todo list.
>  
>  tSame as `all', for backward compatibility.
>  
> +This variable can also have an integer as a value. See
> +`org-agenda-todo-ignore-timestamp' for more details.
> +
>  See also `org-agenda-todo-ignore-with-date'.
>  See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
>  to make his option also apply to the tags-todo list."
> @@ -637,7 +649,8 @@ to make his option also apply to the tags-todo list."
> (const :tag "Ignore past- or present-scheduled todos" past)
> (const :tag "Ignore all scheduled todos" all)
> (const :tag "Ignore all scheduled todos (compatibility)" t)
> -   (const :tag "Show scheduled todos" nil)))
> +   (const :tag "Show scheduled todos" nil)
> +   (integer :tag "Ignore if N or more days in past(-) or future(+).")))
>  
>  (defcustom org-agenda-todo-ignore-deadlines nil
>"Non-nil means ignore some deadlined TODO items when making TODO list.
> @@ -664,6 +677,9 @@ all Ignore all TODO entries that do have a deadline.
>  
>  t   Same as `near', for backward compatibility.
>  
> +This variable can also have an integer as a value. See
> +`org-agenda-todo-ignore-timestamp' for more details.
> +
>  See also `org-agenda-todo-ignore-with-date'.
>  See also the variable `org-agenda-tags-todo-honor-ignore-options' if you want
>  to make his option also apply to the tags-todo list."
> @@ -674,7 +690,8 @@ to make his option also apply to the tags-todo list."
> (const :tag "Ignore near deadlines (compatibility)" t)
> (const :tag "Ignore far deadlines" far)
> (const :tag "Ig

Re: [Orgmode] :results replace not always working

2011-01-26 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/25/2011 05:14 PM, Eric Schulte wrote:
> Hi Rainer,
> 
> I have fixed the problem with ":results org" so it should now work as
> expected.  

Thanks a lot.

> The ":results replace raw" can never work as expected because
> raw results are inserted directly into the Org buffer with no wrappers
> to delimit the results, so there is no way to programmatically identify
> which text is the results and which is part of the Org buffer.

OK - makes sense.

Thanks a lot,

Rainer

> 
> Thanks -- Eric
> 
> Rainer M Krug  writes:
> 
>> Hi
>>
>> Bewlow an example, illustrating cases where :results replace does not
>> work, dependent of the type and content. Each of the source blocks was
>> executed twice:
>>
>> ":results output org replace" did not work
>> ":results output raw replace" did work, but not with all content.
>>
>> In addition, there is still the leading space in the firest line of the
>> output.
>>
>>
>>
>> #+begin_src R :results output org replace
>>   cat("[[file1.pdf]]\n")
>>   cat("[[file2.pdf]]\n")
>> #+end_src
>>
>> #+results:
>> #+BEGIN_ORG
>> [[file1.pdf]]
>> [[file2.pdf]]
>> #+END_ORG
>> #+BEGIN_ORG
>> [[file1.pdf]]
>> [[file2.pdf]]
>> #+END_ORG
>>
>>
>> #+begin_src R :results output raw replace
>>   cat("[[file1.pdf]]\n")
>>   cat("[[file2.pdf]]\n")
>> #+end_src
>>
>> #+results:
>> [[file1.pdf]]
>> [[file2.pdf]]
>>
>> #+begin_src R :results output raw replace
>>   cat("---\n")
>>   cat("[[file1.pdf]]\n")
>>   cat("[[file2.pdf]]\n")
>>   cat("---\n")
>> #+end_src
>>
>> #+results:
>>  ---
>> [[file1.pdf]]
>> [[file2.pdf]]
>> ---
>>  ---
>> [[file1.pdf]]
>> [[file2.pdf]]
>> ---
>>
>>
>>
>>
>> Cheers,
>>
>> Rainer


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:+33 - (0)9 53 10 27 44
Cell:   +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:  rai...@krugs.de

Skype:  RMkrug
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0/5ekACgkQoYgNqgF2egoZSACfS4eK5d1Ml66kK2/mZDL2wIG9
M3AAn3ZsyMYK/WKYzm7LQU+YxlkVOlQ2
=Ewlu
-END PGP SIGNATURE-

___
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] Encrypting org-mode files

2011-01-26 Thread Julien Danjou
On Wed, Jan 26 2011, Marcelo de Moraes Serpa wrote:

> Is there a way to use full encryption and still have it integrate
> seamlessly with the org agenda?

Create a file named myfile.org.gpg, and EPA should kicks in and store it
crypted. Then just add this file to the list of org-agenda-files. EPA
will ask your passphrase to decrypt in on opening.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgplAgcEMTNFk.pgp
Description: PGP signature
___
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