Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 shows it clearly - 50/50 hindsight is such a blessing - but I didn't

optometrically suspect: 20/20 hindsight is perhaps preferable...




Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Bastien
Hi Charles,

Charles Philip Chan cpc...@bell.net writes:

 Bastien b...@altern.org writes:

 Hi Bastien:

 This have been fixed with the other agenda fixes.  Please let me know
 if this is not the case for you.

 Sorry Bastien. Setting it to 7 or week is still not working. This is
 really strange, any other number works.

Remember you need to add (org-agenda-start-on-weekday nil) to the list
of properties for this agenda view.

I suspect the user naturally expects `org-agenda-start-day' to override
`org-agenda-start-on-weekday' -- and since `org-agenda-start-on-weekday'
is often set globally, maybe that's the correct expectation.  

still, being able to set (setq org-agenda-start-day +10d) and have the
whole week displayed starting with `org-agenda-start-on-weekday' is
useful.

What do you think?

-- 
 Bastien



Re: [O] coloring source for scala

2012-08-30 Thread Bastien
Alexandre Russel alexan...@russel.fr writes:

 Is there a way to have color for scala ?

You'd need a scala-mode to handle the fontification, apparently 
there is no scala-mode in Emacs yet.  I found[1] one here:

~$ svn co 
http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs/ 
scala-mode

HTH,

[1] http://www.scala-lang.org/node/354

-- 
 Bastien



[O] calfw-org broken?

2012-08-30 Thread Michal Sojka
Hello all,

I've just discovered calfw[1]. When I try it to display my Org schedule
with cfw:open-org-calendar, it fails when executing
(org-compile-prefix-format nil), because it cannot open agenda buffer.
So I put (org-prepare-agenda calfw-org) in front of that command,
which makes it not to fail and display the calendar somehow.

However, there is still something broken. Calfw navigation keys do not
work, the calendar view is displayed in the newly split window (perhaps
intended for the agenda buffer) and that window is scrolled after the
calendar so that I have to press PgUp to actually see the calendar.

Does anybody have the same problem or better a fix for it?

Org-mode version 7.8.11, I've tried that with both emacs 23 and 24.

[1]: https://github.com/kiwanami/emacs-calfw

Thanks,
-Michal



Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Charles Philip Chan
Bastien b...@altern.org writes:

Hi Bastien:

 Remember you need to add (org-agenda-start-on-weekday nil) to the list
 of properties for this agenda view.

I did that already and it didn't work. 

Charles

-- 
The world is beating a path to our door

  -- Bruce Perens, (Open Sources, 1999 O'Reilly and Associates)


pgpxKrT5I2fP8.pgp
Description: PGP signature


Re: [O] calfw-org broken?

2012-08-30 Thread Charles Philip Chan
Michal Sojka sojk...@fel.cvut.cz writes:

Hi Nichal:

 Does anybody have the same problem or better a fix for it?

 Org-mode version 7.8.11, I've tried that with both emacs 23 and 24.

Works fine here with the latest org-mode and calfw-org, both from git.

Cheers,
Charles

-- 
...and scantily clad females, of course.  Who cares if it's below zero
outside
(By Linus Torvalds)


pgpKSt0gHioGI.pgp
Description: PGP signature


Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Bastien
Hi Charles,

Charles Philip Chan cpc...@bell.net writes:

 I did that already and it didn't work. 

Can you share a reproducible recipe with latest Org?  

Both a simple .org file and a simple .el config file
with the minimal setup would help a lot, I don't have
the problem with my tests.

Thanks!

-- 
 Bastien



Re: [O] Batch processing part of a file

2012-08-30 Thread Bastien
Nicolas Girard girard.nico...@gmail.com writes:

 I've also noticed that, using the latest Org version from git, src
 blocks with #+header lines *below* the #+name are handled
 incorrectly, contrary to blocks whose #+header lines lie *above* the
 #+name.

It should work correctly now, thanks!

-- 
 Bastien



Re: [O] calfw-org broken?

2012-08-30 Thread Michal Sojka
On Thu, Aug 30 2012, Charles Philip Chan wrote:
 Michal Sojka sojk...@fel.cvut.cz writes:

 Hi Nichal:

 Does anybody have the same problem or better a fix for it?

 Org-mode version 7.8.11, I've tried that with both emacs 23 and 24.

 Works fine here with the latest org-mode and calfw-org, both from git.

Hi Charles,

I tested this with Org from git and the same result. However, I found
that calfw works correctly if I have open Agenda window.

If I close the Agenda window with `q' and then run cfw:open-org-calendar
again, I see

  cfw:org-collect-schedules-period: Selecting deleted buffer

in *Messages*. The behaviour is a bit better with `org-agenda-sticky'
turned on but you still need to open agenda before first openning the
calendar.

Does anybody know whot could be proper fix for this?

-Michal





Re: [O] calfw-org broken?

2012-08-30 Thread Charles Philip Chan
Michal Sojka sojk...@fel.cvut.cz writes:

Hi Michal:

 I tested this with Org from git and the same result. However, I found
 that calfw works correctly if I have open Agenda window.

 If I close the Agenda window with `q' and then run cfw:open-org-calendar
 again, I see

   cfw:org-collect-schedules-period: Selecting deleted buffer

I do have an Agenda buffer opened when I tested it out. I can reproduce
what you got with no Agenda buffer present.

Cheers,
Charles

-- 
All language designers are arrogant.  Goes with the territory...
(By Larry Wall)


pgpsWyx7XLVx9.pgp
Description: PGP signature


[O] PATCH[1/3]: Activate `org-self-insert-cluster-for-undo' in XEmacs

2012-08-30 Thread Michael Sperber

I've attached a patch (1 out of 3) that's minimally needed to make
the current org-mode work on XEmacs.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
From c3496d038b46d0fb633753fa67b8f2f7e326999e Mon Sep 17 00:00:00 2001
From: Mike Sperber sper...@deinprogramm.de
Date: Sat, 25 Aug 2012 17:35:35 +0200
Subject: [PATCH 1/3] XEmacs: Default `org-self-insert-cluster-for-undo' also on XEmacs.

2012-08-25  Michael Sperber  m...@xemacs.org

	* org.el (org-self-insert-cluster-for-undo): Default
	`org-self-insert-cluster-for-undo' also on XEmacs.
---
 lisp/org.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 96b5584..98bebba 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1281,7 +1281,8 @@ See also the variable `org-table-auto-blank-field'.
 	  (const :tag on t)
 	  (const :tag on, optimized optimized)))
 
