Re: [O] would take more than an org-mode strip-down.

2011-09-29 Thread Rustom Mody
Hi James.

If you do not grok text its unlikely you will appreciate a text editor.
emacs is not just a text editor its an exceptionally powerful text editor --
a power which is likely to alienate you even more.
So the best suggestion to someone who wishes to get into orgmode but finds
text (and text editors) unpleasant is to give up on orgmode, just dig into
emacs' simpler uses for a while and when a little more comfortable (with
emacs) try org again. Hopefully then your questions will be more focused to
this list and the answers will be more useful to you.

That said, there is some merit in (some of) what you say.
org is so many different things at the same time that for a noob to find
one's way through the documentation to make his usecase work with minimum
pain seems to be unnecessarily hard.


The beginner's customization guide:
http://orgmode.org/worg/org-configs/org-customization-guide.html
is of course a starting point.

But I wonder if it would be possible to structure it into something like
this outline so that different beginners could start at different places?

* Brainstorming-n-outlining
  TAB and the basic structure navigation and editing features
* Exporting and Publishing
*** html export
*** Odt export
*** Web publishing
*** Latex publishing
*** Presentations
* Lightweight options
  http://orgmode.org/worg/org-configs/org-customization-guide.html
* Beamer
* Babel
*** For programming
*** For teaching programming
*** For doing science (R)
*** For scientific publishing (R+Latex)
* Time/project mgmt (GTD)
*** Agenda
*** Time tracking
*** capture-archive
*** Journalling
*** org-habit
* Tables and spreadsheets
* Integration with other emacs uses
*** gnus
*** bbdb/ org-contacts
*** firefox (org-protocol)
*** graphics (R, ditaa...)


Re: [O] would take more than an org-mode strip-down.

2011-09-29 Thread Rustom Mody
On Thu, Sep 29, 2011 at 1:16 PM, Rustom Mody rustompm...@gmail.com wrote:

 Hi James.
 *** Presentations
 * Lightweight options
   http://orgmode.org/worg/org-configs/org-customization-guide.html


I meant this link:
http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html


Re: [O] would take more than an org-mode strip-down.

2011-09-29 Thread Rainer M Krug
On Thu, Sep 29, 2011 at 9:46 AM, Rustom Mody rustompm...@gmail.com wrote:

 Hi James.

 If you do not grok text its unlikely you will appreciate a text editor.
 emacs is not just a text editor its an exceptionally powerful text editor
 -- a power which is likely to alienate you even more.
 So the best suggestion to someone who wishes to get into orgmode but finds
 text (and text editors) unpleasant is to give up on orgmode, just dig into
 emacs' simpler uses for a while and when a little more comfortable (with
 emacs) try org again. Hopefully then your questions will be more focused to
 this list and the answers will be more useful to you.

 That said, there is some merit in (some of) what you say.
 org is so many different things at the same time that for a noob to find
 one's way through the documentation to make his usecase work with minimum
 pain seems to be unnecessarily hard.


 The beginner's customization guide:
 http://orgmode.org/worg/org-configs/org-customization-guide.html
 is of course a starting point.

 But I wonder if it would be possible to structure it into something like
 this outline so that different beginners could start at different places?

 * Brainstorming-n-outlining
   TAB and the basic structure navigation and editing features
 * Exporting and Publishing
 *** html export
 *** Odt export
 *** Web publishing
 *** Latex publishing
 *** Presentations
 * Lightweight options
   http://orgmode.org/worg/org-configs/org-customization-guide.html
 * Beamer
 * Babel
 *** For programming
 *** For teaching programming
 *** For doing science (R)
 *** For scientific publishing (R+Latex)
 * Time/project mgmt (GTD)
 *** Agenda
 *** Time tracking
 *** capture-archive
 *** Journalling
 *** org-habit
 * Tables and spreadsheets
 * Integration with other emacs uses
 *** gnus
 *** bbdb/ org-contacts
 *** firefox (org-protocol)
 *** graphics (R, ditaa...)


I would actually suggest to have a general introduction (what is org, what
can it do, what are the principles of org) and then go into different usage
scenarios and how to fulfill certain tasks. For example, I am using org-mode
exclusively for literate programming and some document writing, but not for
task management, calendar, email, etc. So at the beginning, I was really
confused by the whole agenda and publishing stuff, until I realized, that I
don't need it at all for what I am doing.

And after looking at your suggested outline, it is going into that
direction, but I would put e.g. Exporting and Publishing after the
different usage scenarios. so:

* Basic org
** what is it and what is it not
** what can it do
** principles and basics of org
*** org capture
* Usage scenarios
** Time Management
*** calendar
*** ...
** spreadsheets
*** ...
** task manager
** literate programming
*** general principles
*** examples for different programming languages
 R
 sh
 ...

I like the headings org for doing ..., but one has to be careful, that
they do not end uop in repeating to many things - so subheadings as links to
the relevant sections above would be quite useful.

Cheers,

Rainer


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

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax (F):   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug


[O] [patch] Add source subtree which will be refiled

2011-09-29 Thread Sebastien Vauban
Hello,

I found it difficult, sometimes, to remember which subtree we're gonna refile.
When TAB'ing for multiple targets, you loose your source buffer, and can
easily forget which exact subtree you had selected.

Here a patch to add the name of the subtree we're operating on.

Best regards,
  Seb

-- 
Sebastien Vauban
From 42480fde9ea4f8e54db085dd7d34d9101deeabfe Mon Sep 17 00:00:00 2001
From: Sebastien Vauban s...@mygooglest.com
Date: Thu, 29 Sep 2011 11:12:07 +0200
Subject: [PATCH] Add heading string to refile message.

