Re: [O] Reference to org-drawers in the manual
Hello, Christian Wittern cwitt...@gmail.com writes: On 2014-03-29, 13:37, Nick Dokos wrote: `#+DRAWERS: NAME1 ...' Set the file-local set of additional drawers. The corresponding global variable is `org-drawers'. Has that been removed? I do rely quite heavily on this and do not want to loose it. Which version dropped it and what is the suggested workaround? We removed a limitation, not the feature itself. Now you can use drawers without having to specify its name in a DRAWER keyword. Regards, -- Nicolas Goaziou
[O] Q: Drawers
Hello, Why is the name „Drawers” selected for the Drawers functionality in emacs org-mode? Dick Barends dickbare...@me.com
[O] How to get headline title without statistic cookies.
Hi, As in topic. I got some headline with statistic cookies. For example: * My example headline [3/6][50%] How could I output headline text without cookies? (org-element-property :title headline) returns entire title string with cookies. Is there any easy way to avoid them in output? Regards, Marcin
Re: [O] :no-expand not working on variables?
According to the manual :no-expand is only supposed to have an effect during tangling, not execution. Best, Rainer M Krug rai...@krugs.de writes: Hi shouldn't the following not give an error from R as it should not be expanding the variables? --8---cut here---start-8--- #+PROPERTY: no-expand TRUE #+PROPERTY: var YEAR=2014 * a noexpand code #+begin_src R :results output :no-expand cat(YEAR) #+end_src #+RESULTS: : 2014 --8---cut here---end---8--- The manual states: , | 14.8.2.11 `:no-expand' | .. | | By default, code blocks are expanded with `org-babel-expand-src-block' | during tangling. This has the effect of assigning values to variables | specified with `:var' (see *Note var::), and of replacing noweb | references (see *Note Noweb reference syntax::) with their targets. The | `:no-expand' header argument can be used to turn off this behavior. ` Org-mode version 8.2.5h (release_8.2.5h-869-gdcfe09 @ /Users/rainerkrug/.emacs.d/org-mode/lisp/) Cheers, Rainer -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] [BABEL] BUG Re: Omitting try/catch blocks from tangled R code?
Apologies - I am still struggling with encryption.. So here is my example: --8---cut here---start-8--- #+TITLE: single_to_multi #+DATE: 2013-10-15 Tue #+AUTHOR: Rainer M. Krug #+EMAIL: rai...@krugs.de ≈* Load R packages and data #+BEGIN_SRC R cat(Loading Data\n) #+END_SRC --8---cut here---end---8--- I am using only org loaded and R enabled. C-c C-c on the block produces the error emacs version: GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.0, Carbon Version 1.6.0 AppKit 1265) of 2014-02-13 on Rainers-MacBook-Pro-2.local org version: Org-mode version 8.2.5h (release_8.2.5h-837-gb296cc @ /Users/rainerkrug/.emacs.d/org-mode/lisp/) Thanks, a fixed version of the patch is attached. If this works please let me know and I'll apply. Best, From d67248db79faf19e1bdcac0230c37670b6115bdd Mon Sep 17 00:00:00 2001 From: Eric Schulte schulte.e...@gmail.com Date: Sun, 23 Mar 2014 20:01:37 -0600 Subject: [PATCH] only wrap R code graphics-file on execution Move this out of the expand-body function so that it is *never* applied to tangled code. --- lisp/ob-R.el | 40 +--- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 62aa7f2..780d99f 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -97,24 +97,15 @@ this variable.) Expand BODY according to PARAMS, return the expanded body. (let ((graphics-file (or graphics-file (org-babel-R-graphical-output-file params -(mapconcat - #'identity - (let ((inside -(append - (when (cdr (assoc :prologue params)) - (list (cdr (assoc :prologue params - (org-babel-variable-assignments:R params) - (list body) - (when (cdr (assoc :epilogue params)) - (list (cdr (assoc :epilogue params))) - (if graphics-file - (append -(list (org-babel-R-construct-graphics-device-call - graphics-file params)) -inside -(list },error=function(e){plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', axes=FALSE); text(x=0, y=0, labels=e$message, col='red'); paste('ERROR', e$message, sep=' : ')}); dev.off())) - inside)) - \n))) +(mapconcat #'identity + (append + (when (cdr (assoc :prologue params)) + (list (cdr (assoc :prologue params + (org-babel-variable-assignments:R params) + (list body) + (when (cdr (assoc :epilogue params)) + (list (cdr (assoc :epilogue params) + \n))) (defun org-babel-execute:R (body params) Execute a block of R code. @@ -127,7 +118,18 @@ This function is called by `org-babel-execute-src-block'. (colnames-p (cdr (assoc :colnames params))) (rownames-p (cdr (assoc :rownames params))) (graphics-file (org-babel-R-graphical-output-file params)) - (full-body (org-babel-expand-body:R body params graphics-file)) + (full-body + (let ((inside + (list (org-babel-expand-body:R body params graphics-file + (mapconcat #'identity + (if graphics-file + (append + (list (org-babel-R-construct-graphics-device-call + graphics-file params)) + inside + (list },error=function(e){plot(x=-1:1, y=-1:1, type='n', xlab='', ylab='', axes=FALSE); text(x=0, y=0, labels=e$message, col='red'); paste('ERROR', e$message, sep=' : ')}); dev.off())) + inside) + \n))) (result (org-babel-R-evaluate session full-body result-type result-params -- 1.9.1 -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D
Re: [O] How to get headline title without statistic cookies.
Marcin Antczak marcin.antc...@neutrico-themes.pl writes: Hi, As in topic. I got some headline with statistic cookies. For example: * My example headline [3/6][50%] How could I output headline text without cookies? (org-element-property :title headline) returns entire title string with cookies. Is there any easy way to avoid them in output? Do you mean output when exporting? If so, the manual says #+OPTIONS: stat:nil should work. See (info (org) Export settings) for that and many more options, as well as the corresponding variables that you could use if you want the setting to be permanent. -- Nick
[O] How can you sort an Org clock table?
I posted a question on StackOverflow: http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table Summary is: how do I sort an clock table by the % column? Is there anything out there I can use to get this working? If not, how complex a job would it be to write something that did this? If you point me in the right direction, I'll see what I can come up with. Thanks! N
Re: [O] Proposal to replace the prefix repetition with whitespace during expansion of noweb references
Hello, Charles. Thank you for your reply. I appreciate your suggestion, however the example which I used is not a limiting factor which I seek help in overcoming. Instead I'm trying to address a potential design flaw. You make a valid point that change of this nature will inevitably break existing code that has been taking advantage of this functionality. From my point of view this is an argument in favor of having this issue addressed as soon as possible.
Re: [O] How can you sort an Org clock table?
Noah Slater nsla...@tumbolia.org writes: I posted a question on StackOverflow: http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table Summary is: how do I sort an clock table by the % column? Is there anything out there I can use to get this working? If not, how complex a job would it be to write something that did this? If you point me in the right direction, I'll see what I can come up with. Never tried on a clock table, but the following works on a generic table, so I assume that it will work on a clock table too: put point in the column by which you want to sort the table (in the body of the table, not in the header) and say M-x org-sort RET n (I assume you want numeric sorting, but org-sort provides several kinds). org-sort is normally bound to C-c ^ too, so C-c ^ n should be all that's needed. -- Nick
Re: [O] Q: Drawers
Hi, dickbarends dickbare...@me.com writes: Why is the name „Drawers” selected for the Drawers functionality in emacs org-mode? I assume this is because that's where you put stuff you want to hide and search for occasionnaly. Like real drawers. -- Bastien
[O] Propagating Workflow States
I have this entry in an org file: * MAIL 1337445 foo Now, if I do C-RET after this entry, I get a new one with the workflow state the same, MAIL, so somehow the workflow state from the previous entry propagates to the next and new one. Any way to disable this?; it should start with TODO. -- Esben Stien is b0ef@e s a http://www. s tn m irc://irc. b - i . e/%23contact sip:b0ef@ e e jid:b0ef@n n
Re: [O] How can you sort an Org clock table?
Yeah, tried that. Doesn't work! :( On 30 March 2014 23:24, Nick Dokos ndo...@gmail.com wrote: Noah Slater nsla...@tumbolia.org writes: I posted a question on StackOverflow: http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table Summary is: how do I sort an clock table by the % column? Is there anything out there I can use to get this working? If not, how complex a job would it be to write something that did this? If you point me in the right direction, I'll see what I can come up with. Never tried on a clock table, but the following works on a generic table, so I assume that it will work on a clock table too: put point in the column by which you want to sort the table (in the body of the table, not in the header) and say M-x org-sort RET n (I assume you want numeric sorting, but org-sort provides several kinds). org-sort is normally bound to C-c ^ too, so C-c ^ n should be all that's needed. -- Nick
Re: [O] How to get headline title without statistic cookies.
Nick Dokos writes: Marcin Antczak marcin.antc...@neutrico-themes.pl writes: Hi, As in topic. I got some headline with statistic cookies. For example: * My example headline [3/6][50%] How could I output headline text without cookies? (org-element-property :title headline) returns entire title string with cookies. Is there any easy way to avoid them in output? Do you mean output when exporting? Yes... and no. Yes, I did mean output when exporting. But I forgot to explain that more clearly. I just needed to filter out statistic cookies in specific part of export. In my case: in TOC headlines. If so, the manual says #+OPTIONS: stat:nil should work. See (info (org) Export settings) Yes. I know that. This should work. But as I mentioned before. With this option you can enable or disable statistics cookies in entire document. While I would like to have these cookies in normal headlines. But they are unnecessary for me in TOC. In ox-html.el there is 'org-html--format-toc-headline' function. After some time I finally have found solution by adding (selective-cookies . ignore) option to :transcoders list. Thank you anyway, Marcin
Re: [O] How can you sort an Org clock table?
Noah Slater nsla...@tumbolia.org writes: Yeah, tried that. Doesn't work! :( AFAICT, it works fine on your first stackoverflow example. There is probably no hope of getting this method to work the way you want on your second example though: org-sort does not know anything about the substructure of the table. The only way I can think of is to make the dynblock function that produces the table (org-dblock-write:clocktable) do the sorting. On 30 March 2014 23:24, Nick Dokos ndo...@gmail.com wrote: Noah Slater nsla...@tumbolia.org writes: I posted a question on StackOverflow: http://stackoverflow.com/questions/22749704/how-can-you-sort-an-org-clock-table Summary is: how do I sort an clock table by the % column? Is there anything out there I can use to get this working? If not, how complex a job would it be to write something that did this? If you point me in the right direction, I'll see what I can come up with. Never tried on a clock table, but the following works on a generic table, so I assume that it will work on a clock table too: put point in the column by which you want to sort the table (in the body of the table, not in the header) and say M-x org-sort RET n (I assume you want numeric sorting, but org-sort provides several kinds). org-sort is normally bound to C-c ^ too, so C-c ^ n should be all that's needed. -- Nick -- Nick
Re: [O] Propagating Workflow States
Hi Esben, Esben Stien b...@esben-stien.name writes: I have this entry in an org file: * MAIL 1337445 foo Now, if I do C-RET after this entry, I get a new one with the workflow state the same, MAIL, so somehow the workflow state from the previous entry propagates to the next and new one. I guess you meant C-S-RET, bound to `org-insert-todo-heading' not C-RET, boud to `org-insert-heading'. Any way to disable this?; it should start with TODO. Just use C-RET or track what's wrong in your config. -- Bastien
Re: [O] Navigating from agenda causes incorrect expansion of children
On 3/21/14, Bastien b...@gnu.org wrote: I think I see what you mean but it's hard to implement. why? The only way to fix this is to discuss the default value for org-show-* properties (and maybe some others) -- if you have suggestions here with examples on how different defaults would be less confusing, let's discuss this specifically. changing the default settings will not fix anything, afaik. not sure if we are talking about the same thing. [btw, i always get this: Delivery to the following recipient failed permanently: b...@altern.org Technical details of permanent failure:]
Re: [O] How to get rid of clocktable summary time in the form 2d 02:00
Hi buddy, Buddy Butterfly buddy.butter...@web.de writes: I would like to have the summary times in a clocktable be displayed only in hours, like 48:00 instead of 2d. Or, is it possible to define that 1d corresponds to 8:00 as a working day? So in the above example I would rather like to see 5d (workingdays) corresponding to 40:00. Clocktable counts 1d as 24h (which is right ;-) but not in business. See `org-time-clocksum-use-effort-durations' and `org-effort-durations' for a start. HTH, -- Bastien
Re: [O] Is there a way to change the home link and up link text when export to HTML?
Hi Killy, KDr2 killy.d...@gmail.com writes: I want to change UP | HOME to Archives | Categories for my blog, but I do not know how to, for now I use javascript to change them after the page loading in browser... Try to set #+HTML_LINK_UP: and #+HTML_LINK_HOME: in your document. -- Bastien
Re: [O] New headline after no content (empty headline)
Hi Brady, Brady Trainor algeb...@uw.edu writes: For `org-insert-heading' (M-RET), I wanted the following action on empty headlines: * |-- * \n* , rather than *\n* . I'm not sure I understand this, can you make it more explicit? Thanks! -- Bastien