-(defcustom org-self-insert-cluster-for-undo (version= emacs-version 24.1)
+(defcustom org-self-insert-cluster-for-undo (or (featurep 'xemacs)
+		(version= emacs-version 24.1))
   Non-nil means cluster self-insert commands for undo when possible.
 If this is set, then, like in the Emacs command loop, 20 consecutive
 characters will be undone together.
-- 
1.7.0.5



Re: [O] org-class, instead of (all) holidays could there be a set of holidays that could be skipped?

2012-08-30 Thread Bastien
Hi Enda,

Enda enda...@yahoo.com writes:

 http://orgmode.org/worg/org-faq.html#org-class
  If one of
 the SKIP-WEEKS is the symbol holidays, then any holidays known to the
 calendar are also skipped. 


 Using org-class, instead of the symbol holidays to denote all holidays,
 could there be a set of holidays that could be skipped denoted by another
 symbol?

Good idea.  From latest git head, you can now use 

* Task
  %%(org-class 2012 1 1 2013 12 12 2 New Year's Day)

To skip task on the New Year's Day.

Thanks,

-- 
 Bastien



Re: [O] PATCH[1/3]: Activate `org-self-insert-cluster-for-undo' in XEmacs

2012-08-30 Thread Bastien
Hi Michael,

Michael Sperber sper...@deinprogramm.de writes:

 I've attached a patch (1 out of 3) that's minimally needed to make
 the current org-mode work on XEmacs.

Argh.  Sorry I didn't consider XEmacs when I changed this default.

I applied the patch, thanks a lot!

-- 
 Bastien



[O] PATCH[2/3]: Make call to `fill-paragraph' work on XEmacs.

2012-08-30 Thread Michael Sperber

Attached is patch #2 needed to make the current org-mode work on XEmacs.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
From c3496d038b46d0fb633753fa67b8f2f7e326999e Mon Sep 17 00:00:00 2001
From: Mike Sperber sper...@deinprogramm.de
Date: Sat, 25 Aug 2012 17:35:35 +0200
Subject: [PATCH 1/3] XEmacs: Default `org-self-insert-cluster-for-undo' also on XEmacs.

2012-08-25  Michael Sperber  m...@xemacs.org

	* org.el (org-self-insert-cluster-for-undo): Default
	`org-self-insert-cluster-for-undo' also on XEmacs.
---
 lisp/org.el |3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 96b5584..98bebba 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -1281,7 +1281,8 @@ See also the variable `org-table-auto-blank-field'.
 	  (const :tag on t)
 	  (const :tag on, optimized optimized)))
 
-(defcustom org-self-insert-cluster-for-undo (version= emacs-version 24.1)
+(defcustom org-self-insert-cluster-for-undo (or (featurep 'xemacs)
+		(version= emacs-version 24.1))
   Non-nil means cluster self-insert commands for undo when possible.
 If this is set, then, like in the Emacs command loop, 20 consecutive
 characters will be undone together.
-- 
1.7.0.5



[O] PATCH[3/3]: org-element.el: Remove illegal t clause in case

2012-08-30 Thread Michael Sperber

This patch (written by Mats Lidell) fixes an error we saw on XEmacs, but
we think it's a bug on GNU Emacs, too.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
From 516456845f93d2ef7f05c6f7789f8ff4e368f6f6 Mon Sep 17 00:00:00 2001
From: Mats Lidell ma...@xemacs.org
Date: Sun, 26 Aug 2012 22:24:15 +0200
Subject: [PATCH 3/3] org-element.el: Remove illegal t clause in case

* lisp/org-element.el (org-element-paragraph-separate): Remove illegal
  t clause in case.
---
 lisp/org-element.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 3bf217d..4aeb74c 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -149,7 +149,7 @@
   \\|
   ;; Lists.
   (let ((term (case org-plain-list-ordered-item-terminator
-(t [.)]) (?\) )) (?. \\.) (otherwise [.)])))
+(?\) )) (?. \\.) (otherwise [.)])))
 (alpha (and org-alphabetical-lists \\|[A-Za-z])))
 (concat \\(?:[-+*]\\|\\(?:[0-9]+ alpha \\) term \\)
 \\(?:[ \t]\\|$\\)))
-- 
1.7.0.5



Re: [O] calfw-org broken?

2012-08-30 Thread Bastien
Hi,

Charles Philip Chan cpc...@bell.net writes:

 I do have an Agenda buffer opened when I tested it out. I can reproduce
 what you got with no Agenda buffer present.

This is because the function calls `org-compile-prefix-format', which
needs an agenda buffer.  I removed this need, so things will be better
in the next minor release.

Thanks,

-- 
 Bastien



Re: [O] Strange Problem with org-agenda-redo

2012-08-30 Thread Bastien
Hi Charles,

Charles Philip Chan cpc...@bell.net writes:

 The only thing is, for consistency sake, shouldn't j jump
 to the specified date in place rather then bringing up a new Agenda
 buffer?

Mhh..  this is how the `j' agenda command behaves here.

Can you describe exactly what's your agenda, what you do expect
by hitting `j', what it does and what surprises you?

Thanks for the effort...

-- 
 Bastien



Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Bastien
Hi Charles,

Charles Philip Chan cpc...@bell.net writes:

 Bastien b...@altern.org writes:

 Hi Bastien:

 Remember you need to add (org-agenda-start-on-weekday nil) to the list
 of properties for this agenda view.

 I did that already and it didn't work. 

To be clear, here is the agenda command I tested:

(setq org-agenda-custom-commands
  '((R Testing
 ((agenda
   Week starting tomorrow
   ((org-agenda-start-on-weekday nil)  ;;; here
(org-agenda-start-day +1d)
(org-agenda-span 7)))
  (agenda
   Week starting on monday
   ((org-agenda-start-on-weekday 1);;; here
(org-agenda-start-day +1d)
(org-agenda-span 7)))

See where I changed the value for (org-agenda-start-on-weekday 1).

HTH,

-- 
 Bastien



[O] PATCH[2/3]: Make call to `fill-paragraph' work on XEmacs. [THIS IS THE PATCH]

2012-08-30 Thread Michael Sperber

Sorry, I included the wrong patch.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
From 0c684c748c7548f5b70cc6231ef68818d15df49d Mon Sep 17 00:00:00 2001
From: Mike Sperber sper...@deinprogramm.de
Date: Sat, 25 Aug 2012 17:36:18 +0200
Subject: [PATCH 2/3] XEmacs: Make call to `fill-paragraph' work on XEmacs.

2012-08-25  Michael Sperber  m...@xemacs.org
	(org-fill-paragraph): Pass optional argument to
	`fill-paragraph', which is mandatory for XEmacs.
---
 lisp/org.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 98bebba..4d6acd8 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21057,7 +21057,7 @@ a footnote definition, try to fill the first paragraph within.
 	(paragraph-start (cadadr (assoc 'paragraph-start org-fb-vars)))
 	(paragraph-separate
 	 (cadadr (assoc 'paragraph-separate org-fb-vars
-	(fill-paragraph))
+	(fill-paragraph nil))
 (save-excursion
   ;; Move to end of line in order to get the first paragraph within
   ;; a plain list or a footnote definition.
-- 
1.7.0.5



Re: [O] PATCH[2/3]: Make call to `fill-paragraph' work on XEmacs.

2012-08-30 Thread Bastien
Michael Sperber sper...@deinprogramm.de writes:

 Attached is patch #2 needed to make the current org-mode work on
 XEmacs.

This is the same patch than patch #1.

Can you resend it?

Thanks,

-- 
 Bastien



Re: [O] PATCH[3/3]: org-element.el: Remove illegal t clause in case

2012-08-30 Thread Bastien
Hi Michael and Mats,

Michael Sperber sper...@deinprogramm.de writes:

 This patch (written by Mats Lidell) fixes an error we saw on XEmacs, but
 we think it's a bug on GNU Emacs, too.

Thank you both for the patch!  I just applied it.

I changed the commit log.  At least in GNU Emacs, t is allowed, 
but only as the last clause.

See the docstring of `case':

   [...]
   A KEYLIST of t or `otherwise' is
   allowed only in the final clause, and matches if no other keys match.
   Key values are compared by `eql'.

I guess this is the same for XEmacs, would be strange otherwise.

Best,

-- 
 Bastien



Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Rainer Stengele
Am 30.08.2012 07:42, schrieb Bastien:
 Achim Gratz strom...@nexgo.de writes:
 
 I don't know if
 something would preclude the declaration be changed to e definition with
 nil as a value, but I think Bastien would know.
 
 I don't have any steady theory about this, but as a convention I try to
 (defvar [var] nil) for dynamically bound vars in the current file and to 
 (defvar [var]) for variables declared in other files.  I just cleaned-up
 org-agenda.el a bit wrt this.
 
 Thanks for the heads up,
 
Thanks Bastien, no more Lisp error!

Now - being in a sticky agenda and jumping to another date via j the
agenda command called is not the one I was in.
Example:

I am in Org Agenda(01), jump to yesterday and get Org Agenda(a),
which of course is not what I want.

This looks like a bug.

Thanks again,
Rainer



Re: [O] PATCH[2/3]: Make call to `fill-paragraph' work on XEmacs. [THIS IS THE PATCH]

2012-08-30 Thread Bastien
Michael Sperber sper...@deinprogramm.de writes:

 Sorry, I included the wrong patch.

Applied, thanks!

-- 
 Bastien



Re: [O] Features and stuff I've been working on.

2012-08-30 Thread Luis Anaya
Bastien b...@altern.org writes:

 but the first line says it's org-groff-mom.el...

Yes, I need to clean that code up. That's why it's in the development
branch still. 


 org-groff-mom.el :: Groff exporter using MOM's macros. This one is
 almost complete. (http://www.schaffter.ca/mom/mom-01.html)

 How much duplicate code with org-e-groff.el?  If the amount is not
[chop...]
 should merge them somehow.

This would require some thought, but it has been on my radar. The reason
why this is tricky is because even though they both use
Groff, their behavior is different in some cases. 

There are a lot of items that are shared among them, like tables fonts
and picture handling, but there are some constructs that have a totally 
different behavior. Notably:

1. MM defines numbered headings with .H and unumbered with .HU. MOM asks
you to defined the type of heading you want at start.


2. MM terminates all constructs, MOM does not in some cases. 
For example .DS C/DE for centralizing in MM but in MOM I have to specify 
the next type of justification after a .CENTER which may not correspond
to the previous justification type. 

3. Letter macros work slightly different, but not horrible. But MOM
letter macros are unforgiving on the order in which the Macros
are called in.

4. Font definitions are slightly different \fB vs \*[BOLD] but MOM
macros can use \fB just as well. 

5. Colors are handled slightly different. MOM is a lot smarter on color
handling than MM, but MOM is ok with using Groff commands on colors.

The bottom line, considering that there's a lot of shared code, I think 
it's doable to merge both, Now that I have a working MOM exporter I
should be able to accomodate for nuances on each set during merge. 



 This looks very useful.  Please share the code on this list when you
 think it's ready for inclusion.



 org-e-groff.el :: 


I need to push this to Org's Git. I do not think I want to wait until I
go through the exercise of merging MOM and MM's sets into one file to
get that out of the door. 


Now, back to bed. (allergies are killing me).



-- 
Luis Anaya
papo anaya aroba hot mail punto com
Do not use 100 words if you can say it in 10 - Yamamoto Tsunetomo



Re: [O] coloring source for scala

2012-08-30 Thread Thorsten Jolitz
Alexandre Russel alexan...@russel.fr writes:

 Is there a way to have color for scala ?


Don't know about the colors, but I think ENSIME is the enhanced Scala
mode for Emacs: 

https://github.com/aemoncannon/ensime

http://jawher.net/2011/01/17/scala-development-environment-emacs-sbt-ensime/


-- 
cheers,
Thorsten




Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Bastien
Rainer Stengele rainer.steng...@online.de writes:

 Now - being in a sticky agenda and jumping to another date via j the
 agenda command called is not the one I was in.
 Example:

 I am in Org Agenda(01), jump to yesterday and get Org Agenda(a),
 which of course is not what I want.

 This looks like a bug.

Indeed -- should be fixed now.   Perhaps Charles' bug was the same.

Thanks,

-- 
 Bastien



Re: [O] Features and stuff I've been working on.

2012-08-30 Thread Bastien
Luis Anaya papoan...@hotmail.com writes:

 I need to push this to Org's Git. I do not think I want to wait until I
 go through the exercise of merging MOM and MM's sets into one file to
 get that out of the door. 

Sure.  And the merging is perhaps not called for, I was just wondering.

Thanks,

-- 
 Bastien



[O] Proposal: adjust CLOCK directly in agenda

2012-08-30 Thread Rainer Stengele
Hi all,

I use the agenda most of the day.
Many times I have to adjust clock entries:
Adding a quarter of an hour or more to an entry and subtracting that
time from a preceding or following entry in the agenda. In order to do
that I have to leave the agenda, go to the CLOCK entry of the item
(having to open the LOGBOOK drawer ..) and adjust with org-shiftup
(Increase item in timestamp or increase priority of current headline) or
org-shiftdown.

My proposal is to allow that operation directly in the agenda CLOCK
entry. Having point on the starting or ending clock of the CLOCK entry
would adjust the CLOCK without having to enter the item and going back
to the agenda, having to reload it to see the effect.
I would propose to also use context dependant org-shiftup and org-shiftdown.
As we already have operations allowed directly in the agenda (change
priority etc.) this would not be an inconsistent behaviour.

For me this would save lots of keystrokes and also waiting time saving
the agenda reload time (which in my case is not insignificant).

Any thoughts?

Cheers,
Rainer




Re: [O] PATCH[3/3]: org-element.el: Remove illegal t clause in case

2012-08-30 Thread Michael Sperber

Bastien b...@altern.org writes:

 Hi Michael and Mats,

 Michael Sperber sper...@deinprogramm.de writes:

 This patch (written by Mats Lidell) fixes an error we saw on XEmacs, but
 we think it's a bug on GNU Emacs, too.

 Thank you both for the patch!  I just applied it.

 I changed the commit log.  At least in GNU Emacs, t is allowed, 
 but only as the last clause.

 See the docstring of `case':

[...]
A KEYLIST of t or `otherwise' is
allowed only in the final clause, and matches if no other keys match.
Key values are compared by `eql'.

 I guess this is the same for XEmacs, would be strange otherwise.

Yup, you're right.

Thanks for applying the patches.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla



Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Rainer Stengele
Am 30.08.2012 10:58, schrieb Bastien:
 Rainer Stengele rainer.steng...@online.de writes:
 
 Now - being in a sticky agenda and jumping to another date via j the
 agenda command called is not the one I was in.
 Example:

 I am in Org Agenda(01), jump to yesterday and get Org Agenda(a),
 which of course is not what I want.

 This looks like a bug.
 
 Indeed -- should be fixed now.   Perhaps Charles' bug was the same.
 
 Thanks,
 
Sorry but - no.
Agenda now changes to *Org Agenda*, does not stay with the chosen
sticky one.

Thanks for looking at this,
Rainer



[O] Property var alters behavior of org variables in R code blocks

2012-08-30 Thread Johannes Meisig

Hi,

I encountered the following problem using org-mode with R code blocks. 
When using #PROPERTY: var in my org file to set global variables, R 
stops to recognize the column names of org tables defined like this:


#+TBLNAME: parameters-xlinked
| A | B |
|---+---|
| 1 | 2 |

#+begin_src R :session :var par.xlinked=parameters-xlinked :results 
output org

   ascii(par.xlinked)
#+end_src

#+RESULTS:
#+BEGIN_ORG
 |   | V1   | V2   |
|---+--+--|
| 1 | 1.00 | 2.00 |
#+END_ORG


without the variable defined I get the correct header:

#+RESULTS:
#+BEGIN_ORG
 |   | A| B|
|---+--+--|
| 1 | 1.00 | 2.00 |
#+END_ORG


So, somehow setting the variable property messes with the variable 
interface to R.


Johannes



Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Bastien
Rainer Stengele rainer.steng...@online.de writes:

 Sorry but - no.
 Agenda now changes to *Org Agenda*, does not stay with the chosen
 sticky one.

Well, should be now.  Thanks!

-- 
 Bastien



Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Rainer Stengele
Am 30.08.2012 11:52, schrieb Bastien:
 Rainer Stengele rainer.steng...@online.de writes:
 
 Sorry but - no.
 Agenda now changes to *Org Agenda*, does not stay with the chosen
 sticky one.
 
 Well, should be now.  Thanks!
 

The name of the agenda buffer now is correct, but the contents is not.

Being in Org Agenda(01) and moving to yesterday and back again to
today with b and f I get the correct results of my custom agenda
function.
Jumping to yesterday and back to today with j I miss all the todos in
my view so I am afraid that the real custom agenda command is not executed.

Rainer



Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Bastien
Rainer Stengele rainer.steng...@online.de writes:

 The name of the agenda buffer now is correct, but the contents is not.

 Being in Org Agenda(01) and moving to yesterday and back again to
 today with b and f I get the correct results of my custom agenda
 function.
 Jumping to yesterday and back to today with j I miss all the todos in
 my view so I am afraid that the real custom agenda command is not
 executed.

I see.  I've pushed a new fix.  Thanks for your patience,

-- 
 Bastien



[O] org-e-beamer-exporter and frame level

2012-08-30 Thread Fabrice Popineau
Hi,

It seems to me that in the 7.9 release and the current git version,
org-e-beamer exporter breaks whenever I change the org-e-beamer-frame-level
to something else than 1.
The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. If I set
H:2 in OPTIONS, parsing breaks. If I set org-e-beamer-frame-level to 2,
parsing breaks too.
Can anyone confirm ?


#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC


* First section
[2012-08-30 jeu. 13:32]
** First frame
[2012-08-30 jeu. 13:32]
** Second frame
[2012-08-30 jeu. 13:32]
* Second section
[2012-08-30 jeu. 13:32]
** Third frame
[2012-08-30 jeu. 13:32]

-- 
Fabrice


Re: [O] org-e-beamer-exporter and frame level

2012-08-30 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@supelec.fr writes:

 The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. 

Correct. It has been replaced by H:2 in #+OPTIONS: or
`org-e-beamer-frame-level'.

 If I set H:2 in OPTIONS, parsing breaks. If I set
 org-e-beamer-frame-level to 2, parsing breaks too. Can anyone
 confirm ?

I get no error when using `org-e-beamer-export-to-pdf' on the following
code:

--8---cut here---start-8---
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+BEAMER_THEME: default
#+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col) 
%8BEAMER_opt(Opt)
#+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC
#+OPTIONS: H:2


* First section
[2012-08-30 jeu. 13:32]
** First frame
[2012-08-30 jeu. 13:32]
** Second frame
[2012-08-30 jeu. 13:32]
* Second section
[2012-08-30 jeu. 13:32]
** Third frame
[2012-08-30 jeu. 13:32]
--8---cut here---end---8---

Do you have an appropriate beamer entry in `org-e-latex-classes' ?

Mine is:

--8---cut here---start-8---
(add-to-list 'org-e-latex-classes
 '(beamer
   \\documentclass\[presentation\]\{beamer\}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\[EXTRA]
   (\\section\{%s\} . \\section*\{%s\})
   (\\subsection\{%s\} . \\subsection*\{%s\})
   (\\subsubsection\{%s\} . \\subsubsection*\{%s\})))
--8---cut here---end---8---


Regards,

-- 
Nicolas Goaziou



Re: [O] org-e-beamer-exporter and frame level

2012-08-30 Thread Fabrice Popineau
And the problem comes from this.

In org-e-beamer.el:1325
(defun org-e-latex-headline (headline contents info)
  Transcode an HEADLINE element from Org to LaTeX.
CONTENTS holds the contents of the headline.  INFO is a plist
holding contextual information.
  (let* ((class (plist-get info :latex-class))
 (level (org-export-get-relative-level headline info))
 (numberedp (org-export-numbered-headline-p headline info))
 (class-sectionning (assoc class org-e-latex-classes))
 ;; Section formatting will set two placeholders: one for the
 ;; title and the other for the contents.
 (section-fmt
  (let ((sec (if (and (symbolp (nth 2 class-sectionning))
  (fboundp (nth 2 class-sectionning)))
 (funcall (nth 2 class-sectionning) level numberedp)
   (nth (1+ level) class-sectionning

The funcall occurs on #'org-beamer-sectioning with argument level=2 and
numberedp=t
but the function #'org-beamer-sectioning (org-beamer:232) takes 'level' and
'text' as arguments, 'text'
being the contents of the headline.

Fabrice


2012/8/30 Fabrice Popineau fabrice.popin...@supelec.fr

 Hi,

 It seems to me that in the 7.9 release and the current git version,
 org-e-beamer exporter breaks whenever I change the org-e-beamer-frame-level
 to something else than 1.
 The variable BEAMER_FRAME_LEVEL seems not to be honoured anymore. If I set
 H:2 in OPTIONS, parsing breaks. If I set org-e-beamer-frame-level to 2,
 parsing breaks too.
 Can anyone confirm ?


 #+LaTeX_CLASS: beamer
 #+LaTeX_CLASS_OPTIONS: [presentation]
 #+BEAMER_THEME: default
 #+COLUMNS: %45ITEM %10BEAMER_env(Env) %10BEAMER_act(Act) %4BEAMER_col(Col)
 %8BEAMER_opt(Opt)
 #+PROPERTY: BEAMER_col_ALL 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.0 :ETC


 * First section
 [2012-08-30 jeu. 13:32]
 ** First frame
 [2012-08-30 jeu. 13:32]
 ** Second frame
 [2012-08-30 jeu. 13:32]
 * Second section
 [2012-08-30 jeu. 13:32]
 ** Third frame
 [2012-08-30 jeu. 13:32]

 --
 Fabrice




-- 
Fabrice Popineau
-
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
--


Re: [O] org-e-beamer-exporter and frame level

2012-08-30 Thread Fabrice Popineau
2012/8/30 Nicolas Goaziou n.goaz...@gmail.com

 (add-to-list 'org-e-latex-classes
  '(beamer
\\documentclass\[presentation\]\{beamer\}
 \[DEFAULT-PACKAGES]
 \[PACKAGES]
 \[EXTRA]
(\\section\{%s\} . \\section*\{%s\})
(\\subsection\{%s\} . \\subsection*\{%s\})
(\\subsubsection\{%s\} . \\subsubsection*\{%s\})))


Ok ... I used this :

(add-to-list 'org-e-latex-classes
'(beamer \\documentclass{beamer}
 [NO-DEFAULT-PACKAGES]
 [NO-PACKAGES]
org-beamer-sectioning))

And thought it would work, but obviously, org-beamer-sectioning doesn't
behave the right way.

Thanks for the explanation.

-- 
Fabrice


Re: [O] Debugger entered--Lisp error: (void-variable org-keys)

2012-08-30 Thread Rainer Stengele
Am 30.08.2012 13:25, schrieb Bastien:
 Rainer Stengele rainer.steng...@online.de writes:
 
 The name of the agenda buffer now is correct, but the contents is not.

 Being in Org Agenda(01) and moving to yesterday and back again to
 today with b and f I get the correct results of my custom agenda
 function.
 Jumping to yesterday and back to today with j I miss all the todos in
 my view so I am afraid that the real custom agenda command is not
 executed.
 
 I see.  I've pushed a new fix.  Thanks for your patience,
 
Bastien, thanks a lot, works perfectly!
Let me (!) thank you for your patience!

Rainer



Re: [O] scale inline images in orgmode

2012-08-30 Thread Bastien
Hi Alexander,

AW alexander.will...@t-online.de writes:

 If I include an image in an *.org file, let's say [[large-image.jpg]], I can 
 toggle the inline image with C-c C-x C-v .

You can now (from git master) use `org-image-actual-width'.

(setq org-image-actual-width 300)
  = always resize inline images to 300 pixels

(setq org-image-actual-width '(400))
  = if there is a #+ATTR.*: width=200, resize to 200,
 otherwise resize to 400

(setq org-image-actual-width nil)
  = if there is a #+ATTR.*: width=200, resize to 200,
 otherwise don't resize

(setq org-image-actual-width t)
  = Never resize and use original width (the default)

HTH,

-- 
 Bastien



Re: [O] Proposal: adjust CLOCK directly in agenda

2012-08-30 Thread Bastien
Hi Rainer,

not exactly what you suggested, but still an improvement:

Now S-left/right on the CLOCKSUM column will update the
last clocks.  Since the column view is both available from
org-mode and org-agenda-mode, I think it is useful.

As for something more complex without column view, I'm not
yet convinced this is necessary.

Please have a try and let me know what you think,

-- 
 Bastien



[O] Table of figures ?

2012-08-30 Thread Fabrice Popineau
I'm using the LaTeX or Beamer new exporter.
Is there a trick in org-mode to draw a table of say 4x3 images
so that the parameters of the table (tabular) and of the images
(includegraphics)
be set independently ?

#+ATTR_LATEX: table tabular  align=
| [[file:figure1.jpg]] | [[file:figure2.jpg]] | [[file:figure3.jpg]]
  | [[file:figure4.jpg]]   |
| ???  | ???|
???   | ???   |
| [[file:figure5.jpg]]   | [[file:figure6.jpg]]   |
[[file:figure7.jpg]] | [[file:figure8.jpg]] |
| ???  | ???|
???   | ???   |
| [[file:figure9.jpg]]| [[file:figure10.jpg]] | [[file:figure11.jpg]]
  | [[file:figure12.jpg]] |
| ???  | ???|
???

I don't see how to set attributes independently for the table and for the
images.

Thanks for any help,

-- 
Fabrice


[O] Notifications of appointments in Agenda screen?

2012-08-30 Thread Nathan Neff
Hi all,

I seem to recall a feature in org-mode that would show
notifications for upcoming appointments, scheduled items,
deadlines, etc. in Emacs itself.  For example the status bar
would have a red notification saying Dr Appointment in 15 minutes.

I'm looking all over, and all I can find are posts about how to set
up org-notify to call some external messaging app.  I'm on OSX and
don't want to purchase Growl.

I found org-notify.el,
(https://github.com/p-m/org-notify/blob/master/org-notify.el)
but it seems to require a notify property on any headline that you
want to be notified
of.  I would like org-mode to automatically notify me (on the status
bar, etc) for
any headline that has a time associated with it.

I also don't want to rely on an external program because I use org-mode
on different systems.

Any ideas for a simple notification system that would pop up a
message in Emacs itself, or
on the status line?

Thanks,
--Nate



Re: [O] Proposal: adjust CLOCK directly in agenda

2012-08-30 Thread Rainer Stengele
Am 30.08.2012 16:44, schrieb Bastien:
 Hi Rainer,
 
 not exactly what you suggested, but still an improvement:
 
 Now S-left/right on the CLOCKSUM column will update the
 last clocks.  Since the column view is both available from
 org-mode and org-agenda-mode, I think it is useful.
 
 As for something more complex without column view, I'm not
 yet convinced this is necessary.
 
 Please have a try and let me know what you think,
 
I cannot find a property which shows the start and ending time of an
entry, so changing the total time is useless for me as I do not see
where the task started or ended.
I still consider the ability to edit values in the normal agenda view as
an advantage.

Thanks,
Rainer



Re: [O] Notifications of appointments in Agenda screen?

2012-08-30 Thread Nathan Neff
On Thu, Aug 30, 2012 at 8:26 AM, Nathan Neff nathan.n...@gmail.com wrote:
 Hi all,

 I seem to recall a feature in org-mode that would show
 notifications for upcoming appointments, scheduled items,
 deadlines, etc. in Emacs itself.  For example the status bar
 would have a red notification saying Dr Appointment in 15 minutes.

Nevermind -- I got it.

I found the appt-activate and org-agenda-to-appt.  I'll put a simple
how-to on Worg  if I find time :-)


 I'm looking all over, and all I can find are posts about how to set
 up org-notify to call some external messaging app.  I'm on OSX and
 don't want to purchase Growl.

 I found org-notify.el,
 (https://github.com/p-m/org-notify/blob/master/org-notify.el)
 but it seems to require a notify property on any headline that you
 want to be notified
 of.  I would like org-mode to automatically notify me (on the status
 bar, etc) for
 any headline that has a time associated with it.

 I also don't want to rely on an external program because I use org-mode
 on different systems.

 Any ideas for a simple notification system that would pop up a
 message in Emacs itself, or
 on the status line?

 Thanks,
 --Nate



Re: [O] Notifications of appointments in Agenda screen?

2012-08-30 Thread Nick Dokos
Nathan Neff nathan.n...@gmail.com wrote:

 I seem to recall a feature in org-mode that would show
 notifications for upcoming appointments, scheduled items,
 deadlines, etc. in Emacs itself.  For example the status bar
 would have a red notification saying Dr Appointment in 15 minutes.
 
 I'm looking all over, and all I can find are posts about how to set
 up org-notify to call some external messaging app.  I'm on OSX and
 don't want to purchase Growl.
 

The appt.el part of the calendar/diary application that's built into
emacs can certainly do that. See e.g.

  http://orgmode.org/worg/org-hacks.html#org-agenda-appt-zenity

but instead of using Russell's settings

,
| ; Setup zenify, we tell appt to use window, and replace default function
| (setq appt-display-format 'window)
| (setq appt-disp-window-function (function my-appt-disp-window))
`

use 

--8---cut here---start-8---
(setq appt-display-format 'echo)
--8---cut here---end---8---

or use the default setting of appt-disp-window-function which displays
in an emacs window.

Nick



[O] Bug: BABEL Buffer-wide header arguments are NOT effective [7.8.11]

2012-08-30 Thread Feiming Chen
Hi: Could anyone help with the following problem? 

Please see the attached file a.org with its text export a.txt (from C-c C-e 
a). 


Test 1 is using buffer-wide header arguments BUT the evaluation result is not 
inserted into the exported file.  I am following the Org Manual section 14.8.1 
(Using header arguments).

Test 2 is using code block specific header arguments and works as expected.  

 
For this test, I start emacs with emacs -Q, use org-version 7.8.11, and 
enabled  Org Confirm Babel Evaluate and add R to Org Babel Load Languages. 


Thanks a lot for your help! 

Sincerely, 
Feiming Chen




Emacs  : GNU Emacs 24.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 of 2012-08-13 on fmc.work
Package: Org-mode version 7.8.11

current state:
==
(setq
 org-export-blocks '((src org-babel-exp-src-block nil)
 (export-comment org-export-blocks-format-comment t)
 (ditaa org-export-blocks-format-ditaa nil)
 (dot org-export-blocks-format-dot nil))
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
  org-babel-execute-safely-maybe)
 org-export-preprocess-before-selecting-backend-code-hook 
'(org-beamer-select-beamer-code)
 org-tab-first-hook '(org-hide-block-toggle-maybe
  org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
  org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-confirm-babel-evaluate nil
 org-speed-command-hook '(org-speed-command-default-hook
  org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-export-interblocks '((src org-babel-exp-non-block-elements))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-reveal-start-hook '(org-decrypt-entry)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-mode-hook '(#[nil
   \305\306\203
  a
  =

Author: Feiming Chen
Date: 2012-08-30 11:27:38 EDT


Table of Contents
=
1 test 1: Buffer-wide header arguments are NOT effective
2 test 1: Code block specific header arguments are effective


1 test 1: Buffer-wide header arguments are NOT effective 
-


  print(pi)


2 test 1: Code block specific header arguments are effective 
-


  print(pi)


[1] 3.141593








a.org
Description: Binary data


Re: [O] Notifications of appointments in Agenda screen?

2012-08-30 Thread Nick Dokos
Nathan Neff nathan.n...@gmail.com wrote:

 
  I seem to recall a feature in org-mode that would show
  notifications for upcoming appointments, scheduled items,
  deadlines, etc. in Emacs itself.  For example the status bar
  would have a red notification saying Dr Appointment in 15 minutes.
 
 Nevermind -- I got it.
 
 I found the appt-activate and org-agenda-to-appt.  I'll put a simple
 how-to on Worg  if I find time :-)
 

In addition to Russell's hack in org-hacks, there is a section on
Appointments/Diary in the FAQ: the latter is probably the right place
to put your how-to.

Nick




Re: [O] calfw-org broken?

2012-08-30 Thread Michal Sojka
On Thu, Aug 30 2012, Bastien wrote:
 Hi,

 Charles Philip Chan cpc...@bell.net writes:

 I do have an Agenda buffer opened when I tested it out. I can reproduce
 what you got with no Agenda buffer present.

 This is because the function calls `org-compile-prefix-format', which
 needs an agenda buffer.  I removed this need, so things will be better
 in the next minor release.

Great, now it works perfectly for me.

Thanks,
-Michal



Re: [O] Bug: BABEL Buffer-wide header arguments are NOT effective [7.8.11]

2012-08-30 Thread Eric Schulte
Feiming Chen feimingc...@yahoo.com writes:

 Hi: Could anyone help with the following problem? 

 Please see the attached file a.org with its text export a.txt (from C-c 
 C-e 
 a). 


Replace

#+PROPERTY: exports both
#+PROPERTY: results output

with

#+PROPERTY: :exports both
#+PROPERTY: :results output

Best,

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Batch processing part of a file

2012-08-30 Thread Nicolas Girard
2012/8/30 Bastien b...@altern.org:
 Nicolas Girard girard.nico...@gmail.com writes:

 I've also noticed that, using the latest Org version from git, src
 blocks with #+header lines *below* the #+name are handled
 incorrectly, contrary to blocks whose #+header lines lie *above* the
 #+name.

 It should work correctly now, thanks!


Thanks to you, Bastien, for considering the quickest  dirtiest bug
report I've ever written !

-- 
Nicolas



Re: [O] Org-mode release 7.9

2012-08-30 Thread Achim Gratz
Bastien writes:
 I'm afraid the only recommendation here is to try to stick to one
 installation method -- or to reinstall a fresh package/repo with a
 fresh contrib/lisp/ *after* any ELPA upgrade.

Well, we could make an ELPA package that includes contrib.  It just
can't be distributed via GNU ELPA then.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




[O] XEmacs and ert (was: Re: PATCH[1/3]: Activate `org-self-insert-cluster-for-undo' in XEmacs)

2012-08-30 Thread Achim Gratz
Michael Sperber writes:
 I've attached a patch (1 out of 3) that's minimally needed to make
 the current org-mode work on XEmacs.

While we have you here… Do you know of a version of ert that is
compatible with XEmacs?  The roadblock I've run into is that ert uses
button and XEmacs doesn't seem to have it.  It wouldn't really be
needed for batch mode testing I think, but I haven't found out how to
work around it.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] scale inline images in orgmode

2012-08-30 Thread AW
Am Donnerstag, 30. August 2012, 15:52:59 schrieb Bastien:
 Hi Alexander,
 
 AW alexander.will...@t-online.de writes:
  If I include an image in an *.org file, let's say [[large-image.jpg]], I
  can toggle the inline image with C-c C-x C-v .
 
 You can now (from git master) use `org-image-actual-width'.
 
 (setq org-image-actual-width 300)
   = always resize inline images to 300 pixels
 
 (setq org-image-actual-width '(400))
   = if there is a #+ATTR.*: width=200, resize to 200,
  otherwise resize to 400
 
 (setq org-image-actual-width nil)
   = if there is a #+ATTR.*: width=200, resize to 200,
  otherwise don't resize
 
 (setq org-image-actual-width t)
   = Never resize and use original width (the default)
 
 HTH,

Hi Bastien,

indeed, that helps a lot! Thank you very much. 

Kind regards,
Alexander



Re: [O] Org-mode release 7.9

2012-08-30 Thread Eric Schulte
Achim Gratz strom...@nexgo.de writes:

 Bastien writes:
 I'm afraid the only recommendation here is to try to stick to one
 installation method -- or to reinstall a fresh package/repo with a
 fresh contrib/lisp/ *after* any ELPA upgrade.

 Well, we could make an ELPA package that includes contrib.  It just
 can't be distributed via GNU ELPA then.


I second this option.

Given that ELPA and contrib/ both serve as a sort of proving ground for
tools which do not yet have some combination of the stability, copyright
assignment, or widespread utility to be included in Emacs or either
Org-mode it seems natural to distribute the contrib directory through
ELPA.

I think either of the following repositories would make excellent homes.

  http://tromey.com/elpa/
  http://marmalade-repo.org/packages/

Also, somewhat selfishly, I'd like to distribute my org-ehtml tool as an
ELPA package, but I can't until some of the functionality in contrib/
can be installed through ELPA.

Best,



 Regards,
 Achim.

-- 
Eric Schulte
http://cs.unm.edu/~eschulte



Re: [O] Org-mode release 7.9

2012-08-30 Thread Ivan Andrus

On Aug 30, 2012, at 8:35 PM, Eric Schulte wrote:

 Achim Gratz strom...@nexgo.de writes:
 
 Bastien writes:
 I'm afraid the only recommendation here is to try to stick to one
 installation method -- or to reinstall a fresh package/repo with a
 fresh contrib/lisp/ *after* any ELPA upgrade.
 
 Well, we could make an ELPA package that includes contrib.  It just
 can't be distributed via GNU ELPA then.
 
 
 I second this option.

+1 I know that I am much more likely to try stuff if it's in ELPA.

 Given that ELPA and contrib/ both serve as a sort of proving ground for
 tools which do not yet have some combination of the stability, copyright
 assignment, or widespread utility to be included in Emacs or either
 Org-mode it seems natural to distribute the contrib directory through
 ELPA.
 
 I think either of the following repositories would make excellent homes.
 
  http://tromey.com/elpa/
  http://marmalade-repo.org/packages/

Don't forget MELPA:

http://melpa.milkbox.net/

which will package it right out of git.

-Ivan



Re: [O] Org-mode release 7.9

2012-08-30 Thread Marcelo de Moraes Serpa
MELPA looks better; like ELPA 2.0 :)

On Thu, Aug 30, 2012 at 2:10 PM, Ivan Andrus darthand...@gmail.com wrote:


 On Aug 30, 2012, at 8:35 PM, Eric Schulte wrote:

  Achim Gratz strom...@nexgo.de writes:
 
  Bastien writes:
  I'm afraid the only recommendation here is to try to stick to one
  installation method -- or to reinstall a fresh package/repo with a
  fresh contrib/lisp/ *after* any ELPA upgrade.
 
  Well, we could make an ELPA package that includes contrib.  It just
  can't be distributed via GNU ELPA then.
 
 
  I second this option.

 +1 I know that I am much more likely to try stuff if it's in ELPA.

  Given that ELPA and contrib/ both serve as a sort of proving ground for
  tools which do not yet have some combination of the stability, copyright
  assignment, or widespread utility to be included in Emacs or either
  Org-mode it seems natural to distribute the contrib directory through
  ELPA.
 
  I think either of the following repositories would make excellent homes.
 
   http://tromey.com/elpa/
   http://marmalade-repo.org/packages/

 Don't forget MELPA:

 http://melpa.milkbox.net/

 which will package it right out of git.

 -Ivan




Re: [O] Notifications of appointments in Agenda screen?

2012-08-30 Thread Peter Münster
On Thu, Aug 30 2012, Nathan Neff wrote:

 I'm looking all over, and all I can find are posts about how to set
 up org-notify to call some external messaging app.  I'm on OSX and
 don't want to purchase Growl.

Hi,

With org-notify.el you don't need an external messaging app, you can do
all in emacs.


 I found org-notify.el,
 (https://github.com/p-m/org-notify/blob/master/org-notify.el)
 but it seems to require a notify property on any headline that you
 want to be notified of.

It's also optional. When the notify property is missing, a default
value will be used.


 I would like org-mode to automatically notify me (on the status
 bar, etc) for
 any headline that has a time associated with it.

Today, org-notify.el requires a DEADLINE-timestamp, but this can
easily be changed in the code.


 I also don't want to rely on an external program because I use org-mode
 on different systems.

See above. There are predefined functions for displaying a message in
the minibuffer or in a new emacs window, and you can define other
functions, that do whatever you want (something with the modeline for
example).

-- 
   Peter




Re: [O] Table of figures ?

2012-08-30 Thread Nicolas Goaziou
Hello,

Fabrice Popineau fabrice.popin...@supelec.fr writes:

 Is there a trick in org-mode to draw a table of say 4x3 images so that
 the parameters of the table (tabular) and of the images
 (includegraphics) be set independently ?

No, that's not possible. Element-Object inheritance has its limits.

I think link syntax should be extended to accept parameters. There was
a discussion about it some weeks ago and a few ideas were exposed, but
it stopped there.

Maybe for post 7.9.1...


Regards,

-- 
Nicolas Goaziou



Re: [O] Table of figures ?

2012-08-30 Thread Fabrice Popineau
For the future, I wonder if it would not be possible to consider a syntax
like :

#+ATTR_LATEX.table: width=\textwidth
#+ATTR_LATEX.image: width=2cm

Or why not a CSS-like for Org files? (Maybe this is not a new idea?)

Fabrice


2012/8/30 Nicolas Goaziou n.goaz...@gmail.com

 Hello,

 Fabrice Popineau fabrice.popin...@supelec.fr writes:

  Is there a trick in org-mode to draw a table of say 4x3 images so that
  the parameters of the table (tabular) and of the images
  (includegraphics) be set independently ?

 No, that's not possible. Element-Object inheritance has its limits.

 I think link syntax should be extended to accept parameters. There was
 a discussion about it some weeks ago and a few ideas were exposed, but
 it stopped there.

 Maybe for post 7.9.1...


 Regards,

 --
 Nicolas Goaziou




-- 
Fabrice Popineau
-
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
--


[O] Bug report: agenda column mode failure

2012-08-30 Thread Hannes Schulz
Hi everyone,

when I put my agenda in column mode, I would like to change
efforts and the like. 

When I do some action it instantly drops out of column mode.

I'm using  org-mode from git 7.9 (release_7.9-163-gdfe33f).

The same phenomenon occurs with a minimal config:


% - minimal-org.el -
(setq debug-on-error t
debug-on-signal nil
debug-on-quit nil)
(add-to-list 'load-path ~/checkout/git/org-mode/lisp)
(require 'org-install)

% - minimal.org -
#+PROPERTY: Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00
#+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM
* Heading
** TODO Task 1
   SCHEDULED: 2012-08-30 Do
** date
   2012-08-30 Do

%end

I run like this:

$ emacs -Q -l minimal-org.el minimal.org

then I add minimal.org to the agenda files, create the agenda, put it in column
mode, and use shift-right in the effort column.

This yields the following backtrace:

Debugger entered--Lisp error: (error Marker does not point anywhere)
  goto-char(#marker in no buffer)
  (save-excursion (goto-char beg) (setq end (condition-case nil ... ...)) 
(goto-char end) (while (re-search-backward re beg t) (setq sumpos ... 
last-level ... level ... val ... valflag ...) (cond ... ... ...)))
  (let* ((re org-outline-regexp-bol) (lmax 30) (lvals ...) (lflag ...) (level 
0) (ass ...) (format ...) (printf ...) (fun ...) (calc ...) (beg 
org-columns-top-level-marker) (inminlevel org-inlinetask-min-level) (last-level 
org-inlinetask-min-level) val valflag flag end sumpos sum-alist sum str str1 
useval) (save-excursion (goto-char beg) (setq end ...) (goto-char end) (while 
... ... ...)))
  org-columns-compute(Effort)
  (cond ((equal ... CLOCKSUM) (org-clock-sum)) ((equal ... CLOCKSUM_T) 
(org-clock-sum-today)) ((and ... ... ...) (org-columns-compute ...)))
  (while (setq fm (pop fmt)) (cond (... ...) (... ...) (... ...)))
  (save-restriction (widen) (org-unmodified (remove-text-properties ... ... 
...)) (goto-char (point-min)) (org-columns-get-format-and-top-level) (while 
(setq fm ...) (cond ... ... ...)))
  (save-excursion (save-restriction (widen) (org-unmodified ...) (goto-char 
...) (org-columns-get-format-and-top-level) (while ... ...)))
  (save-current-buffer (set-buffer (or ... b)) (save-excursion 
(save-restriction ... ... ... ... ...)))
  (with-current-buffer (or (buffer-base-buffer b) b) (save-excursion 
(save-restriction ... ... ... ... ...)))
  (while (setq f (pop files)) (setq b (find-buffer-visiting f)) 
(with-current-buffer (or ... b) (save-excursion ...)))
  (let ((files org-agenda-contributing-files) (org-columns-begin-marker ...) 
(org-columns-top-level-marker ...) f fm a b) (while (setq f ...) (setq b ...) 
(with-current-buffer ... ...)))
  org-agenda-colview-compute(((ITEM Task 40 nil nil nil + nil) (Effort 
Estimated Effort 17 : add_times nil + nil) (CLOCKSUM CLOCKSUM nil nil 
nil nil + nil)))
  (progn (org-agenda-colview-compute org-columns-current-fmt-compiled))
  (if org-agenda-columns-compute-summary-properties (progn 
(org-agenda-colview-compute org-columns-current-fmt-compiled)))
  (when org-agenda-columns-compute-summary-properties 
(org-agenda-colview-compute org-columns-current-fmt-compiled))
  (let ((org-columns-time ...) cache maxwidths m p a d fmt) (cond (... ... ...) 
(... ...) (... ...) (... ... ...)) (setq fmt (or fmt 
org-columns-default-format)) (org-set-local (quote org-columns-current-fmt) 
fmt) (org-columns-compile-format fmt) (when 
org-agenda-columns-compute-summary-properties (org-agenda-colview-compute 
org-columns-current-fmt-compiled)) (save-excursion (goto-char ...) (while ... 
... ...) (when cache ... ... ... ... ... ...)))
  org-agenda-columns()
  call-interactively(org-agenda-columns nil nil)

cheers,

-Hannes



[O] test report with strange messages

2012-08-30 Thread Neuwirth Erich
I em learning to run the tests interactively.
Again, OSX 10.8.1, Emacs 24.2.1

Perhaps the following report is useful for the developers.

The message seems rather strange ;-)

-=-=-=-=-=-=-=-=-=

Selector: \\(org\\|ob\\)
Passed: 128
Failed: 12 (2 unexpected)
Total:  140/140

Started at:   2012-08-31 01:24:12+0200
Finished.
Finished at:  2012-08-31 01:24:34+0200

ff..FF..

F test-org-babel/nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)

F test-org-babel/partial-nested-code-block
Test nested code blocks inside code blocks don't cause problems.
(error No org-babel-execute function for org!)





Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Charles Philip Chan
Bastien b...@altern.org writes:

Hi Bastien:

 Can you share a reproducible recipe with latest Org?  

 Both a simple .org file and a simple .el config file
 with the minimal setup would help a lot, I don't have
 the problem with my tests.

Sorry for the noise. I traced my problem to adding a null to the
variable org-agenda-start-on-weekday in a Any Variable entry in
Configure custom Agenda Commands. Brown paper bag time. :-(

Cheers,
Charles

-- 
Linux is obsolete
(Andrew Tanenbaum)


pgpwHQU9IxGo8.pgp
Description: PGP signature


Re: [O] Strange Problem with org-agenda-redo

2012-08-30 Thread Charles Philip Chan
Bastien b...@altern.org writes:

Hi Bastien:

 Mhh..  this is how the `j' agenda command behaves here.

 Can you describe exactly what's your agenda, what you do expect
 by hitting `j', what it does and what surprises you?

It changes the Agenda in buffer to a day view for the jump to date. I
was expecting for it to change the block Agenda under point like b
and f.

Charles

-- 
Your job is being a professor and researcher: That's one hell of a good excuse
for some of the brain-damages of minix.
(Linus Torvalds to Andrew Tanenbaum)


pgpeZ9lFnO7HF.pgp
Description: PGP signature


[O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Hello all:

After updating to the latest git version of Org-mode, google weather
entries are not showing up in the Agenda buffer any more. Does any one
else have the same problem?

Thanks.

Charles

-- 
MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development.
(By dmegg...@aix1.uottawa.ca)


pgpiv2D0bHlwL.pgp
Description: PGP signature


Re: [O] Bug with org-agenda-span org-agenda-start-day

2012-08-30 Thread Charles Philip Chan
Charles Philip Chan cpc...@bell.net writes:

 Sorry for the noise. I traced my problem to adding a null

Sorry, I meant nil.

Charles

-- 
MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development.
(By dmegg...@aix1.uottawa.ca)


pgpE7DeIrUQTH.pgp
Description: PGP signature


Re: [O] Bug report: agenda column mode failure

2012-08-30 Thread Jacob Riko
Hi Hannes,

I was about to report the same behavior on a Mac:

On 30.08.2012, at 13:47, Hannes Schulz wrote:

 when I put my agenda in column mode, I would like to change
 efforts and the like. 
 When I do some action it instantly drops out of column mode.
 
 I'm using  org-mode from git 7.9 (release_7.9-163-gdfe33f).
Here org-version: 7.9 (release_7.9-174-gcdbc2d.dirty)

For the sake of a clean compile (aka by pure chance) I changed 
org-mode/local.mk to point to the current emacs 24.2 (from 
http://emacsformacosx.com/)
…
# Name of your emacs binary
#EMACS  = emacs
EMACS   = /Applications/Emacs.app/Contents/MacOS/Emacs
…

Now my minimal example works as expected:

#+PROPERTY: Effort_ALL 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00
#+COLUMNS: %40ITEM(Task) %17Effort(Estimated Effort){:} %CLOCKSUM(Clock){:}

* Tasks
** TODO was 
   SCHEDULED: 2012-08-30 Thu
   CLOCK: [2012-08-31 Fri 03:35]--[2012-08-31 Fri 03:44] =  0:09
   :PROPERTIES:
   :Effort:   1:00
   :END:
-

I still have to try it on my real org-files though.

Riko



Viele Grüße

Riko Jacob

--  
Riko Jacob   Tel. +41 44 632 25 73
rja...@inf.ethz.ch
http://www.inf.ethz.ch/personal/rjacob/




Re: [O] bugs in commenting and filling

2012-08-30 Thread Samuel Wales
On 8/28/12, Nicolas Goaziou n.goaz...@gmail.com wrote:
 #bug 4: this paragraph now gets exported in HTML subtree
 #export, which will likely surprise many people who formerly
 #used # comments instead of #  comments and don't
 #carefully check all output.  they might
 #even publish private information automatically without
 #realizing it using old files that they forgot or did not
 #know to convert.

 This has been announced in 7.9 changes.

As a user, what is the best way in both the old and new exporters to
remove #[^+] lines on export?  Flush lines in one of the hooks?  Or is
there a setting?

Or error if there are any such lines in the exported subtree.  (I
always export subtrees.)  Is this possible?

 #bug 5: filling this paragraph with === on the following
 #line will fill the ===, unlike the rest of emacs with
 #filladapt turned ON.  we are supposed to not use filladapt
 #with org.  therefore, how do you emulate the filladapt
 #behavior so that there is consistency between emacs and
 #org?

 I don't know filladapt.el. I've done my homework, though, and looked at
 the file.

 If you want to use filladapt.el, you'll have to tweak
 `filladapt-token-*' variables. If you come up with a working setup,
 please put it on org-hacks.org as some users may appreciate it.

 For example, `cc-mode' does it in `c-setup-filladapt' function.

filladapt worked as it does in the rest of Emacs until pretty
recently, but it stopped working (error) when Org changed filling.

This bug refers to how Org without filladapt works.

Are you suggesting getting it to work again, then fixing this bug?  My
concern is that further changes in Org might make it not work again.

The alternative is to make the Org behavior work as it used to with filladapt.

 I hope it is clearer now.

Yes, thanks for explaining that it is for comment and verse blocks.

 Thanks for the detailed report.

Thanks for addressing the bugs.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] Bug report: agenda column mode failure

2012-08-30 Thread Jacob Riko
Hi Hannes,

On 31.08.2012, at 03:52, Jacob Riko wrote:
 I was about to report the same behavior on a Mac:

Sorry for the noise, I actually do see the same behavior.
It is just that entering column-view in the file works fine, only a column view 
on the agenda (C-c C-x C-c) throws the error.

Below are a short and a detailed backtrace.

Riko


Short:

 debug(error (error Marker does not point anywhere))
 org-columns-compute(Effort)
 org-agenda-colview-compute(((ITEM Task 40 nil nil nil + nil) (Effort 
Estimated Effort 17 : add_times nil + nil) (CLOCKSUM Clock nil : 
add_times nil + nil)))
 org-agenda-columns()
 call-interactively(org-agenda-columns nil nil)

Complete (after C-u M-x org-reload)

Debugger entered--Lisp error: (error Marker does not point anywhere)
 goto-char(#marker in no buffer)
 (save-excursion (goto-char beg) (setq end (condition-case nil 
(org-end-of-subtree t) (error (point-max (goto-char end) (while 
(re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level (if 
(not (or (zerop level) (eq level inminlevel))) level last-level) level 
(org-outline-level) val (org-entry-get nil property) valflag (and val 
(string-match \\S- val))) (cond (( level last-level) (setq sum (+ (if (and 
... ...) (apply fun ...) 0) (if (aref lvals inminlevel) (apply fun ...) 0)) 
flag (or (aref lflag last-level) (aref lflag inminlevel)) str 
(org-columns-number-to-string sum format printf) str1 (org-add-props 
(copy-sequence str) nil (quote org-computed) t (quote face) (quote bold)) 
useval (if flag str1 (if valflag val )) sum-alist (get-text-property sumpos 
(quote org-summaries))) (if (assoc property sum-alist) (setcdr (assoc property 
sum-alist) useval) (push (cons property useval) sum-alist) (org-unmodified 
(add-text-properties sumpos (1+ sumpos) (list ... sum-alist (when (and val 
(not (equal val ...))) (org-entry-put nil property (if flag str val))) (when 
(or flag valflag) (push (if flag sum (funcall calc ...)) (aref lvals level)) 
(aset lflag level t)) (loop for l from (1+ level) to (1- lmax) do (aset lvals l 
nil) (aset lflag l nil))) ((= level last-level) (when valflag (push (funcall 
calc (org-columns-string-to-number val format)) (aref lvals level)) (aset lflag 
level t))) (t (error This should not happen)
 (let* ((re org-outline-regexp-bol) (lmax 30) (lvals (make-vector lmax nil)) 
(lflag (make-vector lmax nil)) (level 0) (ass (assoc property 
org-columns-current-fmt-compiled)) (format (nth 4 ass)) (printf (nth 5 ass)) 
(fun (nth 6 ass)) (calc (or (nth 7 ass) (quote identity))) (beg 
org-columns-top-level-marker) (inminlevel org-inlinetask-min-level) (last-level 
org-inlinetask-min-level) val valflag flag end sumpos sum-alist sum str str1 
useval) (save-excursion (goto-char beg) (setq end (condition-case nil 
(org-end-of-subtree t) (error (point-max (goto-char end) (while 
(re-search-backward re beg t) (setq sumpos (match-beginning 0) last-level (if 
(not (or (zerop level) (eq level inminlevel))) level last-level) level 
(org-outline-level) val (org-entry-get nil property) valflag (and val 
(string-match \\S- val))) (cond (( level last-level) (setq sum (+ (if ... 
... 0) (if ... ... 0)) flag (or (aref lflag last-level) (aref lflag 
inminlevel)) str (org-columns-number-to-string sum format printf) str1 
(org-add-props (copy-sequence str) nil (quote org-computed) t (quote face) 
(quote bold)) useval (if flag str1 (if valflag val )) sum-alist 
(get-text-property sumpos (quote org-summaries))) (if (assoc property 
sum-alist) (setcdr (assoc property sum-alist) useval) (push (cons property 
useval) sum-alist) (org-unmodified (add-text-properties sumpos ... ...))) (when 
(and val (not ...)) (org-entry-put nil property (if flag str val))) (when (or 
flag valflag) (push (if flag sum ...) (aref lvals level)) (aset lflag level t)) 
(loop for l from (1+ level) to (1- lmax) do (aset lvals l nil) (aset lflag l 
nil))) ((= level last-level) (when valflag (push (funcall calc ...) (aref 
lvals level)) (aset lflag level t))) (t (error This should not happen))
 org-columns-compute(Effort)
 (cond ((equal (car fm) CLOCKSUM) (org-clock-sum)) ((equal (car fm) 
CLOCKSUM_T) (org-clock-sum-today)) ((and (nth 4 fm) (setq a (assoc (car fm) 
org-columns-current-fmt-compiled)) (equal (nth 4 a) (nth 4 fm))) 
(org-columns-compute (car fm
 (while (setq fm (pop fmt)) (cond ((equal (car fm) CLOCKSUM) (org-clock-sum)) 
((equal (car fm) CLOCKSUM_T) (org-clock-sum-today)) ((and (nth 4 fm) (setq a 
(assoc (car fm) org-columns-current-fmt-compiled)) (equal (nth 4 a) (nth 4 
fm))) (org-columns-compute (car fm)
 (save-restriction (widen) (org-unmodified (remove-text-properties (point-min) 
(point-max) (quote (org-summaries t (goto-char (point-min)) 
(org-columns-get-format-and-top-level) (while (setq fm (pop fmt)) (cond ((equal 
(car fm) CLOCKSUM) (org-clock-sum)) ((equal (car fm) CLOCKSUM_T) 
(org-clock-sum-today)) ((and (nth 4 fm) (setq a (assoc (car fm) 
org-columns-current-fmt-compiled)) 

[O] [OT] Encoding error when calling a ruby script from Emacs using shell-command

2012-08-30 Thread Marcelo de Moraes Serpa
Hey list,

I've tried posting on help-gnu-emacs mailing list first, but not luck so
far, so I thought I'd try here, as I know there are many savvy emacs users
around.

I have a small Ruby CLI program that I want to call from emacs. This script
simply opens an emacs orgmode file from a specific location in my hard
drive, and does some text processing. When I call it from the terminal
directly, it works fine. When I call it from emacs, the script fails with
an encoding error.

I'm using this elisp to call it from emacs after a buffer is saved:

(defun test ()
   (let ((universal-coding-system-argument 'utf-8-unix))
 (shell-command  /Users/myself/.rvm/bin/rvm ruby-1.9.3-p194 do
 /usr/bin/myrubyscript)
 ))
 (add-hook 'after-save-hook 'test)



NOTE: The (let ((universal-coding-system-argument 'utf-8-unix)) was an
attempt to fix it, but it made no difference whatsoever.

After I save a buffer, the shell-command function is fired, but I get the
following output in the *Shell Command Output* buffer:

F, [2012-08-30T01:59:18.688827 #94004] FATAL -- : invalid byte sequence in
 US-ASCII (ArgumentError)
 /Users/myself/.rvm/gems/ruby-1.9.3-p194/gems/org-ruby-0.6.3/lib/org-ruby/parser.rb:89:in
 `split'
 /Users/myself/.rvm/gems/ruby-1.9.3-p194/gems/org-ruby-0.6.3/lib/org-ruby/parser.rb:89:in
 `initia


The strange thing is that the file that this script opens *is* accessible,
and is the same file it would open if it were fired up from the terminal.
For some reason, Emacs is getting in the way, but I have no idea what that
could be. Am I missing something? If someone could enlighten me here, I'd
be really grateful!

Thanks in advance,

- Marcelo.


[O] showing orgmode source in orgmode

2012-08-30 Thread Alexandre Russel
Hi,
I couldn't find how to show orgmode source in orgmode, I've tried the
obvious(ly stupid):
#+begin_src orgmode
#+begin_src foobar
#+end_src
#+end_src

but when exporting it shows only
#+begin_src foobar

when I would have like:
#+begin_src foobar
#+end_src

any ideas ?

alex



Re: [O] showing orgmode source in orgmode

2012-08-30 Thread Charles Philip Chan
Alexandre Russel alexan...@russel.fr writes:

Hi Alexandre:

 I couldn't find how to show orgmode source in orgmode, I've tried the
 obvious(ly stupid):

Use:

,
| #+begin_example
| #+end_example
`


 #+begin_src orgmode
 #+begin_src foobar
 #+end_src

#+begin_src only works with certain programming languages. Please
refer to section 14 of the manual.

Cheers,
Charles

-- 
Computers may be stupid, but they're always obedient. Well, almost always.

  -- Larry Wall (Open Sources, 1999 O'Reilly and Associates)


pgpN1xTJvTdAG.pgp
Description: PGP signature


Re: [O] showing orgmode source in orgmode

2012-08-30 Thread Charles Philip Chan
Charles Philip Chan cpc...@bell.net writes:

Hi Alexandre:

 #+begin_src only works with certain programming languages. Please
 refer to section 14 of the manual.

Sorry, it seems that org-mode is supported, try:

,
| #+begin_src org
| #+end_src
`

Cheers,
Charles

-- 
Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)


pgpGtw8Ff9MIi.pgp
Description: PGP signature


[O] ODT preferred format option per-file?

2012-08-30 Thread James Harkins
Hi,

I have one particular org file that I would like to export to PDF by way of 
ODT. (I already set up outline styling in LibreOffice and I would like to use 
that, instead of trying to reconfigure a similar look in LaTeX. For fun, I did 
try the LaTeX pdf export and the output format is not what I need for this 
case.)

But I may want to export other org files to ODT *without* converting them to 
PDF.

http://orgmode.org/manual/Extending-ODT-export.html

This says I can customize the org-export-odt-preferred-output-format variable. 
This works beautifully, but it's a global setting that will apply to every ODT 
export.

So my question is -- is there any export option for the preferred format, per 
file? Something like:

#+ODT_PREFERRED_FORMAT: pdf

I couldn't find any documentation in the ODT export section of the manual for 
an option like this.

Alternately, I suppose I could write a lisp function that would set the 
variable and call the export, but that would definitely be a hack.

Thanks in advance,
hjh


--
James Harkins /// dewdrop world
jamshar...@dewdrop-world.net
http://www.dewdrop-world.net

Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal.  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



Re: [O] showing orgmode source in orgmode

2012-08-30 Thread Alexandre Russel
On Fri, Aug 31, 2012 at 6:44 AM, Charles Philip Chan cpc...@bell.net wrote:
 Charles Philip Chan cpc...@bell.net writes:

 Hi Alexandre:

 #+begin_src only works with certain programming languages. Please
 refer to section 14 of the manual.

 Sorry, it seems that org-mode is supported, try:

 ,
 | #+begin_src org
 | #+end_src
 `

#+begin_example org
#+begin_src java
#+end_src
#+end_src
exports without color:
#+begin_src java
#+end_src

#+begin_src org
#+begin_src java
#+end_src
#+end_src
exports with color but only:
#+begin_src java

Alex


 Cheers,
 Charles

 --
 Dijkstra probably hates me
 (Linus Torvalds, in kernel/sched.c)



Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Nick Dokos
Charles Philip Chan cpc...@bell.net wrote:

 Hello all:
 
 After updating to the latest git version of Org-mode, google weather
 entries are not showing up in the Agenda buffer any more. Does any one
 else have the same problem?
 

Yup - I got an error on startup and turned it off. When I turned it back
on and tried again (possibly after another org update), I got no error
but no results either. Haven't investigated further.

Nick





Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Nick Dokos nicholas.do...@hp.com writes:

Hi Nick:

 Yup - I got an error on startup and turned it off. When I turned it
 back on and tried again (possibly after another org update), I got no
 error but no results either. Haven't investigated further.

Thanks for the confirmation. I know that the weather info is download
and cached judging by the timestamps of the files. They are just not
showing in the Agenda buffer.

Cheers,
Charles

-- 
Nature abhors a Vacuum

  -- Brian Behlendorf on OSS (Open Sources, 1999 O'Reilly and Associates)


pgpz0DOfy73Jy.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Charles Philip Chan cpc...@bell.net wrote:
 
  Hello all:
  
  After updating to the latest git version of Org-mode, google weather
  entries are not showing up in the Agenda buffer any more. Does any one
  else have the same problem?
  
 
 Yup - I got an error on startup and turned it off. When I turned it back
 on and tried again (possibly after another org update), I got no error
 but no results either. Haven't investigated further.
 

When I go to

   http://www.google.com/ig/api?weather=Bostonhl=en-GB

Google slaps me and says:

,
| Google
| Sorry...
| We're sorry...
| 
| ... but your computer or network may be sending automated queries. To protect 
our users, we can't process your request right now.
| See Google Help for more information.
| 
`


BTW, if you visit 

  http://www.google.com/ig

it also says

,
| iGoogle will not be available after November 1, 2013. Learn more
`

So google-weather's days are numbered (420 days or so) even if the
first problem gets resolved.

Nick






[O] Exporting xml and html code with syntax highlight

2012-08-30 Thread Charles Philip Chan
Hello all:

Tonight I had a need to export some xml code with syntax highlight. I
figured that the best way to do it is to modify ob-css.el (by a simple
search and replace). To my delight, it work, so I did one for html
also. I hope people will find them useful.

Cheers,
Charles

;;; ob-xml.el --- org-babel functions for xml evaluation

;; Copyright (C) 2009-2012  Free Software Foundation, Inc.

;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see http://www.gnu.org/licenses/.

;;; Commentary:

;; Since xml can't be executed, this file exists solely for tangling
;; xml from org-mode files.

;;; Code:
(require 'ob)

(defvar org-babel-default-header-args:xml '())

(defun org-babel-execute:xml (body params)
  Execute a block of xml code.
This function is called by `org-babel-execute-src-block'.
  body)

(defun org-babel-prep-session:xml (session params)
  Return an error if the :session header argument is set.
xml does not support sessions.
  (error xml sessions are nonsensical))

(provide 'ob-xml)



;;; ob-xml.el ends here
;;; ob-html.el --- org-babel functions for html evaluation

;; Copyright (C) 2009-2012  Free Software Foundation, Inc.

;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see http://www.gnu.org/licenses/.

;;; Commentary:

;; Since html can't be executed, this file exists solely for tangling
;; html from org-mode files.

;;; Code:
(require 'ob)

(defvar org-babel-default-header-args:html '())

(defun org-babel-execute:html (body params)
  Execute a block of html code.
This function is called by `org-babel-execute-src-block'.
  body)

(defun org-babel-prep-session:html (session params)
  Return an error if the :session header argument is set.
html does not support sessions.
  (error html sessions are nonsensical))

(provide 'ob-html)



;;; ob-html.el ends here

-- 
Open Standards, Open Documents, and Open Source

  -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)


pgpE0yKfI7nJo.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Nick Dokos nicholas.do...@hp.com writes:

Hi Nick:

 When I go to

http://www.google.com/ig/api?weather=Bostonhl=en-GB

 Google slaps me and says:

 ,
 | Google  
 | Sorry...
 | We're sorry...
 | 
 | ... but your computer or network may be sending automated
 | queries. To protect our users, we can't process your request right
 | now.
 | See Google Help for more information.
 | 
 `

You are right, I just looked at the cached files and that is what I
see. :-(

Charles

-- 
Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?
(By Patrick Volkerding)


pgpQPv2SKbAUm.pgp
Description: PGP signature


Re: [O] showing orgmode source in orgmode

2012-08-30 Thread Charles Philip Chan
Alexandre Russel alexan...@russel.fr writes:

Hi Alexandre:

 #+begin_example org
 #+begin_src java
 #+end_src

I have no idea what you are trying to do here. However, I have just
noticed that wrapping org-mode code in any type of block doesn't export
correctly- the block code are just ignored and the org-mode source is
treated as part of the document. I have tried:

,
| #+BEGIN EXAMPLE
| #+END_EXAMPLE
`

,
| #+BEGIN_SRC org
| #+END_SRC
`

I have cc'ed Bastien.

Cheers,
Charles

-- 
...and scantily clad females, of course.  Who cares if it's below zero
outside
(By Linus Torvalds)


pgpAG9BOFKG12.pgp
Description: PGP signature