---
 lisp/org.el |   24 +---
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 5961fde..b6a3a9b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10470,14 +10470,23 @@ prefix argument (`C-u C-u C-u C-c C-w').
    (marker-position org-clock-hd-marker)))
 		  (setq goto nil)))
 	   (setq it (or rfloc
-			(save-excursion
-			  (unless goto (org-back-to-heading t))
-			  (org-refile-get-location
-			   (cond (goto Goto)
- (regionp Refile region to)
- (t Refile subtree to)) default-buffer
-			   org-refile-allow-creating-parent-nodes)
+			(let ((heading-string nil)
+  (eoh nil))
+			  (save-excursion
+(unless goto
+  (org-back-to-heading t)
+  (setq eoh (save-excursion
+	  (outline-end-of-heading) (point)))
+  (setq heading-string
+	(buffer-substring-no-properties
+	 (point) eoh)))
+(org-refile-get-location
+ (cond (goto Goto)
+   (regionp Refile region to)
+   (t (concat Refile subtree \
+		  heading-string \ to)))
+ default-buffer
+ org-refile-allow-creating-parent-nodes))
 	  (setq file (nth 1 it)
 		re (nth 2 it)
 		pos (nth 3 it))
-- 
1.7.5.1



[O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Tassilo Horn
Hi all,

org-footnote-renumber-fn:N invalidates footnotes that appear as the
first thing on a line.  Here's a test file including the recipe.

--8---cut here---start-8---
* Bla

  This is a line in which the following footnote that is inserted exactly
  [fn:1] is the first thing in that line.  And now invoke
  org-footnote-renumber-fn:N and see it breaking.

* Footnotes

[fn:1] Test
--8---cut here---end---8---

Note, that in larger org files, it's likely that you don't even notice
that the footnotes break.

Once I added a patch on patchwork that fixed this issue, and that's
shown as accepted.

  http://patchwork.newartisans.com/patch/705/

I think, I've marked it as deferred or so myself because I've thought
the issue was fixed in the meantime, but that doesn't seem to be true.

Here's an updated patch.
---
 lisp/org-footnote.el |   11 ---
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index cce0921..931f7dd 100644
--- a/lisp/org-footnote.el
+++ b/lisp/org-footnote.el
@@ -893,16 +893,13 @@ If LABEL is non-nil, delete that footnote instead.
(goto-char (point-min))
(while (re-search-forward \\[fn:\\([0-9]+\\)[]:] nil t)
  (setq i (string-to-number (match-string 1)))
- (when (and (string-match \\S- (buffer-substring
-  (point-at-bol) (match-beginning 0)))
-(not (assq i map)))
+ (when (not (assq i map))
(push (cons i (number-to-string (incf n))) map)))
(goto-char (point-min))
(while (re-search-forward \\(\\[fn:\\)\\([0-9]+\\)\\([]:]\\) nil t)
- (replace-match (concat \\1
-(cdr (assq (string-to-number (match-string 2))
-   map))
-\\3)))
+ (setq i (cdr (assq (string-to-number (match-string 2)) map)))
+ (assert (progn i) t Footnote has no number. Better undo 
renumbering!)
+ (replace-match (concat \\1 i \\3)))
 
 (defun org-footnote-auto-adjust-maybe ()
   Renumber and/or sort footnotes according to user settings.
-- 
1.7.6.1




Re: [O] Bug: org-refile-targets doesn't say whether it's AND or OR [7.7 (release_7.7.351.gb8b5)]

2011-09-29 Thread Dave Abrahams

Beautiful

on Wed Sep 28 2011, Nick Dokos nicholas.dokos-AT-hp.com wrote:

 Dave Abrahams d...@boostpro.com wrote:

 I would change the doc for org-refile-targets to say that the resulting
 list of targets is the union of all the targets matched by each cons
 cell.  I think you could take that pretty much verbatim.
 

 How's this?

 Nick

 ---
 From f853b04fb474493b3b7b8857794c9f120c5f7822 Mon Sep 17 00:00:00 2001
 From: Nick Dokos n...@dokosmarshall.org
 Date: Wed, 28 Sep 2011 23:49:13 -0400
 Subject: [PATCH] Amplify the doc for org-refile-targets

 * lisp/org.el: (org-refile-targets) Elaborated the documentation of
the variable as suggested by Dave Abrahams.

 TINYCHANGE
 ---
  lisp/org.el |6 +-
  1 files changed, 5 insertions(+), 1 deletions(-)

 diff --git a/lisp/org.el b/lisp/org.el
 index 945d759..68c6912 100644
 --- a/lisp/org.el
 +++ b/lisp/org.el
 @@ -1864,7 +1864,7 @@ (defcustom org-log-refile nil

  (defcustom org-refile-targets nil
Targets for refiling entries with \\[org-refile].
 -This is list of cons cells.  Each cell contains:
 +This is a list of cons cells.  Each cell contains:
  - a specification of the files to be considered, either a list of files,
or a symbol whose function or variable value will be used to retrieve
a file name or a list of file names.  If you use `org-agenda-files' for
 @@ -1886,6 +1886,10 @@ (defcustom org-refile-targets nil
  Note that, when `org-odd-levels-only' is set, level corresponds to
  order in hierarchy, not to the number of stars.

 +Each element of this list generates a set of possible targets.
 +The union of these sets is presented (with completion) to
 +the user by `org-refile'.
 +
  You can set the variable `org-refile-target-verify-function' to a function
  to verify each headline found by the simple criteria above.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



Re: [O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Nicolas Goaziou
Hello,

Tassilo Horn tass...@member.fsf.org writes:

 org-footnote-renumber-fn:N invalidates footnotes that appear as the
 first thing on a line.  Here's a test file including the recipe.

 * Bla

   This is a line in which the following footnote that is inserted exactly
   [fn:1] is the first thing in that line.  And now invoke
   org-footnote-renumber-fn:N and see it breaking.

 * Footnotes

 [fn:1] Test

 Note, that in larger org files, it's likely that you don't even notice
 that the footnotes break.

It looks like the original function isn't right in more than one way (it
doesn't even make sure the matched string is really a footnote). But
that's another topic.

About your patch, I have but one question: I don't get a situation in
which the assert would be triggered, may you give me such an example?

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Tassilo Horn
Nicolas Goaziou n.goaz...@gmail.com writes:

 It looks like the original function isn't right in more than one way
 (it doesn't even make sure the matched string is really a
 footnote). But that's another topic.

Yes, indeed.

 About your patch, I have but one question: I don't get a situation in
 which the assert would be triggered, may you give me such an example?

I don't either, and that's a good thing.  I added that just as some
extra paranoia so that you get an error if a footnote gets broken.

Bye,
Tassilo



[O] small docstring typo in org-clone-subtree-with-time-shift

2011-09-29 Thread Brian van den Broek
Hi all,

First, I've not been active on the list for some lengthy time. When
last I was reporting small typos in the manual, Cartsen was still the
chief maintainer and I just sent them to him directly. Please advise
as to where such trivial doc bugs are best noted.

Second, the docstring for org-clone-subtree-with-time-shift contains
the phrase `I this way you can spell out a number of instances of a
repeating task,'. Clearly, `I' ought be `In'.

I suspect that the optimal way is to generate a patch against the
documentation. If that's right and someone would point me to what I'd
need to read to learn how to do so (I've never produced a patch
before), I'd be happy to learn and do it that way henceforward.

Thanks and best,

Brian vdB



Re: [O] org footnote bug?

2011-09-29 Thread henry atting
Nicolas Goaziou n.goaz...@gmail.com writes:

 henry atting nsmp...@online.de writes:

 Tag for non orgmode files is:

 (setq org-footnote-tag-for-non-org-mode-files ___)

 Well, I open a file, type some text and then add a footnote with
 org-footnote-action which is bound to C-cf:

 -
 Some Text, then adding a footnote [1] then adding a second footnote [2] and
 after a while a third footnote [3]

 [1] this footnote appears above the footnote tag

 ___

 [2] this footnote appears beneath the footnote tag

 [3] from now on all footnotes appear beneath the footnote tag
 --

 This is reproducible apparently with every file type except org files
 or when writing mail within gnus

 This should be fixed now in master. Thank you for reporting this.
 [...]

Thanks. Two things still differ from the stable version though:

1. When the first footnote is created the tag remains invisible:

---
Text... then I create a first footnote [1]

[1] which appears without tag
---

With the second footnote the tag appears, both footnotes underneath:


Text... then I create a first footnote [1] ... then a second footnote [2]

Footnotes:

[1] which appears without tag

[2] now the tag appears, with both footnotes underneath
--

2. When going back to the footnote marker with org-footnote-action the
cursor stays on the left side of the marker. 

henry

-- 
http://literaturlatenight.de



[O] Surprising behaviour with agenda file

2011-09-29 Thread Andreas Amann
Hi list, 

I encounter the following surprising situation when using Org Agenda.

Suppose you have an agenda file which looks like this:
 test.org --
* bar
2011-09-29 Thu 12:00 
2011-09-30 Fri 13:00 


* foo
2011-09-29 Thu 15:00 
2011-09-29 Thu 16:00 


M-x  org-agenda-week-view 
then shows:

Week-agenda (W39):
Monday 26 September 2011 W39
Tuesday27 September 2011
Wednesday  28 September 2011
Thursday   29 September 2011
   8:00.. 
  10:00.. 
  test:   12:00.. bar
  12:00.. 
  13:09.. now - - - - - - - - - - - - - - - - - - - - - - - - -
  14:00.. 
  test:   15:00.. foo
  16:00.. 
  18:00.. 
  20:00.. 
Friday 30 September 2011
  test:   13:00.. bar
Saturday1 October 2011
Sunday  2 October 2011

--

What surprises me, is that foo only appears once (Thurs 15:00)
although I specified it twice in the agenda file. If the two entries in
question refer to two different days, like bar in the above example,
everything works as expected.

Is this a bug? If it is considered a feature I would be interested to
know, how to work around it. 

Thanks, 
Andreas




Re: [O] [babel] adding a language - problems

2011-09-29 Thread Eric Schulte
Thorsten quintf...@googlemail.com writes:

 Thorsten quintf...@googlemail.com writes:

 Hi list, 
 I'm on my way to add a new (intrpreted) lisp dialect to org-babel, but
 encounter a few difficulties. Here is my little testprogramm:

 -
 #+tblname: tbl1
 | 1 | 2 | 3 |
 |---+---+---|
 | 4 | 5 | 6 |
 | 7 | 8 | 9 |


 # external evaluation (no session)
 #+srcname: pico-calc
 #+begin_src picolisp :var tab=tbl1 :results value :hlines no 
   (+ (caar tab) (caar (cdr tab)))
 #+end_src

 # org-babel-error output:
 [/tmp/babel-22634XBd/picolisp-script-22634K-K:1] !? (display (prog (let
 (tab '((1 2 3) (4 5 6) (7 8 9))) (+ (caar tab) (caar (cdr tab))
 display -- Undefined


 #  with session
 #+srcname: pico-calc
 #+begin_src picolisp :var tab=tbl1 :results value :hlines no :session p1
   (+ (caar tab) (caar (cdr tab)))
 #+end_src

 #+results: pico-calc
 [finishes with no output]

 # session buffer:
 (prog (let (tab '((1 2 3) (4 5 6) (7 8 9))) 
 (+ (caar tab) (caar (cdr tab )
 org-babel-picolisp-eoe
 - 5
 : - org-babel-picolisp-eoe

 ---

 I do not know where undefined 'display' comes from in the error message
 - seems to be a org-babel internal thing. What can I do about that,
 where do I have to look?

 The session evaluation works already, but there is a problem with the
 eoe string. If I don't use it, Emacs hangs forever - waiting for the
 session to return? If I use it, the right value is calculated, but not
 returned - because the eoe string is evaluated after the source-body?


I assume you're using `org-babel-comint-with-output' to collect results?
If you're still having issues I'd suggest looking at some of the other
uses of this function in other ob-*.el files for example of ways that
it's use can be customized through code in the BODY section.


 Thanks for any tips Thorsten


 Sorry, I encountered the undefined 'display' in source code I copied
 from ob-scheme, I deleted it, and then external evaluation succeeded -
 but again without output. 

Hopefully :results output is already working and it is just :results
value which requires more work.  results value external evaluation
generally works by wrapping the body of the code block in a form which
will collect the result of the code block and print them to STDOUT.
Writing this wrapped body to a temporary file, evaluating this temporary
file, and then collecting the results from STDOUT.  I'd suggest
confirming that each of the above steps are working independently.

 
 So I seem to be quite close, evaluation work and the right value is
 calculated - but not returned yet.


I hope the above helps.  Let me know if you run into any more issues.

Cheers -- Eric


 cheers
 Thorsten 



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



Re: [O] using Cygwin Gnuplot with org-babel-gnuplot

2011-09-29 Thread Eric Schulte
Alexander Vorobiev alexander.vorob...@gmail.com writes:

 Hi,

 It is mentioned in
 http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-gnuplot.html#sec-2_1
 that there were some problems with gnuplot on Windows machines. I came
 up with a small fix which makes it possible to use Cygwin version of
 gnuplot with org-mode. The change is in the org-babel-execute:gnuplot
 function where I added passing of optional argument to
 org-babel-process-file-name:

 before:
 (org-babel-process-file-name script-file

 after:
 (org-babel-process-file-name script-file t

 The argument forces the function not to add backslash prior to :
 character which prevented gnuplot from finding the script for
 execution. I hope somebody will find the fix useful. Unfortunately I
 don't know if the fix breaks anything on Unix/Linux/Mac.


Hi Alex,

I've added this change behind a guard so that it should only be applied
on windows systems.

Thanks for suggesting this fix!  Please let me know if my patch doesn't
work as expected.

Best -- Eric


 Thanks
 Alex Vorobiev


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



Re: [O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Nicolas Goaziou
Tassilo Horn tass...@member.fsf.org writes:

 Nicolas Goaziou n.goaz...@gmail.com writes:

 About your patch, I have but one question: I don't get a situation in
 which the assert would be triggered, may you give me such an example?

 I don't either, and that's a good thing.  I added that just as some
 extra paranoia so that you get an error if a footnote gets broken.

Well, provided the first part of the function doesn't modify the buffer,
I still don't see how the assert could fail, even with a broken
footnote. Now, I may also be less paranoid than you are in that case.

Do you still think that assert should be a stayer? If so, I'll apply
your patch.

Regards,

-- 
Nicolas Goaziou



Re: [O] org footnote bug?

2011-09-29 Thread Nicolas Goaziou
henry atting nsmp...@online.de writes:

 Thanks. Two things still differ from the stable version though:

 1. When the first footnote is created the tag remains invisible:

 ---
 Text... then I create a first footnote [1]

 [1] which appears without tag
 ---

 With the second footnote the tag appears, both footnotes underneath:

 
 Text... then I create a first footnote [1] ... then a second footnote [2]

 Footnotes:

 [1] which appears without tag

 [2] now the tag appears, with both footnotes underneath
 --

Right. I have pushed another fix for that. Could you confirm that it is
working now?

 2. When going back to the footnote marker with org-footnote-action the
 cursor stays on the left side of the marker. 

Yes, it's a feature. This way, you can move back and forth between
reference and definition without creating new footnotes each time.

Regards,

-- 
Nicolas Goaziou



Re: [O] Surprising behaviour with agenda file

2011-09-29 Thread Michael Brand
On Thu, Sep 29, 2011 at 15:25, Daniel Bausch danielbau...@gmx.de wrote:
 It's not a bug, it's a feature (although I don't know what it's for -- maybe
 speed).  However, there is a customizable option to switch it off:
 org-agenda-skip-additional-timestamps-same-entry

Interesting. git blame and a list search leads quickly to this post
and thread that answers some questions:
http://thread.gmane.org/gmane.emacs.orgmode/13096/focus=13129

Michael



Re: [O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Tassilo Horn
Nicolas Goaziou n.goaz...@gmail.com writes:

Hi!

 I don't either, and that's a good thing.  I added that just as some
 extra paranoia so that you get an error if a footnote gets broken.

 Well, provided the first part of the function doesn't modify the
 buffer, I still don't see how the assert could fail, even with a
 broken footnote.  Now, I may also be less paranoid than you are in
 that case.

You are right.  And the regex doesn't even match broken footnotes, that
is, footnotes with missing numbers.

 Do you still think that assert should be a stayer?

Nope, feel free to remove that line.

Bye,
Tassilo



Re: [O] Printing in indent mode

2011-09-29 Thread Jambunathan K
Jarmo Hurri jarmo.hu...@syk.fi writes:

 Greetings!

 Is there a way to print the document tree in indent mode so that the
 hidden stars would not show up in the printed version? The indent mode
 is really nice for hierarchical list, but at least my printout with,
 e.g., Postscript Print Buffer (B+W) makes the mode useless for paper
 versions.

Don't you think exporting the buffer to say pdf is a better option than
printing the buffer directly?

 --

 Jarmo Hurri




-- 



Re: [O] org footnote bug?

2011-09-29 Thread henry atting
Nicolas Goaziou n.goaz...@gmail.com writes:

 henry atting nsmp...@online.de writes:

 Thanks. Two things still differ from the stable version though:

 1. When the first footnote is created the tag remains invisible:

 ---
 Text... then I create a first footnote [1]

 [1] which appears without tag
 ---

 With the second footnote the tag appears, both footnotes underneath:

 
 Text... then I create a first footnote [1] ... then a second footnote [2]

 Footnotes:

 [1] which appears without tag

 [2] now the tag appears, with both footnotes underneath
 --

 Right. I have pushed another fix for that. Could you confirm that it is
 working now?

Yes, it's working fine now.

 2. When going back to the footnote marker with org-footnote-action the
 cursor stays on the left side of the marker. 

 Yes, it's a feature. This way, you can move back and forth between
 reference and definition without creating new footnotes each time.

I see, but too bad nevertheless. That way you always have to `jump'
over the marker when you keep up writing.

 Regards,

Thanks,

henry

-- 
http://literaturlatenight.de



Re: [O] [PATCH] Fix renumbering for footnotes at BOL.

2011-09-29 Thread Nicolas Goaziou
Patch applied. Thank you.

Now, onto the other problems in that function...

Regards,

-- 
Nicolas Goaziou



Re: [O] Tracking progress in sport trainings ?

2011-09-29 Thread Ian Barton
Xavier xavier at maillard.im writes:

 

 Currentyl I am using a stupid physical notebook which is good for instant
 results but does not fit well when I want see plots for example ;)
 
 What I am writting down onto the paper is this:
 
 1. date/time
 2. duracy
 3. distance
 4. weather
 5. heartrate (both max and average)
 6. session type
 7. pace
 
 I can even recover data directly from my watch in a text format. 
 This could be useful to see changes in my heartbeat, my pace so on 
 and get a plot of all of this.
 
 Any idea how to this efficiently ?
 

For cycling I use my Garmin eTrex and then download the data in gpx format. 
Have 
a look at gpsbabel, which you can use to manipulate your data. To get plots and 
get your data into an org mode table have a look at gpxplot from 
http://code.google.com/p/gpxplot/

Ian.





[O] Capture from terminal command line?

2011-09-29 Thread Nathan Neff
I'm looking for a way to capture notes from a terminal,
without having to jump over to emacs.

In the past, I simply append the text from the command line
to my ~/refile.org file, but if I have emacs running and have a modified
~/refile.org buffer, then I run into complications.

I think that a good way would be to have a bash script
that tells emacs to run one of the org-capture functions,
along with the newly entered text from the command line.

Can anyone point me to the right function to call?

Thanks,
--Nate



Re: [O] Surprising behaviour with agenda file

2011-09-29 Thread Andreas Amann
On Thu, 29 Sep 2011 15:43:27 +0200, Michael Brand michael.ch.br...@gmail.com 
wrote:
 On Thu, Sep 29, 2011 at 15:25, Daniel Bausch danielbau...@gmx.de wrote:
  It's not a bug, it's a feature (although I don't know what it's for -- maybe
  speed).  However, there is a customizable option to switch it off:
  org-agenda-skip-additional-timestamps-same-entry
 
 Interesting. git blame and a list search leads quickly to this post
 and thread that answers some questions:
 http://thread.gmane.org/gmane.emacs.orgmode/13096/focus=13129

Okay, I see.

In my opinion the current default is unsafe, since people can lose
appointments. 

I propose to change the default of
org-agenda-skip-additional-timestamps-same-entry 
as below.

Andreas



commit 967ee90b3b05bad69b84fa3e5411f2d645121d6a
Author: Andreas Amann andreas.am...@web.de
Date:   Thu Sep 29 16:14:58 2011 +0100

change default of org-agenda-skip-additional-timestamps-same-entry to nil

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index b1fa5f5..20d55f7 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -787,7 +787,7 @@ because you will take care of it on the day when scheduled.
  (const :tag Remove prewarning if entry is scheduled t)
  (integer :tag Restart prewarning N days before deadline)))
 
-(defcustom org-agenda-skip-additional-timestamps-same-entry t
+(defcustom org-agenda-skip-additional-timestamps-same-entry nil
   When nil, multiple same-day timestamps in entry make multiple agenda lines.
 When non-nil, after the search for timestamps has matched once in an
 entry, the rest of the entry will not be searched.
--





Re: [O] org-mobile-push

2011-09-29 Thread Jambunathan K
Vikas Rawal vikasli...@agrarianresearch.org writes:

 When I give M-x org-mobile-push I get an error:

 Symbol's function definition is void: appt-make-list

 What could be wrong?

 I am running org-mode 7.7

(require 'appt)

Ideally this should be done automatically. Looks like that's not the
case.

 Vikas



-- 



Re: [O] org-mobile-push

2011-09-29 Thread Nick Dokos
Vikas Rawal vikasli...@agrarianresearch.org wrote:

 When I give M-x org-mobile-push I get an error:
 
 Symbol's function definition is void: appt-make-list
 
 What could be wrong?
 
 I am running org-mode 7.7
 

Who knows? org itself does not call appt-make-list from
anywhere, so you have probably set up a hook somewhere
to call it and forgotten all about it.

soapbox
It is one of the ambitions of my life (and I'm sure that ambition is
shared by several people on this list) to train everybody to get a
backtrace *first* after they get an error - do not post to the list, do
not pass GO, do not collect USD200 until you have the backtrace in
hand.[fn:1] Often, the backtrace tells enough so you can fix the problem
without any further ado, but even if you cannot or do not want to read
backtraces, the people on the list who are able/willing to look at the
problem find them very useful: trust me on that.

So pretty please: when you get an error, *at the very least*, do

   M-x toggle-debug-on-error

and then try to reproduce the error. That will give you the
required backtrace. For extra points, reload uncompiled org
and then try to reproduce the error: the resulting backtrace
is more informative with uncompiled code.
/soapbox

In your case, app-make-list is defined in appt.el and if you visit the
file, you will see at the very bottom that it does

(provide 'appt)

which means that you can load the file and therefore define the function
by inserting

(require 'appt)

somewhere in your initialization file. But I think of this as solving
the problem by peeking at the solutions in the back of the book:
wouldn't you want to find out what caused the problem in the
first place?

Cheers,
Nick

Footnotes:

[fn:1] But if you try and fail, which happens sometimes, feel free to
   say so in your post. I don't want to dissuade anybody from asking
   a question: I just want to expedite the process of getting to
   the answer.



[O] permanent LaTeX preview

2011-09-29 Thread Alexander Vorobiev
Hi,

Is it possible to stop rendered (with C-c C-x C-l) formulas from
reverting back to LaTeX source in case of:

1. Pressing C-c C-x C-l to render a formula in other part of the
document. All other formulas revert to LaTeX code in that case.
2. Pressing C-c C-c to, for instance, evaluate some babel block. In
this particular case it looks like I need to reassign the C-c C-c
keybinding used to remove the images, but I don't know which function
is called to achieve that.

In the both cases the images get replaced by the LaTeX source. What I
want is to keep the images at all times, and revert only an image I
want to edit LaTeX code for.

Thanks
Alex



Re: [O] Capture from terminal command line?

2011-09-29 Thread Eric Schulte
Nathan Neff nathan.n...@gmail.com writes:

 I'm looking for a way to capture notes from a terminal,
 without having to jump over to emacs.

 In the past, I simply append the text from the command line
 to my ~/refile.org file, but if I have emacs running and have a modified
 ~/refile.org buffer, then I run into complications.

 I think that a good way would be to have a bash script
 that tells emacs to run one of the org-capture functions,
 along with the newly entered text from the command line.

 Can anyone point me to the right function to call?


If you have your emacs running a server [1], then you can easily connect
from without using emacsclient.  For example this short shell script
will echo its arguments in your message buffer.

Cheers -- Eric

#!/bin/sh
emacsclient -e (message \hello from the command line: $(echo $@) \)


 Thanks,
 --Nate



Footnotes: 
[1]  http://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html

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


Re: [O] Surprising behaviour with agenda file

2011-09-29 Thread Sebastien Vauban
Hi Andreas,

Andreas Amann wrote:
 On Thu, 29 Sep 2011 15:43:27 +0200, Michael Brand 
 michael.ch.br...@gmail.com wrote:
 On Thu, Sep 29, 2011 at 15:25, Daniel Bausch danielbau...@gmx.de wrote:
  It's not a bug, it's a feature (although I don't know what it's for -- 
  maybe
  speed).  However, there is a customizable option to switch it off:
  org-agenda-skip-additional-timestamps-same-entry
 
 Interesting. git blame and a list search leads quickly to this post
 and thread that answers some questions:
 http://thread.gmane.org/gmane.emacs.orgmode/13096/focus=13129

 Okay, I see.

 In my opinion the current default is unsafe, since people can lose
 appointments. 

 I propose to change the default of
 org-agenda-skip-additional-timestamps-same-entry 
 as below.

I find as well that it makes sense. Now, it'd be good to know why it wasn't
the case since the beginning. As said by Daniel, this could lower the perf?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] permanent LaTeX preview

2011-09-29 Thread Nick Dokos
Alexander Vorobiev alexander.vorob...@gmail.com wrote:

 Hi,
 
 Is it possible to stop rendered (with C-c C-x C-l) formulas from
 reverting back to LaTeX source in case of:
 
 1. Pressing C-c C-x C-l to render a formula in other part of the
 document. All other formulas revert to LaTeX code in that case.
 2. Pressing C-c C-c to, for instance, evaluate some babel block. In
 this particular case it looks like I need to reassign the C-c C-c
 keybinding used to remove the images, but I don't know which function
 is called to achieve that.
 
 In the both cases the images get replaced by the LaTeX source. What I
 want is to keep the images at all times, and revert only an image I
 want to edit LaTeX code for.
 

I don't think either is possible with the current code. 

Re. item 1: You can selectively render formulas by limiting the region
to a subtree, so it should be possible to do what you want by adding a
couple of functions and coming up with a decent user interface.

Re. item 2: this is done unconditionally in the function
org-ctrl-c-ctrl-c (in file lisp/org.el) and although I don't know the
reason, there probably is one and it's probably important[fn:1], so you
should proceed with caution. If you want to experiment, I'd suggest you
start by commenting out the  marked line  below in
org-ctrl-c-ctrl-c and testing extensively to see what breaks:

,
| ...
| - If the cursor is on a code block, evaluate it.  The variable
|   `org-confirm-babel-evaluate' can be used to control prompting
|   before code block evaluation, by default every code block
|   evaluation requires confirmation.  Code block evaluation can be
|   inhibited by setting `org-babel-no-eval-on-ctrl-c-ctrl-c'.
|   (interactive P)
|   (let  ((org-enable-table-editor t))
| (cond
|  ((or (and (boundp 'org-clock-overlays) org-clock-overlays)
| org-occur-highlights
| org-latex-fragment-image-overlays)
|   (and (boundp 'org-clock-overlays) (org-clock-remove-overlays))
|   (org-remove-occur-highlights)
|  (org-remove-latex-fragment-image-overlays) 
|   (message Temporary highlights/overlays removed from current buffer))
| ...
`

Cheers,
Nick

Footnotes:

[fn:1] I suspect that it's a necessary precondition for some of the
   *many* things that this function does, but I don't know for sure.



Re: [O] permanent LaTeX preview

2011-09-29 Thread Rasmus


 1. Pressing C-c C-x C-l to render a formula in other part of the
 document. All other formulas revert to LaTeX code in that case.
 2. Pressing C-c C-c to, for instance, evaluate some babel block. In
 this particular case it looks like I need to reassign the C-c C-c
 keybinding used to remove the images, but I don't know which function
 is called to achieve that.

 I don't think either is possible with the current code. 

Would it be possible to use the more sophisticated Preview LaTeX of
AUCTeX? IMO it has a nicer way of dealing with previews.

–Rasmus 

-- 
Sent from my Emacs




[O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . )

2011-09-29 Thread Leo Alekseyev
Here is what's in my org file:

8
#+title:   My org file
#+babel: :session *R-babel* :tangle yes

* The problem
** The code
This is going to fail on export:

#+source: test_code
#+BEGIN_SRC R :results output silent :exports none :var foo
  bar - foo
#+END_SRC

Why does this fail?
#+call: test_code(foo=200)
#+results: test_code(foo=200)
8

Simple, right?  Yet, when I try to do org-export-as-html, I get:

executing R code block (test_code)...
result is 

executing Emacs-Lisp code block...

(results (quote ))

Code block produced no output.
org-babel-exp-code: Wrong type argument: stringp, (results . )

This happens with the latest org-mode from trunk, as well as my
few-months-old version.  What's going on?



Re: [O] permanent LaTeX preview

2011-09-29 Thread Nick Dokos
Rasmus ras...@gmx.us wrote:

 
 
  1. Pressing C-c C-x C-l to render a formula in other part of the
  document. All other formulas revert to LaTeX code in that case.
  2. Pressing C-c C-c to, for instance, evaluate some babel block. In
  this particular case it looks like I need to reassign the C-c C-c
  keybinding used to remove the images, but I don't know which function
  is called to achieve that.
 
  I don't think either is possible with the current code. 
 
 Would it be possible to use the more sophisticated Preview LaTeX of
 AUCTeX? IMO it has a nicer way of dealing with previews.
 

Do you mean: replace the org preview mechanism with the preview-latex
preview mechanism? or turn on auctex mode/preview-latex in addition to
org-mode in the org file? or perhaps export to latex and then use
preview-latex on the latex file?

In either of the first two cases, my answer is I don't know. IIRC,
there was some discussion of the former in this list a long time
ago. The second one sound easier (there are a couple of different ways
to turn on multiple major modes - see
e.g. http://www.emacswiki.org/emacs/MultipleModes) but I don't know how
conflicts between them are managed (and I imagine there will be plenty
of those), or what other problems might arise; it might be worth trying
though.

The third one is not as convenient as the other two might be, but it
exists *now* and does not require anything extra: bird in the hand and
all that.

Cheers,
Nick







Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . )

2011-09-29 Thread Eric Schulte
Hi Leo,

On my system with the latest Org-mode I get the following slightly more
helpful error message.

  variable foo must be assigned a default value

Please add a default value to the foo variable for export and evaluation
of the code block to work.

Best -- Eric

Leo Alekseyev dnqu...@gmail.com writes:

 Here is what's in my org file:

 8
 #+title:   My org file
 #+babel: :session *R-babel* :tangle yes

 * The problem
 ** The code
 This is going to fail on export:

 #+source: test_code
 #+BEGIN_SRC R :results output silent :exports none :var foo
   bar - foo
 #+END_SRC

 Why does this fail?
 #+call: test_code(foo=200)
 #+results: test_code(foo=200)
 8

 Simple, right?  Yet, when I try to do org-export-as-html, I get:

 executing R code block (test_code)...
 result is 
 
 executing Emacs-Lisp code block...

 (results (quote ))

 Code block produced no output.
 org-babel-exp-code: Wrong type argument: stringp, (results . )

 This happens with the latest org-mode from trunk, as well as my
 few-months-old version.  What's going on?


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



Re: [O] permanent LaTeX preview

2011-09-29 Thread Rasmus
Nick Dokos nicholas.do...@hp.com writes:

 Do you mean: replace the org preview mechanism with the preview-latex
 preview mechanism? or turn on auctex mode/preview-latex in addition to
 org-mode in the org file? or perhaps export to latex and then use
 preview-latex on the latex file?

Either (i) or (ii), I guess.  I just checked.  It seems preview-latex
needs a tex file to work as it call filename.tex.  Of course, a file
could be generated upon request.  I don't know whether one could weave
them back together afterwards. 

Which I mostly miss from preview-latex is the possibility to `walk into'
generated pictures, and to easily regenerate stuff.

–Rasmus

-- 
Sent from my Emacs



Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . )

2011-09-29 Thread Leo Alekseyev
I changed the line to #+BEGIN_SRC R :results output silent :exports
none :var foo=0, but it gives me the same error as before.  Running on
the old-ish version of org (from January, commit
8be17c8c62a8fb402a2ebf1c963a4e9f8f5dec53).

On 9/29/11, Eric Schulte schulte.e...@gmail.com wrote:
 Hi Leo,

 On my system with the latest Org-mode I get the following slightly more
 helpful error message.

   variable foo must be assigned a default value

 Please add a default value to the foo variable for export and evaluation
 of the code block to work.

 Best -- Eric

 Leo Alekseyev dnqu...@gmail.com writes:

 Here is what's in my org file:

 8
 #+title:   My org file
 #+babel: :session *R-babel* :tangle yes

 * The problem
 ** The code
 This is going to fail on export:

 #+source: test_code
 #+BEGIN_SRC R :results output silent :exports none :var foo
   bar - foo
 #+END_SRC

 Why does this fail?
 #+call: test_code(foo=200)
 #+results: test_code(foo=200)
 8

 Simple, right?  Yet, when I try to do org-export-as-html, I get:

 executing R code block (test_code)...
 result is 
 
 executing Emacs-Lisp code block...

 (results (quote ))

 Code block produced no output.
 org-babel-exp-code: Wrong type argument: stringp, (results . )

 This happens with the latest org-mode from trunk, as well as my
 few-months-old version.  What's going on?


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




Re: [O] small docstring typo in org-clone-subtree-with-time-shift

2011-09-29 Thread Achim Gratz
Brian van den Broek brian.van.den.br...@gmail.com writes:
 I suspect that the optimal way is to generate a patch against the
 documentation. If that's right and someone would point me to what I'd
 need to read to learn how to do so (I've never produced a patch
 before), I'd be happy to learn and do it that way henceforward.

Make your own clone of the Git repository.  Check out the master branch
and make a new branch for the patch.  Edit the file(s) that you want to
patch and commit that change with a commit message that has an
appropriate ChangeLog entry.  Create a patch file and attach it to a
post to this list with [PATCH] in the subject line.  Maybe give a bit of
an explanation that didn't make it into the commit message if you feel
that may be necessary.  Do not make unrelated changes in the same
commit, rather have these in separate commits.

git checkout master
git branch patch
...
git commit -a
...
git format-patch
...

Check How to contribute to Orgmode on the website.


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

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . )

2011-09-29 Thread Eric Schulte
Leo Alekseyev dnqu...@gmail.com writes:

 I changed the line to #+BEGIN_SRC R :results output silent :exports
 none :var foo=0, but it gives me the same error as before.  Running on
 the old-ish version of org (from January, commit
 8be17c8c62a8fb402a2ebf1c963a4e9f8f5dec53).


I'd recommend updating to the most recent version in which the header
arguments you mention above work for me.

Best -- Eric

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



[O] Org buffers scroll to the very bottom on their own

2011-09-29 Thread Leo Alekseyev
I just pulled the latest org from trunk and byte-compiled under
Windows; I am seeing bizarre behavior, where the point in an org-mode
buffer scrolls to the very bottom of the buffer.  It's as if someone
keeps pressing the down arrow key, or even S-M-[period].  Org is now
unusable.  Has anyone seen this before and can tell me what in the
world is happening?



Re: [O] Org buffers scroll to the very bottom on their own

2011-09-29 Thread Leo Alekseyev
Please ignore my last post; turns out I've merged some custom changes
with the trunk, and my merge appears to be buggy

On Thu, Sep 29, 2011 at 5:23 PM, Leo Alekseyev dnqu...@gmail.com wrote:
 I just pulled the latest org from trunk and byte-compiled under
 Windows; I am seeing bizarre behavior, where the point in an org-mode
 buffer scrolls to the very bottom of the buffer.  It's as if someone
 keeps pressing the down arrow key, or even S-M-[period].  Org is now
 unusable.  Has anyone seen this before and can tell me what in the
 world is happening?




Re: [O] org-mobile-push

2011-09-29 Thread Vikas Rawal
Thanks Nick and Jambunathan for taking the trouble to respond.

 
 So pretty please: when you get an error, *at the very least*, do
 
M-x toggle-debug-on-error

Thanks nick for teaching my how to use back-trace. Here is the
output. May I request you to help identify what could be causing the
problem.

Debugger entered--Lisp error: (void-function appt-make-list)
  appt-make-list()
  run-hooks(diary-hook)
  diary-list-entries((9 26 2011) 1)
  byte-code(\301\302!\203\n\302\202\303\304\\207 [date fboundp 
diary-list-entries list-diary-entries 1] 3)
  org-get-entries-from-diary((9 26 2011))
  org-agenda-list(nil)
  call-interactively(org-agenda-list)
  (let ((org-agenda-title-append afterKEYS=a TITLE: Agenda /after)) 
(call-interactively (quote org-agenda-list)))
  (let ((org-agenda-compact-blocks nil)) (let ((org-agenda-title-append 
afterKEYS=a TITLE: Agenda /after)) (call-interactively (quote 
org-agenda-list
  eval((let ((org-agenda-compact-blocks nil)) (let ((org-agenda-title-append 
afterKEYS=a TITLE: Agenda /after)) (call-interactively (quote 
org-agenda-list)
  org-let2(((org-agenda-compact-blocks nil)) ((org-agenda-title-append 
afterKEYS=a TITLE: Agenda /after)) (call-interactively (quote 
org-agenda-list)))
  org-agenda-run-series(SUMO (((agenda nil ((org-agenda-title-append 
afterKEYS=a TITLE: Agenda /after))) (alltodo nil 
((org-agenda-title-append afterKEYS=t TITLE: ALL TODO /after))) (agenda 
 ((org-agenda-title-append afterKEYS=n#1 TITLE: Agenda and all TODO's 
/after))) (alltodo nil ((org-agenda-title-append afterKEYS=n#2 TITLE: 
Agenda and all TODO's /after ((org-agenda-compact-blocks nil)) 
(/home/vikas/Dropbox/MobileOrg/agendas.org)))
  byte-code(\306\307  \232\203
\310\202\n\311\306\312\313\\p\314\315 
!@\306\211AB\306\211CD\306\211EFG\204X\316\317!\203C\204I\320\321\322\306#\210\306HI\306\211\223\210J\306\211\223\210\320\323\324\306#\210\320\323\325\306#\210pKL\204z\326!\211F@LFAMG\204\305M\203\305\320\321\322@C#\210M\327=\203\247\330HI\331
 \306\223\210J\332 
\306\223\210\202\305M\333=\203\305\212\330H\334\330!\210I`\306\223\210J\335\330!\306\223\210)\336L\\211A\203\322\337A89\204\341\340\337A8!\203\301\337A8C\341\342A8!D\343A8E\320\323\324E#\210C\344=\203\345E\346\\202,C\347=\203\345E\350\\202,C\351=\203)\345E\352\\202,C\353=\2038\345E\354\\202,C\355=\203G\345E\356\\202,C\357=\203V\345E\360\\202,C\361=\203e\345E\362\\202,C\363=\203w\364
 \210\345E\365\\202,C\366=\203\211\364 
\210\345E\367\\202,C\370=\203\233\364 
\210\345E\371\\202,\340C!\203\252\345E\372\\202,\373C!\203\271\345E\374\\202,\375\376C\\202,\377AA@A\211NAA)\\202,L\201S\232\203\345\f\201T\303!\202,L\201U\232\203\370\201V\201W!\202,L\201X\232\203\201V\201Y!\202,L\201Z\232\203\201V\201[!\202,L\201\\\232\203D\201[O\2062\201]OPOQ\201VP!+\202,L\201^\232\203W\201V\201_!\202,L\201`\232\203}\201_O\206k\201aOPOQ\201VP!+\202,L\201b\232\203\220\201V\201c!\202,L\201d\232\203\261\201_\306\201e\\210\201f\201g\201h\330\211$\202,L\201i\232\203\356R\201j=\204\311\375\201k!\210M?\205,\320\321\322@C#\210\201lOOPOQ\201VP!+\202,L\201m\232\203\201V\201n!\202,L\201o\232\203\201V\201p!\202,L\201q\232\203'\201T\201r!\202,\375\201s!.\f\207
 [prefix-descriptions org-agenda-buffer-name org-agenda-window-setup 
org-agenda-custom-commands org-agenda-custom-commands-orig buf nil buffer-name 
current-window delq mapcar #[(x) A;\203\f
B\302\207A@;\203\207A@\204'@\303\211AA)BB\207@\303ABB\207 [x 
prefix-descriptions nil ] 4] buffer-file-name buffer-base-buffer boundp 
org-agenda-keep-restricted-file-list put org-agenda-files org-restrict 
org-agenda-redo-command org-lprops last-args 
org-agenda-get-restriction-and-command region t region-beginning region-end 
subtree org-back-to-heading org-end-of-subtree assoc 2 functionp eval 3 4 
agenda org-let (org-agenda-list current-prefix-arg) alltodo (org-todo-list 
current-prefix-arg) search (org-search-view current-prefix-arg match nil) stuck 
(org-agenda-list-stuck-projects current-prefix-arg) tags (org-tags-view 
current-prefix-arg match) tags-todo (org-tags-view (quote (4)) match) todo ...] 
6)
  org-agenda(nil X)
  (let ((org-agenda-compact-blocks nil)) (org-agenda nil thiscmdkey))
  eval((let ((org-agenda-compact-blocks nil)) (org-agenda nil thiscmdkey)))
  byte-code(\205k\211A@\211@\306 8\211\203\307\202\310 
8\203'\310\202(\3118\211;\2033
C
\203\312\313\314\f#\315E!\210q\210
\203\\\312\313\314\f#\316E!\210\202H\317!\203\320!\210\202\207 
[cmds cmd thiscmdkey cmd-or-set opts files 2 3 4 5 eval let append (org-agenda 
nil thiscmdkey) (org-write-agenda (expand-file-name (pop files) dir) nil t) 
get-buffer kill-buffer org-agenda-exporter-settings pars 
org-agenda-buffer-name] 7)
  #[(rest 

Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . )

2011-09-29 Thread Eric Schulte
Leo Alekseyev dnqu...@gmail.com writes:

 Eric, I pulled the latest org-mode and that got me past the trivial
 error I described, however, I've run into other ones (I'm still
 bisecting my original large org file to come up with concise example).
  There is another error: if I have a hyperlink anywhere in my org
 file, the html export fails with

 org-translate-link: Args out of range: 0, 4


Hi Leo,

I can't reproduce your problem.  After adding a value =0 to your foo
variable your example below exports for me without problem.

Maybe the issue has something to do with your config, in which case
starting Emacs with -Q and trying to reproduce the problem could help.

Best -- Eric


 Here's the exact example; any comments?:
 8
 #+title:   My org file
 #+babel: :session *R-babel* :tangle yes

 * The problem
 here's a hyperlink: [[http://google.com]]

 ** The code
 This is going to fail on export:

 #+source: test_code
 #+BEGIN_SRC R :results output silent :exports none :var foo
  bar - foo
 #+END_SRC

 Why does this fail?
 #+call: test_code(foo=200)
 #+results: test_code(foo=200)
 8


 On Thu, Sep 29, 2011 at 4:33 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Leo Alekseyev dnqu...@gmail.com writes:

 I changed the line to #+BEGIN_SRC R :results output silent :exports
 none :var foo=0, but it gives me the same error as before.  Running on
 the old-ish version of org (from January, commit
 8be17c8c62a8fb402a2ebf1c963a4e9f8f5dec53).


 I'd recommend updating to the most recent version in which the header
 arguments you mention above work for me.

 Best -- Eric

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


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



Re: [O] [babel] org-babel HTML export and image links within #+example blocks

2011-09-29 Thread Eric Schulte
Leo Alekseyev dnqu...@gmail.com writes:

 Right now, I auto-generate image links as a part of results my
 org-embedded R code generates, e.g.:

 #+call foo()

 #+results: foo()
 #+begin_example
 ...stuff...
 RMSE, sdev, abs(mean - true), mean - true: agent 1
 0.1899602 0.1097201 0.1550738 -0.1550738
 [[file:images/conv1.png]]
 #+end_example

 However, the [[file:images/conv1.png]] doesn't show up as a link or
 inline image when doing HTML export.  Is there a way to automate the
 invocation/generation of results from foo() AND at the same time have
 the image appear upon HTML export?  That would be rather useful.


Links inside of example blocks are not processed, the point of example
blocks is to forestall Org-mode processing.  You could try other result
types.  See http://orgmode.org/manual/results.html for more information.

Best -- Eric


 --Leo


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



[O] FR: either limited HTML or unfilled paragraphs in

2011-09-29 Thread Samuel Wales
-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Bigotry against people with serious diseases is still bigotry.



[O] FR: Output to online comments

2011-09-29 Thread Samuel Wales
More of an invitation to brainstorm.

It isn't clear what HTML tags are allowed in Blogger comments and in
other online places, but ASCII, of course works.

We might get away with a limited HTML that only produces a few tags.
Another option is unfilled paragraphs in ASCII.  Neither is ideal, but
might be convenient for online comments.

The problem is that columns are often too narrow for filled
paragraphs, so the result is formatted incorrectly.  They need to be
unfilled.

I wonder if there could be an ASCII export option for unfilling filled
paragraphs.  It would have to be as a separate backend.  For email,
filled paragraphs (i.e. hard newlines) are often better.

Any solution might be imperfect, but it might be better than manual editing.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support the Whittemore-Peterson Institute (WPI)
===
Bigotry against people with serious diseases is still bigotry.