Re: [O] book: checklist Manifesto: How To Get It Right

2011-12-31 Thread Bastien
Hi Jude,

can you give a concrete example of a simple checklist and a submittal
checklist?  Those concepts are interesting.  I have no doubt they are
relevant to some Org configurations, I would just like to figure out
*how*.

And I have not read the book, thanks for the reference.

-- 
 Bastien



Re: [O] [PATCH] Fix regexps in org-clock.el

2011-12-31 Thread Carsten Dominik
Applied, thanks.

But I have removed the regexp-quote again, because org-clock-string
is used in many more regexps, and a more complete patch would be
needed to make this change meaningful.

- Carsten

On 31.12.2011, at 08:34, Joe Vornehm Jr. wrote:

 I have been seeing persistent errors of Cannot restart clock because task 
 does not contain unfinished clock when auto-resuming a saved (persistent) 
 clock.  I believe I've tracked the error down to an extraneous space in a 
 regexp (^[ \t]*  when it should be ^[ \t]*).
 
 This patch fixes the issue for me (in `org-clock-in'), and it makes the same 
 change in `org-clock-find-position'.  I've tested this briefly and it works 
 for me; nothing about clocking-in behavior seems to break, and persistent 
 clocks work now.
 
 I've also wrapped `regexp-quote' around instances where org-clock-string is 
 used to build a regexp, in case someone puts funny characters in their 
 org-clock-string.
 
 Hopefully, the patch is attached correctly and Thunderbird didn't mangle it.
 
 Cheers!
 Joe V.
 
 
 0001-Fix-regexps-in-org-clock.el.patch




Re: [O] LaTeX export

2011-12-31 Thread Bastien
Hi York,

York Zhao gtdplatf...@gmail.com writes:

 I'm wondering if there is a way to export ONLY the LaTeX code within
 #+begin_latex and #+end_latex. I want the exact literal export without
 adding anything before and after my code. The result should be exactly the 
 same
 as if I have copied the block between #+begin_latex and #+end_latex and
 pasted to a new buffer.

I would use code blocks tangling

,
| #+TITLE: Test
| 
| * Test headline
| 
| #+begin_src tex :tangle yes
| \documentclass{article}
| \begin{document}
| ...
| \end{document}
| #+end_src
`

`C-c C-v t' on the block will create a .tex file with the exact content
of the #+begin_src block.

HTH,

-- 
 Bastien



Re: [O] Honour existing restrictions if possible when visiting tasks from the agenda

2011-12-31 Thread Carsten Dominik
Applied, thanks.

- Carsten

On 30.12.2011, at 11:49, Bernt Hansen wrote:

 The following short patch series fixes org file restriction
 handling for me.  I'm regularly narrowing to subtrees for a
 project from the agenda and then using the agenda to visit tasks
 in the subtree.  Each time I visit a task, clock in, or
 regenerate the agenda my restriction is removed in the org file.
 The following patch series fixes this behaviour.
 




Re: [O] [PATCH] integration with bbdb 3.0

2011-12-31 Thread Carsten Dominik

On 28.12.2011, at 20:06, Ivan Kanis wrote:

 Hi Bastien,
 
 The following patch fixes linking bbdb 3.0 records. Let me know if the
 patch needs improvement.

The patch looks OK to me.

Have you signed FSF papers?

- Carsten

 
 Take care,
 
 Ivan Kanis
 
 org-bbdb.patch




Re: [O] Possibly Bug in function org-scan-tags

2011-12-31 Thread Carsten Dominik
I have just fixed this issue, in the spirit of Nicks proposal.

Thanks!

- Carsten

On 15.12.2011, at 02:18, bala subramaniyam wrote:

 Hi,
  The variable org-map-continue-from is not reset to nil after 
 the funcall to action in function org-scan-tags.
 
 Heres the patch which works
 
 diff --git a/lisp/org.el b/lisp/org.el
 index 8a1fbd3..54ab5fb 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -12848,7 +12848,8 @@ only lines with a TODO keyword are included in the 
 output.
   (setq org-map-continue-from nil)
   (save-excursion
 (setq rtn1 (funcall action))
 -   (push rtn1 rtn)))
 +   (push rtn1 rtn))
 + (setq org-map-continue-from nil))
  (t (error Invalid action)))
  
 ;; if we are to skip sublevels, jump to end of subtree
 
 To see the error in action assume that we want to archive all the DONE 
 states in the file
 /tmp/test.org which contains the following lines.
 * s1
 ** DONE ss1
 ** NEXT ss2
 
 
 (defun my-org-archive-subtree ()
   (setq org-map-continue-from (point-at-bol))
   (org-archive-subtree))
 
  (org-map-entries 'my-org-archive-subtree /DONE (list /tmp/test.org))
 
 While the org-scan-tags funciton parses the first subheading(**DONE ss1) the 
 match is
 successful and the function my-org-archive-subtree is called which sets the 
 variable
 org-map-continue-from value to *beginning of line* and this variable is not 
 set back to nil after the function call ends, which leads to infinite loop 
 while parsing the subsequent headlines which does not match the DONE 
 state(**NEXT ss2).
 
 Regards,
 Balamayam




Re: [O] feature suggestion: apply datetime prompt magic to selected region

2011-12-31 Thread Bastien
Hi Brian,

Brian van den Broek van...@gmail.com writes:

 I very much appreciate orgmode's ability to parse the content of a
 yank for date and time information while entering a timestamp. I think
 it would be even cooler were orgmode able to parse the content of a
 selected region and extract the same information, replacing the region
 with the timestamp created on the basis of the text in the region.

I'm not sure I understand: right now, when you select a timestamp and
run `C-c .' on it, the selected timestamp is the default prompt.  Is
this what you have in mind?  If not, can you give a clearer example?

Thanks!

-- 
 Bastien



Re: [O] Feature request: Accept org mode dates in the date export field

2011-12-31 Thread Bastien
Hi Thorsten,

Torsten Wagner torsten.wag...@gmail.com writes:

 one should be able to use org-modes date function to enter or modify
 a date for the variable #+DATE:
 At the moment its exported as plain text including the   brackets.
 Keeping the date org-mode friendly and exporting it nicley would be a
 nice little feature.

Good idea.  

You can now use Org timestamps in the #+DATE line, they will be
converted using the new option `org-export-date-timestamp-format'.

Thanks!

-- 
 Bastien



Re: [O] org-contacts and dates before 1970

2011-12-31 Thread Bastien
Hi Christoph,

Christoph LANGE ch.la...@jacobs-university.de writes:

 a late follow-up on the problem that, out of the box, org-contacts's
 BIRTHDAY properties don't work with a 32-bit Emacs on Windows when there
 are dates before 1970 (details quoted below).

I guess this problem is still there -- hopefully Julien will have 
time to take a look at some point!

Thanks,

-- 
 Bastien



Re: [O] exporting customized timestamps

2011-12-31 Thread Bastien
Hi Matt,

Matt Price mopto...@gmail.com writes:

 I'm trying to understand timestamps a bit better.  I'm exporting my
 syllabus to html, using org2blog for my wordpress course site. The
 syllabus includes a timestamp at the beginning of each week of the
 description.  org-time-stamp-custom-formats is set to:

 (%m/%d/%Y . %m/%d/%y %a %H:%M)

 which is sort of the American standard (sidenote: how do I toggle
 between these custom values? I only seem to be able to toggle between
 overlaid and not overlaid).

 In Emacs, when I look at my org file, thetimestamp displays just as I
 want it to.  But on export to HTML, the timestamp returns to the ISO
 format (2011-10-06 Thu).  Is this an inevitable behaviour?  

For now yes -- the custom format in your Emacs buffer is just an
overlay, the real text under this overlay still uses the default 
format.  And the exporter uses this default format.

This is the kind of shortcomings that we hope we can solve with
the new exporter -- but this needs a lots of rewriting.

HTH,

-- 
 Bastien



Re: [O] changing Agenda View (unsaved) title for agenda export to pdf

2011-12-31 Thread Bastien
Hi Konstantin,

Konstantin Ziegler konstantin.zieg...@gmail.com writes:

 I've configured several agenda views and use their pdf-exports quite
 frequently.
 Is there a way to substitute the generic header Agenda View (unsaved)
 with something specific to the agenda view?  Maybe the description that
 is used in the agenda buffer?  Or maybe some option in the definition of
 that particular agenda?

You can now use this:

(setq org-agenda-exporter-settings
 '((org-agenda-write-buffer-name Your Agenda View Name)))

Also check `org-agenda-before-write-hook', which might help.

Thanks,

-- 
 Bastien



Re: [O] Clock time implied as 00:00

2011-12-31 Thread Bastien
Hi François and Nick,

I have tested this small patch, implementing Nick's solution.
No breakage on my side -- but let's be careful here.

Thanks for testing,

From 6b2fbed71355f5b37b723e15e7aad20fb4ce3f07 Mon Sep 17 00:00:00 2001
From: Bastien Guerry b...@altern.org
Date: Sat, 31 Dec 2011 09:39:58 +0100
Subject: [PATCH] Be a bit more flexible when matching time values in
 timestamps.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* org.el (org-ts-regexp0, org-ts-regexp1): Also match a time
value with only one digit for the hours.

Thanks to François Pinard for mentioning this.
---
 lisp/org.el |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 61ca072..882e349 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5214,11 +5214,11 @@ This should be called after the variable `org-link-types' has changed.
   Regular expression for fast time stamp matching.)
 (defconst org-ts-regexp-both [[]\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} ?[^]\r\n]*?\\)[]]
   Regular expression for fast time stamp matching.)
-(defconst org-ts-regexp0 \\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) *\\([^]+0-9\r\n -]*\\)\\( \\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)
+(defconst org-ts-regexp0 \\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) *\\([^]+0-9\r\n -]*\\)\\( \\([0-9]\\{1,2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)
   Regular expression matching time strings for analysis.
 This one does not require the space after the date, so it can be used
 on a string that terminates immediately after the date.)
-(defconst org-ts-regexp1 \\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) *\\([^]+0-9\r\n -]*\\)\\( \\([0-9]\\{2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)
+(defconst org-ts-regexp1 \\(\\([0-9]\\{4\\}\\)-\\([0-9]\\{2\\}\\)-\\([0-9]\\{2\\}\\) *\\([^]+0-9\r\n -]*\\)\\( \\([0-9]\\{1,2\\}\\):\\([0-9]\\{2\\}\\)\\)?\\)
   Regular expression matching time strings for analysis.)
 (defconst org-ts-regexp2 (concat  org-ts-regexp1 [^\n]\\{0,16\\})
   Regular expression matching time stamps, with groups.)
-- 
1.7.8.1


-- 
 Bastien


Re: [O] [minor bug] Non-character input-event

2011-12-31 Thread Bastien
Hi Sébastien,

Sebastien Vauban wxhgmqzgw...@spammotel.com writes:

 When in agend buffer, pressing / for the filters, and answering with an arrow
 key generates the following error:

Fixed, thanks.

-- 
 Bastien



Re: [O] Bug: `org-show-context' doc string [7.5]

2011-12-31 Thread Bastien
Hi Michael,

Michael Heerdegen michael_heerde...@web.de writes:

 in my version of org-mode, the doc string of `org-show-context' forgets
 to mention `org-show-entry-below', a variable that also influences the
 behavior of this function.

Fixed, thanks.

-- 
 Bastien



Re: [O] Generating burndown charts using org mode

2011-12-31 Thread OSiUX
El sáb, 31 dic 2011, Marco Craveiro decía:

 Hi Org-Moders,

 I've been using Org-Mode quite a bit, but I'm afraid I'm not an advanced
 user. I'm trying to generate burndown charts [1] which basically follow
 coding progress over a bounded period of time (an iteration).

 I started by generating a file for each iteration:

 snippet_of_org_file
 * Tasks in iteration
 - [[file:list_1.org]]
 - [[file:list_2.org]]

 #+tblname: test_chart
 | Day | Expected | Actual |
 |-+--+|
 |   0 |4 |  4 |
 |   1 |3 |  4 |
 |   2 |2 |  1 |
 |   3 |1 |  0 |
 |   4 |0 |  0 |
 /snippet_of_org_file

Marco, try this:

snippet_of_org_file
*** burndown

#+srcname: burndown
#+begin_src sh :session
cd ~/org
MONTH=$(date +%m)
DAYS_DONE=$(egrep -A1 \* DONE gca.org | egrep -o CLOSED: 
\[[0-9]{4}-$MONTH-[0-9]{2} | cut -c 10- | sort -u)
echo day expected actual
for DAY in $DAYS_DONE
do
  NEXT_BY_DAY=$(egrep -A1 \* NEXT gca.org | egrep -o SCHEDULED: $DAY | 
wc -l)
  DONE_BY_DAY=$(egrep -A1 \* DONE gca.org | egrep -o CLOSED: \[$DAY | 
wc -l)
  echo $DAY $NEXT_BY_DAY $DONE_BY_DAY
done
#+end_src

#+results: burndown
|day | expected | actual |
| 2011-12-01 |5 |  1 |
| 2011-12-05 |3 |  1 |
| 2011-12-12 |4 |  2 |
| 2011-12-13 |2 |  1 |
| 2011-12-14 |2 |  2 |
| 2011-12-15 |2 |  2 |
| 2011-12-16 |2 |  1 |
| 2011-12-19 |1 |  2 |
| 2011-12-20 |0 |  4 |
| 2011-12-21 |0 |  6 |
| 2011-12-22 |0 |  1 |
| 2011-12-26 |0 |  2 |
| 2011-12-27 |0 |  3 |

#+begin_src gnuplot :var data=burndown :file burdown.png
reset
set xdata time
set timefmt %Y-%m-%d
set format x %d
set title burndown
set xlabel days
set ylabel taks
set xtics nomirror
set ytics nomirror
plot data using 1:2 with lines lw 2 lt 3 title col(2), \
 data using 1:3 with lines lw 2 lt 1 title col(3)
#+end_src

#+results:
file:burdown.png
/snippet_of_org_file

--

::

  Osiris Alejandro Gomez (OSiUX) os...@osiux.com.ar
  AA70 93FD B6EF EB42 6920 7530 A799 B226 74C8 A3FE
  http://osiux.com http://wiki.buenosaireslibre.org


signature.asc
Description: Digital signature


Re: [O] Honour existing restrictions if possible when visiting tasks from the agenda

2011-12-31 Thread Bernt Hansen
Hi Carsten,

I think this patch series breaks agenda clock reports.  The total time
shown on the report only includes the data in the org file restrictions.

I don't have time to look at where to fix this yet so if it isn't easy
to fix maybe these patches should be temporarily reverted.

I'd been running with the patches for a week before I posted them but
didn't get to my weekly clock report review until today.

Regards,
Bernt


Carsten Dominik carsten.domi...@gmail.com writes:

 Applied, thanks.

 - Carsten

 On 30.12.2011, at 11:49, Bernt Hansen wrote:

 The following short patch series fixes org file restriction
 handling for me.  I'm regularly narrowing to subtrees for a
 project from the agenda and then using the agenda to visit tasks
 in the subtree.  Each time I visit a task, clock in, or
 regenerate the agenda my restriction is removed in the org file.
 The following patch series fixes this behaviour.
 



Re: [O] [PATCH] integration with bbdb 3.0

2011-12-31 Thread Ivan Kanis
Carsten Dominik carsten.domi...@gmail.com wrote:

 On 28.12.2011, at 20:06, Ivan Kanis wrote:

 Hi Bastien,
 
 The following patch fixes linking bbdb 3.0 records. Let me know if the
 patch needs improvement.

 Have you signed FSF papers?


Hi Carsten,

Yes I have.
-- 
Ivan Kanis
http://kanis.fr

I shall never make a new friend in my life, though perhaps a few
after I die.
-- Oscar Wilde



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Daniel E . Doherty
Eric,

I've seen this too.  The problem is that the site-file version of org is
loaded by starter-kit, then you load a local version in your init file.
It looks like the local version is at the front of your load-path, but
that's only after your init file runs.

One soultion proposed elsewhere on this list is to do
(package-initialize) in the primary init.el before starter-kit gets
going.  That way, it picks up the elpa version of org from the git-go.


At Fri, 30 Dec 2011 12:05:55 +0100,
Eric Belpaire eric.belpa...@orange.fr wrote:
 
 Hello
 
 I'm trying to fix Lisp error: (error Capture abort: (void-function
 org-pop-to-buffer-same-window)).
 
 I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on
 MARVIN
 started with the Emacs starter kit and using org-20111229.
 
 I've done the following analysis:
 - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el
 - autoload org-compat.el in
 ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work
 - (require 'org-autoloads) -- doesn't work
 - verify load-path -- found ~/.emacs.d/elpa/org-20111229 before
 c:/Usr/emacs/lisp/org
 
 What am I missing?
 Can someone help me?
 
 Thanks,
 Eric
 
 
 



Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Daniel E . Doherty
Eric,

I've seen this too.  The problem is that the site-file version of org is
loaded by starter-kit, then you load a local version in your init file.
It looks like the local version is at the front of your load-path, but
that's only after your init file runs.

One soultion proposed elsewhere on this list is to do
(package-initialize) in the primary init.el before starter-kit gets
going.  That way, it picks up the elpa version of org from the git-go.

At Fri, 30 Dec 2011 12:05:55 +0100,
Eric Belpaire eric.belpa...@orange.fr wrote:
 
 Hello
 
 I'm trying to fix Lisp error: (error Capture abort: (void-function
 org-pop-to-buffer-same-window)).
 
 I'm using GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-08 on
 MARVIN
 started with the Emacs starter kit and using org-20111229.
 
 I've done the following analysis:
 - function org-pop-to-buffer-same-window found in org-20111229/org-compat.el
 - autoload org-compat.el in
 ~/.emacs.d/elpa/org-20111229/org-autoloads.el doesn't work
 - (require 'org-autoloads) -- doesn't work
 - verify load-path -- found ~/.emacs.d/elpa/org-20111229 before
 c:/Usr/emacs/lisp/org
 
 What am I missing?
 Can someone help me?
 
 Thanks,
 Eric
 
 



Re: [O] book: checklist Manifesto: How To Get It Right

2011-12-31 Thread Jude DaShiell
i CAN'T DESCRIBE FORMATTING SINCE i DIDN'T SEE IT AND THAT'S SO MUCH OF 
WHAT A CONCRETE EXAMPLE WOULD CONSIST OF IN THIS CONTEXT. On Sat, 31 Dec 
2011, Bastien wrote:

 Hi Jude,
 
 can you give a concrete example of a simple checklist and a submittal
 checklist?  Those concepts are interesting.  I have no doubt they are
 relevant to some Org configurations, I would just like to figure out
 *how*.
 
 And I have not read the book, thanks for the reference.
 
 


Jude jdashiel-at-shellworld-dot-net
http://www.shellworld.net/~jdashiel/nj.html




Re: [O] [PATCH] integration with bbdb 3.0

2011-12-31 Thread Carsten Dominik
Applied, thanks.

- Carsten

On 28.12.2011, at 20:06, Ivan Kanis wrote:

 Hi Bastien,
 
 The following patch fixes linking bbdb 3.0 records. Let me know if the
 patch needs improvement.
 
 Take care,
 
 Ivan Kanis
 
 org-bbdb.patch




Re: [O] [PATCH] integration with bbdb 3.0

2011-12-31 Thread Bastien
Hi Ivan,

Ivan Kanis ivan.ka...@googlemail.com writes:

 Have you signed FSF papers?

 Hi Carsten,

 Yes I have.

Great -- I added you to the list of contributors on
http://orgmode.org/worg/org-contribute.html

Thanks for this patch!

-- 
 Bastien



[O] Color agenda items

2011-12-31 Thread Maximilian Matthe
Hi all,

I've imported school holidays from .ics into my org-mode setup. They do
show up in the agenda. I would like to have a special color for all
holiday entries in the agenda. Maybe I can add this in the
PROPERTIES-Drawer? 

And another related question: Is it possible to give the start and end
of a date (e.g. holidays) a different color than the intermediate days?

Regards, Max




Re: [O] [BUG] org-agenda-switch-to fails with void function org-pop-to-buffer-same-window

2011-12-31 Thread Nick Dokos
Jeff Horn jrhorn...@gmail.com wrote:

 Manually loading `org-mode/lisp/org-compat.el` loads the missing
 function. Is it weird to have so much functionality depend on a
 compatibility library? (I don't do software for a living, this is an
 innocent question.)
 
 Also, does anyone have a clue as to why org-compat.el isn't being
 loaded automatically?
 

This is (most probably) a red herring: the problem is probably a
frankenstein org mode install (bits and pieces loaded from various
places).

Daniel Doherty posted an answer (in another thread - see
http://thread.gmane.org/gmane.emacs.orgmode/50526/focus=50574 for
details). I added that proposed solution to the FAQ on worg but I don't
use starter-kit, so feel free to correct and clarify appropriately. In
particular, if you (Jeff) can verify that it solves your problem, that
would go a long way towards putting this problem to bed - permanently, I
hope.

Thanks,
Nick


 On Fri, Dec 30, 2011 at 16:14, Jeff Horn jrhorn...@gmail.com wrote:
  It looks like git org-mode is at the front of my load-path
  already. I'm assuming that emacs' load-path works similar to a shell
  load-path, with lower-indexed directories being searched (and used)
  before higher-indexed ones.
 
  This bug is really messing with my workflow. Anything else I should
  try?
 
  ,[ load-path ]
  | (~/.emacs.d/elpa/color-theme-6.6.1/themes ~/completion ~/test
  | /Users/jrhorn424/.emacs.d/src
  | /Users/jrhorn424/.emacs.d/src/ado-mode
  | /Users/jrhorn424/.emacs.d/src/deft
  | /Users/jrhorn424/.emacs.d/src/markdown-mode
  | /Users/jrhorn424/.emacs.d/src/org-mode
  | /Users/jrhorn424/.emacs.d/src/w3m
  | /Users/jrhorn424/.emacs.d/src/ado-mode/info
  | /Users/jrhorn424/.emacs.d/src/ado-mode/lisp
  | /Users/jrhorn424/.emacs.d/src/ado-mode/plan for highlighting.oo3
  | /Users/jrhorn424/.emacs.d/src/ado-mode/scripts
  | /Users/jrhorn424/.emacs.d/src/ado-mode/templates
  | /Users/jrhorn424/.emacs.d/src/org-mode/BUGFIXING
  | /Users/jrhorn424/.emacs.d/src/org-mode/EXPERIMENTAL
  | /Users/jrhorn424/.emacs.d/src/org-mode/UTILITIES
  | /Users/jrhorn424/.emacs.d/src/org-mode/contrib
  | /Users/jrhorn424/.emacs.d/src/org-mode/etc
  | /Users/jrhorn424/.emacs.d/src/org-mode/lisp
  | /Users/jrhorn424/.emacs.d/src/org-mode/testing
  `
 
  On Sun, Dec 18, 2011 at 13:55, Jeff Horn jrhorn...@gmail.com wrote:
  I'll have to look into that. I'm using Eric Schulte's starter kit, so
  I doubt initialization is a problem. I haven't changed anything in my
  initialization other than a color theme in quite some time.
 
  On Thu, Dec 15, 2011 at 11:58, Sean O'Halpin sean.ohal...@gmail.com 
  wrote:
  On Thu, Dec 15, 2011 at 1:26 AM, Jeff Horn jrhorn...@gmail.com wrote:
  Recently did a fresh pull, which seems to have broken 
  org-agenda-switch-to.
 
  To reproduce, open an agenda buffer, navigate to a line you want to
  inspect, press [RET]. On my machine, this calls autopair, then falls
  back to org-agenda-switch-to. Autopair doesn't seem to be causing the
  problem, since it persists even if I call =M-x org-agenda-switch-to=
  instead of pressing [RET].
 
  Org-mode version 7.8.02 (release_7.8.02.3.gfb8c)
  GNU Emacs 24.0.90.3 (i386-apple-darwin9.8.0, NS apple-appkit-949.54)
  of 2011-12-14 on braeburn.aquamacs.org - Aquamacs Distribution 3.xdev
 
  Can anyone reproduce?
 
 
  I recently had a similar problem with =org-pop-to-buffer-same-window=
  . It turned out that after switching to using =org-babel-load-file= to
  load my init file, emacs was then using the org-mode installed in
  site-lisp rather than my local git copy.
 
  I fixed this by setting =load-path= to point to my local git copy of
  org-mode before calling =org-babel-load-file=.
 
  HTH.
 
  Regards,
  Sean
 
 
 
  --
  Jeffrey Horn
  http://www.failuretorefrain.com/jeff/
 
 
 
  --
  Jeffrey Horn
  http://www.failuretorefrain.com/jeff/
 
 
 
 -- 
 Jeffrey Horn
 http://www.failuretorefrain.com/jeff/
 



Re: [O] Clock time implied as 00:00

2011-12-31 Thread Bastien
Hi François,

pin...@iro.umontreal.ca (François Pinard) writes:

 This morning, I just noticed this line:

 CLOCK: [2011-12-29 jeu 9:30]--[2011-12-29 jeu 11:44] = 11:44

This should be fixed now, thanks for reporting this.

Best,

-- 
 Bastien



Re: [O] Filter the agenda by category

2011-12-31 Thread Bastien
Hi Vicktor,

Viktor Rosenfeld listuse...@googlemail.com writes:

 is it possible to quickly limit what the agenda is showing to one
 category?  

Yes -- you can now use `' to filter the agenda through the category
from the current line.  Another press to `' will remove the filter.

This filter can be combined with tag filters -- Also check the new
option `org-agenda-category-filter-preset'.

Best,

-- 
 Bastien



[O] org-sparse-tree by dates range (was: [DEV] Package org-find-timestamps on worg)

2011-12-31 Thread Bastien
Hi Marc-Oliver,

thanks to the ideas you mentioned long ago for org-find-timestamps.el,
I implemented a new org-sparse-tree possibility: by date range.

Just try `C-c / D' in an Org file and you'll see it.

Thanks again for this idea!

-- 
 Bastien



[O] Happy new year!

2011-12-31 Thread Bastien
Dear all,

time to wrap-up for today and to celebrate.
This has been a *great* year of development!
May all your TODOs belong to your %s_archive.

Happy new year :)

