[Orgmode] Re: Finally jekyll and org-jekyll
Ian Barton li...@manor-farm.org writes: Hi Andrea, I don't use org-jekyll myself. You can view my tutorial on the way I di it at http://orgmode.org/worg/org-tutorials/org-jekyll.php . Basically what you need to do is to organize your system so that org publishes your .org files to html in a place that jekyll can process them. Are you trying to write a blog ie. posts ordered in date format, or a static web site, or a combination of both? If you can tell me exactly what you want to achieve, I'll try and help out. Ian. Thanks, I would like to have a mixed approach, but also just a blog with articles might be perfectly fine for now. So reading again I think I got it, I create the index.html showing the lasts posts (for example), I eventually add some CSS and then I export the org-files in the right place. Org-jekyll helps giving the right name to the html files so that is automatically recognized by jekyll. Then I want to export it to github pages, but that should be already set up correctly. Is that correct? A not about the tutorial (which is very clear): you should quote the _ otherwise, like \_posts or project\_name for example. Thanks a lot ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto
Noorul Islam K M noo...@noorul.com writes: For me J takes me to the org file entry not to the agenda entry. That's weird. Did you pull and get the last Org? `J' should: - move the point to the clocked in entry in the agenda buffer - if the clocked entry is not listed in the agenda buffer, display it in another window - if there is no running clock, display a message. I just pushed an updated docstring. Works here... -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Agenda view Face for deadlines PATCH
Hi all, Sébastien Vauban wrote: Carsten Dominik wrote: Sébastien Vauban wrote: Sébastien Vauban wrote: Sébastien Vauban wrote: In the same kind of thought, trying to enhance the way we (or I) visualize tasks in the agenda, I have chosen some sort of inverse video face for deadlines. (my-org-deadline-yesterday ((t (:foreground white :background #D8 :weight bold (my-org-deadline-today ((t (:foreground white :background #E9A36A :weight bold (my-org-deadline-tomorrow ((t (:foreground black :background #B4F1B3 :weight bold (my-org-deadline-later ((t (:foreground black :background #AACAFC [...] The result is the following: Week-agenda (W20-W21): 2010-05-18 Tue _ Personal: 17:15-17:20 Sarah! :home::errands: refile: Sched. 2x: TODO [#A] Update reservations Scorpios :refile:: x Family: xxx In -1 d.: TODO [#A] Photos-reportage Andre :home::computer: where the `x' are just some textual way to represent background color. For the sake of clarity, I'd like the first 2 characters (in front of `Family', in my example) not to be impacted by that face. Otherwise, when in inverse video, they obfuscate the view of the day separators and of the deadline lines. Still trying to solve this, now that I have learned a bit more (but, still only a bit...) on debugging Lisp code. I've (on purpose) forgotten all I did and found in the past (june-july), to start again from scratch, and be sure I identify the right defuns to work on. So, to resume, my *goal* is to try applying a face with white background (in my case) on the first 2 characters of every TODO line appearing in the agenda. But, question: *which defun* does do that? How to find that information? I instrumented the org packages with ELP, and got many function calls. I searched for functions that were called at least as many times as the number of lines I have in my weekly agenda. (is there a better way to _trace_ function calls, and see a call tree? `M-x trace', mabye, but it did not help me a lot so far -- maybe lacking experience) By stepping through some functions, I've understood that the functions that interest me are the following: org-agenda-list - org-finalize-agenda-entries - *org-agenda-highlight-todo* Though, what I really don't understand is that I `C-u C-M-x' the function =org-agenda-highlight-todo=, and then call =org-agenda-list=, expecting to trace the function that *highlights every TODO line* of my agenda. And... no, *edebug is not launched*!? I really don't understand that... On the contrary, executing `C-c a s' does stop me in that function. So, the function has *well been instrumented*. Any idea about which wrong direction I'm taking? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Patch] org-capture.el
Hi Mark, Mark Scala marksc...@gmail.com writes: When capture templates with tags are finalized, those tags are not realigned. I think this fixes it (does in the cases I've tested). Thanks for the patch -- I have (setq org-auto-align-tags t) here and tags are aligned when capturing. Would that solve your issue as well? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] org-bbdb: Be lenient. Ignore case in anniv class string.
Jambunathan K kjambunat...@gmail.com writes: Permit bbdb entries like '1973-06-22 Birthday'. i.e., Ignore the case of anniv class. I have applied a slightly modified version of this patch, since `assoc-ignore-case' is obsolete. Thanks! -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Accepted] [Orgmode] Fix org-indent-mode message when mode is refused
Patch 202 (http://patchwork.newartisans.com/patch/202/) is now Accepted. Maintaner comment: No comment This relates to the following submission: http://mid.gmane.org/%3C1281221383-20101-1-git-send-email-bernt%40norang.ca%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Fix org-indent-mode message when mode is refused Date: Sun, 08 Aug 2010 03:49:43 - From: Bernt Hansen be...@norang.ca X-Patchwork-Id: 202 Message-Id: 1281221383-20101-1-git-send-email-be...@norang.ca To: emacs-orgmode@gnu.org Cc: Bernt Hansen be...@norang.ca * lisp/org-indent.el (org-indent-mode): Fix grammar for message when mode is refused --- This patch is available at git://git.norang.ca/org-mode.git fix-org-indent-msg -Bernt lisp/org-indent.el |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-indent.el b/lisp/org-indent.el index 83eaac5..e3edd25 100644 --- a/lisp/org-indent.el +++ b/lisp/org-indent.el @@ -135,11 +135,11 @@ FIXME: How to update when broken? ((org-bound-and-true-p org-inhibit-startup) (setq org-indent-mode nil)) ((and org-indent-mode (featurep 'xemacs)) -(message org-indent-mode does not work in XEmacs - refused to turn it on) +(message org-indent-mode does not work in XEmacs - refusing to turn it on) (setq org-indent-mode nil)) ((and org-indent-mode (not (org-version-check 23.1.50 Org Indent mode :predicate))) -(message org-indent-mode is can crash Emacs 23.1 - refused to turn it on!) +(message org-indent-mode can crash Emacs 23.1 - refusing to turn it on!) (ding) (sit-for 1) (setq org-indent-mode nil)) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Accepted] [Orgmode] Re: [PATCH] Table caption produces trailing nil in pdf export
Patch 211 (http://patchwork.newartisans.com/patch/211/) is now Accepted. Maintaner comment: No comment This relates to the following submission: http://mid.gmane.org/%3C87bp9a8a8b.wl%25n.goaziou%40gmail.com%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Re: [PATCH] Table caption produces trailing nil in pdf export Date: Wed, 11 Aug 2010 01:48:52 - From: Nicolas Goaziou n.goaz...@gmail.com X-Patchwork-Id: 211 Message-Id: 87bp9a8a8b.wl%n.goaz...@gmail.com To: John Hendy jw.he...@gmail.com Cc: emacs-orgmode emacs-orgmode@gnu.org Hello, John Hendy writes: Suddenly I'm getting a line with nothing but nil between the caption and the table when exporting from org-mode to LaTeX. I swear this not happening. I believe I did a git pull on Friday or some time last week. The only reason I noticed is that I just set up emacs, org, and LaTeX on a new computer and tested an old file to make sure the export was working. I then checked my other computer with what I thought was a fine install and it's doing it now, too. I originally thought I missed something on the new computer, but now I'm wondering if it's from the fresh pull. This patch (needed by my own mistake) should correct the problem. Regards, -- Nicolas From 38a3ae8cf8716af0db87a47a421b6d5af654d045 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Tue, 10 Aug 2010 22:43:35 +0200 Subject: [PATCH] Fix empty label bug * org-latex.el (org-export-latex-tables): Return instead of nil when no label is attached. --- lisp/org-latex.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 056f1b3..b0ba939 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1683,7 +1683,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. \\caption%s{%s} %s (if shortn (concat [ shortn ]) ) (or caption ) - (when label (format \\label{%s} label + (if label (format \\label{%s} label) ))) (if (and longtblp caption) \n \n) (if (and org-export-latex-tables-centered (not longtblp)) \\begin{center}\n) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Looking for a sample function to find a location for org-capture
On Aug 12, 2010, at 3:30 AM, Charles Cave wrote: I'm exploring the many features of org-capture and I see the documentation about a function for finding the location for refiling. What exactly are you referring to? I would like to see some sample code on how to do this. At the moment I am using a date tree to file my TODO items and notes. (I am writing an article about this and will publish soon) Let's say I had a headline structure for weeks of the year and I would like a function to add an item to the heading corresponding to the week of the year. Today (12th Aug) we are in Week 32. What would the function be to file under the appropriate heading: * 2010 ** 2010-Week-28 ** 2010-Week-29 ** 2010-Week-30 ** 2010-Week-31 ** 2010-Week-32 ** 2010-Week-33 Could the function create the heading if it didnt exist . just like org-capture handles creation of new brances on a date tree? Well, the datetree is a special library that does create the headings for a date tree. If you want a different structure (weeks instead of months), code for this would have to be written, and I guess org-capture would have to be extended to call this code. But I am not sure if I understand what you are asking. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Proposed command: org-agenda-clock-goto
Bastien bastien.gue...@wikimedia.fr writes: Noorul Islam K M noo...@noorul.com writes: For me J takes me to the org file entry not to the agenda entry. That's weird. Did you pull and get the last Org? `J' should: - move the point to the clocked in entry in the agenda buffer - if the clocked entry is not listed in the agenda buffer, display it in another window - if there is no running clock, display a message. Oh my bad! It actually works! git pull make clean make M-x org-reload I am sorry about this spam. I have been looking for this functionality for a long time. Thanks a ton for this. Thanks and Regards Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Print / export TODO Tree
Nathan Neff nathan.n...@gmail.com writes: Sorry if this is a FAQ, but is there a way to export or print a TODO tree? For example you can export a subtree as HTML and open the same in browser by placing the cursor on the subtree and using Use C-c C-e 1 b Try different option instead of 'b' Thanks Noorul ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Patch] org-capture.el
Bastien, Thanks, I hadn't checked the value of org-auto-realign-tags before looking at org-capture. But unfortunately that doeesn't solve the problem for me, the tags just aren't realigning. (org-auto-realign-tags is set true by default in my reference branch.) My capture output still looks like this: * Headline :tag: stuff here Tags align normally for only after adding that line to org-capture. Best, Mark On Thu, Aug 12, 2010 at 3:53 AM, Bastien bastien.gue...@wikimedia.frwrote: Hi Mark, Mark Scala marksc...@gmail.com writes: When capture templates with tags are finalized, those tags are not realigned. I think this fixes it (does in the cases I've tested). Thanks for the patch -- I have (setq org-auto-align-tags t) here and tags are aligned when capturing. Would that solve your issue as well? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto
Carsten Dominik carsten.domi...@gmail.com writes: On Aug 12, 2010, at 12:13 AM, Bastien wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hmmm, I just pulled, and J jumps to the org-mode file while C-c C-x C- j goes to the agenda lines corresponding to the clocking item. I meant it the other way around. What am I missing? Weird -- M-x org-reload? This diff shows the change in the keybindinds: You are right -it does not work for me. Must have made a mistake. It works for me. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Clock history, C-u C-c C-x C-i not working properly
Carsten Dominik carsten.domi...@gmail.com writes: On Aug 12, 2010, at 2:40 AM, Bernt Hansen wrote: Markus Heller helle...@gmail.com writes: Bernt Hansen be...@norang.ca writes: Markus Heller helle...@gmail.com writes: Hello all, I have had this issue for quite a while, and now it's finally time to post it. I'm using emacs 23.2.1 and orgmode 7.01trans (release_7.01g.73.g29354) on windoze XP, together with Bernt's clock history setup. If I hit C-u C-c C-x C-i, the list of tasks to clock in starts somewhere in the middle, right now at ``[J]''. I've had this issue on emacs 22 and with orgmode 6.36 ... My list on Windows XP, Emacs 23.2.1 is also a bit weird. The choices for my list are: [d] [1] [2] [5] [6] [7] [8] [9] [A] [B] [C] [D] [M] [O] [R] On linux with a full clock history I get [d] [1] [2] ... [9] [A] [B] ... [R] [S] with no gaps I've noticed problems with the menu on my EEE PC which has a reduced screen size so it couldn't display the entire menu and displayed the end instead of beginning of the menu. I've since reduced org-clock-history-length from 36 to 28 so it fits on that device. I tried reducing org-clock-history-length to 12, but to no avail. It's not that the list doesn't fit in the buffer, it starts at [J] and shows only [J] through [Z] with no gaps. I don't see an error message in the minibuffer ... Would it help if I attached a screenshot? No I don't think attaching a screenshot will really add any value at this point. I'm looking at the org-clock-select-task function to try to determine why it comes up with these weird selections. These selection characters are made by doing computations with character numbers. maybe Windows has a different underlying font (not ascii, something else), where specific characters are located at different positions? It's also not consistent. Right now my windows version behaves the same as linux, [1] .. [9] [A] .. [S] with no gaps. As Carsten stated the character selections are based on ASCII and maybe this doesn't work if the file is in some other weird encoding. I haven't been able to reproduce the bad behaviour at will yet. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [PATCH] Proposed command: org-agenda-clock-goto
On Aug 12, 2010, at 1:23 PM, Bernt Hansen wrote: Carsten Dominik carsten.domi...@gmail.com writes: On Aug 12, 2010, at 12:13 AM, Bastien wrote: Carsten Dominik carsten.domi...@gmail.com writes: Hmmm, I just pulled, and J jumps to the org-mode file while C-c C-x C- j goes to the agenda lines corresponding to the clocking item. I meant it the other way around. What am I missing? Weird -- M-x org-reload? This diff shows the change in the keybindinds: You are right -it does not work for me. Must have made a mistake. not - now! :( It works for me. -Bernt - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [babel] confusion about org-confirm-babel-evaluate
Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- checking the value of this variable (C-h v org-babel-confirm-evaluate) gives me: , | org-confirm-babel-evaluate is a variable defined in `ob.el'. | Its value is nil | Local in buffer deferred-questions.org; global value is t | | This variable is a file local variable. | This variable is safe as a file local variable if its value | satisfies the predicate which is byte-compiled expression. | | Documentation: | Confirm before evaluation. | Require confirmation before interactively evaluating code | blocks in Org-mode buffers. The default value of this variable | is t, meaning confirmation is required for any code block | evaluation. This variable can be set to nil to inhibit any | future confirmation requests. This variable can also be set to a | [...] ` so the value is indeed nil. However, exporting to PDF, say, still requires me to confirm each evaluation. Typing C-c C-c doesn't require confirmation, however, so the variable does seem to have some effect. What am I missing here to avoid having to confirm on export? The only variable I have found that combines both export and babel is org-export-babel-evaluate which is not what I want. Thanks, eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Can you try setting it via setq (i.e., globally) and see what happens? On 08/12/2010 07:53 AM, Eric S Fraga wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- checking the value of this variable (C-h v org-babel-confirm-evaluate) gives me: , | org-confirm-babel-evaluate is a variable defined in `ob.el'. | Its value is nil | Local in buffer deferred-questions.org; global value is t | | This variable is a file local variable. | This variable is safe as a file local variable if its value | satisfies the predicate which is byte-compiled expression. | | Documentation: | Confirm before evaluation. | Require confirmation before interactively evaluating code | blocks in Org-mode buffers. The default value of this variable | is t, meaning confirmation is required for any code block | evaluation. This variable can be set to nil to inhibit any | future confirmation requests. This variable can also be set to a | [...] ` so the value is indeed nil. However, exporting to PDF, say, still requires me to confirm each evaluation. Typing C-c C-c doesn't require confirmation, however, so the variable does seem to have some effect. What am I missing here to avoid having to confirm on export? The only variable I have found that combines both export and babel is org-export-babel-evaluate which is not what I want. Thanks, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Accepted] [Orgmode] Re: [PATCH] Table caption produces trailing nil in pdf export
Now that the patch is official, how do I conduct my next git pull since I don't really want to commit my modified file in favor of the incoming from the git server? Sorry... never really done this part before. I have had a hard enough time trying to learn some git basics; merging is still elusive to me! John On Wed, Aug 11, 2010 at 2:50 AM, Carsten Dominik cdomi...@newartisans.comwrote: Patch 211 (http://patchwork.newartisans.com/patch/211/) is now Accepted. Maintaner comment: No comment This relates to the following submission: http://mid.gmane.org/%3C87bp9a8a8b.wl%25n.goaziou%40gmail.com%3E Here is the original message containing the patch: Content-Type: text/plain; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Orgmode] Re: [PATCH] Table caption produces trailing nil in pdf export Date: Wed, 11 Aug 2010 01:48:52 - From: Nicolas Goaziou n.goaz...@gmail.com X-Patchwork-Id: 211 Message-Id: 87bp9a8a8b.wl%n.goaz...@gmail.com87bp9a8a8b.wl%25n.goaz...@gmail.com To: John Hendy jw.he...@gmail.com Cc: emacs-orgmode emacs-orgmode@gnu.org Hello, John Hendy writes: Suddenly I'm getting a line with nothing but nil between the caption and the table when exporting from org-mode to LaTeX. I swear this not happening. I believe I did a git pull on Friday or some time last week. The only reason I noticed is that I just set up emacs, org, and LaTeX on a new computer and tested an old file to make sure the export was working. I then checked my other computer with what I thought was a fine install and it's doing it now, too. I originally thought I missed something on the new computer, but now I'm wondering if it's from the fresh pull. This patch (needed by my own mistake) should correct the problem. Regards, -- Nicolas From 38a3ae8cf8716af0db87a47a421b6d5af654d045 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Tue, 10 Aug 2010 22:43:35 +0200 Subject: [PATCH] Fix empty label bug * org-latex.el (org-export-latex-tables): Return instead of nil when no label is attached. --- lisp/org-latex.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 056f1b3..b0ba939 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -1683,7 +1683,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER. \\caption%s{%s} %s (if shortn (concat [ shortn ]) ) (or caption ) - (when label (format \\label{%s} label + (if label (format \\label{%s} label) ))) (if (and longtblp caption) \n \n) (if (and org-export-latex-tables-centered (not longtblp)) \\begin{center}\n) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Patch] org-capture.el
Hi Mark, Mark Scala marksc...@gmail.com writes: Thanks, I hadn't checked the value of org-auto-realign-tags before looking at org-capture. (Please note this is `org-auto-align-tags' -- not `org-auto-REalign-tags'.) But unfortunately that doeesn't solve the problem for me, the tags just aren't realigning. (org-auto-realign-tags is set true by default in my reference branch.) My capture output still looks like this: * Headline :tag: stuff here Tags align normally for only after adding that line to org-capture. Yes, but it should work without that line since `org-set-tags' is called beforehand in the process of creating the captured entry. I'm digging into this to see what's wrong. Thanks, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
On Thu, 12 Aug 2010 08:44:42 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Can you try setting it via setq (i.e., globally) and see what happens? On 08/12/2010 07:53 AM, Eric S Fraga wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- [...] Erik, setting it globally (well, through customize as with setq didn't actually change the global value) works just fine so there must be some problem with the local value being ignored (I don't know enough about emacs variables to understand the distinction, at the level of lisp programming, between global and buffer local variables)? Of course, I'm not comfortable with the global setting for all the reasons already discussed on this list! Thanks for this, in any case, as it makes life a little less painful for today while I work on this long document! eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Eric S Fraga ucec...@ucl.ac.uk wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- checking the value of this variable (C-h v org-babel-confirm-evaluate) gives me: , | org-confirm-babel-evaluate is a variable defined in `ob.el'. | Its value is nil | Local in buffer deferred-questions.org; global value is t | | This variable is a file local variable. | This variable is safe as a file local variable if its value | satisfies the predicate which is byte-compiled expression. | | Documentation: | Confirm before evaluation. | Require confirmation before interactively evaluating code | blocks in Org-mode buffers. The default value of this variable | is t, meaning confirmation is required for any code block | evaluation. This variable can be set to nil to inhibit any | future confirmation requests. This variable can also be set to a | [...] ` so the value is indeed nil. However, exporting to PDF, say, still requires me to confirm each evaluation. Typing C-c C-c doesn't require confirmation, however, so the variable does seem to have some effect. What am I missing here to avoid having to confirm on export? The only variable I have found that combines both export and babel is org-export-babel-evaluate which is not what I want. Seems to me that the variable is not effective at all at this point in time: it still has to be connected up and wired in. Here's what I see: Org-mode version 7.01trans (release_7.01h.112.g13a0) GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2010-05-17 on gamaville.dokosmarshall.org org-babel-execute-src-block calls org-babel-confirm-evaluate in the following context: (let (... (evaluation-confirmed (org-babel-confirm-evaluate info)) ...) ... but evaluation-confirmed is not used anywhere. In fact, there is a comment on the line above: ;; note the `evaluation-confirmed' variable is currently not ;; used, but could be used later to avoid the need for ;; chaining confirmations (evaluation-confirmed (org-babel-confirm-evaluate info)) but that's the *only* place where org-babel-confirm-evaluate is called, so I don't think the function (or the variable that Eric is trying to set) has any effect at all. I haven't chased things through to the C-c C-c stage that Eric mentions, so I'm not sure what causes that. Am I missing something? Thanks, Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Accepted] [Orgmode] Re: [PATCH] Table caption produces trailing nil in pdf export
John Hendy jw.he...@gmail.com writes: Now that the patch is official, how do I conduct my next git pull since I don't really want to commit my modified file in favor of the incoming from the git server? If your patch comes from a temporary branch, just checkout the master branch (~$ git checkout master) and pull normally with ~$ git pull. (This is the advantage of working in branches: you'll always be able to pull from the master branch.) If your patch comes from the master branch, two cases: 1. you *didn't commit* your changes on your local repo. Then you need to reset to HEAD and pull: ~$ git reset --hard HEAD ~$ git pull 2. you *did commit* your changes on your local repo. Then you need to reset to a specific commit (i.e. the one from last pull) and pull: ~$ git reset --hard commit ~$ git pull You can get commit with ~$ git log. Playing with gitk might also help. http://book.git-scm.com/4_undoing_in_git_-_reset,_checkout_and_revert.html will give more details. HTH, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Agenda view Face for deadlines PATCH
Hi Sébastien, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Though, what I really don't understand is that I `C-u C-M-x' the function =org-agenda-highlight-todo=, and then call =org-agenda-list=, expecting to trace the function that *highlights every TODO line* of my agenda. And... no, *edebug is not launched*!? I really don't understand that... I'm not using elp so I cannot help on that. What if you just go to go `org-agenda-highlight-todo' and M-x edebug-defun RET after it? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Looking for a sample function to find a location for org-capture
Charles Cave charles_c...@optusnet.com.au writes: I'm exploring the many features of org-capture and I see the documentation about a function for finding the location for refiling. Let's say you have this capture template: , | (setq org-capture-templates | '((w WP TEST entry (function bzg-find-location) | * TODO Put this after abcde\n\n :prepend t))) ` And this finding function: , | (defun bzg-find-location () | Example: find my bzg.org file and the abcde string in the current buffer | (find-file ~/org/bzg.org) | (goto-char (point-min)) | (re-search-forward abcde nil t) | (newline 2)) ` Capturing with w will put the entry after the abcde string in bzg.org. HTH, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Eric S Fraga wrote: On Thu, 12 Aug 2010 08:44:42 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Can you try setting it via setq (i.e., globally) and see what happens? On 08/12/2010 07:53 AM, Eric S Fraga wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- [...] Erik, setting it globally (well, through customize as with setq didn't actually change the global value) works just fine so there must be some problem with the local value being ignored (I don't know enough about emacs variables to understand the distinction, at the level of lisp programming, between global and buffer local variables)? Of course, I'm not comfortable with the global setting for all the reasons already discussed on this list! If you look at the definition of org-confirm-babel-evaluate, you'll see: ;; don't allow this variable to be changed through file settings (put 'org-confirm-babel-evaluate 'safe-local-variable (lambda (x) (eq x t))) I'll guess as to why this is. You might not want to have a malicious file essentially being able to override the very feature meant to protect the user. I could be off base with that. I'm guessing there is a solution to your problem, I just don't know it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Org-Babel] and R... non-numeric cells
Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l || \s{Année 2010} | \s{Année 2011} | \s{Année 2012} | \s{Année 2013} | |++++| | RFO| 2596376.30 | 150.00 | 50.00 | 50.00 | | RFO réseau structurant | 3804467.00 | 6534066.00 | 3804467.00 | 0.00 | | Équipements| 100.00 | 15.00 | 5.00 | 5.00 | |++++| | Total (HTVA) | 7400843.30 | 8184066.00 | 4354467.00 | 55.00 | #+TBLFM: @5$2=vsum(@-...@-ii);%.2f::@5$3=vsum(@-...@-ii);%.2f::@5$4=vsum(@-...@-ii);%.2f::@5$5=vsum(@-...@-ii);%.2f whose graphical representation is: #+srcname: barplot-investment(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - as.matrix(ptable[2:4, -1]) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[-nrow(ptable),1], legend.location=topright) #+end_src --8---cut here---end---8--- That works perfectly for him (on Ubuntu 9.04, R 2.7.1, Emacs 22.2.1, Org 6.35) Not for me... on Ubuntu 10.04, R 2.10.1, Emacs 23.1.1, Org 7.01, ESS 5.10: I get the message *Error in as.matrix(ptable[2:4, -1])/1e+06 : non-numeric argument to binary operator* As 1M is numeric, the non-numeric operand must be =as.matrix(ptable[2:4, -1])=... Verification: --8---cut here---start-8--- ptable V1 V2 V3 V4 1\\s{Année 2010} \\s{Année 2011} \\s{Année 2012} 2RFO 2596376.3 150.050.0 3 RFO réseau structurant 3804467.0 6534066.0 3804467.0 4Équipements 100.015.0 5.0 5 Total (HTVA) 7400843.3 8184066.0 4354467.0 V5 1 \\s{Année 2013} 250.0 3 0.0 4 5.0 555.0 as.matrix(ptable[2:4, -1]) V2 V3 V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- The numerics are written between double quotes... Why!? I had temporarily patched the above problem in my document by updating the line with the assignment: --8---cut here---start-8--- #+srcname: barplot-investment-sva(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-sva-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - matrix(as.numeric(as.matrix(ptable[2:4, -1])), nrow=3, ncol=4) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[2:4,1], legend.location=topright) #+end_src --8---cut here---end---8--- and I even just noticed that, instead of complexifying the expression, I can simplify it, in my case, as my =ptable= is numeric already: --8---cut here---start-8--- ptable[2:4, -1] V2V3V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- But I still don't understand what is reponsible of a different treatment of string and numerics between our 2 machines. Any idea? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Nick Dokos wrote: Eric S Fraga ucec...@ucl.ac.uk wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- checking the value of this variable (C-h v org-babel-confirm-evaluate) gives me: , | org-confirm-babel-evaluate is a variable defined in `ob.el'. | Its value is nil | Local in buffer deferred-questions.org; global value is t | | This variable is a file local variable. | This variable is safe as a file local variable if its value | satisfies the predicate which is byte-compiled expression. | | Documentation: | Confirm before evaluation. | Require confirmation before interactively evaluating code | blocks in Org-mode buffers. The default value of this variable | is t, meaning confirmation is required for any code block | evaluation. This variable can be set to nil to inhibit any | future confirmation requests. This variable can also be set to a | [...] ` so the value is indeed nil. However, exporting to PDF, say, still requires me to confirm each evaluation. Typing C-c C-c doesn't require confirmation, however, so the variable does seem to have some effect. What am I missing here to avoid having to confirm on export? The only variable I have found that combines both export and babel is org-export-babel-evaluate which is not what I want. Seems to me that the variable is not effective at all at this point in time: it still has to be connected up and wired in. Here's what I see: Org-mode version 7.01trans (release_7.01h.112.g13a0) GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2010-05-17 on gamaville.dokosmarshall.org org-babel-execute-src-block calls org-babel-confirm-evaluate in the following context: (let (... (evaluation-confirmed (org-babel-confirm-evaluate info)) ...) ... but evaluation-confirmed is not used anywhere. In fact, there is a comment on the line above: ;; note the `evaluation-confirmed' variable is currently not ;; used, but could be used later to avoid the need for ;; chaining confirmations (evaluation-confirmed (org-babel-confirm-evaluate info)) but that's the *only* place where org-babel-confirm-evaluate is called, so I don't think the function (or the variable that Eric is trying to set) has any effect at all. I haven't chased things through to the C-c C-c stage that Eric mentions, so I'm not sure what causes that. Am I missing something? org-babel-confirm-evaluate is a function. org-confirm-babel-evaluate is a variable. evaluation-confirmed is the result of evaluating the org-babel-confirm-evaluate function. So even though the /result/ of that function isn't used yet, the function is still called. That function uses the value of org-confirm-babel-evaluate to decide to prompt the user or not. So, as of now, setting org-confirm-babel-evaluate to t or nil definitely has an effect. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
On Thu, 12 Aug 2010 09:59:02 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Eric S Fraga wrote: On Thu, 12 Aug 2010 08:44:42 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Can you try setting it via setq (i.e., globally) and see what happens? On 08/12/2010 07:53 AM, Eric S Fraga wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- [...] Erik, setting it globally (well, through customize as with setq didn't actually change the global value) works just fine so there must be some problem with the local value being ignored (I don't know enough about emacs variables to understand the distinction, at the level of lisp programming, between global and buffer local variables)? Of course, I'm not comfortable with the global setting for all the reasons already discussed on this list! If you look at the definition of org-confirm-babel-evaluate, you'll see: ;; don't allow this variable to be changed through file settings (put 'org-confirm-babel-evaluate 'safe-local-variable (lambda (x) (eq x t))) I'll guess as to why this is. You might not want to have a malicious file essentially being able to override the very feature meant to protect the user. I could be off base with that. I'm guessing there is a solution to your problem, I just don't know it. Ahhh... I can see the reasoning behind this but I guess the question becomes one of whether there is any way to turn this off for a file I am working on without having to turn it off globally? If not, I could turn it off globally for a while... not a big deal, I guess. Thanks! eric -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Eric S Fraga wrote: On Thu, 12 Aug 2010 09:59:02 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Eric S Fraga wrote: On Thu, 12 Aug 2010 08:44:42 -0500, Erik Iverson er...@ccbr.umn.edu wrote: Can you try setting it via setq (i.e., globally) and see what happens? On 08/12/2010 07:53 AM, Eric S Fraga wrote: Hello all, Back from a short holiday and trying to catch up on work... and so I may have missed something in the org mailing list (although I've searched...). I have a large file which includes many babel code blocks (mostly maxima) that I wish to have evaluated on export. This works except that I have to confirm each evaluation (which takes some time). I know that org-confirm-babel-evaluate exists so I have put the following at the top of my org file: # -*- org-confirm-babel-evaluate: nil; -*- [...] Erik, setting it globally (well, through customize as with setq didn't actually change the global value) works just fine so there must be some problem with the local value being ignored (I don't know enough about emacs variables to understand the distinction, at the level of lisp programming, between global and buffer local variables)? Of course, I'm not comfortable with the global setting for all the reasons already discussed on this list! If you look at the definition of org-confirm-babel-evaluate, you'll see: ;; don't allow this variable to be changed through file settings (put 'org-confirm-babel-evaluate 'safe-local-variable (lambda (x) (eq x t))) I'll guess as to why this is. You might not want to have a malicious file essentially being able to override the very feature meant to protect the user. I could be off base with that. I'm guessing there is a solution to your problem, I just don't know it. Ahhh... I can see the reasoning behind this but I guess the question becomes one of whether there is any way to turn this off for a file I am working on without having to turn it off globally? If not, I could turn it off globally for a while... not a big deal, I guess. Thanks! Also, not that it solves your issue at all, but I have (setq org-confirm-babel-evaluate nil) in my .emacs, and it sets it globally just fine... ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Org-Babel] and R... non-numeric cells
Hello, I'm *guessing* that this is more likely an issue of R than of org-mode. Have you tried tangling the code and simply running the scripts through R? Essentially, the as.matrix function call is returning a character matrix, which could mean your object 'alldata' has some factors instead of numeric columns. R 2.7.1 is, by R standards, ancient, so it would not surprise me a bit if the differences were because of that old version. Unless you can show that this is somehow org-mode related, I'd construct a reproducible example and ask R-help. In any case, reproducible example will help in solving the problem. Good luck! --Erik Sébastien Vauban wrote: Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l || \s{Année 2010} | \s{Année 2011} | \s{Année 2012} | \s{Année 2013} | |++++| | RFO| 2596376.30 | 150.00 | 50.00 | 50.00 | | RFO réseau structurant | 3804467.00 | 6534066.00 | 3804467.00 | 0.00 | | Équipements| 100.00 | 15.00 | 5.00 | 5.00 | |++++| | Total (HTVA) | 7400843.30 | 8184066.00 | 4354467.00 | 55.00 | #+TBLFM: @5$2=vsum(@-...@-ii);%.2f::@5$3=vsum(@-...@-ii);%.2f::@5$4=vsum(@-...@-ii);%.2f::@5$5=vsum(@-...@-ii);%.2f whose graphical representation is: #+srcname: barplot-investment(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - as.matrix(ptable[2:4, -1]) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[-nrow(ptable),1], legend.location=topright) #+end_src --8---cut here---end---8--- That works perfectly for him (on Ubuntu 9.04, R 2.7.1, Emacs 22.2.1, Org 6.35) Not for me... on Ubuntu 10.04, R 2.10.1, Emacs 23.1.1, Org 7.01, ESS 5.10: I get the message *Error in as.matrix(ptable[2:4, -1])/1e+06 : non-numeric argument to binary operator* As 1M is numeric, the non-numeric operand must be =as.matrix(ptable[2:4, -1])=... Verification: --8---cut here---start-8--- ptable V1 V2 V3 V4 1\\s{Année 2010} \\s{Année 2011} \\s{Année 2012} 2RFO 2596376.3 150.050.0 3 RFO réseau structurant 3804467.0 6534066.0 3804467.0 4Équipements 100.015.0 5.0 5 Total (HTVA) 7400843.3 8184066.0 4354467.0 V5 1 \\s{Année 2013} 250.0 3 0.0 4 5.0 555.0 as.matrix(ptable[2:4, -1]) V2 V3 V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- The numerics are written between double quotes... Why!? I had temporarily patched the above problem in my document by updating the line with the assignment: --8---cut here---start-8--- #+srcname: barplot-investment-sva(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-sva-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - matrix(as.numeric(as.matrix(ptable[2:4, -1])), nrow=3, ncol=4) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[2:4,1], legend.location=topright) #+end_src --8---cut here---end---8--- and I even just noticed that, instead of complexifying the expression, I can simplify it, in my case, as my =ptable= is numeric already: --8---cut here---start-8--- ptable[2:4, -1] V2V3V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- But I still don't understand what is reponsible of a different treatment of string and numerics between our 2 machines. Any idea? Best regards, Seb ___ Emacs-orgmode mailing list
Re: [Orgmode] [Org-Babel] and R... non-numeric cells
I have had a similar problem and I traced it back to the presence of horizontal lines in the source table. The two ways that I have dealt with the problem are to either not have horizontal lines in the table or use some R stuff to clean things up. For example, suppose that I have the following table #+TBLNAME: mytbl |column1|column2| ||---| | 45 |34 | | 77 |56 | when I send that to R, it will treat everything as character due to the horizontal line. The following R snippet will clean it up and recast everything as numeric. #+BEGIN_SRC R :var tbl=mytbl names(tbl) - tbl[1,] #renames the variables from V1, V2 etc to what they should be tbl - tb[-1,] #gets rid of the first row that had the errant variable names for (i in 1:ncol(tbl)){ tbl[,i] - as.numeric(tbl[,i]) } # the for-loop goes through each column and recasts it as a numeric variable instead of character. #+END_SRC of course, if you have a column of text in the first column (or any column for that matter) you need to adjust your for-loop accordingly. I hope this helps. -Neil On 2010-08-12, at 9:06 AM, Sébastien Vauban wrote: Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l || \s{Année 2010} | \s{Année 2011} | \s{Année 2012} | \s{Année 2013} | |++++| | RFO| 2596376.30 | 150.00 | 50.00 | 50.00 | | RFO réseau structurant | 3804467.00 | 6534066.00 | 3804467.00 | 0.00 | | Équipements| 100.00 | 15.00 | 5.00 | 5.00 | |++++| | Total (HTVA) | 7400843.30 | 8184066.00 | 4354467.00 | 55.00 | #+TBLFM: @5$2=vsum(@-...@-ii);%.2f::@5$3=vsum(@-...@-ii);%.2f::@5$4=vsum(@-...@-ii);%.2f::@5$5=vsum(@-...@-ii);%.2f whose graphical representation is: #+srcname: barplot-investment(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - as.matrix(ptable[2:4, -1]) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[-nrow(ptable),1], legend.location=topright) #+end_src --8---cut here---end---8--- That works perfectly for him (on Ubuntu 9.04, R 2.7.1, Emacs 22.2.1, Org 6.35) Not for me... on Ubuntu 10.04, R 2.10.1, Emacs 23.1.1, Org 7.01, ESS 5.10: I get the message *Error in as.matrix(ptable[2:4, -1])/1e+06 : non-numeric argument to binary operator* As 1M is numeric, the non-numeric operand must be =as.matrix(ptable[2:4, -1])=... Verification: --8---cut here---start-8--- ptable V1 V2 V3 V4 1\\s{Année 2010} \\s{Année 2011} \\s{Année 2012} 2RFO 2596376.3 150.050.0 3 RFO réseau structurant 3804467.0 6534066.0 3804467.0 4Équipements 100.015.0 5.0 5 Total (HTVA) 7400843.3 8184066.0 4354467.0 V5 1 \\s{Année 2013} 250.0 3 0.0 4 5.0 555.0 as.matrix(ptable[2:4, -1]) V2 V3 V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- The numerics are written between double quotes... Why!? I had temporarily patched the above problem in my document by updating the line with the assignment: --8---cut here---start-8--- #+srcname: barplot-investment-sva(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-sva-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - matrix(as.numeric(as.matrix(ptable[2:4, -1])), nrow=3, ncol=4) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[2:4,1], legend.location=topright) #+end_src --8---cut here---end---8--- and I even just noticed that, instead of complexifying the expression, I can simplify it, in my
[Orgmode] Problem with named footnotes and LaTeX export?
Hi, First, thank you to all Org-mode contributors, it is a marvelous productivity tool and truly lives up to its motto of managing life in plain text. Now on to a possible bug. :) I have noticed that when I include named footnotes within an unordered list, the LaTeX exported file has problems, and mixes in the text (after the first word) of a named footnote directly within the text of the unordered list item. Named footnotes that are in ordered lists are exported without a problem. This bug may be the same one that was described in this message, though the OP didn't provide follow-up information: http://article.gmane.org/gmane.emacs.orgmode/23637/ ...also, I think the problem does not happen with numbered footnotes in unordered lists, as the single response message by Matt Lundin showed. I'm using a current (git-pulled as of this morning) version of Org-mode, with Emacs 23.2.50. An example .org file to test (and hopefully reproduce) the problem is included below; the problem can be seen by doing an export to LaTeX (with optional view in PDF). Thanks in advance for any help/debugging, Kai Test Orgmode's Handling of Named Footnotes * Intro This is the opening paragraph, without much to say at the moment. But forsooth, let us praise Lisp. * A Bit About John McCarthy - Lisp was created and designed by John McCarthy.[fn:Lisp_origin] - McCarthy's first publication on Lisp was Recursive Functions of Symbolic Expressions and Their Computation by Machine (Part I).[fn:First_Lisp_paper] * Lisp's Amazingness 1. What's amazing about Lisp is how small the core language is; it's the computing equivalent of Maxwell's equations! Originally McCarthy described just seven functions and two special forms: - atom, car, cdr, cond, cons, eq, quote, lambda, label 2. 50 years on, other programming languages are finally beginning to approach Lisp's power and generality.[fn:Graham_on_Lisp] * Footnotes [fn:Lisp_origin] See http://en.wikipedia.org/wiki/Lisp_(programming_language) for a brief historic overview. [fn:First_Lisp_paper] See http://www-formal.stanford.edu/jmc/recursive.html for versions of this landmark paper. [fn:Graham_on_Lisp] See Paul Graham's Lisp articles at http://www.paulgraham.com/lisp.html ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [Org-Babel] and R... non-numeric cells
Which version of org-mode are you using? I do not see what you claim to see. What do you get when you run the following: #+TBLNAME: mytbl |column1|column2| ||---| | 45 |34 | | 77 |56 | #+BEGIN_SRC R :var tbl=mytbl :results output str(tbl) #+END_SRC I get the following, which looks right to me. #+results: : 'data.frame': 2 obs. of 2 variables: : $ column1: int 45 77 : $ column2: int 34 56 Neil Hepburn wrote: I have had a similar problem and I traced it back to the presence of horizontal lines in the source table. The two ways that I have dealt with the problem are to either not have horizontal lines in the table or use some R stuff to clean things up. For example, suppose that I have the following table #+TBLNAME: mytbl |column1|column2| ||---| | 45 |34 | | 77 |56 | when I send that to R, it will treat everything as character due to the horizontal line. The following R snippet will clean it up and recast everything as numeric. #+BEGIN_SRC R :var tbl=mytbl names(tbl) - tbl[1,] #renames the variables from V1, V2 etc to what they should be tbl - tb[-1,] #gets rid of the first row that had the errant variable names for (i in 1:ncol(tbl)){ tbl[,i] - as.numeric(tbl[,i]) } # the for-loop goes through each column and recasts it as a numeric variable instead of character. #+END_SRC of course, if you have a column of text in the first column (or any column for that matter) you need to adjust your for-loop accordingly. I hope this helps. -Neil On 2010-08-12, at 9:06 AM, Sébastien Vauban wrote: Hello, For a report I'm writing, I've been helped by a colleague of mine (let's call him Albert) for the R graphics generation. Here's an extract of my doc: --8---cut here---start-8--- #+TBLNAME: investissement-2010-2013 #+ATTR_LaTeX: align=l || \s{Année 2010} | \s{Année 2011} | \s{Année 2012} | \s{Année 2013} | |++++| | RFO| 2596376.30 | 150.00 | 50.00 | 50.00 | | RFO réseau structurant | 3804467.00 | 6534066.00 | 3804467.00 | 0.00 | | Équipements| 100.00 | 15.00 | 5.00 | 5.00 | |++++| | Total (HTVA) | 7400843.30 | 8184066.00 | 4354467.00 | 55.00 | #+TBLFM: @5$2=vsum(@-...@-ii);%.2f::@5$3=vsum(@-...@-ii);%.2f::@5$4=vsum(@-...@-ii);%.2f::@5$5=vsum(@-...@-ii);%.2f whose graphical representation is: #+srcname: barplot-investment(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M alldata - as.matrix(ptable[2:4, -1]) / 100 axisLabels - c(Année, Montant HTVA (M€)) mcStackedBarplot(alldata, Investissements, c(2010:2013), ptable[-nrow(ptable),1], legend.location=topright) #+end_src --8---cut here---end---8--- That works perfectly for him (on Ubuntu 9.04, R 2.7.1, Emacs 22.2.1, Org 6.35) Not for me... on Ubuntu 10.04, R 2.10.1, Emacs 23.1.1, Org 7.01, ESS 5.10: I get the message *Error in as.matrix(ptable[2:4, -1])/1e+06 : non-numeric argument to binary operator* As 1M is numeric, the non-numeric operand must be =as.matrix(ptable[2:4, -1])=... Verification: --8---cut here---start-8--- ptable V1 V2 V3 V4 1\\s{Année 2010} \\s{Année 2011} \\s{Année 2012} 2RFO 2596376.3 150.050.0 3 RFO réseau structurant 3804467.0 6534066.0 3804467.0 4Équipements 100.015.0 5.0 5 Total (HTVA) 7400843.3 8184066.0 4354467.0 V5 1 \\s{Année 2013} 250.0 3 0.0 4 5.0 555.0 as.matrix(ptable[2:4, -1]) V2 V3 V4 V5 2 2596376.3 150.0 50.0 50.0 3 3804467.0 6534066.0 3804467.0 0.0 4 100.0 15.0 5.0 5.0 --8---cut here---end---8--- The numerics are written between double quotes... Why!? I had temporarily patched the above problem in my document by updating the line with the assignment: --8---cut here---start-8--- #+srcname: barplot-investment-sva(ptable = investissement-2010-2013) #+begin_src R :file 1-01-investissement-sva-2010-2013.png :exports none :session source(mcplot.R, local=TRUE) ## select the last row only, exclude first column, scale: unit = 1M
[Orgmode] how do you extract schedule duration in column-view
Dear Experts, How do I make it so that column-view shows the duration of a scheduled task? I now that if I do something like * my top node :PROPERTIES: :COLUMNS: %40ITEM %%10SCHEDULED :END: and then create a dynamic-block I can get a table to show the scheduled time, but what do I do if I want the duration of a scheduled task? Thanks, -Emin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Capture and checkitem
I'm also confused about the checkitem type of template. The following template : (T test checkitem (file+headline ~/org/orgfiles/test.org Test) %?) doesn't work as I expected : the capture buffer is not narrowed and no item is created... However, the item template type works as a checkitem should if one adds a [ ] in the text : (T test item (file+headline ~/org/orgfiles/test.org Test) [ ] %?) What is the checkitem type supposed to do ? Julien. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: how do you extract schedule duration in column-view
Actually, I can almost figure out how to do this myself if I knew what function to use to convert a string like SCHEDULED: 2010-08-12 Thu 10:20-10:45 into a duration. If I call org-time-string it only gives me the first part of the date and ignores the ending point. Any tips on what org-mode function to use to get the duration of a scheduled time? On Thu, Aug 12, 2010 at 12:04 PM, Inquisitive Scientist inquisitive.scient...@gmail.com wrote: Dear Experts, How do I make it so that column-view shows the duration of a scheduled task? I now that if I do something like * my top node :PROPERTIES: :COLUMNS: %40ITEM %%10SCHEDULED :END: and then create a dynamic-block I can get a table to show the scheduled time, but what do I do if I want the duration of a scheduled task? Thanks, -Emin ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Capture and clock options
I'm in the process of converting my old remember templates but I can't figure how to use the clock parameters. I'm using the following template : (T test entry (file+headline ~/org/orgfiles/test.org Test) * %? :clock-in t :clock-resume t) There is no clock information in the modeline of the capture buffer, no :CLOCK: property appears when the note is captured, and the former clock is not resumed. However the task appears in the list provided by What am I doing wrong ? Also I noticed in Bernt Hansen examples (which I shamelessly copied, as I had with the former remember templates) that he adds :CLOCK: :END: to his todo template but not to his notes templates, while both are clocked-in and clock-resumed. What is the difference between the two setups ? Julien. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with named footnotes and LaTeX export?
Hello, Kai writes: Hi, First, thank you to all Org-mode contributors, it is a marvelous productivity tool and truly lives up to its motto of managing life in plain text. Now on to a possible bug. :) I have noticed that when I include named footnotes within an unordered list, the LaTeX exported file has problems, and mixes in the text (after the first word) of a named footnote directly within the text of the unordered list item. Named footnotes that are in ordered lists are exported without a problem. This bug may be the same one that was described in this message, though the OP didn't provide follow-up information: http://article.gmane.org/gmane.emacs.orgmode/23637/ ...also, I think the problem does not happen with numbered footnotes in unordered lists, as the single response message by Matt Lundin showed. I don't want to sound arrogant, but this bug should already be fixed in my list improvement branch. Could you confirm it? There's one problem left though: underscores in first URL are interpreted as math text, producing strange results. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Remove dependency of flet in org-write-agenda
This one supersedes patch #181: For reasons not yet know to me using the proposed `macroexpand' to get the flet macro expanded at compile time didn't work. Attached patch solves the whole issue by simply removing the dependency of `flet' in this function altogether. It was used to temporarily redefine the function `ps-print-get-buffer-name' to enforce the buffer name Agenda View (vs. *temp* for a temporary buffer. So, why not simply rename the temp buffer? Note: The function `rename-buffer' is called with UNIQUE beeing non-nil -- just in case there might be a buffer called *Agenda View*. Best, -- David David Maus (1): Rename temporary buffer to remove dependency of `flet' macro ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Rename temporary buffer to remove dependency of `flet' macro
* org-agenda.el (org-write-agenda): Rename temporary buffer to remove dependency of `flet' macro. --- lisp/org-agenda.el | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 61b867b..f2592ad 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2454,12 +2454,14 @@ higher priority settings. ((string-match \\.html?\\' file) (require 'htmlize)) ((string-match \\.ps\\' file) (require 'ps-print))) (org-let (if nosettings nil org-agenda-exporter-settings) -`(save-excursion +'(save-excursion (save-window-excursion (org-agenda-mark-filtered-text) (let ((bs (copy-sequence (buffer-string))) beg) (org-agenda-unmark-filtered-text) (with-temp-buffer +(rename-buffer Agenda View t) +(set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text 'org-filtered) (while (setq beg (text-property-any (point-min) (point-max) @@ -2486,14 +2488,12 @@ higher priority settings. (message HTML written to %s file)) ((string-match \\.ps\\' file) (require 'ps-print) - ,(flet ((ps-get-buffer-name () Agenda View)) - (ps-print-buffer-with-faces file)) + (ps-print-buffer-with-faces file) (message Postscript written to %s file)) ((string-match \\.pdf\\' file) (require 'ps-print) - ,(flet ((ps-get-buffer-name () Agenda View)) - (ps-print-buffer-with-faces - (concat (file-name-sans-extension file) .ps))) + (ps-print-buffer-with-faces + (concat (file-name-sans-extension file) .ps)) (call-process ps2pdf nil nil nil (expand-file-name (concat (file-name-sans-extension file) .ps)) -- 1.7.1 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] fractional hours for timestamps?
Hi Greg, Greg Troxel g...@ir.bbn.com writes: I tried to set a timestamp thu 12:00+1.5, using C-c . and typing the characters in quotes. What I got was 2010-08-12 Thu 12:00-13:00 I found that 12:00+1:30 works fine, but it seems like 1.5 should be parsed. Separately, I'd like 24-hour time without colons to work. thu 1400 seems unambiguous, but just shows up as thursday without a time. I don't know how hard these are or if there are reasons not to, but I thought I'd throw out the idea. It is certainly harder to make Org's parsing capacity even more elastic than to let our brains parse this directly :) 12:00+1.5 looks weird to me and computing 1.5-1:30 is straightforward. Same for 1400-14:00. But maybe other people think otherwise... -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [babel] confusion about org-confirm-babel-evaluate
Erik Iverson er...@ccbr.umn.edu wrote: Am I missing something? org-babel-confirm-evaluate is a function. org-confirm-babel-evaluate is a variable. I got that much, but I was expecting the return value of the function to make a difference... evaluation-confirmed is the result of evaluating the org-babel-confirm-evaluate function. So even though the /result/ of that function isn't used yet, the function is still called. That function uses the value of org-confirm-babel-evaluate to decide to prompt the user or not. So, as of now, setting org-confirm-babel-evaluate to t or nil definitely has an effect. ... but of course in this case, the function never returns in the no-confirm case. Thanks for setting me straight! Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Mathematical Pseudocode in Source Block
Jeremiah Via jxv...@cs.bham.ac.uk writes: Hi there, I was wondering if there was any way to make the source blocks work with LaTeX formulas. I wanted to use it for some pesudocode; for example: while not converged for each state i \( U^{'}_i = r_i + \underset{a}{argmax} \sum{Pa_{ij}U_j} \) \( U_i \rightarrow U^{'}_i \) end for end while If a source block isn't possible, is there at least a way to get a textbox around it? Hi Jeremiah, Absolutely. Here are some quick notes - Org can recognise simple LaTeX constructs inline, without any special markup section 11.7 of the manual http://orgmode.org/org.html#Embedded-LaTeX - The basic way to place more complex fragments of latex in an Org document is in a #+begin_latex block section 12.6 of the manual http://orgmode.org/org.html#LaTeX-and-PDF-export - Personally I use the listings package to format pseudocode, e.g. #+begin_latex \begin{algorithm} \caption{An algorithm} \label{alg:myalg} \begin{lstlisting}[mathescape,escapeinside=''] '\foreach individual $i$' '\foreach group $k$' $\gamma_{ik} \getsp Q_{k}\prod_{l}\prod_{a=1}^{2}P_{lkX_{ila}}$ \end{lstlisting} \end{algorithm} #+end_latex - Don't forget the nice Org functionality like C-c ' to view the latex code in a latex-mode buffer (manual section 11.3), and C-c C-x C-l to view a png image of the latex fragment (manual section 11.7.4). - The latex can also be included in HTML export. By default this uses png images, but check out this thread for using MathJax and jsMath to have javascript-mediated rendering of LaTeX formulas in HTML with genuine fonts http://thread.gmane.org/gmane.emacs.orgmode/28259 - You can use a #+latex_header line to specify additional latex preamble lines. E.g. I defined the \foreach command in a file emvbpl.sty and make sure that file is included with #+latex_header: \usepackage{emvbpl} - In addition, latex can be included inside begin_src latex blocks, to achieve a variety of extra functionality, and also some of the same functionality as above. chapter 14 http://orgmode.org/org.html#Working-With-Source-Code Don't hesitate to come back to this list with further questions. Dan Thank you ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: how do you extract schedule duration in column-view
Inquisitive Scientist inquisitive.scient...@gmail.com writes: Actually, I can almost figure out how to do this myself if I knew what function to use to convert a string like SCHEDULED: 2010-08-12 Thu 10:20-10:45 into a duration. If I call org-time-string it only gives me the first part of the date and ignores the ending point. Any tips on what org-mode function to use to get the duration of a scheduled time? Try this function on the scheduled timestamp: , | (defun bzg-duration-of-timestamp-at-point () | Compute the duration of the timestamp at point. | (interactive) | (save-excursion | (forward-line 0) | (when (re-search-forward \\SCHEDULED: *\\([^]+\\) \\([0-9]+:[0-9]+\\)--?\\([0-9]+:[0-9]+\\) nil t) | (let ((date (match-string 1)) | (t1 (match-string 2)) | (t2 (match-string 3))) | (- (org-time-string-to-seconds (concat date t2)) | (org-time-string-to-seconds (concat date t1))) ` HTH, -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] From todos to tracking
I was wondering if there is something that would be able to convert a org-mode buffer (with todos) to a web page (even static) that resembles a tracking system. I don't mean also the way back (writing from the web page to the org mode) but also one way it would be nice, because TODO in the normal html exportation don't really resembles TODO in a tracking system... ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] From todos to tracking
Andrea Crotti andrea.crott...@gmail.com writes: I was wondering if there is something that would be able to convert a org-mode buffer (with todos) to a web page (even static) that resembles a tracking system. I don't mean also the way back (writing from the web page to the org mode) but also one way it would be nice, because TODO in the normal html exportation don't really resembles TODO in a tracking system... Can you be more specific? -- Bastien ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: From todos to tracking
Bastien bastien.gue...@wikimedia.fr writes: Andrea Crotti andrea.crott...@gmail.com writes: I was wondering if there is something that would be able to convert a org-mode buffer (with todos) to a web page (even static) that resembles a tracking system. I don't mean also the way back (writing from the web page to the org mode) but also one way it would be nice, because TODO in the normal html exportation don't really resembles TODO in a tracking system... Can you be more specific? Something like this http://it.wikipedia.org/wiki/File:Kde-bugtracking-via-bugzilla-firefox-1.0.6-kde-3.4.2-de.png I mean of course we need to give to it many more informations, but at least the state is there, the message also and the number could be generated. Something like org-export-todo-to-tracking could have some variables to set and given a normal page prodouce something like the figure. But maybe it doesn't make sense I'm not sure... ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Recognize underscores in URL
Hello, This needs some testing as it may break something else, but the following patch should prevent underscores in URL from introducing subscript. Regards, -- Nicolas From dd068df8a0e43a1a4ee85559bddb7ef2dbfa72bd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou n.goaz...@gmail.com Date: Thu, 12 Aug 2010 19:47:29 +0200 Subject: [PATCH] Recognize URL with underscores * org.el (org-make-link-regexps): modified regexp of org-plain-link-re. --- lisp/org.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 31d2411..4560488 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -4851,7 +4851,7 @@ This should be called after the variable `org-link-types' has changed. org-plain-link-re (concat ( (mapconcat 'regexp-quote org-link-types \\|) \\): -(org-re \\([^ \t\n()]+\\(?:([[:word:]0-9]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\))) +(org-re \\([^ \t\n()]+\\(?:([[:word:]0-9_]+)\\|\\([^[:punct:] \t\n]\\|/\\)\\)\\))) ;; \\([^]\t\n\r() ]+[^]\t\n\r,.;() ]\\)) org-bracket-link-regexp \\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\] -- 1.7.2.1 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: fractional hours for timestamps?
Bastien bastien.gue...@wikimedia.fr writes: Greg Troxel g...@ir.bbn.com writes: I tried to set a timestamp thu 12:00+1.5, using C-c . and typing the characters in quotes. What I got was 2010-08-12 Thu 12:00-13:00 I found that 12:00+1:30 works fine, but it seems like 1.5 should be parsed. Separately, I'd like 24-hour time without colons to work. thu 1400 seems unambiguous, but just shows up as thursday without a time. I don't know how hard these are or if there are reasons not to, but I thought I'd throw out the idea. It is certainly harder to make Org's parsing capacity even more elastic than to let our brains parse this directly :) 12:00+1.5 looks weird to me and computing 1.5-1:30 is straightforward. Same for 1400-14:00. But maybe other people think otherwise... I think Greg's point is about entering data using only numeric keypad. I can confirm that I have considered these issues (esp. 1400 vs. 14:00). Fractional hours don't seem to be that easy as there are countries like Poland where you use comma as decimal point (working with Emacs' built in calc is a pain) which earns another few lines for parsing code. -- Miłego dnia, Łukasz Stelmach ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Problem with named footnotes and LaTeX export?
Nicolas Goaziou n.goaziou at gmail.com writes: Now on to a possible bug. :) I have noticed that when I include named footnotes within an unordered list, the LaTeX exported file has problems, and mixes in the text (after the first word) of a named footnote directly within the text of the unordered list item. Named footnotes that are in ordered lists are exported without a problem. This bug may be the same one that was described in this message, though the OP didn't provide follow-up information: http://article.gmane.org/gmane.emacs.orgmode/23637/ ...also, I think the problem does not happen with numbered footnotes in unordered lists, as the single response message by Matt Lundin showed. I don't want to sound arrogant, but this bug should already be fixed in my list improvement branch. Could you confirm it? There's one problem left though: underscores in first URL are interpreted as math text, producing strange results. Regards, Thanks for the fast response. Yes, the bug is fixed in your list improvement branch, thank you. When will those improvements be merged to trunk/master? And yes, Nicolas has spotted a new bug from my example, caused by parenthesized underscores in hyperlinks that are interpreted incorrectly. K ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: From todos to tracking
On 08/12/2010 07:35 PM, Andrea Crotti wrote: Bastien bastien.gue...@wikimedia.fr writes: Andrea Crotti andrea.crott...@gmail.com writes: I was wondering if there is something that would be able to convert a org-mode buffer (with todos) to a web page (even static) that resembles a tracking system. I don't mean also the way back (writing from the web page to the org mode) but also one way it would be nice, because TODO in the normal html exportation don't really resembles TODO in a tracking system... Can you be more specific? Something like this http://it.wikipedia.org/wiki/File:Kde-bugtracking-via-bugzilla-firefox-1.0.6-kde-3.4.2-de.png I mean of course we need to give to it many more informations, but at least the state is there, the message also and the number could be generated. Something like org-export-todo-to-tracking could have some variables to set and given a normal page prodouce something like the figure. But maybe it doesn't make sense I'm not sure... I don't know what exactly you want to do, but it sounds like column view could do a large portion of that. In the Org manual, check out the following sections: 7.5.2 Using column view, for how to define what columns you want 7.5.3 Capturing column view, for how to insert a table containing the column view's data into your Org file (which you can then export to html). To export only the column view, you may also be interested in section 12.2, Selective export. If you want to generate a table that contains links to a detailed view for each entry, I guess you need some custom elisp code. Maybe write your own dynamic block function which first calls `org-dblock-write:columnview' to do most of the heavy lifting, then post-processes the output to make an id column into links, and finally calls the export function for every TODO headline and the headline containing the dynamic block (while supplying appropriate file names)? HTH, Jan ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] macros: escaping , and comments
Hello, we are currently changing our institute's web site so that staff members can have a personal page: they can submit Org-mode files which are then automatically converted to (rather nice) HTML pages. One advantage is that this allows us to give staff members a lot of freedom to create content while keeping a corporate identity look (and getting the director's permission in the first place). Our template needs a macro in the org template to create a more fancy summary of personal information with a table, a portrait and some icons (aside: please note that you can create really complex HTML code this way if necessary). Here is a very simple example: #+title: test #+macro: mhead #+html: tabletrtd email: $1/tdtd phone: $2/td/tr/table {{{mhead( someb...@somewhere.org, 1-234-2134 )}}} Imagine more lines (job description, fax, homepage, etc) and a more complex table (hidden in a setup file). Having users provide information in this way is not ideal, but has worked surprisingly well (the rest of the template is proper Org-mode content). When creating the Org templates we ran into these problems with Org-mode 7.01 and Emacs 23.2.1: (1) How can we escape , in the macro call? Ideally, we would need something like this: {{{mhead( one entry\, still the same entry, the second variable... (2) It would be nice to use something like this: {{{mhead( # Email someb...@somewhere.org, # Phone 1-234-2134 )}}} However, the # lines are currently not ignored (as comments) when expanding the macro, these kind of comment lines would be helpful when providing templates in general. (3) if, in the above example, we delete the #+title line before the macro definition, that macro stops working (the macro definition is not interpreted as such). It seems there must be at least one line with arbitraty contents before the macro definition (bug?). I think, that (1) (maybe it is already possible - apologies if I overlooked something) and (2) would be useful features in Org-mode. Many thanks in advance for any help with this. Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleuelerstr. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Mathematical Pseudocode in Source Block
This is exactly what I needed. Thanks for all your help! On Thu, Aug 12, 2010 at 9:46 AM, Dan Davison davi...@stats.ox.ac.uk wrote: Jeremiah Via jxv...@cs.bham.ac.uk writes: Hi there, I was wondering if there was any way to make the source blocks work with LaTeX formulas. I wanted to use it for some pesudocode; for example: while not converged for each state i \( U^{'}_i = r_i + \underset{a}{argmax} \sum{Pa_{ij}U_j} \) \( U_i \rightarrow U^{'}_i \) end for end while If a source block isn't possible, is there at least a way to get a textbox around it? Hi Jeremiah, Absolutely. Here are some quick notes - Org can recognise simple LaTeX constructs inline, without any special markup section 11.7 of the manual http://orgmode.org/org.html#Embedded-LaTeX - The basic way to place more complex fragments of latex in an Org document is in a #+begin_latex block section 12.6 of the manual http://orgmode.org/org.html#LaTeX-and-PDF-export - Personally I use the listings package to format pseudocode, e.g. #+begin_latex \begin{algorithm} \caption{An algorithm} \label{alg:myalg} \begin{lstlisting}[mathescape,escapeinside=''] '\foreach individual $i$' '\foreach group $k$' $\gamma_{ik} \getsp Q_{k}\prod_{l}\prod_{a=1}^{2}P_{lkX_{ila}}$ \end{lstlisting} \end{algorithm} #+end_latex - Don't forget the nice Org functionality like C-c ' to view the latex code in a latex-mode buffer (manual section 11.3), and C-c C-x C-l to view a png image of the latex fragment (manual section 11.7.4). - The latex can also be included in HTML export. By default this uses png images, but check out this thread for using MathJax and jsMath to have javascript-mediated rendering of LaTeX formulas in HTML with genuine fonts http://thread.gmane.org/gmane.emacs.orgmode/28259 - You can use a #+latex_header line to specify additional latex preamble lines. E.g. I defined the \foreach command in a file emvbpl.sty and make sure that file is included with #+latex_header: \usepackage{emvbpl} - In addition, latex can be included inside begin_src latex blocks, to achieve a variety of extra functionality, and also some of the same functionality as above. chapter 14 http://orgmode.org/org.html#Working-With-Source-Code Don't hesitate to come back to this list with further questions. Dan Thank you -- Jeremiah M. Via School of Computer Science University of Birmingham ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Org-Babel and Ledger
Hi Seb, Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric(s), As you can see, the tables are completely wrongly made, because they're based on spaces (à la Awk) and not on fixed position of fields (à la Cut). What can I do about this? - Post-process every ledger command with some awk or cut command that will do whatever is needed - Exploit the CSV export format (never tried, don't have Ledger 3 installed yet -- and I'm also using hledger...) Couldn't you use ledger's format strings for fine-tuned control of the command output? I don't know how you're snarfing the output, but it seems like you could using formatting to produce something that already looks very much like an org table, or perhaps CSV. That anser is not really applicable in my case, as I would like to use at least `ledger' and `hledger' for different reports, and they don't share the same exporting capabilities. Plus the problem would come back for any other command-line tool... Many languages import tabular contents into elisp tables which are then inserted into Org-mode buffers as Org-formatted tables. This should be possible by replacing the call to `buffer-string' at the end of the `org-babel-execute:ledger' function with something analogous to the following (copied from ob-sqlite.el). (if (or (member scalar result-params) (member html result-params) (member code result-params) (equal (point-min) (point-max))) (buffer-string) (org-table-convert-region (point-min) (point-max)) That's, then, the interesting line for me... (org-babel-sqlite-table-or-scalar (org-babel-sqlite-offset-colnames (org-table-to-lisp) headers-p))) I would recommend this approach over shell-script post-processing. That seems not to work for me, as input data is, for example: 09-Aug-21 CHEQUE : 9953055Expenses:Unknown 166.70 EUR166.70 EUR 09-Sep-17 CHEQUE : 7691785Expenses:Unknown 100.00 EUR266.70 EUR 09-Oct-16 REMISE CHEQUE N 8686318 001 105 Expenses:Unknown -525.00 EUR -258.30 EUR and as =org-table-convert-region= can't convert fixed positioned fields (when SPC are used instead of TAB): (org-table-convert-region beg0 end0 optional separator) Convert region to a table. The region goes from beg0 to end0, but these borders will be moved slightly, to make sure a beginning of line in the first line is included. separator specifies the field separator in the lines. It can have the following values: '(4) Use the comma as a field separator '(16)Use a TAB as field separator integer When a number, use that many spaces as field separator nil When nil, the command tries to be smart and figure out the separator in the following way: - when each line contains a TAB, assume TAB-separated material - when each line contains a comma, assume CSV material - else, assume one or more SPACE characters as separator. Should that function be smarter, or do I still need pre-processing, then? Neither, notice that if you pass an integer as the third argument to org-table-convert-region it will parse on that many consecutive spaces. The following works for me, on the case your provided although I suppose it may not work on all cases. --8---cut here---start-8--- #+results: ledger-output #+begin_example 09-Aug-21 CHEQUE : 9953055Expenses:Unknown 166.70 EUR166.70 EUR 09-Sep-17 CHEQUE : 7691785Expenses:Unknown 100.00 EUR266.70 EUR 09-Oct-16 REMISE CHEQUE N 8686318 001 105 Expenses:Unknown -525.00 EUR -258.30 EUR #+end_example #+begin_src emacs-lisp :var ledger=ledger-output (with-temp-buffer (insert ledger) (message ledger) (org-table-convert-region (point-min) (point-max) 2) (org-table-to-lisp)) #+end_src #+results: | 09-Aug-21 CHEQUE : 9953055| Expenses:Unknown | 166.70 EUR | 166.70 EUR | | 09-Sep-17 CHEQUE : 7691785| Expenses:Unknown | 100.00 EUR | 266.70 EUR | | 09-Oct-16 REMISE CHEQUE N 8686318 001 105 | Expenses:Unknown | -525.00 EUR | -258.30 EUR | --8---cut here---end---8--- Hope this helps -- Eric Thanks for your comments... Best regards, Seb ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Looking for a sample function to find a location for org-capture
Bastien bastien.guerry at wikimedia.fr writes: Thanks for the clarification. My original question referred to refiling when I meant capturing. Sorry about the confusion. Now I understand the purpose of the function. It should leave the cursor (point) at the location where the capture input should be written. As for modifying the date tree I will look at the date-tree code and see if I understand it. Thanks, Charles ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Bind C-u C-c C-x C-i to a key
Hello all, I'd like to bind `C-u C-c C-x C-i' to the f10 key in emacs 23. I guess the line in my .emacs has to look like (global-set-key (kbd f10) 'org-XXX-XXX) but what exactly would org-XXX-XXX be? I apologize if this is a question with an obvious answer ... Thanks and Cheers Markus ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Clock history, C-u C-c C-x C-i not working properly
Markus Heller helle...@gmail.com writes: Bernt Hansen be...@norang.ca writes: Markus Heller helle...@gmail.com writes: Hello all, I have had this issue for quite a while, and now it's finally time to post it. I'm using emacs 23.2.1 and orgmode 7.01trans (release_7.01g.73.g29354) on windoze XP, together with Bernt's clock history setup. If I hit C-u C-c C-x C-i, the list of tasks to clock in starts somewhere in the middle, right now at ``[J]''. I've had this issue on emacs 22 and with orgmode 6.36 ... My list on Windows XP, Emacs 23.2.1 is also a bit weird. The choices for my list are: [d] [1] [2] [5] [6] [7] [8] [9] [A] [B] [C] [D] [M] [O] [R] On linux with a full clock history I get [d] [1] [2] ... [9] [A] [B] ... [R] [S] with no gaps I've noticed problems with the menu on my EEE PC which has a reduced screen size so it couldn't display the entire menu and displayed the end instead of beginning of the menu. I've since reduced org-clock-history-length from 36 to 28 so it fits on that device. I tried reducing org-clock-history-length to 12, but to no avail. It's not that the list doesn't fit in the buffer, it starts at [J] and shows only [J] through [Z] with no gaps. I don't see an error message in the minibuffer ... I have to correct myself. After a hitting C-u C-c C-x C-i a few times, the history is displayed correctly and has been displayed correctly for more than a day now. Wouldn't this suggest that the issue is related to the size of the buffer containing the clock history? Thanks and Cheers Markus ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Bind C-u C-c C-x C-i to a key
Markus Heller helle...@gmail.com writes: Hello all, I'd like to bind `C-u C-c C-x C-i' to the f10 key in emacs 23. I guess the line in my .emacs has to look like (global-set-key (kbd f10) 'org-XXX-XXX) but what exactly would org-XXX-XXX be? I apologize if this is a question with an obvious answer ... The C-u says that the function that is bound to the rest of the key combination is called with the first argument being `t'. To get information about the function bound to a key combination use: C-h k and then press the key combination (without the C-u prefix). In this case it is org-clock-in. This should bind org-clock-in with argument `t' to F12: (defun ab-org-clock-in-select () (interactive) (org-clock-in t)) (global-set-key (kbd f12) 'ab-org-clock-in-select) Maybe there's a more elegant way I don't know about.. HTH Andreas Thanks and Cheers Markus ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Capture and clock options
Hi Julien, julien cubizolles j.cubizol...@free.fr writes: I'm in the process of converting my old remember templates but I can't figure how to use the clock parameters. I'm using the following template : (T test entry (file+headline ~/org/orgfiles/test.org Test) * %? :clock-in t :clock-resume t) There is no clock information in the modeline of the capture buffer, no :CLOCK: property appears when the note is captured, and the former clock is not resumed. However the task appears in the list provided by What am I doing wrong ? This is a bug in the current master branch of org-mode. I'll identify the commit that breaks it shortly and post that information as a followup to this message. Also I noticed in Bernt Hansen examples (which I shamelessly copied, as I had with the former remember templates) that he adds :CLOCK: :END: to his todo template but not to his notes templates, while both are clocked-in and clock-resumed. What is the difference between the two setups ? The only reason I have :CLOCK: ... :END: in my 'N' notes entry is to keep the clock table from aligning way over on the right with the :NOTE: tag. The other templates don't have tags assigned so clocking in puts the clock drawer at a reasonable spot when creating the task. I haven't actually tested if this is required by org-capture mode but it was for remember mode. My current capture templates were converted from my remember templates. -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Capture and clock options
Julien: You can check out commit a7a842^ ($ git checkout a7a842^) and M-x org-reload and it should work properly. A fix will need to be created for the master branch before this works on the tip of master again. Bernt Hansen be...@norang.ca writes: julien cubizolles j.cubizol...@free.fr writes: I'm in the process of converting my old remember templates but I can't figure how to use the clock parameters. I'm using the following template : (T test entry (file+headline ~/org/orgfiles/test.org Test) * %? :clock-in t :clock-resume t) There is no clock information in the modeline of the capture buffer, no :CLOCK: property appears when the note is captured, and the former clock is not resumed. However the task appears in the list provided by What am I doing wrong ? This is a bug in the current master branch of org-mode. I'll identify the commit that breaks it shortly and post that information as a followup to this message. a7a842457dd927df9eabc756c4c573720a3a7aa9 is the first bad commit commit a7a842457dd927df9eabc756c4c573720a3a7aa9 Author: Bastien Guerry b...@altern.org Date: Wed Aug 11 16:10:14 2010 +0200 Rebind org-agenda-clock-goto to `J' in the agenda. * org-agenda.el (org-agenda-clock-goto): Use `\C-c\C-x\C-j' for `org-clock-goto' and `J' for `org-agenda-clock-goto'. If the heading currently clocked in is not listed in the agenda, display this entry in another buffer. If there is no running clock, display a help message. * org-clock.el (org-clock-set-current): append the filename after the heading. :04 04 8c131e4aa0e207521aa9017c6ed67a29e931fd1b 1e151641c5833aa11d08099a4752db9500ba9978 M lisp -Bernt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [OT] Passing universal argument to a function (was: Bind C-u C-c C-x C-i to a key)
Andreas Burtzlaff and...@gmx.net writes: The C-u says that the function that is bound to the rest of the key combination is called with the first argument being `t'. To get information about the function bound to a key combination use: C-h k and then press the key combination (without the C-u prefix). In this case it is org-clock-in. This should bind org-clock-in with argument `t' to F12: (defun ab-org-clock-in-select () (interactive) (org-clock-in t)) (global-set-key (kbd f12) 'ab-org-clock-in-select) Mhhh, this does not work for me. ,[ (info (eintr)Note for Novices) ] |In addition to typing a lone keychord, you can prefix what you type | with `C-u', which is called the `universal argument'. The `C-u' | keychord passes an argument to the subsequent command. [...] | (If you do not specify a number, Emacs either passes the number 4 to | the command or otherwise runs the command differently than it would | otherwise.) ` So, afaics C-u = Value of 4. Some googling seems to suggest that an argument of '(4) works, and it does for me: --8---cut here---start-8--- (defun ab-org-clock-in-select () (interactive) (org-clock-in '(4))) --8---cut here---end---8--- or even shorter with a lambda --8---cut here---start-8--- (global-set-key (kbd C-c C-g) (lambda () (interactive) (org-clock-in '(4 --8---cut here---end---8--- works here! However, this faq [ (info (efaq)Replying to the sender of a message) ] seems to suggest that your version is the way to go. ... I am confused. However, this is org OT, so I'll finish my musings here :) Go with whatever works for you. Memnon ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] R code not producing expected results
Dear all, Sorry if this is something totally obvious but I am learning to use org-mode for my everyday work with R. I just installed the latest stable release of org-mode (v7.01g) on top of GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25). I also installed the CRAN ascii package v0.7 on top of R v2.11.1. I am currently working on a MacBook pro with Snow Leopard 10.6.4 Early on today, while reading the org-babel intro, I was able to run the following example but somehow, later tonight, it started to break and I spent the last few hours scratching my head to understand what change and why it now suddenly break. Your help will be greatly appreciated as I am discovering that org-mode in collaboration with org-babel have great potential to help us create more readable report of our daily analysis, as long as I can get through these early hurdles. Here is the org buffer that now breaks: * Two examples of R code that worked when I started the tutorial but suddenly started to fail... ** some R code that should generate a nice table #+BEGIN_SRC R library(ascii) options(asciiType=org) d - as.data.frame(replicate(4,rnorm(100))) ascii(cor(d),include.rownames=T, include.colnames=T,header=T) #+END_SRC ** Some code straight from [[http://orgmode.org/worg/org-contrib/babel/languages/org-babel-doc-R.php][org-babel]] #+BEGIN_SRC R library(ascii) options(asciiType=org) ascii(summary(table(1:4, 1:4))) #+END_SRC With the following error recover from the *Org-Babel Error* buffer Loading required package: proto Error in as.data.frame.default(x[[i]], optional = TRUE) : cannot coerce class 'c(ascii, proto, environment)' into a data.frame Calls: write.table ... data.frame - as.data.frame - as.data.frame.default Execution halted Thanks for the helps. -- Marco Blanchette, Ph.D. Assistant Investigator Stowers Institute for Medical Research 1000 East 50th St. Kansas City, MO 64110 Tel: 816-926-4071 Cell: 816-726-8419 Fax: 816-926-2018 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode