Re: [O] Multicolumn

2012-08-29 Thread Neuwirth Erich
That is probably what I will have to do.
But since I want both html and LaTeX output, I have to two write separate 
output routines
in R which I had hoped to be able to avoid.


On Aug 29, 2012, at 4:39 AM, t...@tsdye.com (Thomas S. Dye) wrote:

 Neuwirth Erich erich.neuwi...@univie.ac.at writes:
 
 My problem is that the tables are produce by R code snippets.
 The code snippets produce plain org tables, bracketed by attributes 
 identifying 
 the text as ORG code.
 
 
 
 #+RESULTS:
 #+BEGIN_ORG
 | Jahr | Region | m   | w   | pWert | m.se  | w.se  |
 |--++-+-+---+---+---|
 | 2000 | Sonst  | 508 | 507 | 0.85  | 4.91  | 4.93  |
 #+END_ORG
 
 
 I am able to insert additional lines before and after the text produce
 by the R commands with the following technique (in R):
 
 
 print(as.table(NULL),quote=FALSE,type=org)
 cat(|---|\n)
 print(res,type=org)
 cat(|---|\n)
 
 
 So I could write a line with my multicol headers.
 But for that to work, org mode would have to honor multicol indicators
 in the text.
 
 Alternatively, compose latex or html tables in R and then have the source
 code block :results output latex or :results output html
 
 That should wrap the output in #+BEGIN_LATEX ... #+END_LATEX, which org
 will export directly to LaTeX, or #+BEGIN_HTML ... #+END_HTML, which org
 will export directly to HTML.
 
 hth,
 Tom
 
 
 
 
 
 
 On Aug 29, 2012, at 2:28 AM, Christopher J. White
 orgm...@grierwhite.com wrote:
 
 Hi Erich,
 
 I have a hack for multicolumn support that may help... It's not
 great, but serves my purpose.
 
 I implemented a TWiki mode that uses orgtbl-minor-mode.  TWiki pages
 support multicolumn cells by adding vertical bars with no
 separators:
 
 Display:
 
 |  Multicol |
 |  C1   |   C2  |
 
 TWiki format:
 | Multicol ||
 | C1 | C2 |
 
 Notice the double vertical bars after Multicol.  The number of
 vertical bars on every row must be the same.  You can join as many
 cells as you want that way.  I basically wanted to be able to still
 use orgtbl-minor-mode to edit such tables.  So I hacked my
 twiki-import/export code to convert || to |  | and vice-versa.
 
 So the orgtbl version of the above looks like this in the buffer:
 
 | Multicol |  |
 | C1   | C2 |
 
 The down side is that the text Multicol will expand the display
 size of C1, so if it gets long, the table grows:
 
 | This is a long multicol cell |  |
 | C1   | C2 |
 
 So it gets me what I want, which is orgtbl editing, and
 import/export support to twiki format.  Seems a similar technique
 could be backed in to any org export engine.
 
 ...cj
 
 On 8/28/12 5:10 PM, Neuwirth Erich wrote:
 After some googling it seems that multicolumn support is not yet
 implemented in org tables.
 I would need multicolumn headers quite urgently,
 but I have not yet found a way to make this possible.
 
 I think that tables with headers like this:
 
 |   |mean   | s.e.|
 | gender | varA | varB |  varA | varB |
 
 are quite common, so I really want to put this feature on the wish list.
 I am not able to implement this myself.
 
 Erich
 
 
 
 
 
 
 
 
 
 
 -- 
 Thomas S. Dye
 http://www.tsdye.com




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

2012-08-29 Thread Michael Brand
Hi Luis

On Wed, Aug 29, 2012 at 12:14 AM, Luis Anaya papoan...@hotmail.com wrote:
 [...] but for others I would like to get some
 feedback if these should be made available or not in the org-mode
 github, they're available on mine (https://github.com/papoanaya/emacs_utils)

Just a short feedback: My vote goes for ob-mathomatic.el that sounds
very interesting [1] to me.

Michael

[1] e. g. mathomatic.org: “there are no dependencies other than the
standard C libraries”



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

2012-08-29 Thread François Allisson
Le lundi 27 aoû 2012 à 18:19:10 (+0200), Bastien a écrit :
 Hi Charles,
 
 Charles Philip Chan cpc...@bell.net writes:
 
  I have a strange problem with org-agenda-redo and I hope that someone
  can shed some light. I have an Agenda view which contains everything I
  need for the day which I leave open all the time. The agenda view
  already contains a schedule for the current day. A couple of days ago I
  decided to add another block I called Upcoming Events which contains a
  schedule for the next 6 days (I prefer a separate section, so that I can
  easily ignore it rather then having a 7 days block). Everything is
  working fine with the exception that after I mark a TODO
  (scheduled/deadline) or HABIT as done, all my appointment, habits,
  scheduled and deadline items disappear from the view after I save all
  Agenda files and force a redisplay (s g). If I quite the view and enter
  it again through the dispatcher, everything is displayed again.
 
 Mhh...  This was a real bug, I had a good sweat on this one.
 
 Building agenda blocks didn't behave correctly with multiple 
 (agenda) commands, because it reused the parameters of the last 
 (agenda) command as the default for redoing.
 
 This is now fixed.
 

 Note that, while fixing this, I added the possibility to change
 the time span of one block independantly from the other: try `f' 
 in one of your block, it should move to the next day/week and 
 leave the other blocks untouched.
 

Hi Bastien, Hi Charles,

Since these changes, I have some troubles with a few org-agenda commands
(goto-today, redo, switch to day view, week view, etc.). This happens
with multiple blocks custom agenda views (whether there are, or not,
multiple agendas in them). Does it work for you, or shall I send
an ECM?

Best,

François.

---
Org-mode version 7.9 (release_7.9-133-g1f205a @ 
/usr/local/share/emacs/site-lisp/org/)
GNU Emacs 24.2.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-08-21 on 
debian



Re: [O] Batch processing part of a file

2012-08-29 Thread Loris Bennett
Loris Bennett loris.benn...@fu-berlin.de writes:

 Nick Dokos nicholas.do...@hp.com writes:

 Loris Bennett loris.benn...@fu-berlin.de wrote:

 Dear List,
 
 I have an orgmode file for collecting data and producing a plot.  The
 file contains a Perl script which runs on a remote machine and generates
 Graphviz input.  This is then used to create a PDF file.
 
 I have had a look at
 
   http://orgmode.org/manual/Batch-execution.html
 
 but it is not clear to me how I would navigate to the right part of the
 file so that I could then call org-babel-execute-src-block.
 
 Can anyone help?
 

 Haven't tested it but this should work: make sure that the code block is
 named and then use org-babel-goto-named-src-block.

 Nick

 When I run org-babel-goto-named-src-block interactively, tab-completion
 offers me the name of the block I'm interested in, but when I select it,
 I get 

 ,
 | source-code block 'mem-usage-hist' not found in this buffer
 `

 Is this a bug?  I'm on emacs23 with Org 7.8.11.

This problem seems to be caused by the use of '#+header', so with

,
| #+name: test
| #+header: :file out.txt
| #+begin_src sh
| echo blah
| #+end_src
`

I get the above error, but with

,-
| #+name: test
| #+begin_src sh :file out.txt
| echo blah
| #+end_src
`-

I don't.

 Cheers

 Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de




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

2012-08-29 Thread Charles Philip Chan
François Allisson franc...@allisson.co writes:

Hi François:

 Since these changes, I have some troubles with a few org-agenda commands
 (goto-today, redo, switch to day view, week view, etc.). This happens
 with multiple blocks custom agenda views (whether there are, or not,
 multiple agendas in them). Does it work for you, or shall I send
 an ECM?

I was going to report also- I am seeing some strange things. For
example:

1. Pressing f the first time in a 1 day block will jump
   forward 2 days. Subsequent presses will do the right thing
   and go forward 1 day.

2. Pressing b the first time in a 1 day block does
   nothing. Again subsequent presses will do the right thing.

3. Switch from day view to week/month and back will go to the
   start to the week/month, instead of today.

etc...

Charles