-- 
 Bastien



[O] Bug: two bugs in org-create-formula-image [7.8.02 (release_7.8.02.96.gd56da)]

2011-12-31 Thread Nick Dokos

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

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

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


There are (at least :-) ) two bugs in org-create-formula-image.

The first has to do with a failure when running emacs in batch mode to
export html where the file includes latex fragments: running
org-create-formula-image fails with (wrong-type-argument
number-or-marker-p unspecified). It was reported by Tom Prince - see
http://thread.gmane.org/gmane.emacs.orgmode/49252 for details. The
underlying reason is that a few variables in the function (the font
height, foreground and background colors) are undefined in batch mode,
whereas they get values from the default face in interactive mode: the
default face does not exist in batch mode.

The second bug has to do with processing latex fragments when minted is
enabled. It was reported by Ista Zahn - see
http://thread.gmane.org/gmane.emacs.orgmode/50533 for details. The
underlying reason is that latex is invoked explicitly (with
call-process) from org-create-formula-image, but without the -shell-escape
argument which is needed for minted: without it the .pyg file that is
necessary for minted processing cannot be written.

Emacs  : GNU Emacs 24.0.90.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0)
 of 2011-10-27 ...
Package: Org-mode version 7.8.02 (release_7.8.02.96.gd56da)

