Re: [O] would take more than an org-mode strip-down.
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.
On Thu, Sep 29, 2011 at 1:16 PM, Rustom Mody 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.
On Thu, Sep 29, 2011 at 9:46 AM, Rustom Mody 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
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 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.
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)]
Beautiful on Wed Sep 28 2011, Nick Dokos wrote: > Dave Abrahams 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 > 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.
Hello, Tassilo Horn 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.
Nicolas Goaziou 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
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?
Nicolas Goaziou writes: > henry atting 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
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
Thorsten writes: > Thorsten 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
Alexander Vorobiev 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.
Tassilo Horn writes: > Nicolas Goaziou 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] Surprising behaviour with agenda file
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 Daniel Am Donnerstag 29 September 2011, 14:16:10 schrieb 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
[O] Printing in indent mode
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. -- Jarmo Hurri
Re: [O] org footnote bug?
henry atting 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
On Thu, Sep 29, 2011 at 15:25, Daniel Bausch 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.
Nicolas Goaziou 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
Jarmo Hurri 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?
Nicolas Goaziou writes: > henry atting 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.
Patch applied. Thank you. Now, onto the other problems in that function... Regards, -- Nicolas Goaziou
Re: [O] Tracking progress in sport trainings ?
Xavier 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?
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
On Thu, 29 Sep 2011 15:43:27 +0200, Michael Brand wrote: > On Thu, Sep 29, 2011 at 15:25, Daniel Bausch 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 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." --
[O] org-mobile-push
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 Vikas
Re: [O] org-mobile-push
Vikas Rawal 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
Vikas Rawal 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. 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. 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
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?
Nathan Neff 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
Hi Andreas, Andreas Amann wrote: > On Thu, 29 Sep 2011 15:43:27 +0200, Michael Brand > wrote: >> On Thu, Sep 29, 2011 at 15:25, Daniel Bausch 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
Alexander Vorobiev 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] [babel] adding a language - problems
Eric Schulte writes: > Thorsten writes: > >> Thorsten 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. yes, I use org-babel-comint-with-output more or less in the way it is used in ob-scheme.el. > >>> >>> 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. No, it isn't working - same thing as with :results value - no error messages, but nothing is returned either and no output. I have to take a deeper look at whats happening behind the scenes. > "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 Thanks so far, I'll try to understand the workings of ob.el & friends better and then hope to get things to work. cheers Thorsten
Re: [O] permanent LaTeX preview
>> 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 . "")
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
Rasmus 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 . "")
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 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
Nick Dokos 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 . "")
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 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 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
Brian van den Broek 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
[O] [patch] Don't output preamble DIV if its contents is empty
Hi, To be sure that CSS rules don't apply to missing contents, there's no need to output DIV preamble opening and closing tags if there is nothing in between. Best regards, Seb -- Sebastien Vauban >From 9bb3959f8ca978e7486ba7bde11cd407a40e653b Mon Sep 17 00:00:00 2001 From: Sebastien Vauban Date: Thu, 29 Sep 2011 21:49:11 +0200 Subject: [PATCH 2/2] Don't output DIV preamble tags when contents is empty. --- lisp/org-html.el | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index fde563b..0139c16 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1337,23 +1337,30 @@ lang=\"%s\" xml:lang=\"%s\"> ;; insert html preamble (when (plist-get opt-plist :html-preamble) - (let ((html-pre (plist-get opt-plist :html-preamble))) - (insert "\n") + (let ((html-pre (plist-get opt-plist :html-preamble)) + html-pre-real-contents) (cond ((stringp html-pre) - (insert - (format-spec html-pre `((?t . ,title) (?a . ,author) - (?d . ,date) (?e . ,email) + (setq html-pre-real-contents + (format-spec html-pre `((?t . ,title) (?a . ,author) + (?d . ,date) (?e . ,email) ((functionp html-pre) - (funcall html-pre)) + (insert "\n") + (funcall html-pre) + (insert "\n\n")) (t - (insert + (setq html-pre-real-contents (format-spec (or (cadr (assoc (nth 0 lang-words) org-export-html-preamble-format)) (cadr (assoc "en" org-export-html-preamble-format))) `((?t . ,title) (?a . ,author) (?d . ,date) (?e . ,email)) - (insert "\n\n"))) + ;; don't output an empty preamble DIV + (unless (and (functionp html-pre) + (equal html-pre-real-contents "")) + (insert "\n") + (insert html-pre-real-contents) + (insert "\n\n" ;; begin wrap around body (insert (format "\n" -- 1.7.5.1
Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "")
Leo Alekseyev 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
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
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 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] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "")
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 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 wrote: > Leo Alekseyev 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/ >
Re: [O] org-mobile-push
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 "KEYS=a TITLE: Agenda ")) (call-interactively (quote org-agenda-list))) (let ((org-agenda-compact-blocks nil)) (let ((org-agenda-title-append "KEYS=a TITLE: Agenda ")) (call-interactively (quote org-agenda-list eval((let ((org-agenda-compact-blocks nil)) (let ((org-agenda-title-append "KEYS=a TITLE: Agenda ")) (call-interactively (quote org-agenda-list) org-let2(((org-agenda-compact-blocks nil)) ((org-agenda-title-append "KEYS=a TITLE: Agenda ")) (call-interactively (quote org-agenda-list))) org-agenda-run-series("SUMO" (((agenda nil ((org-agenda-title-append "KEYS=a TITLE: Agenda "))) (alltodo nil ((org-agenda-title-append "KEYS=t TITLE: ALL TODO "))) (agenda "" ((org-agenda-title-append "KEYS=n#1 TITLE: Agenda and all TODO's "))) (alltodo nil ((org-agenda-title-append "KEYS=n#2 TITLE: Agenda and all TODO's " ((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\305 M\203\305 \320\321\322@C#\210M\327=\203\247 \330HI\331 \306\223\210J\332 \306\223\210\202\305 M\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\201V P!+\202,L\201^ \232\203W\201V \201_ !\202,L\201` \232\203}\201_ O\206k\201a OPOQ\201V P!+\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\201l OOPOQ\201V P!+\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 parameters) "\306!\307 \
[O] [babel] org-babel HTML export and image links within #+example blocks
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. --Leo
Re: [O] [babel] Error when exporting a trivial org file to HTML: Wrong type argument: stringp, (results . "")
Leo Alekseyev 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 wrote: >> Leo Alekseyev 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
Leo Alekseyev 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
-- 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
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.
Re: [O] would take more than an org-mode strip-down.
Dear James, thanks a lot for your thoughts on Org-mode. I admit that I had to read them several times to fully understand what you are saying. While you anchor your argument on the documenation (be it overabundant or not the right one), I think you are making a number of much deeper points. I'll try to write a few thoughts back, and maybe we can get a good discussion going. 1. Startup difficulties for non-EMacs users One of the fundamental aspect you discuss is the difficulty to enter the Org-mode world as a general computer user, possibly not familiar Emacs. Today's world expects programs to be self-explanatory, if possible without any documentation reading at all (no, I am not saying that this is what *you personally* expect, I mean in general). In the world of iOS, it is standard that one can download an application and at least get started with it by playfully launching it. Manuals and Documentation are generally disliked. This also has to with the fleeing nature of peoples use of programs. It is common to spend more time looking for a tool or program than the time one uses it before discarding or at least ignoring it. I have many apps on my iPod Touch which I have downloaded, used once for a very short time, and then not ever again. So if there is a 70% chance that I will ditch the program after a week, the cost of reading documentation is extremely high. Mind you, I do think that this is (today) a legitimate expectation. However, a user with this kind of expectation would be very difficult to make feel at home in Org-mode. The main startup problem is already that is runs in Emacs, and a good new version of Emacs is not frequently part of a computer system for "normal" people. Org-mode really lives in Emacs. If flourishes on so many ideas that are deeply ingrained in Emacs. So much of Org-mode use is quite obvious when you already use and love Emacs. The tags issue you mention is a great example. Emacs solves these things using "completion" (see also Eric Fraga's post in this thread). An Emacs user automatically tries to type a keyword like this by typing a few letters and then hitting M-TAB in order to do completion. This is something the spine does for an Emacs user, no brain required. Obviously this will be very hard for a person that comes with a different expectation to this program. And yes, this could be helped with putting more GUI-like elements into Org files. For example, we could make tags look like buttons and let the user click on them in order to change this. But, I and many Emacs users would see this as a distraction, a detour. We even do have this feature, but it is not turned on by default. I think that the real issue here is that Org-mode was not (originally) intended for "normal" people. It is a geeks program, and we take our pride from making vi users (vi is another programmers editor) jealous enough so that they will create a clone of the program. We have not even begun to cater for another audience, and this is the thing you, James, are running up against. The website we have is not aimed at the general audience. The fact that people like you even know about the program and consider using it speaks for the success Org-mode has been. If we, as the Org-mode community, would like to draw in a new class of people, the website would have to be changed. We'd need a basic page, with only a link to the geek stuff. And the installation instruction should be: a) Download and install Emacs b) Create a file with extension ".org" and edit it in Emacs. i.e. no links to how to install the latest version etc etc. Russel Adam has pointed (earlier in this thread) to his intro video for Windows users, this has the right spirit, but still assumes users might want to update Org-mode. You might have gotten off to a better start with such an entry page - but that does not mean you'd like to program because it would not work intuitively at first sight. 2. Outline as the basic paradigm Another issue you address is that for you it is not true that all ideas begin to take form through an Outline. Because Outlines still have a linear structure. I can totally see where you are coming from. However, what is the alternative? Mindmaps? Or just a piece of paper? The reason why, for me, outlines are the best approach is because there are so easily restructured. The outline structure inherently cuts the information into many small pieces, and Org-mode excels in pushing these pieces around (we call this "Structure Editing" and "Refiling"). This allows me to start just with a brain dump, and the to organize so that things make sense. This may not work for the creative process of an artist, but for starting and organizing a project, I think it works ama
Re: [O] Printing in indent mode
Jambunathan K writes: >> 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? > > Don't you think exporting the buffer to say pdf is a better option > than printing the buffer directly? That would be very nice, but I do not know how to do this for a hierarchical list so that the result would look like a list. I tried org-export-as-pdf, but it gives me an output that is far from a list: the result is a complete document, with a table of contents, section numbering and each item in the list either as a section or a subsection. -- Jarmo Hurri
Re: [O] FR: Output to online comments
On 2011-09-29, Samuel Wales wrote: > 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. s/separate backend/toggle in the export dispatcher/