Re: [O] agenda time grid -- default time slot lines
Am Mon, 06 Oct 2014 10:58:44 +0200 schrieb Sebastien Vauban sva-n...@mygooglest.com: False assumption! ;-) Use `remove-match': --8---cut here---start-8--- (setq org-agenda-time-grid '((daily remove-match) (0800 1000 1200 1400 1600 1800 2000))) --8---cut here---end---8--- Does this actually work for you/anyone? If I copy this verbatim in my init.el the grid is gone. Nothing changes if I toggle the grid besides the message saying I turned the grid on or off. Org from git, emacs 24.3.1 Best regards Detlef Best regards, Seb
[O] [NEW PATCH] read.table in variable transfer caused sometimes function not found error - small change
Charles C. Berry ccbe...@ucsd.edu writes: On Wed, 8 Oct 2014, Rainer M Krug wrote: Charles C. Berry ccbe...@ucsd.edu writes: On Wed, 8 Oct 2014, Rainer M Krug wrote: Charles C. Berry ccbe...@ucsd.edu writes: On Mon, 6 Oct 2014, Rainer M Krug wrote: Hi The variable transfer of tables from org to R caused sometimes 'could not find function read.table' errors (e.g. when the file was tangled into a ./data directory which was loaded by the function devtools::load_all(./)). This can easily be fixed by adding the package name to the call in R, i.e. replacing =read.table()= with =utils::read.table()= which is done in this patch. It does fix that one case. But I wonder if that is the best way. The heart of the matter is that load_all eventually calls sys.source, which can be persnickety about finding objects on the search path. See ?sys.source. If the src block you tangle to ./data/ has any code that uses any other objects from utils, stats, datasets or whatever, you will be in the same pickle. Exactly - that is true. But it is the same when putting this in a package (as far as I am aware). Do you mean that putting `x - rnorm(10)' into a data/*.R file will fail when you try to build and check? In fact, `R CMD build' will execute it and save the result as a data/*.rda file. And check will go through. devtools::load_all (calling load_data) fails to do that. Which is why I think this is a devtools issue. OK - point taken. But I still think that the =utils::read.table()= would not hurt, rather make the variable transfer safer. What you want to change is in a defconst. So, the user can override with a file-local version. So, making the change really is harmless. Maybe add a note to the docstring to say that using utils::read.table' assures that `read.table' always can be found just in case anyone ever asks. OK - done in attached patch. Rainer From 1eadbf6b44b8fc2fa5af29ea483383e9d137d19e Mon Sep 17 00:00:00 2001 From: Rainer M. Krug r.m.k...@gmail.com Date: Mon, 6 Oct 2014 13:48:49 +0200 Subject: [PATCH] ob-R.el: Add package name to read.table call * lisp/ob-R.el: (ob-R-transfer-variable-table-with-header): Add package name to call of R function read.table (now utils::read.table). This clarifies the call as well as avoids 'could not find function' error in R under certain conditions. --- lisp/ob-R.el | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index ea33031..a64b647 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -101,7 +101,7 @@ this variable.) con - textConnection( %S ) - res - read.table( + res - utils::read.table( con, header= %s, row.names = %s, @@ -112,14 +112,17 @@ this variable.) res }) R code used to transfer a table defined as a variable from org to R. -This function is used when the table contains a header.) +This function is used when the table contains a header. The usage +of utils::read.table() ensures that the command read.table() can +be found even in circumstances when the utils package is not in +the search path from R.) (defconst ob-R-transfer-variable-table-without-header %s - local({ con - textConnection( %S ) - res - read.table( + res - utils::read.table( con, header= %s, row.names = %s, -- 2.1.2 Chuck -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 pgpxZoxdTdgd0.pgp Description: PGP signature
Re: [O] [NEW PATCH] read.table in variable transfer caused sometimes function not found error - small change
*Please ignore the previous patch* This updated patch contains the correct documentation and commit message Sorry about the mistake, From 58cb8521d4d4b620b0c5210a9b7232f99f7c720c Mon Sep 17 00:00:00 2001 From: Rainer M. Krug r.m.k...@gmail.com Date: Mon, 6 Oct 2014 13:48:49 +0200 Subject: [PATCH] ob-R.el: Add package name to read.table call * lisp/ob-R.el: (ob-R-transfer-variable-table-with-header): Add package name to call of R function read.table (now utils::read.table). This clarifies the call as well as avoids 'could not find function' error in R under certain conditions. (ob-R-transfer-variable-table-without-header): Add package name to call of R function read.table (now utils::read.table). This clarifies the call as well as avoids 'could not find function' error in R under certain conditions. --- lisp/ob-R.el | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index ea33031..0b24a64 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -101,7 +101,7 @@ this variable.) con - textConnection( %S ) - res - read.table( + res - utils::read.table( con, header= %s, row.names = %s, @@ -112,14 +112,17 @@ this variable.) res }) R code used to transfer a table defined as a variable from org to R. -This function is used when the table contains a header.) +This function is used when the table contains a header. The usage +of utils::read.table() ensures that the command read.table() can +be found even in circumstances when the utils package is not in +the search path from R.) (defconst ob-R-transfer-variable-table-without-header %s - local({ con - textConnection( %S ) - res - read.table( + res - utils::read.table( con, header= %s, row.names = %s, @@ -132,7 +135,10 @@ This function is used when the table contains a header.) res }) R code used to transfer a table defined as a variable from org to R. -This function is used when the table does not contain a header.) +This function is used when the table does not contain a +header. The usage of utils::read.table() ensures that the command +read.table() can be found even in circumstances when the utils +package is not in the search path from R.) (defun org-babel-expand-body:R (body params optional graphics-file) Expand BODY according to PARAMS, return the expanded body. -- 2.1.2 Rainer Rainer M Krug rai...@krugs.de writes: Charles C. Berry ccbe...@ucsd.edu writes: On Wed, 8 Oct 2014, Rainer M Krug wrote: Charles C. Berry ccbe...@ucsd.edu writes: On Wed, 8 Oct 2014, Rainer M Krug wrote: Charles C. Berry ccbe...@ucsd.edu writes: On Mon, 6 Oct 2014, Rainer M Krug wrote: Hi The variable transfer of tables from org to R caused sometimes 'could not find function read.table' errors (e.g. when the file was tangled into a ./data directory which was loaded by the function devtools::load_all(./)). This can easily be fixed by adding the package name to the call in R, i.e. replacing =read.table()= with =utils::read.table()= which is done in this patch. It does fix that one case. But I wonder if that is the best way. The heart of the matter is that load_all eventually calls sys.source, which can be persnickety about finding objects on the search path. See ?sys.source. If the src block you tangle to ./data/ has any code that uses any other objects from utils, stats, datasets or whatever, you will be in the same pickle. Exactly - that is true. But it is the same when putting this in a package (as far as I am aware). Do you mean that putting `x - rnorm(10)' into a data/*.R file will fail when you try to build and check? In fact, `R CMD build' will execute it and save the result as a data/*.rda file. And check will go through. devtools::load_all (calling load_data) fails to do that. Which is why I think this is a devtools issue. OK - point taken. But I still think that the =utils::read.table()= would not hurt, rather make the variable transfer safer. What you want to change is in a defconst. So, the user can override with a file-local version. So, making the change really is harmless. Maybe add a note to the docstring to say that using utils::read.table' assures that `read.table' always can be found just in case anyone ever asks. OK - done in attached patch. Rainer From 1eadbf6b44b8fc2fa5af29ea483383e9d137d19e Mon Sep 17 00:00:00 2001 From: Rainer M. Krug r.m.k...@gmail.com Date: Mon, 6 Oct 2014 13:48:49 +0200 Subject: [PATCH] ob-R.el: Add package name to read.table call * lisp/ob-R.el: (ob-R-transfer-variable-table-with-header): Add package name to call of R function read.table (now utils::read.table). This clarifies the call as well as avoids 'could not find function' error in R under certain conditions. --- lisp/ob-R.el | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git
Re: [O] agenda time grid -- default time slot lines
Am Thu, 9 Oct 2014 09:34:18 +0200 schrieb Detlef Steuer detlef.ste...@gmx.de: Am Mon, 06 Oct 2014 10:58:44 +0200 schrieb Sebastien Vauban sva-n...@mygooglest.com: False assumption! ;-) Use `remove-match': --8---cut here---start-8--- (setq org-agenda-time-grid '((daily remove-match) (0800 1000 1200 1400 1600 1800 2000))) --8---cut here---end---8--- Does this actually work for you/anyone? Sorry for the noise. I didn´t use a daily view ... Works as expected. Detlef If I copy this verbatim in my init.el the grid is gone. Nothing changes if I toggle the grid besides the message saying I turned the grid on or off. Org from git, emacs 24.3.1 Best regards Detlef Best regards, Seb
[O] org-export-select-tags behaviour
Hi, Quoting the manual (12.1 Selective Export): 1. Org first checks if any of the *select* tags is present in the buffer... 2. If none of the select tags is found, the whole buffer will be selected for export. Is it possible to change this behaviour (i.e., to select nothing for export if none of the /select/ tags are present), at least as an option? I'm using org-caldav to synchronise selected entries in my org files with an external calendar, and at some times in an org file there might happen to be no headline present that I want exported -- in that case, I'd prefer not to have /every/ headline exported, but none. I've been trying to find where the selection/exclusion is done (in ox.el?), but my limited lisp skills didn't get me far enough. Any pointers? Many thanks, Seb
Re: [O] auto hiding src blocks upon toggling headers
Works perfectly! thanks! 2014-10-09 1:33 GMT+02:00 John Kitchin jkitc...@andrew.cmu.edu: Sorry for the weird from email below. This was from me. I have a separate email setup in Emacs for a class I am teaching. Instructor account instruc...@andrew.cmu.edu writes: Adriaan Sticker adriaan.stic...@gmail.com writes: This is not perfect but it seems close: #+BEGIN_SRC emacs-lisp (defun my-hide (state) (message %s state) (if (or (eq state 'children) (eq state 'subtree)) (save-restriction (org-narrow-to-subtree) (org-hide-block-all (add-hook 'org-cycle-hook 'my-hide) #+END_SRC Hi all Is there a way to automatically hide a source block when toggling the fold status of the parent header. Currently the hide status is remembered when folding its parent headers but this turned out not to be to practical in my current workflow. Greetings -- --- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu
Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed
On 2014-09-24 12:12, Steve Purcell st...@sanityinc.com writes: The existing Applescript for grabbing flagged mail messages can only work on machines which have Growl installed. This is increasingly rarely the case as Growl has been obsoleted by OS X’s own notification system. Applied. Thank you for the patch and sorry for the delay. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
[O] Feature Request Bounty?
Hello, first question: Are bug/feature request bounties are ok here? I have a FR that I really want to have resolved. Described here: http://lists.gnu.org/archive/html/emacs-orgmode/2014-05/msg01186.html http://orgmode.org/worg/org-hacks.html#sec-1-7-1 does not do the job (tried the slightly more complex version). Since I would really benefit in my workflow I thought about bringing out a bug bounty for that. Are bounties fine or seen as inappropiate? What amount would you deem appropriate for implementation? Best Regards, Florian
Re: [O] PATCH: org-mac-link.el: Fix multi-line file description
On 2014-09-24 11:46, Steve Purcell st...@sanityinc.com writes: The file description line was broken across multiple lines, and therefore malformed. Applied. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
Re: [O] PATCH: org-mac-link.el: Don't fail on machines without Growl installed
On 9 Oct 2014, at 12:40, Alan Schmitt alan.schm...@polytechnique.org wrote: Applied. Thank you for the patch and sorry for the delay. Thanks for merging both of those patches. I’ll re-work the other one (re. broken “message:” links) in the near future and resubmit. -Steve
Re: [O] PATCH: Fix malformed message links produced by org-mac-link.el
Hello Steve, On 2014-09-25 08:14, Alan Schmitt alan.schm...@polytechnique.org writes: On 2014-09-24 20:56, Steve Purcell st...@sanityinc.com writes: On 24 Sep 2014, at 20:01, Alan Schmitt alan.schm...@polytechnique.org wrote: This was the case here: the string returned by the AppleScript had quotes (and it still does). For instance, with the message you mention, the call to org-as-get-selected-mail returns this (doing a debug): Result: \message://2.b2af716655bbac583727@NY-WEB01::split::Private beta invitation for Emacs QA site - Area 51 - Stack Exchange\”” I definitely don’t get quotes in the result of org-as-get-selected-mail. … Not sure how to proceed, then… It seems that the difference is with getting quotes or not. How about changing org-as-get-selected-mail to make sure there is no quote? We could for instance test whether the first and last characters are quotes, and remove them if they are. Would this work for you? Alan From c6c1a05894e6fb1698d1a12bb2dc6a47874169f6 Mon Sep 17 00:00:00 2001 From: Alan Schmitt alan.schm...@polytechnique.org Date: Thu, 9 Oct 2014 14:12:05 +0200 Subject: [PATCH] org-mac-link.el: Fix malformed message links * contrib/lisp/org-mac-link.el (org-mac-message-get-links): Fix and use the `org-mac-paste-applescript-links' helper. The existing code inserted links which should have been [[message:ABC][the subject]] as [[essage:ABC][the subjec]]. Based on a patch by Steve Purcell st...@sanityinc.com. --- contrib/lisp/org-mac-link.el | 34 +++--- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/contrib/lisp/org-mac-link.el b/contrib/lisp/org-mac-link.el index 979fb18..e1ab56d 100644 --- a/contrib/lisp/org-mac-link.el +++ b/contrib/lisp/org-mac-link.el @@ -234,11 +234,15 @@ When done, go grab the link, and insert it at point. (defun org-mac-paste-applescript-links (as-link-list) Paste in a list of links from an applescript handler. The links are of the form link::split::name. - (let* ((link-list + (let* ((noquote-as-link-list + (if (string-prefix-p \ as-link-list) + (substring as-link-list 1 -1) + as-link-list)) + (link-list (mapcar (lambda (x) (if (string-match \\`\\\(.*\\)\\\' x) (setq x (match-string 1 x))) x) - (split-string as-link-list [\r\n]+))) + (split-string noquote-as-link-list [\r\n]+))) split-link URL description orglink orglink-insert rtn orglink-list) (while link-list (setq split-link (split-string (pop link-list) ::split::)) @@ -828,27 +832,11 @@ The Org-syntax text will be pushed to the kill ring, and also returned. (interactive sLink to (s)elected or (f)lagged messages: ) (setq select-or-flag (or select-or-flag s)) (message AppleScript: searching mailboxes...) - (let* ((as-link-list - (if (string= select-or-flag s) - (org-as-get-selected-mail) - (if (string= select-or-flag f) - (org-as-get-flagged-mail) - (error Please select \s\ or \f\ - (link-list - (mapcar - (lambda (x) (if (string-match \\`\\\(.*\\)\\\' x) (setq x (match-string 1 x))) x) - (split-string (substring as-link-list 1 -1) [\r\n]+))) - split-link URL description orglink orglink-insert rtn orglink-list) -(while link-list - (setq split-link (split-string (pop link-list) ::split::)) - (setq URL (car split-link)) - (setq description (cadr split-link)) - (when (not (string= URL )) -(setq orglink (org-make-link-string URL description)) -(push orglink orglink-list))) -(setq rtn (mapconcat 'identity orglink-list \n)) -(kill-new rtn) -rtn)) + (org-mac-paste-applescript-links + (cond +((string= select-or-flag s) (org-as-get-selected-mail)) +((string= select-or-flag f) (org-as-get-flagged-mail)) +(t (error Please select \s\ or \f\) (defun org-mac-message-insert-selected () Insert a link to the messages currently selected in Mail.app. -- 2.1.2 -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
Re: [O] PATCH: Fix malformed message links produced by org-mac-link.el
On 9 Oct 2014, at 13:15, Alan Schmitt alan.schm...@polytechnique.org wrote: On 2014-09-25 08:14, Alan Schmitt alan.schm...@polytechnique.org writes: On 2014-09-24 20:56, Steve Purcell st...@sanityinc.com writes: It seems that the difference is with getting quotes or not. How about changing org-as-get-selected-mail to make sure there is no quote? We could for instance test whether the first and last characters are quotes, and remove them if they are. Would this work for you? Yes, that works nicely here! -Steve
[O] org-element-at-point keep-trail?
Previously, org-element-at-point had an optional keep-trail variable that was supposed to show the siblings, parents, aunts/uncles, grandparents, etc. This feature no longer seems to be present. What would the process be now to obtain the parents of a given element? This would be useful for walking back up the tree to obtain a sparse-tree structure for archiving (see: http://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00228.html) Regards, Jonathan
Re: [O] [BUG][babel] Tangling into directories does not add directories to org file
I'd like to ping this as I think it is an important bug. It e.g. make debugging of R packages, whose source is in org, more difficult, (the .R files are tangled into ./R/) as ess does not find the source of the R code in R as it uses the links in the comments to find the org file. Temporary solution: I created a link to the org file in the ./R directory. Cheers, Rainer Rainer M Krug rai...@krugs.de writes: When in the tangling taerget a directory is specified, this is not reflected in the comments in the tangled file when comments are set to include links: , |* `link' The code block is wrapped in comments which contain | pointers back to the original Org file from which the code was | tangled. ` In the org file =prodMixStands.org=: , | :PROPERTIES: | :header-args+: :tangle ./R/update.cache.R | :END: | #+begin_src R | test | #+end_src ` results in the file =update.cache.R= in a link to the file =prodMixStands.org= and not =./../prodMixstands.org=: , | ## [[file:prodMixStands.org::*Begin][Begin:1]] ` This is particularly bad when using ess and developer mode to develop a package. Cheers, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982
Re: [O] Feature Request Bounty?
Florian Lindner mailingli...@xgm.de writes: Hello, , | * A | ** AA | *** AAA | ** AB | *** ABA | | Archiving AA will remove the subtree from the original file and create | it like that in archive target: | | * AA | ** AAA | | What I want (wish for) is to create it like that in the archive target: | | * A | ** AA | *** AAA | | If I also archive AB after that, it gets inserted in the structure which | is now identical to the structure we started with. ` and when you simply mark the done subtrees with tag :ARCHIVE: but only actually archivate them when the whole tree is done? -- cheers, Thorsten
Re: [O] PATCH: Fix malformed message links produced by org-mac-link.el
On 2014-10-09 13:25, Steve Purcell st...@sanityinc.com writes: Would this work for you? Yes, that works nicely here! Great, I pushed it. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 signature.asc Description: PGP signature
[O] exporting tables + equations to latex
Hi everybody. I like very much the orgtbl-mode for inserting tables in latex. It saves me a lot of typing, and they are also quite beatiful to read in text, contrary to plain latex tables. The big problem I have is that I do not know how to put equations in cells. In particular, I have this snippet of code in my latex file: \begin{comment} #+ORGTBL: SEND fp orgtbl-to-latex :splice t :skip 0 | Task | C | T | D | Prio | S_1 | $S_2$ | $S_3$ | $S_4$ | $B$ | |--++-+-+--+-+---+---+---+-| | $\tau_1$ | 2 | 8 | 6 | 10 | 1 | 0 | 0 | 0 | | | $\tau_2$ | 4 | 20 | 20 |8 | 0 | 1 | 1 | 0 | | | $\tau_3$ | 10 | 50 | 40 |6 | 0 | 0 | 3 | 1 | | | $\tau_4$ | 10 | 100 | 100 |4 | 2 | 3 | 1 | 0 | | \end{comment} which is exported as \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline % BEGIN RECEIVE ORGTBL fp Task C T D Prio \(S\_{}1\) \(S\_{}2\) \(S\_{}3\) \(S\_{}4\) \(B\) \\ \hline \(\tau\_{}1\) 2 8 6 10 1 0 0 0 \\ \(\tau\_{}2\) 4 20 20 8 0 1 1 0 \\ \(\tau\_{}3\) 10 50 40 6 0 0 3 1 \\ \(\tau\_{}4\) 10 100 100 4 2 3 1 0 \\ % END RECEIVE ORGTBL fp \hline \end{tabular} which is NOT what I want: the underlines are translated as underlines, and not as subscript command. I also tried the following: \begin{comment} #+ORGTBL: SEND fp orgtbl-to-latex :splice t :skip 0 :fmt (6 $%s$ 7 $%s$ 8 $%s$ 9 $%s$) | Task | C | T | D | Prio | S_1 | S_2 | S_3 | S_4 | B | |--++-+-+--+-+---+---+---+-| | $\tau_1$ | 2 | 8 | 6 | 10 | 1 | 0 | 0 | 0 | | | $\tau_2$ | 4 | 20 | 20 |8 | 0 | 1 | 1 | 0 | | | $\tau_3$ | 10 | 50 | 40 |6 | 0 | 0 | 3 | 1 | | | $\tau_4$ | 10 | 100 | 100 |4 | 2 | 3 | 1 | 0 | | \end{comment} and the solution is even worse: \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline % BEGIN RECEIVE ORGTBL fp Task C T D $S$\backslash$\(_\)1$ $S$\backslash$\(_\)2$ $S$\backslash$\(_\)3$ $S$\backslash$\(_\)4$ B \\ ... ... % END RECEIVE ORGTBL fp \hline \end{tabular} Where is the \backslash coming from? I have no idea. So, where is the problem? How can I put a simple mathematical symbol in a org-mode table? Thanks in advance -- Giuseppe Lipari LIFL Université de Lille 1 blogs: http://scacciamennule.blogspot.com (Italian) http://scacciamennule.blogspot.com http://okpanico,wordpress.com (Italian) http://algoland.wordpress.com (English)
Re: [O] org-element-at-point keep-trail?
Jonathan Leech-Pepin jonathan.leechpe...@gmail.com writes: Previously, org-element-at-point had an optional keep-trail variable that was supposed to show the siblings, parents, aunts/uncles, grandparents, etc. This feature no longer seems to be present. What would the process be now to obtain the parents of a given element? (org-element-property :parent element) This would be useful for walking back up the tree to obtain a sparse-tree structure for archiving (see: http://lists.gnu.org/archive/html/emacs-orgmode/2014-10/msg00228.html) Note that `org-element-at-point' doesn't parse ancestors of headlines. You need `org-element-parse-buffer' for that. Regards, -- Nicolas Goaziou
Re: [O] exporting tables + equations to latex
Hello, Giuseppe Lipari giulip...@gmail.com writes: The big problem I have is that I do not know how to put equations in cells. Radio tables have been rewritten in development branch, which will become Org 8.3. In this version, you will be able to achieve what you want using :raw t parameter. Regards, -- Nicolas Goaziou
Re: [O] exporting tables + equations to latex
Hi Giuseppe. Giuseppe Lipari writes: The big problem I have is that I do not know how to put equations in cells. [...] the underlines are translated as underlines, and not as subscript command. Try adding :no-escape t to the #+ORGTBL line Best, -- Jorge.
Re: [O] (void-variable ignore) in
Hello, Julien Cubizolles j.cubizol...@free.fr writes: I get this error when exporting an org file in async mode. The export itself goes fine (the correct file is created) but something seems to go wrong at the end. Sorry for the long lines... Julien. Debugger entered--Lisp error: (void-variable ignore) Does it happen with a specific export back-end or all of them? Could you provide an ECM? Regards, -- Nicolas Goaziou
[O] [Org-Drill] Latex Images are removed in sessions
Hi there, first of all thanks for the great piece of software. I'm currently studying for a physics exam and it really helps a lot. The matter being physics I have quiet a lot of equations in there, e.g. * Einheitliche Kreisbewegung :drill: Zentripetale Beschleunigung bei gegebener Geschwindigkeit $v$ und Radius $r$. ** Antwort #+BEGIN_LATEX \begin{equation} \label{eq:1} a = \frac{v^2}{r}. \end{equation} #+END_LATEX What I usually do is to generate latex fragments of the whole tree by going to the beginning of the buffer and executing `org-toggle-latex-fragment' (C-c C-x C-l). After that I execute `M-x org-drill'. This usually works rather fine. Although there are a few issues: 1) Most of the times fragments of equations in the questions are not displayed, e.g. in the question given above $v$ and $r$ are displayed literally instead of the generated latex fragments. Though it displays them fine from time to time. Those fragments are usually displayed fine when the answer is uncovered. Except when the following happens: 2) Latex fragments are sometimes removed and I actually think that they are removed from the entire tree on uncovering the answer. The effect I see at least is that equations are not displayed as fragments anymore neither in the current question nor in the ones asked thereafter. What I'll have to do then is to type `e' (i.e. edit), go to the beginning of the buffer again, execute `C-c C-x C-l' and then `M-x org-drill-resume'. I absolutely have no clue, what triggers (1). But I'd suppose that latex fragments are in 80% of the cases /not/ shown properly. (2) is especially annoying and happens less often. I suspect that it happens when the previous question was a text only question, i.e. questions which do not contain latex fragments. Does that make sense? I tried to investigate into this issue, but could not spot the proper mechanics working behind the scene at a first glance. (Also, I have to study physics.) Is this a known problem? Can you give me a hint on how to investigate this problem further? org-mode is on version 8.3beta (installed via el-get) and org-drill seems to be at 2.4.1 at least it says so in org-drill.el. Best regards Thomas Bach. PS: I tried to open this on the issue tracker but I don't have a bitbucket account and captchas weren't working.
Re: [O] [Org-Drill] Latex Images are removed in sessions
Hi Thomas, first of all thanks for the great piece of software. Totally agreed. * Einheitliche Kreisbewegung :drill: Zentripetale Beschleunigung bei gegebener Geschwindigkeit $v$ und Radius $r$. ** Antwort #+BEGIN_LATEX \begin{equation} \label{eq:1} a = \frac{v^2}{r}. \end{equation} #+END_LATEX What I usually do is to generate latex fragments of the whole tree by going to the beginning of the buffer and executing `org-toggle-latex-fragment' (C-c C-x C-l). After that I execute `M-x org-drill'. This usually works rather fine. Although there are a few issues: [...issues...] Can you give me a hint on how to investigate this problem further? org-mode is on version 8.3beta (installed via el-get) and org-drill seems to be at 2.4.1 at least it says so in org-drill.el. Obviously there already is some logic in org-drill.org to handle latex fragments. See the lines containing (org-preview-latex-fragment). Looks like the logic for displaying the fragments is somehow broken. A pragmatic patch to keep you going with physics drills could be to comment out all those lines containing (org-preview-latex-fragment) in org-drill.org. HTH, Marco -- http://www.wahlzone.de PGP: 0x0A3AE6F2
Re: [O] Help exporting to-do list as LaTeX/PDF
... kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 ecbx1200 kpathsea: Running mktexfmt mf.base mktexpk: Mismatched mode ljfour and resolution 600; ignoring mode. mktexpk: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1+0/600; nonstopmode; input ecbx1200 This is METAFONT, Version 2.718281 (Web2C 2013) kpathsea: Running mktexfmt mf.base I can't find the base file `mf.base'! It took a while to get to this point, and I had to install a number of font packages from the pkgsrc tex-* collection. I do have tex-ec-1.0 and tex-eco-1.3 installed. But it seems like the problem is more with metafont, which is completely beyond me. Yeah, this looks to me like your setup is attempting to load (or build??) a font as part of the compilation process. As far as I know, that is not something that should be required when compiling an Org document exported to LaTeX with the default options. What are the values of your org-latex-default-packages-alist org-latex-packages-alist org-latex-pdf-process variables? And what does the header of the exported .tex file look like? I guess the way to debug this is to remove the packages that are loaded in the exported .tex file, one at a time, until you discover the one that is at fault here. (If it's not some particular package, but rather TeX/LaTeX itself that's trying to use METAFONT, I think you're in deeper waters...) Seems like the problem had to do with the combination of files installed by pkgsrc for tetex. I switched from pkgsrc to macports for an unrelated reason, and generation of PDFs from todo lists via LaTeX now just works.
[O] org-mode for knowledge management
Hi all, I've been using org-mode for a variety of purposes for a few years. I find that it suffers from the same problem that other such tools do. The problem is me. I can't remember week to week how I may have classified some scrap of information. Did I drop it into notes/someproduct.org or was it procedures/someprocess.org? While working through this, I've used #+INDEX: Topic!subtopic which helps but is not sufficiently granular. I'm thinking about approaches using properties or drawers. Has any of you done something like this, or done something similar that I've not considered? Thanks in advance, Your rapidly graying, Louis
[O] How to archive the whole file
Hi list, I have an Org file which should all go to the archive. What do I do? Should I manually archive all level-one headlines? Should I just append _archive to its filename? What is the best practice? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
Re: [O] org-mode for knowledge management
On 2014-10-10, at 00:17, Louis wrote: Hi all, I've been using org-mode for a variety of purposes for a few years. I find that it suffers from the same problem that other such tools do. The problem is me. I can't remember week to week how I may have classified some scrap of information. Did I drop it into notes/someproduct.org or was it procedures/someprocess.org? While working through this, I've used #+INDEX: Topic!subtopic which helps but is not sufficiently granular. I'm thinking about approaches using properties or drawers. Has any of you done something like this, or done something similar that I've not considered? Did you consider a /totally opposite/ approach? I'm currently reorganizing my org files (I had about 15 of them) so that I will be able to cut them down to ≈ half that value. The fewer, the better. And grep is your friend. (I haven't yet got accustomed to C-c a s, but it's really good.) Also, if English is not your native language, consider making notes in English. Whether you like it or not, it has one huge advantage: it's /simple/. Almost no inflections, so grepping English texts is /much/ easier than, say, Polish (we have /a lot/ of inflections). (In this regard, Esperanto is even better, though personally I'm not fluent enough in it to make my notes in Esperanto comfortably.) Thanks in advance, Your rapidly graying, Louis Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
[O] Possible bug, installing outshine before outorg
Newb bug report: I think if I have a brand new Emacs setup, installing org with an emacs -q, then installing outshine.el (all with built-in package manager), that there is some problems created, possibly because of outorg to install (IIRC, a silent-notifications type of problem). If I start over (deleting .emacs.d/elpa/ contents) and install org, then outorg, then outshine, the problem I think is resolved. Can anyone confirm? -- Brady
Re: [O] org-mode for knowledge management
Aloha Louis, Louis lbml...@hethcote.com writes: Hi all, I've been using org-mode for a variety of purposes for a few years. I find that it suffers from the same problem that other such tools do. The problem is me. I can't remember week to week how I may have classified some scrap of information. Did I drop it into notes/someproduct.org or was it procedures/someprocess.org? While working through this, I've used #+INDEX: Topic!subtopic which helps but is not sufficiently granular. I'm thinking about approaches using properties or drawers. Has any of you done something like this, or done something similar that I've not considered? Thanks in advance, Your rapidly graying, Louis Perhaps org-index in contrib would help? http://orgmode.org/worg/org-contrib/org-index.html hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Other editors supporting Org-Mode
Manuel Schneckenreither manuel.schneckenreit...@student.uibk.ac.at writes: I couldn't find anything on the web about it. Therefore, I like to ask you if anyone knows a program (another editor) which supports Org mode. Apologies, I posted this to your email instead of to the group: You might want to give Trello a look (http://trello.com). It's web-based, so there is little chance that your technically challenged friends will break it. There is a bi-directional sync package for Org Mode called `org-trello'. It works okay, but obviously lacks many of the features of Org; it's mostly aimed at task management with teams.
[O] How to initiate Org mode in a buffer
Hi list, I'm writing a function which does some (serious) modifications on an Org file. I want it to save the results in some new file, so I'm (most probably) going to create a new buffer, execute (org-mode) there, copy the contents of the old one (insert-buffer-substring?) and then do my stuff. However, my stuff depends on the (org) structure. Is there something I should call /before/ I do (org-element-parse-buffer)? I want to do something like (org-element-map (org-element-parse-buffer) '(headline) #'my-stuff) Is that going to work reliably (on a newly-created buffer)? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University
Re: [O] Babel: reusing language-specific functions
That is a great option when you want to run *without* a session. That is also a nice approach when you are using plantuml and do not want to use a single external file and include it all over the place. On Thu, Oct 9, 2014 at 12:23 AM, Jarmo Hurri jarmo.hu...@iki.fi wrote: t...@tsdye.com (Thomas S. Dye) writes: Jarmo Hurri jarmo.hu...@iki.fi writes: I have a language-specific function - in this case Asymptote, but it could be e.g. C as well - that I want to use in a number of different source blocks of the same language in an Org file. How do I accomplish this? Or, perhaps use the noweb syntax. #+NAME: foo #+BEGIN_SRC emacs-lisp (defun foo (x) (+ x 2)) #+END_SRC #+results: foo : foo #+begin_src emacs-lisp :noweb yes foo (foo 3) #+end_src #+results: : 5 Yes, this is a perfect solution. You can use noweb to include any code block, not only function definitions. Thanks! Jarmo -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] [BUG][babel] Tangling into directories does not add directories to org file
Sounds like a valuable use of R. Do you have a writeup on the approach or is it a standard feature of org and ess? On Thu, Oct 9, 2014 at 7:37 AM, Rainer M Krug rai...@krugs.de wrote: I'd like to ping this as I think it is an important bug. It e.g. make debugging of R packages, whose source is in org, more difficult, (the .R files are tangled into ./R/) as ess does not find the source of the R code in R as it uses the links in the comments to find the org file. Temporary solution: I created a link to the org file in the ./R directory. Cheers, Rainer Rainer M Krug rai...@krugs.de writes: When in the tangling taerget a directory is specified, this is not reflected in the comments in the tangled file when comments are set to include links: , |* `link' The code block is wrapped in comments which contain | pointers back to the original Org file from which the code was | tangled. ` In the org file =prodMixStands.org=: , | :PROPERTIES: | :header-args+: :tangle ./R/update.cache.R | :END: | #+begin_src R | test | #+end_src ` results in the file =update.cache.R= in a link to the file =prodMixStands.org= and not =./../prodMixstands.org=: , | ## [[file:prodMixStands.org::*Begin][Begin:1]] ` This is particularly bad when using ess and developer mode to develop a package. Cheers, Rainer -- Rainer M. Krug email: Raineratkrugsdotde PGP: 0x0F52F982 -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson
Re: [O] org-mode for knowledge management
On Thu, 9 Oct 2014, Thomas S. Dye wrote: Aloha Louis, Your rapidly graying, Louis Perhaps org-index in contrib would help? http://orgmode.org/worg/org-contrib/org-index.html Thanks for the idea, it sounded promising, but it appears that it is no longer in contrb.
Re: [O] org-mode for knowledge management
On Thu, 9 Oct 2014, Thomas S. Dye wrote: Aloha Louis, Louis lbml...@hethcote.com writes: Your rapidly graying, Louis Perhaps org-index in contrib would help? http://orgmode.org/worg/org-contrib/org-index.html Never mind, http://orgmode.org/cgit.cgi/org-mode.git/plain/contrib/lisp/org-index.el it's just not in the tarball.
Re: [O] [BUG][babel] Tangling into directories does not add directories to org file
Hi Rainer, 2014ko urriak 9an, Rainer M Krug-ek idatzi zuen: I'd like to ping this as I think it is an important bug. It e.g. make debugging of R packages, whose source is in org, more difficult, (the .R files are tangled into ./R/) as ess does not find the source of the R code in R as it uses the links in the comments to find the org file. FWIW, I agree with you, but personally it’s hard to see myself having time to address this in the near future. Maybe you could try making a patch yourself. It sounds like the sort of thing that should be self-contained and easy to fix (famous last words, I know...) -- Aaron Ecay
Re: [O] (void-variable ignore) in
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Does it happen with a specific export back-end or all of them? I see it with all for of org-(beamer/latex)-export-to-(latex/pdf), but only if publish. Could you provide an ECM? The following needs to be saved in a file named test.org, then run C-c C-c on the elisp source block and C-c e P x beamer --8---cut here---start-8--- #+begin_src emacs-lisp :tangle yes :exports none (setq org-publish-project-alist `((beamer :base-directory ./ :publishing-directory ./ :publishing-function org-latex-publish-to-pdf :exclude .* :latex-class article :include (test.org) ))) #+end_src #+RESULTS: | beamer | :base-directory | ./ | :publishing-directory | ./ | :publishing-function | org-latex-publish-to-latex | :exclude | .* | :latex-class | article | :include | (test.org) | * Ceci est un essai * Ceci est un deuxième heading --8---cut here---end---8--- Julien.
Re: [O] [NEW PATCH] read.table in variable transfer caused sometimes function not found error - small change
Hello, Thanks Rainer for this patch, and thanks Chuck for the discussion. It appears that “use utils::read.table” is the official advice from devtools’s maintainer: https://github.com/hadley/devtools/issues/336#issuecomment-23517837. I’ve pushed the patch to the master branch. I reworded the commit message slightly. I also moved the note about utils:: from a docstring to a comment in the ob-R.el file. This is based on a feeling that it’s an implementation detail that is less useful for elisp programmers (primary consumers of docstrings), but necessary for anyone working on ob-R’s internals (who will read the file itself). Thanks again, -- Aaron Ecay
Re: [O] [PATCH] WAS Re: Bug: problem w/ R code blocks [8.3beta (release_8.3beta-362-ga92789 at /usr/local/share/emacs/site-lisp/org/)]
Hi Henrik, 2014ko urriak 8an, Henrik Singmann-ek idatzi zuen: I unfortunately can confirm that org-babel-R-initiate-session contains the lines you mentioned at exactly 15 lines down. Deleting ob-R.elc (which was of the same date as ob-R.el) didn't affect anything as did reloading org uncompiled (C-u C-c C-x !). I could reproduce this, also with recent git org and ESS. It looks like ESS is doing more complicated things, necessitating a more thorough check that the session is in fact ready. Can you test the attached patch? It fixed the problem for me. From b91526d932728749609b27809eecb588c04e1a1e Mon Sep 17 00:00:00 2001 From: Aaron Ecay aarone...@gmail.com Date: Fri, 10 Oct 2014 00:35:41 -0400 Subject: [PATCH] ob-R: fix interaction with ESS for new sessions * lisp/ob-R.el (org-babel-R-initiate-session): Properly wait on a new ESS process. --- lisp/ob-R.el | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index ea33031..5d5006f 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -265,9 +265,10 @@ This function is called by `org-babel-execute-src-block'. ;; Session buffer exists, but with dead process (set-buffer session)) (require 'ess) (R) - (ess-wait-for-process - (get-process (or ess-local-process-name - ess-current-process-name))) + (let ((R-proc (get-process (or ess-local-process-name + ess-current-process-name + (while (process-get R-proc 'callbacks) + (ess-wait-for-process R-proc))) (rename-buffer (if (bufferp session) (buffer-name session) -- 2.1.2 Thanks, -- Aaron Ecay
Re: [O] [PATH] Speedups to org-table-recalculate
Sorry for the late response - missed this for a while. That's still much more slow than not doing it - slightly modifying your example,: (progn (setq start (current-time)) (let ((row 0) (log (time-add (current-time) '(0 1 0 0 (while ( row 6543210) (setq row (1+ row)) (when (time-less-p log (current-time)) (setq log (time-add (current-time) '(0 1 0 0))) (message row %d row (setq end (current-time)) (print (time-subtract end start))) prints (0 43 386499 0) on my computer. Removing the when clause: (progn (setq start (current-time)) (let ((row 0) (log (time-add (current-time) '(0 1 0 0 (while ( row 6543210) (setq row (1+ row (setq end (current-time)) (print (time-subtract end start))) Results in: (0 1 277641 0) So adding the logging here slows it down by about 43x - It doesn't seem worth it. On Sun, Aug 17, 2014 at 6:39 AM, Michael Brand michael.ch.br...@gmail.com wrote: Hi Nathaniel On Thu, Aug 7, 2014 at 4:57 PM, Nathaniel Flath flat0...@gmail.com wrote: I'd be fine with displaying every second, but I don't see a good way of doing this - do you have any suggestions? I thought of something like in this example: (let ((row 0) (log (time-add (current-time) '(0 1 0 0 (while ( row 6543210) (setq row (1+ row)) (when (time-less-p log (current-time)) (setq log (time-add (current-time) '(0 1 0 0))) (message row %d row Michael