current state:
==
(setq
 org-hide-leading-stars t
 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-export-latex-list-parameters '(:cbon 
[{\\parbox[c]{\\wd0}{\\large$\\boxtimes$}}] :cboff
[{\\parbox[c]{\\wd0}{\\large$\\square$}}] 
:cbtrans

[{\\parbox[c]{\\wd0}{\\large$\\boxminus$}}])
 outline-minor-mode-hook '((lambda nil
(define-key outline-minor-mode-map [(control tab)] 
(quote org-cycle))
(define-key outline-minor-mode-map [(shift tab)] 
(quote org-global-cycle))
)
   )
 org-calc-default-modes '(calc-internal-prec 12 calc-float-format (float 8) 
calc-angle-mode deg
  calc-prefer-frac nil calc-symbolic-mode nil 
calc-date-format
  ( - MM - DD   Www (  hh : mm)) 
calc-display-working-message t
  calc-hms-format %s:%s:%s)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-diary-file ~/lib/org/appts.org
 org-reverse-note-order t
 org-google-weather-use-google-icons t
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-start-on-weekday nil
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-format-latex-options '(:foreground default :background default :scale 1.4 
:html-foreground
Black :html-background Transparent :html-scale 
1.0 :matchers
(begin $1 $ $$ \\( \\[))
 org-export-docbook-xslt-proc-command xsltproc --output %o %s %i
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-docbook-xslt-stylesheet 
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
 org-export-docbook-xsl-fo-proc-command fop %i %o
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
   org-beamer-auto-fragile-frames
   org-beamer-place-default-actions-for-lists)
 org-file-apps '((py . emacs) (auto-mode . emacs) (\\.mm\\' . default)
 (\\.x?html?\\' . default) (\\.pdf\\' . default))
 org-special-ctrl-a/e t
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-skip-scheduled-if-done t
 org-agenda-custom-commands '((x Stuck Projects tags-todo 