-- 
The move was on to 'Free the Lizard'

  -- Jim Hamerly and Tom Paquin (Open Sources, 1999 O'Reilly and Associates)


pgp69R6UBBjd6.pgp
Description: PGP signature


[O] [PATCH] Fix org-clock evaluation startup hang on Windows

2012-08-29 Thread Stuart Hickinbottom
* lisp/org-clock.el (org-x11idle-exists-p): Only shell out when running
on X.

The definition of this variable currently executes command via the
shell during evaluation, irrespective of the platform on which
Org-mode is running. Unfortunately, on Windows, this matches the
command.com NT Virtual DOS Machine executable and so this gets
launched, but this is a shell and therefore sits there waiting for
user input and never returns. The net result is that Emacs will hang
on Windows when evaluating org-clock.el with the ntdvm.exe process
spinning at 100%.

The simple fix is to check that the platform is X before trying to
deal with the x11idle external process.

TINYCHANGE
---
 lisp/org-clock.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 263f2cb..91f1c63 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -1001,7 +1001,8 @@ If `only-dangling-p' is non-nil, only ask to
resolve dangling
 
 (defvar org-x11idle-exists-p
   ;; Check that x11idle exists
-  (and (eq (call-process-shell-command command nil nil nil -v
x11idle) 0)
+  (and (eq window-system 'x)
+   (eq (call-process-shell-command command nil nil nil -v
x11idle) 0)
;; Check that x11idle can retrieve the idle time
(eq (call-process-shell-command x11idle nil nil nil) 0)))
 
-- 
1.7.11.4


-- 
Stuart Hickinbottom




Re: [O] scale inline images in orgmode

2012-08-29 Thread Jeffrey Spencer
+1
On Aug 29, 2012 7:31 AM, Detlef Steuer detlef.ste...@gmx.de wrote:

 On Tue, 28 Aug 2012 15:34:59 -0500
 Russell Adams rlad...@adamsinfoserv.com wrote:

  On Tue, Aug 28, 2012 at 10:13:18PM +0200, AW wrote:
  
   I would like to scale the images on screen in the buffer, often I
 don't need a
   large picture, but just a reminder, what's on the picture. Is there a
 way to
   scale the image on screen, something like #+ATTR: scale=0.5 ?
 
  Alexander,
 
  I believe Org calls out to image.el via create-image. That doesn't
  appear to do any resizing.
 
  I read there may be compiled in Emacs support for Imagemagick, and I
  have existing elisp code that shells out to resize images for display
  separate from Org via Imagemagick's convert utility.
 
  To Org devs, would it be difficult to add a wrapper around the
  create-image call that only resizes if the image will exceed certain
  dimensions (ie: window width or 75% of height?).
 
  This is a feature I'd love to see.


 +1
 Detlef

 
  Thanks.
 
 
  --
  Russell Adamsrlad...@adamsinfoserv.com
 
  PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
 
  Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
 
 






Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-29 Thread Aurélien Aptel
On Mon, Aug 27, 2012 at 6:15 PM, Eric Schulte eric.schu...@gmx.com wrote:
 Congrats to both of you on successfully completing these projects.

Thank you!

 Also releasing Org-sync as an ELPA package [2] could increase its
 visibility and user base.

Yes that's a good idea, I will look into it.



Re: [O] org sync with SD/prophet/ http://syncwith.us?

2012-08-29 Thread Aurélien Aptel
On Mon, Aug 27, 2012 at 6:47 PM, Elijah Wright elijah.wri...@gmail.com wrote:
 Has anyone looked at making org-mode sync with SD / http://syncwith.us ?

I've checked the SD website and yes, it should be doable as backend
for org-sync [1]. I already wrote a working github and bitbucket
backend and SD looks like a good fit.

1: http://orgmode.org/worg/org-contrib/gsoc2012/student-projects/org-sync/



Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-29 Thread Jason F. McBrayer

On 24.08.2012 12:11, Bastien wrote:


Andrew's Org Merge driver (put your own favorite music):
http://www.youtube.com/watch?v=GbaaFmoEfGw


I'm fairly excited about the Org merge driver. It seems like a lot of
the conflicts I get in merging my work and home repositories are
things that a syntax-aware merge tool would handle correctly. I'm
excited to see that it also works with Mercurial!

--
+---+
| Jason F. McBrayer jmcb...@carcosa.net |
| If someone conquers a thousand times a thousand others in |
| battle, and someone else conquers himself, the latter one |
| is the greatest of all conquerors. --- The Dhammapada |




Re: [O] Alternate format for datetree

2012-08-29 Thread Ian Barton

On 28/08/12 13:50, Nick Dokos wrote:

Ian Barton li...@wilkesley.net wrote:


I would like to use something like this. However, using a recent git
checkout of org mode and the following simple template from the
original list message:

(u
  Test
  entry
  (file+headline ~/test.org
 ,(format %s %s
  (format-time-string %B)
  (format-time-string %Y
I get the following error:

Debugger entered--Lisp error: (wrong-type-argument stringp (\, (format
%s %s (format-time-string %B) (format-time-string %Y
   regexp-quote((\, (format %s %s (format-time-string %B)
(format-time-string %Y
   org-capture-set-target-location()
   org-capture(nil)
   call-interactively(org-capture nil nil)

I also get the same error from John Hendy's template. Is this a bug in
recent versions of org, or is there an error in the template lisp? I
have tried doing a git bisect, but can only go back a few commits, as
my config now includes  several things that have only recently been
added to org.



You are missing the backquote:

--8---cut here---start-8---
  `(u
   Test
   entry
   (file+headline ~/test.org
  ,(format %s %s
   (format-time-string %B)
   (format-time-string %Y
--8---cut here---end---8---

Nick

Thanks Nick. Hwever with the following minimal template, from the OP, I 
still get the error:


;; org-capture settings.
(setq org-capture-templates
`((t test entry
(file+headline ~/file.org
,(format %s
(format-time-string %m)))
,(format ** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] 
(format-time-string %d)
(format-time-string %Y)
(format-time-string %A)
(format-time-string %Y)
(format-time-string %m)
(format-time-string %d)
(format-time-string %a)
(format-time-string %H)
(format-time-string %M))
)))

Ian.



Re: [O] Alternate format for datetree

2012-08-29 Thread Nick Dokos
Ian Barton li...@manor-farm.org wrote:


 Thanks Nick. Hwever with the following minimal template, from the OP,
 I still get the error:
 
 ;; org-capture settings.
 (setq org-capture-templates
 `((t test entry
 (file+headline ~/file.org
 ,(format %s
 (format-time-string %m)))
 ,(format ** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] 
 (format-time-string %d)
 (format-time-string %Y)
 (format-time-string %A)
 (format-time-string %Y)
 (format-time-string %m)
 (format-time-string %d)
 (format-time-string %a)
 (format-time-string %H)
 (format-time-string %M))
 )))
 

I put this in a minimal .emacs and I *do not* get an error. Please try
the appended minimal .emacs (change the pathnames appropriately) with

emacs -q -l /path/to/minimal/.emacs

M-x org-capture RET t
M-x org-capture RET u

and post the backtrace if any. Both of them work fine for me. You are
sure you used a backquote?

Nick

--8---cut here---start-8---
;;; -*- mode: emacs-lisp -*-
;;; constant part
(add-to-list 'load-path (expand-file-name ~/src/emacs/org/org-mode/lisp))
(add-to-list 'load-path (expand-file-name 
~/src/emacs/org/org-mode/contrib/lisp))

(add-to-list 'auto-mode-alist '(\\.\\(org\\|org_archive\\|txt\\)$ . org-mode))

(require 'org-install)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key \C-cl 'org-store-link)
(global-set-key \C-ca 'org-agenda)

;;; variable part
;; org-capture settings.
(setq org-capture-templates
  `((t test entry
 (file+headline ~/test.org
,(format %s
 (format-time-string %m)))
 ,(format ** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] 
  (format-time-string %d)
  (format-time-string %Y)
  (format-time-string %A)
  (format-time-string %Y)
  (format-time-string %m)
  (format-time-string %d)
  (format-time-string %a)
  (format-time-string %H)
  (format-time-string %M))
 )
(u Test entry
 (file+headline ~/test.org
,(format %s %s
 (format-time-string %B)
 (format-time-string %Y))
--8---cut here---end---8---



Re: [O] Alternate format for datetree

2012-08-29 Thread John Hendy
On Wed, Aug 29, 2012 at 2:49 AM, Ian Barton li...@manor-farm.org wrote:
 On 28/08/12 13:50, Nick Dokos wrote:

 Ian Barton li...@wilkesley.net wrote:

 I would like to use something like this. However, using a recent git
 checkout of org mode and the following simple template from the
 original list message:

 (u
   Test
   entry
   (file+headline ~/test.org
  ,(format %s %s
   (format-time-string %B)
   (format-time-string %Y
 I get the following error:

 Debugger entered--Lisp error: (wrong-type-argument stringp (\, (format
 %s %s (format-time-string %B) (format-time-string %Y
regexp-quote((\, (format %s %s (format-time-string %B)
 (format-time-string %Y
org-capture-set-target-location()
org-capture(nil)
call-interactively(org-capture nil nil)

 I also get the same error from John Hendy's template. Is this a bug in
 recent versions of org, or is there an error in the template lisp? I
 have tried doing a git bisect, but can only go back a few commits, as
 my config now includes  several things that have only recently been
 added to org.


 You are missing the backquote:

 --8---cut here---start-8---
   `(u
Test
entry
(file+headline ~/test.org
   ,(format %s %s
(format-time-string %B)
(format-time-string %Y
 --8---cut here---end---8---

 Nick

 Thanks Nick. Hwever with the following minimal template, from the OP, I
 still get the error:

 ;; org-capture settings.
 (setq org-capture-templates
 `((t test entry
 (file+headline ~/file.org
 ,(format %s
 (format-time-string %m)))
 ,(format ** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] 
 (format-time-string %d)
 (format-time-string %Y)
 (format-time-string %A)
 (format-time-string %Y)
 (format-time-string %m)
 (format-time-string %d)
 (format-time-string %a)
 (format-time-string %H)
 (format-time-string %M))
 )))

Odd. I just copied and pasted this into my .emacs and commented out my
actual capture templates section entirely, leaving only this and it
works as expected.

(Just saw Nick's response as well and was going to both try and
suggest similar with a minimal .emacs).


John


 Ian.




Re: [O] Multicolumn

2012-08-29 Thread John Hendy
On Wed, Aug 29, 2012 at 2:44 AM, Neuwirth Erich
erich.neuwi...@univie.ac.at wrote:
 That is probably what I will have to do.
 But since I want both html and LaTeX output, I have to two write separate 
 output routines
 in R which I had hoped to be able to avoid.

How often do you anticipate having to change this? I've exported org
tables before to get most of the dirty work done and then just gone in
to the .tex (or .html) files manually to tweak. Is that an option?
I'll usually do this when I'm fairly positive that I'm done with any
tweaking/editing of the .org document.

Just a thought.
John



 On Aug 29, 2012, at 4:39 AM, t...@tsdye.com (Thomas S. Dye) wrote:

 Neuwirth Erich erich.neuwi...@univie.ac.at writes:

 My problem is that the tables are produce by R code snippets.
 The code snippets produce plain org tables, bracketed by attributes 
 identifying
 the text as ORG code.



 #+RESULTS:
 #+BEGIN_ORG
 | Jahr | Region | m   | w   | pWert | m.se  | w.se  |
 |--++-+-+---+---+---|
 | 2000 | Sonst  | 508 | 507 | 0.85  | 4.91  | 4.93  |
 #+END_ORG


 I am able to insert additional lines before and after the text produce
 by the R commands with the following technique (in R):


 print(as.table(NULL),quote=FALSE,type=org)
 cat(|---|\n)
 print(res,type=org)
 cat(|---|\n)


 So I could write a line with my multicol headers.
 But for that to work, org mode would have to honor multicol indicators
 in the text.

 Alternatively, compose latex or html tables in R and then have the source
 code block :results output latex or :results output html

 That should wrap the output in #+BEGIN_LATEX ... #+END_LATEX, which org
 will export directly to LaTeX, or #+BEGIN_HTML ... #+END_HTML, which org
 will export directly to HTML.

 hth,
 Tom






 On Aug 29, 2012, at 2:28 AM, Christopher J. White
 orgm...@grierwhite.com wrote:

 Hi Erich,

 I have a hack for multicolumn support that may help... It's not
 great, but serves my purpose.

 I implemented a TWiki mode that uses orgtbl-minor-mode.  TWiki pages
 support multicolumn cells by adding vertical bars with no
 separators:

 Display:

 |  Multicol |
 |  C1   |   C2  |

 TWiki format:
 | Multicol ||
 | C1 | C2 |

 Notice the double vertical bars after Multicol.  The number of
 vertical bars on every row must be the same.  You can join as many
 cells as you want that way.  I basically wanted to be able to still
 use orgtbl-minor-mode to edit such tables.  So I hacked my
 twiki-import/export code to convert || to |  | and vice-versa.

 So the orgtbl version of the above looks like this in the buffer:

 | Multicol |  |
 | C1   | C2 |

 The down side is that the text Multicol will expand the display
 size of C1, so if it gets long, the table grows:

 | This is a long multicol cell |  |
 | C1   | C2 |

 So it gets me what I want, which is orgtbl editing, and
 import/export support to twiki format.  Seems a similar technique
 could be backed in to any org export engine.

 ...cj

 On 8/28/12 5:10 PM, Neuwirth Erich wrote:
 After some googling it seems that multicolumn support is not yet
 implemented in org tables.
 I would need multicolumn headers quite urgently,
 but I have not yet found a way to make this possible.

 I think that tables with headers like this:

 |   |mean   | s.e.|
 | gender | varA | varB |  varA | varB |

 are quite common, so I really want to put this feature on the wish list.
 I am not able to implement this myself.

 Erich










 --
 Thomas S. Dye
 http://www.tsdye.com





Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-29 Thread John Hendy
On Wed, Aug 29, 2012 at 7:28 AM, Jason F. McBrayer jmcb...@carcosa.net wrote:
 On 24.08.2012 12:11, Bastien wrote:

 Andrew's Org Merge driver (put your own favorite music):
 http://www.youtube.com/watch?v=GbaaFmoEfGw


 I'm fairly excited about the Org merge driver. It seems like a lot of
 the conflicts I get in merging my work and home repositories are
 things that a syntax-aware merge tool would handle correctly. I'm
 excited to see that it also works with Mercurial!


Flipping awesome video. I don't really edit from multiple locations,
but I can see how this will help tremendously with org-mode
collaboration.

Thanks for posting!
John

 --
 +---+
 | Jason F. McBrayer jmcb...@carcosa.net |
 | If someone conquers a thousand times a thousand others in |
 | battle, and someone else conquers himself, the latter one |
 | is the greatest of all conquerors. --- The Dhammapada |





[O] Conditional capture template headline based on tag?

2012-08-29 Thread John Hendy
My main org file for work is something like so:

#+begin_src org
* Tasks
General tasks here

* Proj 1 :proj1:
** Tasks
** Notes

* Proj 2 :proj2:
** Tasks
** Notes

etc.
#+end_src

Just wondering if a capture template could be setup to file into the
Tasks headline (sub-headline) of the matching top level headline
with that tag or something similar?

I suppose I can refile and enter the headline location manually, but
that requires extra work. I thought if I was already entering a tag
for a capture item, perhaps there's some fu that could be used to send
it accordingly. If this isn't possible, what if I re-split my projects
into separate files with a #+filetag. Could it be used to send it to
the right file?

If there are those who do something like this in a different way, I'm
open to suggestions!


Thanks,
John



Re: [O] Batch processing part of a file

2012-08-29 Thread Nicolas Girard
2012/8/29 Loris Bennett loris.benn...@fu-berlin.de:
 Loris Bennett loris.benn...@fu-berlin.de writes:

 This problem seems to be caused by the use of '#+header', so with

 ,
 | #+name: test
 | #+header: :file out.txt
 | #+begin_src sh
 | echo blah
 | #+end_src
 `

 I get the above error, but with



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.

-- 
Nicolas



[O] test fails

2012-08-29 Thread Erich Neuwirth
I am building org mode on 2 Macs with OSX 10.8.1 and Emacs 24.2.1

One one machine, this works.
On the other machine, the build fails.


OVERVIEW
executing Python code block...
Code block evaluation complete.
   passed  103/206  test-ob-python/colnames-yes-header-argument-again
Babel evaluation exited with code 1
   passed  104/206  test-ob-sh/dont-error-on-empty-results
   passed  105/206  test-ob-sh/dont-insert-spaces-on-expanded-bodies


at this point, the machine just hangs and I have to kill the process.

Any ideas?

Please also tell me what is the easiest way of finding the version identifier.
I just pulled the latest version from git now,

Aug 29 2012, 5:33 CEST (=UTC+2)





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

2012-08-29 Thread Rainer Stengele
Hi,

having upgraded to

Org-mode version 7.9 (release_7.9-132-g31268a @
c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)

being in agenda I want to jump to another date with j.
Choosing the date and pressing enter gives me this:


Debugger entered--Lisp error: (void-variable org-keys)
  (and org-keys (stringp org-match))
  (cond ((and org-keys (stringp org-match)) (format *Org
Agenda(%s:%s)* org-keys org-match)) (org-keys (format *Org
Agenda(%s)* org-keys)) (t *Org Agenda(a)*))
  (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match))
(format *Org Agenda(%s:%s)* org-keys org-match)) (org-keys (format
*Org Agenda(%s)* org-keys)) (t *Org Agenda(a)*)))
  (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and
org-keys (stringp org-match)) (format *Org Agenda(%s:%s)* org-keys
org-match)) (org-keys (format *Org Agenda(%s)* org-keys)) (t *Org
Agenda(a)*
  (catch (quote exit) (if org-agenda-sticky (setq org-agenda-buffer-name
(cond ((and org-keys (stringp org-match)) (format *Org Agenda(%s:%s)*
org-keys org-match)) (org-keys (format *Org Agenda(%s)* org-keys)) (t
*Org Agenda(a)* (org-agenda-prepare Day/Week) (setq start-day
(or start-day org-agenda-start-day)) (if org-agenda-overriding-arguments
(setq arg (car org-agenda-overriding-arguments) start-day (nth 1
org-agenda-overriding-arguments) span (nth 2
org-agenda-overriding-arguments))) (if (stringp start-day) (setq
start-day (time-to-days (org-read-date nil t start-day (setq
org-agenda-last-arguments (list arg start-day span))
(org-compile-prefix-format (quote agenda)) (org-set-sorting-strategy
(quote agenda)) (let* ((span (org-agenda-ndays-to-span (or span
org-agenda-ndays org-agenda-span))) (today (org-today)) (sd (or
start-day today)) (ndays (org-agenda-span-to-ndays span sd))
(org-agenda-start-on-weekday (if (eq ndays 7)
org-agenda-start-on-weekday)) (thefiles (org-agenda-files nil (quote
ifmode))) (files thefiles) (start (if (or (null
org-agenda-start-on-weekday) ( ndays 7)) sd (let* ((nt ...) (n1
org-agenda-start-on-weekday) (d ...)) (- sd (+ ... d) (day-numbers
(list start)) (day-cnt 0) (inhibit-redisplay (not debug-on-error))
(org-agenda-show-log-scoped org-agenda-show-log) s e rtn rtnall file
date d start-pos end-pos todayp clocktable-start clocktable-end filter)
(setq org-agenda-redo-command (list (quote org-agenda-list) (list (quote
quote) arg) start-day (list (quote quote) span))) (dotimes (n (1-
ndays)) (push (1+ (car day-numbers)) day-numbers)) (setq day-numbers
(nreverse day-numbers)) (setq clocktable-start (car day-numbers)
clocktable-end (1+ (or (org-last day-numbers) 0))) (org-set-local (quote
org-starting-day) (car day-numbers)) (org-set-local (quote org-arg-loc)
arg) (org-set-local (quote org-agenda-current-span)
(org-agenda-ndays-to-span span)) (unless org-agenda-compact-blocks (let*
((d1 (car day-numbers)) (d2 (org-last day-numbers)) (w1
(org-days-to-iso-week d1)) (w2 (org-days-to-iso-week d2))) (setq s
(point)) (if org-agenda-overriding-header (insert (org-add-props
(copy-sequence org-agenda-overriding-header) nil (quote face) (quote
org-agenda-structure)) \n) (insert (org-agenda-span-name span)
-agenda (if ( ... 350) (if ... ... ...) ) :\n)))
(add-text-properties s (1- (point)) (list (quote face) (quote
org-agenda-structure) (quote org-date-line) t))
(org-agenda-mark-header-line s)) (while (setq d (pop day-numbers)) (setq
date (calendar-gregorian-from-absolute d) s (point)) (if (or (setq
todayp (= d today)) (and (not start-pos) (= d sd))) (setq start-pos
(point)) (if (and start-pos (not end-pos)) (setq end-pos (point
(setq files thefiles rtnall nil) (while (setq file (pop files)) (catch
(quote nextfile) (org-check-agenda-file file) (let
((org-agenda-entry-types org-agenda-entry-types)) (unless
org-agenda-include-deadlines (setq org-agenda-entry-types ...)) (cond
(... ...) (org-agenda-show-log-scoped ...) (t ...))) (setq rtnall
(append rtnall rtn (if org-agenda-include-diary (let
((org-agenda-search-headline-for-time t)) (require (quote diary-lib))
(setq rtn (org-get-entries-from-diary date)) (setq rtnall (append rtnall
rtn (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt
(1+ day-cnt)) (insert (if (stringp org-agenda-format-date)
(format-time-string org-agenda-format-date ...) (funcall
org-agenda-format-date date)) \n) (put-text-property s (1- (point))
(quote face) (org-agenda-get-day-face date)) (put-text-property s (1-
(point)) (quote org-date-line) t) (put-text-property s (1- (point))
(quote org-agenda-date-header) t) (put-text-property s (1- (point))
(quote org-day-cnt) day-cnt) (when todayp (put-text-property s (1- ...)
(quote org-today) t)) (setq rtnall (org-agenda-add-time-grid-maybe
rtnall ndays todayp)) (if rtnall (insert (org-finalize-agenda-entries
rtnall) \n)) (put-text-property s (1- (point)) (quote day) d)
(put-text-property s (1- (point)) (quote org-day-cnt) day-cnt (when
(and org-agenda-clockreport-mode clocktable-start) (let
((org-agenda-files 

[O] Batch execution and --script

2012-08-29 Thread Marcelo de Moraes Serpa
Hey guys,

Regarding this: http://orgmode.org/manual/Batch-execution.html

I also had success using --script, as in:

#!/Applications/Emacs.app/Contents/MacOS/Emacs --script

In the top of a .el file. You can then chmod it to be executable and run it.

Just thought I'd share, as an alternative, but I'm not sure if there are
any subtle differences, though.

Cheers,

- Marcelo.


Re: [O] [OT][GTD] GTDish next action todo keyword, could that influence your productivity in any way?

2012-08-29 Thread Marcelo de Moraes Serpa
Hi Mike,


 With Org babel, and my org-mode configuration being a ~.org~ file, I also
 manage to achieve DRY. My three individual agenda blocks are defined once,
 and the complete view just references them with  noweb syntax.


Could you elaborate a bit more on that? This looks pretty interesting (I
haven't put org-babel to use yet).

- Marcelo.

On Tue, Aug 21, 2012 at 8:17 PM, Mike McLean mike.mcl...@pobox.com wrote:


 On Aug 21, 2012, at 6:50 PM, Bastien b...@altern.org wrote:

  Hi Mike,
 
  Mike McLean mike.mcl...@pobox.com writes:
 
  I have a grand thought of someday writing an agenda view or mode that
  looks like a Kanban board -- I've seen some of what can be done with
  respect to views in Emacs from the ~calfw~ package, so it is just a
  matter of time.
 
  Just a thought: isn't this already possible with Agenda Blocks?
 
  You get the columns as rows, but you get the various categories
  displayed at once.

 That is what I am doing now as my “non-visual” version. It actually works
 pretty well. My thought is to create something like one of the online
 Kanban boards for more visual impact.

 I didn't elaborate before since the question was about TODO states, but I
 have 4 Kanban-named views in my ~org-agenda-custom-commands~; one view each
 for BACKLOG, TODO, and DOING so that I can look at each stage individually
 and a fourth with all three of those blocks as you suggest to get them all
 at once.

 With Org babel, and my org-mode configuration being a ~.org~ file, I also
 manage to achieve DRY. My three individual agenda blocks are defined once,
 and the complete view just references them with  noweb syntax.

 Did I mention how awesome Org mode is ? I should have :)

 Mike






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

2012-08-29 Thread Nick Dokos
Rainer Stengele rainer.steng...@online.de wrote:

 Hi,
 
 having upgraded to
 
 Org-mode version 7.9 (release_7.9-132-g31268a @
 c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)
 
 being in agenda I want to jump to another date with j.
 Choosing the date and pressing enter gives me this:
 
 
 Debugger entered--Lisp error: (void-variable org-keys)

Just upgraded to that version and I cannot reproduce the problem.
Does a ``make autoloads'', followed by M-x org-reload (or restarting
emacs) fix it?

Nick




[O] Problem with org-smart-reschedule and Agenda View

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

I have just started using org-learn. However, when I try to use
org-smart-reschedule in an Agenda View buffer it fails with the
following backtrace:

,
| Debugger entered--Lisp error: (error Before first headline at position 2024 
in buffer *Org Agenda*)
|   signal(error (Before first headline at position 2024 in buffer *Org 
Agenda*))
|   error(Before first headline at position %d in buffer %s 2024 #buffer 
*Org Agenda*)
|   byte-code(\300\301`p#\207 [error Before first headline at position %d in 
buffer %s] 4)
|   org-back-to-heading(t)
|   org-entry-put(2041 LEARN_DATA (4 2 2.5 nil))
|   org-smart-reschedule(0)
|   call-interactively(org-smart-reschedule record nil)
|   command-execute(org-smart-reschedule record)
|   execute-extended-command(nil org-smart-reschedule)
|   call-interactively(execute-extended-command nil nil)
`

If I run the command directly on the entry in the original org file, it
works. Is this a bug or has this feature not been implemented for use in
an Agenda View?

Thanks.

Charles

-- 
Even more amazing was the realization that God has Internet access.  I
wonder if He has a full newsfeed?
(By Matt Welsh)


pgpoAPGN9g8uL.pgp
Description: PGP signature


Re: [O] Batch execution and --script

2012-08-29 Thread Nick Daly
On Wed, Aug 29, 2012 at 10:47 AM, Marcelo de Moraes Serpa
celose...@gmail.com wrote:
 Hey guys,

 Regarding this: http://orgmode.org/manual/Batch-execution.html

 I also had success using --script, as in:

 #!/Applications/Emacs.app/Contents/MacOS/Emacs --script

 In the top of a .el file. You can then chmod it to be executable and run it.

Would you mind sharing a simple .el file you'd use that way?  The
site's example is a bash script, and I wonder how much cleaner a .el
file would be.

Nick




Re: [O] (not so) sticky agendas

2012-08-29 Thread Bastien
Hi Rainer,

Rainer Thiel r.th...@uni-jena.de writes:

 I use to have the agenda for the next 21 days automatically displayed
 when Emacs ist run.  For this purpose, I have put

  (org-agenda-list)

this should be fixed now in git.

Best,

-- 
 Bastien



Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-29 Thread Bastien
Hi Eric,

Eric Schulte eric.schu...@gmx.com writes:

 In addition it may be worthwhile to create pages for each
 project on the Emacs Wiki [1] and to add announcements to the front page
 of the orgmode.org site.

I'm more and more thinking of revamping the website, and yes, 
the GSoC projects should be easily accessible from the front page.

 Also releasing Org-sync as an ELPA package [2] could increase its
 visibility and user base.

+100!

-- 
 Bastien



Re: [O] org sync with SD/prophet/ http://syncwith.us?

2012-08-29 Thread Bastien
Aurélien Aptel aurelien.ap...@gmail.com writes:

 On Mon, Aug 27, 2012 at 6:47 PM, Elijah Wright elijah.wri...@gmail.com 
 wrote:
 Has anyone looked at making org-mode sync with SD / http://syncwith.us ?

 I've checked the SD website and yes, it should be doable as backend
 for org-sync [1]. I already wrote a working github and bitbucket
 backend and SD looks like a good fit.

So I guess the next question is who? :)

-- 
 Bastien



Re: [O] Please consider making a donation

2012-08-29 Thread Bastien
Jeremiah Dodds jeremiah.do...@gmail.com writes:

 You're on my shortlist of people to donate to when I have some spare
 cash. I'm eternally grateful for the work you've put into Org!

Eh, thanks!  You know, I'm mostly sitting on giants' shoulders.
Carsten's crazy work for 7 years with no discontinuation, then
all the people on this list.  

But I take my part, true :)

-- 
 Bastien



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

2012-08-29 Thread Bastien
Hi François,

François Allisson franc...@allisson.co writes:

 Since these changes, I have some troubles with a few org-agenda commands
 (goto-today, redo, switch to day view, week view, etc.). This happens
 with multiple blocks custom agenda views (whether there are, or not,
 multiple agendas in them). Does it work for you, or shall I send
 an ECM?

I just completely rewrote the parts in the agenda that were responsible
for this.  If you can, please pull from git and test.  I tested this
myself for the last 24 hours, but this is a big change and I want it to
be tested more before 7.9.1. 

Thanks for your help!

-- 
 Bastien



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

2012-08-29 Thread Rainer Stengele
Am 29.08.2012 18:21, schrieb Nick Dokos:
 Rainer Stengele rainer.steng...@online.de wrote:
 
 Hi,

 having upgraded to

 Org-mode version 7.9 (release_7.9-132-g31268a @
 c:/Users/rainer/AppData/Roaming/.emacs.d/org/lisp/)

 being in agenda I want to jump to another date with j.
 Choosing the date and pressing enter gives me this:


 Debugger entered--Lisp error: (void-variable org-keys)
 
 Just upgraded to that version and I cannot reproduce the problem.
 Does a ``make autoloads'', followed by M-x org-reload (or restarting
 emacs) fix it?
 
 Nick
 
 
 
No, that didn't help.
I have the same error on my machine at home after upgrading (Windows XP).

Rainer



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

2012-08-29 Thread Bastien
Hi Charles,

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

 I was going to report also- I am seeing some strange things. For
 example:

org-agenda.el is a maze, full of sound and fury.

The various variables/situations were so entangled that the best 
was to wipe the place out a bit.  I did so.

Let me know if you still have this.  Thanks!

-- 
 Bastien



Re: [O] [PATCH] Fix org-clock evaluation startup hang on Windows

2012-08-29 Thread Bastien
Hi Stuart,

I applied your patch.

Thanks a lot for catching this and for the clear explanations!

Best,

-- 
 Bastien



Re: [O] Problem with org-smart-reschedule and Agenda View

2012-08-29 Thread Bastien
Hi Charles and John,

(I think it's safer to CC authors of contributed Org modules, as 
they might not be reading the list -- I think John does, though.)

John, on top of Charles' question, I noticed that the comment header 
in org-learn.el seems to be truncated.  Do you have an updated version
somewhere?

Thanks for your help!

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

 I have just started using org-learn. However, when I try to use
 org-smart-reschedule in an Agenda View buffer it fails with the
 following backtrace:

 ,
 | Debugger entered--Lisp error: (error Before first headline at position 
 2024 in buffer *Org Agenda*)
 |   signal(error (Before first headline at position 2024 in buffer *Org 
 Agenda*))
 |   error(Before first headline at position %d in buffer %s 2024 #buffer 
 *Org Agenda*)
 |   byte-code(\300\301`p#\207 [error Before first headline at position %d 
 in buffer %s] 4)
 |   org-back-to-heading(t)
 |   org-entry-put(2041 LEARN_DATA (4 2 2.5 nil))
 |   org-smart-reschedule(0)
 |   call-interactively(org-smart-reschedule record nil)
 |   command-execute(org-smart-reschedule record)
 |   execute-extended-command(nil org-smart-reschedule)
 |   call-interactively(execute-extended-command nil nil)
 `

 If I run the command directly on the entry in the original org file, it
 works. Is this a bug or has this feature not been implemented for use in
 an Agenda View?

 Thanks.

 Charles

-- 
 Bastien



Re: [O] Batch execution and --script

2012-08-29 Thread Marcelo de Moraes Serpa
Sure!

Bear in mind I'm not an elisp expert, and I got it working after a lot of
trial and error. I'm using this script as part of a quickblogging engine
I'm writing for org (still testing, will share once it works as expected)
so that I can blog from directly from my journal org file to a jekyll blog.

I also created a new function based off org-export-generic called
org-export-generic-markdown which can be called in a non-interactive way,
so that it could work from the script.

The script basically exports a specific org file to markdown (in the same
dir the org file is located). Now I want to make it accept command-line
arguments. I will check it out tonight.

Here it goes:

http://pastie.org/4611632

This is pretty powerful, as you can also return data from the script by
using princ. I can imagine millions of ways this could be used to integrate
org with other apps/languages.

- Marcelo.


On Wed, Aug 29, 2012 at 11:42 AM, Nick Daly nick.m.d...@gmail.com wrote:

 On Wed, Aug 29, 2012 at 10:47 AM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
  Hey guys,
 
  Regarding this: http://orgmode.org/manual/Batch-execution.html
 
  I also had success using --script, as in:
 
  #!/Applications/Emacs.app/Contents/MacOS/Emacs --script
 
  In the top of a .el file. You can then chmod it to be executable and run
 it.

 Would you mind sharing a simple .el file you'd use that way?  The
 site's example is a bash script, and I wonder how much cleaner a .el
 file would be.

 Nick



Re: [O] [PATCH] Check org-timer-display in org-timer-set-mode-line when, value is 'off

2012-08-29 Thread Bastien
Muchenxuan Tong demon...@gmail.com writes:

 Check org-timer-display in org-timer-set-mode-line when value is 'off

 * lisp/org-timer.el (org-timer-set-mode-line): Check org-timer-display when
   value is 'off.

Applied, thanks a lot for the fix and the changelog!

-- 
 Bastien



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

2012-08-29 Thread Bastien
Hi Rainer,

Rainer Stengele rainer.steng...@online.de writes:

 I have the same error on my machine at home after upgrading (Windows
 XP).

Try recompiling with `make' then M-x org-reload RET

-- 
 Bastien



[O] [OT] How do you read/manage your mailing lists/newsgroups ?

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

I'm a very social person, and I love lurking and taking part on discussions
for the different communities I'm part of, and those aren't just a few (and
that includes orgmode, of course!).

Right now, I basically use a specific gmail account only for mailing lists.
The downside is that it gets poluted pretty quickly. Also, if I want to
access it offline/locally via IMAP it quickly eats disk space, since this
specific email account receives hundreds of new emails per day.

I still didn't find a good way to manage my mailing lists,
I'm definitely not satisfied with my current setup.

How do you manage your mailing list/newsgroups: what tool(s) do you use and
what's your workflow? It'd be nice if one could centralize reading in one
place, perhaps by using emacs as a client, but without eating a lot of disk
space.

Cheers,

- Marcelo.


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

2012-08-29 Thread Achim Gratz
Rainer Stengele writes:
 No, that didn't help.
 I have the same error on my machine at home after upgrading (Windows XP).

Well, then do M-x toggle-debug-on-error before going to the agenda and
post the backtrace.


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] link doesn't get fontified

2012-08-29 Thread Bastien
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 In this paragraph, when I open Org, the first link does not get
 fontified.  The other two links do.

 When I fill the paragraph, it gets fontified, but the paragraph does
 not get filled.  When I fill the paragraph again, it gets filled and
 fontified correctly.

I can't reproduce this.  Please let us know if you notice some 
stable bug pattern.

Thanks,

-- 
 Bastien



Re: [O] Org-mode release 7.9

2012-08-29 Thread Bastien
Hi Achim,

Achim Gratz strom...@nexgo.de writes:

 Achim Gratz writes:
 Can we see the full output, please?

 I got a mail from Robert (apparently not sent to the list) that the
 error was related to his use of some stuff in contrib/, resulting in a
 mixed installation.  

How the use of stuff in contrib/ can prevent the ELPA package from
loading correctly?  I'm interested in having more details, if you or
Robert can give some -- I had a similar problem, as you know, and
didn't find the time to digg further so far.

Thanks!

-- 
 Bastien



Re: [O] Wrapping lines

2012-08-29 Thread Bastien

Hi Marvin,  Marvin Doyley marvin...@gmail.com writes:

Does any body know how to wrap very long text at the heading 
levels


You can try M-x longlines-mode RET but you'll lose the 
fontification for long headlines.   HTH, 


--
Bastien



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

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

Hi Bastien:

 org-agenda.el is a maze, full of sound and fury.

 The various variables/situations were so entangled that the best 
 was to wipe the place out a bit.  I did so.

 Let me know if you still have this.  Thanks!

I can't even go into the Agenda view now. Here is the backtrace:

,
| Debugger entered--Lisp error: (void-variable org-agenda-overriding-cmd)
|   (eq org-agenda-overriding-cmd org-cmd)
|   (if (eq org-agenda-overriding-cmd org-cmd) (or 
org-agenda-overriding-arguments org-agenda-overriding-cmd-arguments))
|   (let ((org-agenda-overriding-arguments (if (eq org-agenda-overriding-cmd 
org-cmd) (or org-agenda-overriding-arguments 
org-agenda-overriding-cmd-arguments (cond ((eq type (quote agenda)) 
(org-let2 gprops lprops (quote (call-interactively (quote org-agenda-list) 
((eq type (quote alltodo)) (org-let2 gprops lprops (quote (call-interactively 
(quote org-todo-list) ((eq type (quote search)) (org-let2 gprops lprops 
(quote (org-search-view current-prefix-arg match nil ((eq type (quote 
stuck)) (org-let2 gprops lprops (quote (call-interactively (quote 
org-agenda-list-stuck-projects) ((eq type (quote tags)) (org-let2 gprops 
lprops (quote (org-tags-view current-prefix-arg match ((eq type (quote 
tags-todo)) (org-let2 gprops lprops (quote (org-tags-view (quote (4)) match 
((eq type (quote todo)) (org-let2 gprops lprops (quote (org-todo-list match 
((fboundp type) (org-let2 gprops lprops (quote (funcall type match (t 
(error Invalid type in command series
|   (while (setq org-cmd (pop cmds)) (setq type (car org-cmd) match (eval (nth 
1 org-cmd)) lprops (nth 2 org-cmd)) (let ((org-agenda-overriding-arguments (if 
(eq org-agenda-overriding-cmd org-cmd) (or org-agenda-overriding-arguments 
org-agenda-overriding-cmd-arguments (cond ((eq type (quote agenda)) 
(org-let2 gprops lprops (quote (call-interactively (quote org-agenda-list) 
((eq type (quote alltodo)) (org-let2 gprops lprops (quote (call-interactively 
(quote org-todo-list) ((eq type (quote search)) (org-let2 gprops lprops 
(quote (org-search-view current-prefix-arg match nil ((eq type (quote 
stuck)) (org-let2 gprops lprops (quote (call-interactively (quote 
org-agenda-list-stuck-projects) ((eq type (quote tags)) (org-let2 gprops 
lprops (quote (org-tags-view current-prefix-arg match ((eq type (quote 
tags-todo)) (org-let2 gprops lprops (quote (org-tags-view (quote ...) match 
((eq type (quote todo)) (org-let2 gprops lprops (quote (org-todo-list match 
((fboundp type) (org-let2 gprops lprops (quote (funcall type match (t 
(error Invalid type in command series)
|   (let* ((org-agenda-multi t) (redo (list (quote org-agenda-run-series) name 
(list (quote quote) series))) (cmds (car series)) (gprops (nth 1 series)) match 
org-cmd type lprops) (while (setq org-cmd (pop cmds)) (setq type (car org-cmd) 
match (eval (nth 1 org-cmd)) lprops (nth 2 org-cmd)) (let 
((org-agenda-overriding-arguments (if (eq org-agenda-overriding-cmd org-cmd) 
(or org-agenda-overriding-arguments org-agenda-overriding-cmd-arguments 
(cond ((eq type (quote agenda)) (org-let2 gprops lprops (quote 
(call-interactively ... ((eq type (quote alltodo)) (org-let2 gprops lprops 
(quote (call-interactively ... ((eq type (quote search)) (org-let2 gprops 
lprops (quote (org-search-view current-prefix-arg match nil ((eq type 
(quote stuck)) (org-let2 gprops lprops (quote (call-interactively ... ((eq 
type (quote tags)) (org-let2 gprops lprops (quote (org-tags-view 
current-prefix-arg match ((eq type (quote tags-todo)) (org-let2 gprops 
lprops (quote (org-tags-view ... match ((eq type (quote todo)) (org-let2 
gprops lprops (quote (org-todo-list match ((fboundp type) (org-let2 gprops 
lprops (quote (funcall type match (t (error Invalid type in command 
series) (widen) (let ((inhibit-read-only t)) (add-text-properties 
(point-min) (point-max) (\` (org-serie t org-serie-redo-cmd (\, redo) (setq 
org-agenda-redo-command redo) (goto-char (point-min)))
|   org-agenda-run-series(GTD: Today's Items (((tags UNFILED 
((org-agenda-overriding-header Aggregated Inbox) (org-agenda-skip-entry\ 
\'regexp\ \Inbox\ nil))) (tags @WAITING ((org-agenda-overriding-header 
Wait For) (org-agenda-tags-todo-honor-ignore-options\ t nil) 
(org-agenda-todo-ignore-scheduled\ t nil) (org-agenda-todo-ignore-deadlines\ t 
nil))) (tags STICKY|HOT ((org-agenda-overriding-header Sticky Notes, Tel 
Messages  Hot Items))) (tags WORK ((org-agenda-overriding-header Current 
Working Files  Notes))) (agenda  ((org-agenda-span (quote day)) 
(org-agenda-overriding-header Today: Agenda, Scheduled Actions  Info))) 
(agenda  ((org-agenda-overriding-header Upcoming Events (8 Days)) 
(org-agenda-span 8) (org-agenda-start-day +1d))) (todo STARTED 
((org-agenda-overriding-header Started Actions) 
(org-agenda-tags-todo-honor-ignore-options\ t nil) 

Re: [O] [OT] How do you read/manage your mailing lists/newsgroups ?

2012-08-29 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 I still didn't find a good way to manage my mailing lists,
 I'm definitely not satisfied with my current setup.

Many FLOSS mailing lists are also newsgroups on gmane -- so
you can simply launch your favorite nntp reader and read/post.

 How do you manage your mailing list/newsgroups: what tool(s) do you
 use and what's your workflow? It'd be nice if one could centralize
 reading in one place, perhaps by using emacs as a client, but without
 eating a lot of disk space.

I use Gnus for nntp, I cannot to Gmane et voilà!

I also use Gnus + http://gwene.org for reading RSS feeds... 
which is just *great*.

HTH,

-- 
 Bastien



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

2012-08-29 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote:

 Rainer Stengele writes:
  No, that didn't help.
  I have the same error on my machine at home after upgrading (Windows XP).
 
 Well, then do M-x toggle-debug-on-error before going to the agenda and
 post the backtrace.
 

There was a backtrace in Rainer's original message complaining about org-keys
not being defined. If I had to guess, I'd say it looks like a frankenstein build
to me, but I'm really not sure.

Nick



Re: [O] Org-mode release 7.9

2012-08-29 Thread Achim Gratz
Bastien writes:
 I got a mail from Robert (apparently not sent to the list) that the
 error was related to his use of some stuff in contrib/, resulting in a
 mixed installation.  

 How the use of stuff in contrib/ can prevent the ELPA package from
 loading correctly?  I'm interested in having more details, if you or
 Robert can give some -- I had a similar problem, as you know, and
 didn't find the time to digg further so far.

The exact recipe for reproduction I don't know because even though I use
stuff from contrib/ it works for me without any error.  I suspect that
since I have a fairly recent installation of Org in site-lisp Emacs just
gets the autoloads from there if things go wrong and that's just the
same stuff it would pick up from ELPA.  I wont have time for a week or
so to remove this installation and see what happens…

I seem to remember there was some talk on Emacs devel that the package
manager loaded the activation code too late in saome cases, but I can't
find it right now.  You might ask Tom Tromey.  Emacs needs to grow a way
to de-activate the built-in package when it gets a new one via ELPA, but
that hasn't been implemented yet.

Robert said he removed the contrib stuff and things start to work for
him — apparently he's away for a few days so we may not hear from him
until he's back.


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

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




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

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

 I can't even go into the Agenda view now. Here is the backtrace:

Ops.   Fixed!

-- 
 Bastien



Re: [O] Org-mode release 7.9

2012-08-29 Thread Bastien
Achim Gratz strom...@nexgo.de writes:

 Robert said he removed the contrib stuff and things start to work for
 him — apparently he's away for a few days so we may not hear from him
 until he's back.

All right, thanks for the details!  If I can reproduce the problem, 
I'll definitely ping Tom Tromey.

Best,

-- 
 Bastien



[O] [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version

2012-08-29 Thread Sean O'Halpin
* contrib/lisp/org-e-html.el (org-e-html-special-block): convert LaTeX
markup to HTML

This function had not been modified from its org-e-latex-special-block original
so with #+BEGIN_ORG for example you would get \begin{org}...\end{org}
in the output
instead of div class=org.../div.
---
 contrib/lisp/org-e-html.el |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-e-html.el b/contrib/lisp/org-e-html.el
index 1c2255b..2d3d3c4 100644
--- a/contrib/lisp/org-e-html.el
+++ b/contrib/lisp/org-e-html.el
@@ -2617,7 +2617,7 @@ holding contextual information.
   (let ((type (downcase (org-element-property :type special-block
 (org-e-html--wrap-label
  special-block
- (format \\begin{%s}\n%s\\end{%s} type contents type
+ (format div class=\%s\\n%s\n/div type contents


  Src Block
-- 
1.7.0.4



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

2012-08-29 Thread François Allisson
Hi Bastien and Charles,

  Let me know if you still have this.  Thanks!
 
 I can't even go into the Agenda view now. Here is the backtrace:
 
 ,
 | Debugger entered--Lisp error: (void-variable org-agenda-overriding-cmd)

I've just get into the same problem and backtrace...

François.



Re: [O] [PATCH][New exporter] Fix: org-e-html-special-block had not been converted from LaTeX version

2012-08-29 Thread Bastien
Hi Sean,

Sean O'Halpin sean.ohal...@gmail.com writes:

 * contrib/lisp/org-e-html.el (org-e-html-special-block): convert LaTeX
 markup to HTML

Applied, thanks!  

(Nitpicking: please add TINYCHANGE for such changes, we need this 
cookie when merging Org into Emacs...  Thanks!)

-- 
 Bastien



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

2012-08-29 Thread Bastien
François Allisson franc...@allisson.co writes:

 Hi Bastien and Charles,

  Let me know if you still have this.  Thanks!
 
 I can't even go into the Agenda view now. Here is the backtrace:
 
 ,
 | Debugger entered--Lisp error: (void-variable org-agenda-overriding-cmd)

 I've just get into the same problem and backtrace...

Yes -- should be fixed now.

-- 
 Bastien



Re: [O] Batch execution and --script

2012-08-29 Thread Nick Dokos
Nick Daly nick.m.d...@gmail.com wrote:

 On Wed, Aug 29, 2012 at 10:47 AM, Marcelo de Moraes Serpa
 celose...@gmail.com wrote:
  Hey guys,
 
  Regarding this: http://orgmode.org/manual/Batch-execution.html
 
  I also had success using --script, as in:
 
  #!/Applications/Emacs.app/Contents/MacOS/Emacs --script
 
  In the top of a .el file. You can then chmod it to be executable and run it.
 
 Would you mind sharing a simple .el file you'd use that way?  The
 site's example is a bash script, and I wonder how much cleaner a .el
 file would be.
 

Marcelo posted a larger example, but maybe a very small example might be
helpful. Put the following in some file (I called it hello.el but the
name does not really matter):

--8---cut here---start-8---
#! /usr/local/bin/emacs --script

(message Hello World!)
--8---cut here---end---8---

Make it executable:

  chmod +x hello.el

and run it:

  ./hello.el

Nick




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

2012-08-29 Thread Achim Gratz
Nick Dokos writes:
 There was a backtrace in Rainer's original message complaining about
 org-keys not being defined. If I had to guess, I'd say it looks like a
 frankenstein build to me, but I'm really not sure.

Yes, but he's since re-made the autoloads file at least and the new
backtrace might be different.

Anyway, org-keys is defined in org-agenda and it looks like most if not
all of the backtrace is also from org-agenda, and it's been a recent
addition by Bastien… it seems that it is declared as a dynamic variable
but not bound in all autoloaded functions, so there definitely are
codepaths that might find this variable undefined.  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.


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

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves




Re: [O] [OT] How do you read/manage your mailing lists/newsgroups ?

2012-08-29 Thread Marcelo de Moraes Serpa
Hi Bastien,

I wil play with Gnus with the setup you mention, seems like a good option.

Thanks!

- Marcelo.


On Wed, Aug 29, 2012 at 1:11 PM, Bastien b...@altern.org wrote:

 Hi Marcelo,

 Marcelo de Moraes Serpa celose...@gmail.com writes:

  I still didn't find a good way to manage my mailing lists,
  I'm definitely not satisfied with my current setup.

 Many FLOSS mailing lists are also newsgroups on gmane -- so
 you can simply launch your favorite nntp reader and read/post.

  How do you manage your mailing list/newsgroups: what tool(s) do you
  use and what's your workflow? It'd be nice if one could centralize
  reading in one place, perhaps by using emacs as a client, but without
  eating a lot of disk space.

 I use Gnus for nntp, I cannot to Gmane et voilà!

 I also use Gnus + http://gwene.org for reading RSS feeds...
 which is just *great*.

 HTH,

 --
  Bastien



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

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

Hi Bastien:

 Ops.   Fixed!

Thanks for all the hard work. Things are working fine now and I see no
strangeness. 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?

Cheers,
Charles

-- 
We are using Linux daily to UP our productivity - so UP yours!
(Adapted from Pat Paulsen by Joe Sloan)


pgpdueEOv2GS6.pgp
Description: PGP signature


Re: [O] Batch execution and --script

2012-08-29 Thread Marcelo de Moraes Serpa
Hi Nick,

Thanks for turning it into a concise example :)

Is that somewhere in the manual or Worg? Perhaps it should be added. I
never contributed to Worg, I will look into how tonight.

This is a subject that should be explored more. I see a lot of potential in
having CLI .el scripts (i.e taking the emacs GUI out of the equation).

- Marcelo.


On Wed, Aug 29, 2012 at 1:29 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Nick Daly nick.m.d...@gmail.com wrote:

  On Wed, Aug 29, 2012 at 10:47 AM, Marcelo de Moraes Serpa
  celose...@gmail.com wrote:
   Hey guys,
  
   Regarding this: http://orgmode.org/manual/Batch-execution.html
  
   I also had success using --script, as in:
  
   #!/Applications/Emacs.app/Contents/MacOS/Emacs --script
  
   In the top of a .el file. You can then chmod it to be executable and
 run it.
 
  Would you mind sharing a simple .el file you'd use that way?  The
  site's example is a bash script, and I wonder how much cleaner a .el
  file would be.
 

 Marcelo posted a larger example, but maybe a very small example might be
 helpful. Put the following in some file (I called it hello.el but the
 name does not really matter):

 --8---cut here---start-8---
 #! /usr/local/bin/emacs --script

 (message Hello World!)
 --8---cut here---end---8---

 Make it executable:

   chmod +x hello.el

 and run it:

   ./hello.el

 Nick




Re: [O] Batch execution and --script

2012-08-29 Thread Thorsten Jolitz
Marcelo de Moraes Serpa celose...@gmail.com writes:

Hi Marcelo,

 This is a subject that should be explored more. I see a lot of
 potential in having CLI .el scripts (i.e taking the emacs GUI out of
 the equation).

I once asked a related question on stackoverflow, and recieved this
answer that shows how to 
- become more independent of the location of the emacs executable
- pass more than one argument on the shebang line
at the same time: 

,-
|  Many unix variants only allow a single argument to the program on  
|  the shebang line. Sad, but true. If you use #!/usr/bin/env emacs so
|  as not to depend on the location of the emacs executable, you can't
|  pass an argument at all.   
| 
|  Chaining scripts is a possibility on some systems, but that too is 
|  not supported everywhere.  
| 
|  You can go the time-honored route of writing a script that is both 
|  a shell script and an Emacs Lisp script (like Perl's if
|  $running_under_some_shell, for example). It sure looks hackish, but
|  it works.  
| 
|  Elisp comments begin with ;, which in the shell separates two  
| up   commands. So we can use a ; followed by a shell instruction to 
| vote switch over to Emacs, with the actual Lisp code beginning on the   
| 21   next line. Shells don't like an empty command though, so we need to
| down find something that both the shell and Emacs treat as a no-op, so  
| vote put before the ;. The shell no-op command is :; you can write it   
|  : as far as the shell is concerned, and Emacs parses that as a   
|  constant at top level which is also a no-op.   
| 
|  #! /bin/sh 
|  :; exec emacs --no-site-file --script $0 -- $@ # -*-emacs-lisp-*-
|  (print (+ 2 2))
`-


Maybe thats interesting for you. The full question is here: 
http://stackoverflow.com/questions/6238331/emacs-shell-scripts-how-to-put-initial-options-into-the-script

-- 
cheers,
Thorsten




Re: [O] Org - markdown

2012-08-29 Thread Marcelo de Moraes Serpa
I'm using this very extension to export to markdown and so far it works
fine (and seems easy to modify). I also wrapped it into a cli .el script.
Thanks for suggesting it!

On Wed, May 30, 2012 at 6:00 AM, Mikkel Kristiansen 
mester.kristian...@gmail.com wrote:

 Hi Marcelo
 Once in a while I use ORGMODE-Markdown to export to markdown, found
 it here:

 https://github.com/alexhenning/ORGMODE-Markdown

 The project haven't seen any updates the last two years though (according
 to github)

 On ons 30 maj 2012 05:23:48 CEST, brian powell wrote:

  * PanDoc!
 
  http://johnmacfarlane.net/pandoc/
 
 
  On Tue, May 29, 2012 at 10:45 PM, Marcelo de Moraes Serpa 
 celose...@gmail.com
  wrote:
 
  Hey guys,
 
  Is there any tool out there that converts org to markdown? I'm sure
 it
  wouldn't be difficult to come up with something, but if there's
 something
  I'd rather use it. I'd like to write my blogposts in org and then
 automate
  exporting to markdown to my jekyll blogs.
 
  - Marcelo.
 
 

 --
 Mikkel Kristiansen





Re: [O] Batch execution and --script

2012-08-29 Thread Nick Dokos
Marcelo de Moraes Serpa celose...@gmail.com wrote:

 Is that somewhere in the manual or Worg? Perhaps it should be added. I
 never contributed to Worg, I will look into how tonight.

The --script is described in the emacs manual, but no example is
provided.  Adding it to Worg (maybe with a two-stage explanation:
trivial Hello World example, followed by an org-specific example)
is a good idea.

For contributing to Worg, see the Maintenance of Worg section:

http://orgmode.org/worg/#sec-4

 This is a subject that should be explored more. I see a lot of
 potential in having CLI .el scripts (i.e taking the emacs GUI out of
 the equation).

Note that you could do this even before --script was invented:

  emacs --batch -l /path/to/somefile.el

is exactly equivalent to the --script invocation of somefile.el, which
in turn is more or less[fn:1] equivalent to stuffing the above command
line into a bash script file, making *that* executable and running it.
The --script method is a bit more convenient but it is just syntactic
sugar.

Nick

Footnotes:

[fn:1] There is an extra fork/exec of bash in this method, but that's about it.



Re: [O] Alternate format for datetree

2012-08-29 Thread Ian Barton

On 29/08/12 15:25, John Hendy wrote:

On Wed, Aug 29, 2012 at 2:49 AM, Ian Barton li...@manor-farm.org wrote:

On 28/08/12 13:50, Nick Dokos wrote:


Ian Barton li...@wilkesley.net wrote:


I would like to use something like this. However, using a recent git
checkout of org mode and the following simple template from the
original list message:

(u
   Test
   entry
   (file+headline ~/test.org
  ,(format %s %s
   (format-time-string %B)
   (format-time-string %Y
I get the following error:

Debugger entered--Lisp error: (wrong-type-argument stringp (\, (format
%s %s (format-time-string %B) (format-time-string %Y
regexp-quote((\, (format %s %s (format-time-string %B)
(format-time-string %Y
org-capture-set-target-location()
org-capture(nil)
call-interactively(org-capture nil nil)

I also get the same error from John Hendy's template. Is this a bug in
recent versions of org, or is there an error in the template lisp? I
have tried doing a git bisect, but can only go back a few commits, as
my config now includes  several things that have only recently been
added to org.



You are missing the backquote:

--8---cut here---start-8---
   `(u
Test
entry
(file+headline ~/test.org
   ,(format %s %s
(format-time-string %B)
(format-time-string %Y
--8---cut here---end---8---

Nick


Thanks Nick. Hwever with the following minimal template, from the OP, I
still get the error:

;; org-capture settings.
(setq org-capture-templates
`((t test entry
(file+headline ~/file.org
,(format %s
(format-time-string %m)))
,(format ** %s \n*** %s-%s \n [%s-%s-%s %s %s:%s] 
(format-time-string %d)
(format-time-string %Y)
(format-time-string %A)
(format-time-string %Y)
(format-time-string %m)
(format-time-string %d)
(format-time-string %a)
(format-time-string %H)
(format-time-string %M))
)))


Odd. I just copied and pasted this into my .emacs and commented out my
actual capture templates section entirely, leaving only this and it
works as expected.

(Just saw Nick's response as well and was going to both try and
suggest similar with a minimal .emacs).




Thanks both. I'll try with a minimal emacs and post the results. 
However, it may be a day or two as I am currently in the far West of 
Ireland with very variable Internet connections

!

Ian.





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

2012-08-29 Thread Rainer Stengele
Am 29.08.2012 20:30, schrieb Achim Gratz:
 Nick Dokos writes:
 There was a backtrace in Rainer's original message complaining about
 org-keys not being defined. If I had to guess, I'd say it looks like a
 frankenstein build to me, but I'm really not sure.
 
 Yes, but he's since re-made the autoloads file at least and the new
 backtrace might be different.
 
 Anyway, org-keys is defined in org-agenda and it looks like most if not
 all of the backtrace is also from org-agenda, and it's been a recent
 addition by Bastien… it seems that it is declared as a dynamic variable
 but not bound in all autoloaded functions, so there definitely are
 codepaths that might find this variable undefined.  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.
 
 
 Regards,
 Achim.
 

I use sticky Agenda since some months.
Doing a org-toggle-sticky-agenda and calling any agenda function makes the 
error disappear!

example of one of my sticky Agendas:
..
(01 agenda - prio A,B todos - sorted prio up - 1 day  ;;
 (
  (agenda prio ABC agenda
  (
   ;;  (org-agenda-skip-function
   ;; (lambda nil
   ;;   (org-agenda-skip-entry-if (quote notregexp) 
\\=.*\\[#A\\|#B\\|#C\\])))
   (org-agenda-span 'day)
   ;; (org-agenda-span 1)
   (org-agenda-start-with-log-mode t)
   (org-agenda-overriding-header Today's Agenda  + Prio A 
todos )))

  (alltodo todos Prio A+B
   ((org-agenda-skip-function
 (lambda nil
   (or (org-agenda-skip-entry-if (quote notregexp) 
\\=.*\\[#A\\|#B\\])
   ;; (org-agenda-skip-entry-if 'todo '(MOVED))
   ;; (org-agenda-skip-entry-if 'todo 'done)
   (org-agenda-skip-entry-if 'scheduled 'deadline ))

  )
 ((org-agenda-sorting-strategy '(time-up priority-down todo-state-up
..




Here is my currrent backtrace, make autoloads does not change anything:


Debugger entered--Lisp error: (void-variable org-keys)
  (and org-keys (stringp org-match))
  (cond ((and org-keys (stringp org-match)) (format *Org Agenda(%s:%s)* 
org-keys org-match)) (org-keys (format *Org Agenda(%s)* org-keys)) (t *Org 
Agenda(a)*))
  (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) 
(format *Org Agenda(%s:%s)* org-keys org-match)) (org-keys (format *Org 
Agenda(%s)* org-keys)) (t *Org
Agenda(a)*)))
  (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and org-keys 
(stringp org-match)) (format *Org Agenda(%s:%s)* org-keys org-match)) 
(org-keys (format *Org
Agenda(%s)* org-keys)) (t *Org Agenda(a)*
  (catch (quote exit) (if org-agenda-sticky (setq org-agenda-buffer-name (cond 
((and org-keys (stringp org-match)) (format *Org Agenda(%s:%s)* org-keys 
org-match)) (org-keys
(format *Org Agenda(%s)* org-keys)) (t *Org Agenda(a)* 
(org-agenda-prepare Day/Week) (setq start-day (or start-day 
org-agenda-start-day)) (if
org-agenda-overriding-arguments (setq arg (car org-agenda-overriding-arguments) 
start-day (nth 1 org-agenda-overriding-arguments) span (nth 2 
org-agenda-overriding-arguments))) (if
(stringp start-day) (setq start-day (time-to-days (org-read-date nil t 
start-day (setq org-agenda-last-arguments (list arg start-day span)) 
(org-compile-prefix-format (quote
agenda)) (org-set-sorting-strategy (quote agenda)) (let* ((span 
(org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-span))) (today 
(org-today)) (sd (or start-day today))
(ndays (org-agenda-span-to-ndays span sd)) (org-agenda-start-on-weekday (if (eq 
ndays 7) org-agenda-start-on-weekday)) (thefiles (org-agenda-files nil (quote 
ifmode))) (files
thefiles) (start (if (or (null org-agenda-start-on-weekday) ( ndays 7)) sd 
(let* ((nt ...) (n1 org-agenda-start-on-weekday) (d ...)) (- sd (+ ... d) 
(day-numbers (list start))
(day-cnt 0) (inhibit-redisplay (not debug-on-error)) 
(org-agenda-show-log-scoped org-agenda-show-log) s e rtn rtnall file date d 
start-pos end-pos todayp clocktable-start
clocktable-end filter) (setq org-agenda-redo-command (list (quote 
org-agenda-list) (list (quote quote) arg) start-day (list (quote quote) span))) 
(dotimes (n (1- ndays)) (push (1+
(car day-numbers)) day-numbers)) (setq day-numbers (nreverse day-numbers)) 
(setq clocktable-start (car day-numbers) clocktable-end (1+ (or (org-last 
day-numbers) 0)))
(org-set-local (quote org-starting-day) (car day-numbers)) (org-set-local 
(quote org-arg-loc) arg) (org-set-local (quote org-agenda-current-span) 
(org-agenda-ndays-to-span span))
(unless org-agenda-compact-blocks (let* ((d1 (car day-numbers)) (d2 (org-last 
day-numbers)) (w1 (org-days-to-iso-week d1)) (w2 (org-days-to-iso-week d2))) 
(setq s (point)) (if
org-agenda-overriding-header (insert 

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

2012-08-29 Thread Nick Dokos
Rainer Stengele rainer.steng...@online.de wrote:


 I use sticky Agenda since some months.
 Doing a org-toggle-sticky-agenda and calling any agenda function makes the 
 error disappear!
 

OK - that clarifies things: I don't use sticky agenda, so that explains
why I didn't get the error. Looking at the backtrace a bit more also
shows it clearly - 50/50 hindsight is such a blessing - but I didn't
look at it carefully the first time. I guess Achim's suggestion of
giving it an initial value in the defvar should work, but I don't
understand how org-keys is supposed to work.

Nick

 Here is my currrent backtrace, make autoloads does not change anything:
 
 Debugger entered--Lisp error: (void-variable org-keys)
   (and org-keys (stringp org-match))
   (cond ((and org-keys (stringp org-match)) (format *Org Agenda(%s:%s)* 
 org-keys org-match)) (org-keys (format *Org Agenda(%s)* org-keys)) (t *Org 
 Agenda(a)*))
   (setq org-agenda-buffer-name (cond ((and org-keys (stringp org-match)) 
 (format *Org Agenda(%s:%s)* org-keys org-match)) (org-keys (format *Org 
 Agenda(%s)* org-keys)) (t *Org
 Agenda(a)*)))
   (if org-agenda-sticky (setq org-agenda-buffer-name (cond ((and org-keys 
 (stringp org-match)) (format *Org Agenda(%s:%s)* org-keys org-match)) 
 (org-keys (format *Org
 Agenda(%s)* org-keys)) (t *Org Agenda(a)*
   ...
   org-agenda-list(nil 2012-08-22)
   org-agenda-goto-date(2012-08-22)
   call-interactively(org-agenda-goto-date nil nil)
 



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

2012-08-29 Thread François Allisson
Le mercredi 29 aoû 2012 à 14:33:17 (-0400), Charles Philip Chan a écrit :
 Bastien b...@altern.org writes:
 
 Hi Bastien:
 
  Ops.   Fixed!
 
 Thanks for all the hard work. Things are working fine now and I see no
 strangeness. 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?
 
 Cheers,
 Charles

Thanks a lot! I confirm that everything works just fine. And not just as
before, but better than before: I like the fact that, in a block agenda
view, one agenda can move in time independently from another one. I'll
play with that a bit and give you some feedback on it.

Best,
François



Re: [O] Kudos to Auréliens and Andrew who finished the GSoC successfully!

2012-08-29 Thread Marcelo de Moraes Serpa
That's awesome! Big kudos to them!

I can see how the merge driver could be the holy grail of using org as an
effective project manager (issue/bug/project/task tracker) and then
blurring the line between the shared list and personal todo lists. Oh
boy, orgmode is so freaking awesome.

And of course, org-sync would come in handy to interface with other
services either as a way to adapt it to the existing infrastructure or to
use the web GUIs while still allowing programmers to just use plain org
files as an way to manage their tasks.

Cheers!

- Marcelo.

On Wed, Aug 29, 2012 at 12:26 PM, Bastien b...@altern.org wrote:

 Hi Eric,

 Eric Schulte eric.schu...@gmx.com writes:

  In addition it may be worthwhile to create pages for each
  project on the Emacs Wiki [1] and to add announcements to the front page
  of the orgmode.org site.

 I'm more and more thinking of revamping the website, and yes,
 the GSoC projects should be easily accessible from the front page.

  Also releasing Org-sync as an ELPA package [2] could increase its
  visibility and user base.

 +100!

 --
  Bastien




Re: [O] Org-mode release 7.9

2012-08-29 Thread Robert Horn
On Wed, Aug 29, 2012 at 08:00:18PM +0200, Bastien wrote:
 Hi Achim,
 
 Achim Gratz strom...@nexgo.de writes:
 
  Achim Gratz writes:
  Can we see the full output, please?
 
  I got a mail from Robert (apparently not sent to the list) that the
  error was related to his use of some stuff in contrib/, resulting in a
  mixed installation.  
 
 How the use of stuff in contrib/ can prevent the ELPA package from
 loading correctly?  I'm interested in having more details, if you or
 Robert can give some -- I had a similar problem, as you know, and
I'm traveling and have limited access and tools.  I've figured out
this much:

I had an emacs 24.1 install.  This has elpa and org 7.8.11 in the root
lisp area.  This also includes the 7.8.11 contrib directory.

When I use to elpa to upgrade the package to 7.9, it upgrades the lisp
directory but does not include the contrib directory.

When I start emacs, it finds the 7.9 org-mode, and does not detect a mixed
install.  The distribution org is all 7.9.

When my .emacs has the (require 'org-checklist) it finds the contrib 
directory in the 7.8.11 lisp directories. (I think).  There is no reported
error.  

All sorts of things work fine, but the new context aware changes for
capture interact in some bad way with the org-checklist from 7.8.11.

I won't have the right tools to figure out exactly what is going wrong
until I return from travel.  For now, the fix was quite simple.  I
removed the (require 'org-checklist) from my .emacs and the problem
went away.  It's entirely possible that there are other aspects of my
config that are also needed.

R Horn
rjh...@alum.mit.edu



[O] coloring source for scala

2012-08-29 Thread Alexandre Russel
Hi,

I have some source code in scala, how can I get the color when
exporting to html ?
ie:
#+begin_src scala
case class foo()
#+end_src

Alex



Re: [O] coloring source for scala

2012-08-29 Thread Bastien
Hi Alexandre,

Alexandre Russel alexan...@russel.fr writes:

 I have some source code in scala, how can I get the color when
 exporting to html ?

(setq org-src-fontify-natively t)

HTH,

-- 
 Bastien



Re: [O] test fails

2012-08-29 Thread Bastien
Hi Erich,

Erich Neuwirth erich.neuwi...@univie.ac.at writes:

 I am building org mode on 2 Macs with OSX 10.8.1 and Emacs 24.2.1

 One one machine, this works.
 On the other machine, the build fails.

Maybe you can run `make config-test' to see if the testing si
configured the same way on both machines:

From `make helpall':

Configuration Check
===
make config - check main configuration
make config-test- check test configuration
make config-exe - check executables configuration
make config-cmd - check command configuration
make config-all - check all configuration

 Please also tell me what is the easiest way of finding the version identifier.
 I just pulled the latest version from git now,

M-x org-version RET should do.

HTH,

-- 
 Bastien



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

2012-08-29 Thread Bastien
Hi Luis,

Luis Anaya papoan...@hotmail.com writes:

 I was interchanging emails with Bastien regarding some items I've been
 working on for the past few month in my spare time. Some will be posted
 into the development branch, but for others I would like to get some
 feedback if these should be made available or not in the org-mode
 github, they're available on mine (https://github.com/papoanaya/emacs_utils)

Can you send the link to the source code for each contribution?

E.g. In the develop branch, I've found this

https://github.com/papoanaya/emacs_utils/blob/develop/org-mom.el

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

 New items

 ob-mathomatic.el :: Babel mode for Mathomatic. Mathomatic is a CAS written 
 in C. Very small and portable. I wrote it out of necessity being that my 
 Atrix 
 does not have enough drive space for anything too big.  It supports
 plotting via gnuplot. For more information go to. 
 (www.mathomatic.org) 

Looks useful.

 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
small, would it make sense to let org-e-groff.el know that the user
wants to use the MOM macros through a customizable option?  If the 
files have the same user-base and share a lot of code, I guess we 
should merge them somehow.

 org-platypus.el :: Exporter mode for Platypus. Platypus is a small 
 typesetter written in java that is still in active development. Not 
 something I would put in main yet being that there are missing features 
 in the typesetter. (like no numbered headings!)  

 But it is good enough to play with it. You can see the 
 results at https://www.box.com/s/b02f017f0d8854c6cbdb  
 (platypus.pz.org)

Great to see so many exporters :)

 ob-tcl.el :: I work with TCL daily, I just had to do it. It's a clone of
 the ob-perl.el one translated to TCL. This should also work with expect and
 ns2. (ww.tcl.tk)

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

 ob-jlang.el :: C'mon, there's nothing cooler than:
 #+begin_src jlang :results output
 a =. +/%$ 
 echo a i. 10
 #+end_src
 :) This is org babel for JLanguage. This one is still in the works, but
 it is functional. It has support for JConsole only (which makes sense). 
 (www.jsoftware.com) 

 For those curious enough, the code computes the average from 0 to 9. 

 ob-newlisp.el :: Why newlisp? Well, there's picolisp and other lisps
 available. I use newlisp for a lot for system programming at home, so
 there. Based on the ob-picolisp.el code. (www.newlisp.org)

Great.  I wonder why there is no Babel support for the Arc lisp
(http://paulgraham.com/arc.html) ... 

 org-e-groff.el :: 

 1. Ability to inline .PNG and JPEG. It wil use pngtopnm/pngtops or sam2p
 for translating raster into Groff. But the process should be
 automatic. This enables the use of ditaa on Groff exports. It is
 controlled with a variable to allow disabling the feature if none of
 these options are available. 
 2. Ability to resize pic images. Height and attributes are now available
 for .pic images in addition to eps ones.

Wow.  Again, great!  I wish I had more documents (and less code) to
write to get more occasions to enjoy all these features :)

Thanks!

-- 
 Bastien



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

2012-08-29 Thread Bastien
Hi Luis,

Luis Anaya papoan...@hotmail.com writes:

 With that said, my personal view is that ob-tcl should be included being
 that is a common language used in many applications. I'm on the fence on
 mathomatic being that there's already plenty alternatives, but I would
 say yeah, sure.

Agreed.

 Newlisp and JLang happen to be fairly fringe languages. (C'mon +/%# =
 average?! :) ) and should belong to contrib

Agreed, too.

-- 
 Bastien



Re: [O] How to make kill-sexp work as in the rest of Emacs?

2012-08-29 Thread Bastien
Nick Dokos nicholas.do...@hp.com writes:

 Try

   (modify-syntax-entry ?\ \)

This is now the default in master.  

(Note that it will not be part of the 7.9.1 release, made from 
the maint branch.  I think such changes  belong to a major
release.)

Thanks to you and Samuel for this!

-- 
 Bastien



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

2012-08-29 Thread Bastien
Hi Charles,

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

 I spoke too soon. I tried it out and this is not working.

 For example today is Monday, Aug. 27. If I set the agenda span to
 anything but 7 or week, it works- the start date is Aug. 28 (I
 even tried month and year). This works even if
 org-agenda-start-on-weekday is non-nil (my
 org-agenda-start-on-weekday is set globally to 0). However, if I set
 it to either 7 or week, the start day in the agenda is Sunday,
 Aug. 26. This is really strange.

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

Thanks,

-- 
 Bastien



Re: [O] Agenda - Stored Search Issue

2012-08-29 Thread Bastien
Hi Bastre

Bastre bri...@me.com writes:

  trouble area === (tags-todo -STYLE=\HABIT\/!+TODO  ;; exclude HABITS

Using(tags-todo -STYLE=\habit\-TODO=\TODO\)

should do.

HTH,

-- 
 Bastien



Re: [O] Beamer onlyenv

2012-08-29 Thread Bastien
Hi Avdi,

Avdi Grimm gro...@inbox.avdi.org writes:

 I have a lot of slides where I want to incrementally show arbitrary
 information or code that is *not* part of a bullet list. I've been
 doing it like this:

 #+BEAMER: \begin{onlyenv}2-
 ...some content...
 #+BEAMER: \end{onlyenv}

 I haven't been able to find any comprehensive org-beamer docs, and
 I've been wondering: is there a nicer way to do this using org's
 beamer support?

Not to my knowledge, but I didn't test the new org-e-beamer exporter
for this feature.  Did you?  

I'm unsure your use-case is very common, if it it, hopefully someone 
can implement this in the next exporter.

Best,

-- 
 Bastien



Re: [O] Batch execution and --script

2012-08-29 Thread Bastien
Hi Marcelo,

Marcelo de Moraes Serpa celose...@gmail.com writes:

 I also created a new function based off org-export-generic called
 org-export-generic-markdown which can be called in a non-interactive
 way, so that it could work from the script.

NB: While org-export-generic.el was handy for a while, developers should
not rely on it write new code.  It is obsoleted by org-export.el.

-- 
 Bastien



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

2012-08-29 Thread Charles Philip Chan
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.

Cheers,
Charles

-- 
Linux!  Guerrilla UNIX Development Venimus, Vidimus, Dolavimus.
(By m...@ka4ybr.com, Mark A. Horton KA4YBR)


pgpIWylL6nrWk.pgp
Description: PGP signature


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

2012-08-29 Thread 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,

-- 
 Bastien



Re: [O] coloring source for scala

2012-08-29 Thread Alexandre Russel
thanks for your quick answer


 (setq org-src-fontify-natively t)


it doesn't give exactly what I was looking for. This fontify the code
inside my org file.
Now, when I set the language to 'java', I have color, but when I set
it to scala, I don't have nice color.
Is there a way to have color for scala ?

Alex



Re: [O] Org-mode release 7.9

2012-08-29 Thread Bastien
Hi Robert,

thanks for the detailed explanations, it also helped me find the
problem in my own setup.

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.

Best,

-- 
 Bastien



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

2012-08-29 Thread Bastien
François Allisson francois.allis...@unil.ch writes:

 Thanks a lot! I confirm that everything works just fine. And not just as
 before, but better than before: I like the fact that, in a block agenda
 view, one agenda can move in time independently from another one. I'll
 play with that a bit and give you some feedback on it.

Yes -- also note that `r' and `g' now refresh differently in multi
agendas.  `r' keep the temporary parameters for the agenda under the
point, while `g' restore the view from scratch (discard temporary
change in the time span etc.)  I think this is useful -- at least
more useful than a half-broken state of multi-agendas handling :)

-- 
 Bastien