LEVEL=2-REFILE/!-DONE-CANCELLED
   ((org-agenda-skip-function (quote 
bh/skip-non-stuck-projects
  )
 org-return-follows-link t
 org-default-notes-file ~/lib/org/notes.org
 org-drawers '(SETUP PROPERTIES CLOCK LOGBOOK RESULTS)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-from-is-user-regexp \\Nick Dokos\\
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-tags-column -120
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 ...
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-confirm-babel-evaluate nil
 org-publish-project-alist '(...
 )
 org-export-latex-classes '((myarticle 

Re: [O] Happy new year!

2011-12-31 Thread Andreas Röhler

Am 31.12.2011 18:25, schrieb Bastien:

Dear all,

time to wrap-up for today and to celebrate.
This has been a *great* year of development!
May all your TODOs belong to your %s_archive.

Happy new year :)



hmm, understand that chronology is of some importance to org-mode

beside of that it's not the real thing,
never understood what's to celebrate that day

happy switch your calendar tables anyway :)

Andreas



Re: [O] LaTeX export

2011-12-31 Thread York Zhao
 I would use code blocks tangling

 ,
 | #+TITLE: Test
 |
 | * Test headline
 |
 | #+begin_src tex :tangle yes
 | \documentclass{article}
 | \begin{document}
 | ...
 | \end{document}
 | #+end_src
 `

 `C-c C-v t' on the block will create a .tex file with the exact content
 of the #+begin_src block.

 HTH,

 --
  Bastien

Hi Bastien,

Thanks a lot, this really works, and it sounds like literate programming. Can
you suggest some quick reading on using org-mode for literate programming?

Happy new year,

York



Re: [O] ca47d10e commit broke the build

2011-12-31 Thread Martyn Jago
Hi Jambunathan

Jambunathan K kjambunat...@gmail.com writes:

 Martyn

 The probelmatic commit could actually be this:
   commit - 07f006e4fd9a7b66643cd7b404c8994665ba8300
 which touches the Makefile.

The problem was indeed related to the Makefile - the thing that changed
(I'm guessing) is the use of the EMACS variable during `make install'
(re-compilation of org-odt)?

The solution was to change the test-build scripts from:

--8---cut here---start-8---
make clean  make EMACS=/Applications/Emacs-2x.app/Contents/MacOS/Emacs 
make install  make doc  /Applications/Emacs-2x.app/Contents/MacOS/Emacs -Q 
-batch -l
/Users/martyn/.cruise/projects/Org-mode_on_Emacs_24/work/testing/org-test.el
-eval (setq org-confirm-babel-evaluate nil) -f
org-test-run-batch-tests
--8---cut here---end---8---

...to:

--8---cut here---start-8---
make clean  make EMACS=/Applications/Emacs-2x.app/Contents/MacOS/Emacs 
make install EMACS=/Applications/Emacs-2x.app/Contents/MacOS/Emacs  make
doc EMACS=/Applications/Emacs-2x.app/Contents/MacOS/Emacs 
/Applications/Emacs-2x.app/Contents/MacOS/Emacs -Q -batch -l
/Users/martyn/.cruise/projects/Org-mode_on_Emacs_24/work/testing/org-test.el
-eval (setq org-confirm-babel-evaluate nil) -f
org-test-run-batch-tests
--8---cut here---end---8---

...since the compile version was detected to be incompatible (EMACS was
defaulting to v22.1.1 during make install).

This fixes my v24 and v23 test builds.

There is a broken test under v22 which I will look at in the near
future.

Best, Martyn

[...]





Re: [O] Happy new year!

2011-12-31 Thread Martyn Jago
Bastien b...@altern.org writes:

 Dear all,

 time to wrap-up for today and to celebrate.
 This has been a *great* year of development!
 May all your TODOs belong to your %s_archive.

 Happy new year :)

Indeed! 

Bonne année et bonne santé!

It's time to get the glad rags on and C-c C-c :)




Re: [O] error Capture abort: (void-function org-pop-to-buffer-same-window)

2011-12-31 Thread Eric Belpaire
Daniel, 


One soultion proposed elsewhere on this list is to do
(package-initialize) in the primary init.el before starter-kit gets
going.  That way, it picks up the elpa version of org from the git-go.


I confirm that this solution fixed my issue. 

Thanks, 
Eric 



Re: [O] Happy new year!

2011-12-31 Thread Ian Barton

On 31/12/11 18:55, Martyn Jago wrote:

Bastienb...@altern.org  writes:


Dear all,

time to wrap-up for today and to celebrate.
This has been a *great* year of development!
May all your TODOs belong to your %s_archive.

Happy new year :)


Indeed!

Bonne année et bonne santé!

It's time to get the glad rags on and C-c C-c :)


Indeed, thanks to everyone involved in org development and all the posts 
on this list, which is probably the most helpful one on the Internet.


Don't forget that 2012 is a leap year, so some people will be 
celebrating very infrequent birthdays in February!


Ian.



Re: [O] [PATCH] Fix regexps in org-clock.el

2011-12-31 Thread Joe Vornehm Jr.
Thanks -- understood.  I checked org-clock.el for uses of org-clock-string
in regexps but failed to check other files.

Joe V.

On Sat, Dec 31, 2011 at 3:06 AM, Carsten Dominik
carsten.domi...@gmail.comwrote:

 Applied, thanks.

 But I have removed the regexp-quote again, because org-clock-string
 is used in many more regexps, and a more complete patch would be
 needed to make this change meaningful.

 - Carsten

 On 31.12.2011, at 08:34, Joe Vornehm Jr. wrote:

  I have been seeing persistent errors of Cannot restart clock because
 task does not contain unfinished clock when auto-resuming a saved
 (persistent) clock.  I believe I've tracked the error down to an extraneous
 space in a regexp (^[ \t]*  when it should be ^[ \t]*).
 
  This patch fixes the issue for me (in `org-clock-in'), and it makes the
 same change in `org-clock-find-position'.  I've tested this briefly and it
 works for me; nothing about clocking-in behavior seems to break, and
 persistent clocks work now.
 
  I've also wrapped `regexp-quote' around instances where org-clock-string
 is used to build a regexp, in case someone puts funny characters in their
 org-clock-string.
 
  Hopefully, the patch is attached correctly and Thunderbird didn't mangle
 it.
 
  Cheers!
  Joe V.
 
 
  0001-Fix-regexps-in-org-clock.el.patch




Re: [O] LaTeX export

2011-12-31 Thread Steve Hafner

 Hi Bastien,

 Thanks a lot, this really works, and it sounds like literate programming. Can
 you suggest some quick reading on using org-mode for literate programming?

 Happy new year,

 York


Read Chapter 14 of the Org-mode manual. And go to
http://orgmode.org/worg/ and search with the keyword literate.



[O] [PATCH] Org manual on :noweb-ref property

2011-12-31 Thread Tomas Grigera
Hi

After Eric's fix a couple of days ago, setting :noweb-ref through a
property now works as explained in the manual. However, the example
given will only work if one turns on property inheritance. I think it
is worthwhile noting this in the manual. The patch here adds that
comment.

First time I send a patch, sorry if I screwd up.

Happy new year

Tomas
diff --git a/doc/org.texi b/doc/org.texi
index 3f02efb..618b287 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -13627,7 +13627,9 @@ concatenated together to form the replacement text.
 By setting this header argument at the sub-tree or file level, simple code
 block concatenation may be achieved.  For example, when tangling the
 following Org mode file, the bodies of code blocks will be concatenated into
-the resulting pure code file.
+the resulting pure code file (note that this example needs that property
+inheritance be turned on for the @code{noweb-ref} property, see
+@ref{Property inheritance}).
 
 @example
  #+BEGIN_SRC sh :tangle yes :noweb yes :shebang #!/bin/sh


[O] calendar problem with schedule

2011-12-31 Thread Richard Riley

Ive not been using org mode for a while, just came back to and using
latest 24 snapshot from git I get

,
| Debugger entered--Lisp error: (void-function window-combination-p)
|   window-combination-p(#window 8 nil)
|   calendar-generate-window(1 2012)
|   calendar-basic-setup(nil)
|   calendar()
|   org-read-date(nil to-time nil nil nil nil)
|   byte-code(\204   \306\203\212\307\310!\210\212\311 \210`)\312  
\313=\203!\202\\f\n\310#\203=\314\315!\316\317\320!\.\205;\321!/)
\203R\206Q\322\323\324\323\211./0\203}   \325\235\203}   
\313=\203h1\202j2\326\261\210\3273\323\211\2114C\210\323\212\214\323\211\211\211\2115678\307\310!\210\3309\331P!\210\315\225b\210i8\332\225b\210m\203\255\333c\210\202\260\315u\210

\204\302\330\334:P!\204\302\335\336\323\\210\3309!\204\345\330\337;\340Q!\203\345\314\315!\232\204\345\332\224\332\225}\210\202\372\341\333!\210\342u\210``}\210=\203\372\3438!\210
   
B77\203L7\211A7@\2116\313=\203\312\323\310#\204;6\344=\203+\312\f\323\310#\204;6\345=\203\312?\323\310#\203\346\347!\210\330\350!\203\346\347!\210\202\330\351!\203V\346\347!\210=\203dn\203d\3438!\210
   \203\322n\204x`Sf\352=\204x\326\202y\347\313=\203\2041\202\227 
\344=\203\2172\202\227 \345=\205\227@\326\261\210\3273\206\252   
\345=\205\252A 
\345=\323\2114Cn\204\314`Sf\352=\204\314\323f\352=\204\314\326\202\315\347c\210\315\210eb\210~\210\330\353!\203\353`Sf\354\232\203\353`S\355
 |\210.\207 [time what end org-scheduled-time-regexp org-deadline-time-regexp 
ts (scheduled deadline) org-back-to-heading t outline-next-heading 
re-search-forward scheduled match-string 1 apply encode-time 
org-parse-time-string org-get-compact-tod org-read-date nil to-time (scheduled 
deadline)   org-insert-time-stamp looking-at \\( *\\)[^\n]* 0 \n [   
  ]* throw exit [^\n]*? [^\n]* insert-before-markers -1 
org-indent-to-column deadline closed replace-match  --+[^]+ ^[   
]+ 32 [   ]*\n 10 point-at-eol default-time default-input 
org-insert-labeled-timestamps-at-point org-scheduled-string ...] 8)
|   org-add-planning-info(scheduled nil closed)
|   org-schedule(nil)
|   call-interactively(org-schedule nil nil)
`

when pressing C-c C-s to schedule an item.

Whats changed or what have I configured wrong?




Re: [O] calendar problem with schedule

2011-12-31 Thread Nick Dokos
Richard Riley rile...@gmail.com wrote:

 
 Ive not been using org mode for a while, just came back to and using
 latest 24 snapshot from git I get
 
 ,
 | Debugger entered--Lisp error: (void-function window-combination-p)
 |   window-combination-p(#window 8 nil)
 |   calendar-generate-window(1 2012)
 |   calendar-basic-setup(nil)
 |   calendar()

You likely have a mixture of old and new files (what I call a
frankenstein install): calendar-generate-window calls
window-combined-p in the current version, and there is no
window-combination-p function, which leads me to believe that you have
old calendar code.

I recommend a thorough cleaning, rebuilding and reinstalling of
emacs. You might want to try a restart of emacs first just to see if it
works, but I wouldn't hold my breath.

Nick

PS. Happy New Year!

 |   org-read-date(nil to-time nil nil nil nil)
 |   byte-code(\204 \306\203\212\307\310!\210\212\311 \210`)\312  \313=
 =3D\203!=0B\202\\f\n\310#\203=3D\314\315!\316\317\320!\.\205;\321!/)
 \203=
 R\206Q\322\323\324\323\211./=100\203}   \325\235\203}   
 \313=3D\203h=0E1\202j=
 =0E2\326\261\210\3273\323\211\2114C\210\323\212\214\323\211\211\211\2115=
 =1E678\307\310!\210\3309\331P!\210\315\225b\210i8\332\225b\210m\203\255\333=
 c\210\202\260\315u\210
 \204\302\330\334:P!\204\302\335\336\323\\210\3309!\=
 204\345\330\337;\340Q!\203\345\314\315!\232\204\345\332\224\332\225}\210\2=
 02\372\341\333!\210\342u\210``}\210=3D\203\372\3438!\210  
 B77\203L=0E7\211A=
 7@\2116\313=3D\203=01\312=0B\323\310#\204;=0E6\344=3D\203+\312\f\323\310#\2=
 04;=0E6\345=3D\203=01\312?\323\310#\203=01\346\347!\210\330\350!\203=01\346=
 \347!\210\202=01\330\351!\203V\346\347!\210=3D\203dn\203d\3438!\210   \203\32=
 2n\204x`Sf\352=3D\204x\326\202y\347   \313=3D\203\204=0E1\202\227 
 \344=3D\203=
 \217=0E2\202\227  \345=3D\205\227=0E@\326\261\210\3273\206\252   
 \345=3D\205\=
 252=0EA   
 \345=3D\323\2114C=15n\204\314`Sf\352=3D\204\314\323f\352=3D\204\31=
 4\326\202\315\347c\210\315\210eb\210~\210\330\353!\203\353`Sf\354\232\203\=
 353`S\355 |\210.=07\207 [time what end org-scheduled-time-regexp org-deadl=
 ine-time-regexp ts (scheduled deadline) org-back-to-heading t outline-next-=
 heading re-search-forward scheduled match-string 1 apply encode-time org-pa=
 rse-time-string org-get-compact-tod org-read-date nil to-time (scheduled de=
 adline)   org-insert-time-stamp looking-at \\( *\\)[^\n]* 0 \n [   
 ]*=
  throw exit [^\n]*? [^\n]* insert-before-markers -1 org-indent-to-colu=
 mn deadline closed replace-match  --+[^]+ ^[  ]+ 32 [   ]*\n 
 10 p=
 oint-at-eol default-time default-input org-insert-labeled-timestamps-at-poi=
 nt org-scheduled-string ...] 8)
 |   org-add-planning-info(scheduled nil closed)
 |   org-schedule(nil)
 |   call-interactively(org-schedule nil nil)
 `
 
 when pressing C-c C-s to schedule an item.
 
 Whats changed or what have I configured wrong?