Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
On Tue, Sep 03, 2013 at 11:34:52PM +0200, nore...@maillard.im wrote: Hello, I have a problem. I need to sync my files between several devices (currently 3). At first, I thought the solution would have been to use mobileorg (that made sense since I also use an android device) but as far as I understand it, it is not really designed for that purpose (I have several agendas.org staying in the hierarchy with conflicts from all sources...) How do you sync your files easily and share them between 3, 4 or even more places ? I use Git. -- Suvayu Open source is the future. It sets us free.
Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
On Sep 4, 2013, at 3:04 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Sep 03, 2013 at 11:34:52PM +0200, nore...@maillard.im wrote: Hello, I have a problem. I need to sync my files between several devices (currently 3). At first, I thought the solution would have been to use mobileorg (that made sense since I also use an android device) but as far as I understand it, it is not really designed for that purpose (I have several agendas.org staying in the hierarchy with conflicts from all sources...) How do you sync your files easily and share them between 3, 4 or even more places ? I use Git. You might try unison. Works for me. -- Suvayu Open source is the future. It sets us free.
Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
nore...@maillard.im writes: I have a problem. I need to sync my files between several devices (currently 3). At first, I thought the solution would have been to use mobileorg (that made sense since I also use an android device) but as far as I understand it, it is not really designed for that purpose (I have several agendas.org staying in the hierarchy with conflicts from all sources...) How do you sync your files easily and share them between 3, 4 or even more places ? Dropbox. I also use bitbucket for coding projects proper, but its overkill if you just want to keep up to date with latest versions of files. The nice thing about using Dropbox is that you don't need to check anything in - as long as you save files you can just work away from you desktop and then pick things up exactly where you left off on your laptop. If you have changes that you need to merge together on different devices then you probably do want to use git or similar.
Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
Hi, nore...@maillard.im writes: How do you sync your files easily and share them between 3, 4 or even more places ? You might find the answer to that question in a previous thread: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg73502.html Hope that helps. Best, -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
[O] How to add custom markup elements and to define custom backends?
Hello, sometimes I need markup elements than missing in Org mode, for example combination of both bold and italic. Some backends, for instance html and latex (with minor exception) support such combinations. So I wonder 1) how to define custom or new markup elements that can be used in backends, if it is possible 2) and how to extend or customize (write a custom backend) to take into accout these new elements. Thanks in advance, Vladimir Lomov -- You will triumph over your enemy.
[O] ediff-directories - how to ignore timestamps and work recursively
Hello, I want to compare two directories and see what files are different, however, the comparison should ignore timestamps of files. Is there a simple solution? I had assumed that ediff would also consider files in subdirectories of the directory paths given for comparison. Apparently, it does not do that in Emacs 23.4.1 - is there a recursive option? Many thanks in advance. Warm regards, Stefan -- Dr. Stefan Vollmar, Dipl.-Phys. Head of IT group Max-Planck-Institut für neurologische Forschung Gleueler Str. 50, 50931 Köln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 E-Mail: voll...@nf.mpg.de http://www.nf.mpg.de smime.p7s Description: S/MIME cryptographic signature
Re: [O] How to add custom markup elements and to define custom backends?
On Sep 4, 2013, at 9:06 AM, Vladimir Lomov lomov...@gmail.com wrote: Hello, sometimes I need markup elements than missing in Org mode, for example combination of both bold and italic. Some backends, for instance html and latex (with minor exception) support such combinations. So I wonder 1) how to define custom or new markup elements that can be used in backends, if it is possible 2) and how to extend or customize (write a custom backend) to take into accout these new elements. Hi Vladimir, Org mode does not support this directly (and to be honest, I know very few applications where combining different attributes makes a lot of sense). You could probably play with org-emphasis-alist and org-latex-text-markup-alist to cook something up. but first I would think very hard about the question if this is really needed and does not create too much visual clutter. Regards - Carsten
Re: [O] How to add custom markup elements and to define custom backends?
On Wed, Sep 04, 2013 at 09:15:56AM +0200, Carsten Dominik wrote: On Sep 4, 2013, at 9:06 AM, Vladimir Lomov lomov...@gmail.com wrote: Hello, sometimes I need markup elements than missing in Org mode, for example combination of both bold and italic. Some backends, for instance html and latex (with minor exception) support such combinations. So I wonder 1) how to define custom or new markup elements that can be used in backends, if it is possible 2) and how to extend or customize (write a custom backend) to take into accout these new elements. Hi Vladimir, Org mode does not support this directly (and to be honest, I know very few applications where combining different attributes makes a lot of sense). You could probably play with org-emphasis-alist and org-latex-text-markup-alist to cook something up. but first I would think very hard about the question if this is really needed and does not create too much visual clutter. I agree with Carsten on the last point about visual clutter. That said, if the OP rarely uses one of the standard mark-ups, say +strikethrough+, then an export filter overriding the default would do just fine. For an example, see here: http://orgmode.org/worg/exporters/beamer/ox-beamer.html#export-filters Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
On Wed, Sep 04, 2013 at 03:30:24PM +0900, Xiao-Yong Jin wrote: On Sep 4, 2013, at 3:04 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Sep 03, 2013 at 11:34:52PM +0200, nore...@maillard.im wrote: Hello, I have a problem. I need to sync my files between several devices (currently 3). At first, I thought the solution would have been to use mobileorg (that made sense since I also use an android device) but as far as I understand it, it is not really designed for that purpose (I have several agendas.org staying in the hierarchy with conflicts from all sources...) How do you sync your files easily and share them between 3, 4 or even more places ? I use Git. You might try unison. Works for me. I think the issue with tools like Unison, Dropbox, is conflict resolution on simultaneous edits. Traditional version control does a better job of that, but then it loses the convenience of these other tools. I believe there is a list member (Alan) close to Unison development; in the thread referenced by Samuel there is some discussion on how this could be done in a more well defined manner. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] ediff-directories - how to ignore timestamps and work recursively
On Wed, Sep 04, 2013 at 08:06:31AM +0200, Stefan Vollmar wrote: Hello, I want to compare two directories and see what files are different, however, the comparison should ignore timestamps of files. Is there a simple solution? I had assumed that ediff would also consider files in subdirectories of the directory paths given for comparison. Apparently, it does not do that in Emacs 23.4.1 - is there a recursive option? You might have better luck on the emacs list. That said, did you look at `ediff-directories'? Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] ediff-directories - how to ignore timestamps and work recursively
Suvayu Ali fatkasuvayu+li...@gmail.com writes: Hello, I want to compare two directories and see what files are different, however, the comparison should ignore timestamps of files. Is there a simple solution? I had assumed that ediff would also consider files in subdirectories of the directory paths given for comparison. Apparently, it does not do that in Emacs 23.4.1 - is there a recursive option? You might have better luck on the emacs list. That said, did you look at `ediff-directories'? That's also my tool of choice. Combined with the key sequene = h x, which shows you only the files which differ. `ediff-directories' is not recursive, but it gives you also subdirectory pairs to compare. Just hit enter on such a pair. As bonus, it even works for remote directories. Best regards, Michael.
Re: [O] [SYNC] How do you sync your org-mode files between n devices (n 2)
Hi, For me it is git using a central server. I push from the clients to the server and pull from the server only. Never on a device to device base, because most of the time the devices can't see each other (different networks). Hope that helps Torsten On 4 September 2013 09:43, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Wed, Sep 04, 2013 at 03:30:24PM +0900, Xiao-Yong Jin wrote: On Sep 4, 2013, at 3:04 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Sep 03, 2013 at 11:34:52PM +0200, nore...@maillard.im wrote: Hello, I have a problem. I need to sync my files between several devices (currently 3). At first, I thought the solution would have been to use mobileorg (that made sense since I also use an android device) but as far as I understand it, it is not really designed for that purpose (I have several agendas.org staying in the hierarchy with conflicts from all sources...) How do you sync your files easily and share them between 3, 4 or even more places ? I use Git. You might try unison. Works for me. I think the issue with tools like Unison, Dropbox, is conflict resolution on simultaneous edits. Traditional version control does a better job of that, but then it loses the convenience of these other tools. I believe there is a list member (Alan) close to Unison development; in the thread referenced by Samuel there is some discussion on how this could be done in a more well defined manner. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] asynchronous code evaluation
On Wed, Sep 04, 2013 at 07:27:01AM +0200, Johannes Rainer wrote: hi all! I have some pretty calculation intense R code in a code block and when I execute the code (C-c C-c) my emacs freezes and waits for the code to finish. Is there a way to evaluate the code asynchronously, so that I could edit the file (obviously not the code block itself) while the code is being evaluated? Not sure that is a possibility yet. For the moment you could try asynchronous export as a workaround. That said, I am curious why you are knowingly tying a computationally intensive (possibly buggy, during development i.e.) process with your editor. I have to work on some fairly computationally intensive analysis with Python. I always keep them in separate modules and scripts run from the shell. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] How to easily create a new export engine...
Hi, flammable project flammable.proj...@gmail.com writes: I will spend some time on ox-md.el and the section listed by Nicolas. One last question: If I choose to extend the existing back-end, would I be able to put all the code into a external file and allow the user to load it through it emacs config file? Yes. Just make NAME.el and end the file by providing NAME (provide 'NAME). I mean, I would like to add a support of Twitter Bootstrap trough the ox-html.el export engine. If the user add (require 'ox-html-bootstrap) into its .emacs file, it will allow the user to extend the ox-html export engine. Does it seems possible? Yeah, that's possible with the derived backend. Indeed, that would seem like on of the main usages. In the simplest case you'd just add an option to export dispatcher and people would have to select it when they want to use twitter bootstrap (whatever that is. . .). –Rasmus -- In theory, practice and theory are the same. In practice they are not
Re: [O] file-error Cannot open load file org
* Karl Voit devn...@karl-voit.at wrote: Whenever I open an Org file, I get: File mode specification error: (file-error Cannot open load file org) I found an old posting with toggle-debug-on-error and activated it before I open my test Org-mode file: Debugger entered--Lisp error: (file-error Cannot open load file org) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#buffer test.org ~/org/test.org nil nil ~/share/all/org-mode/test.org (3408929 64768)) find-file-noselect(~/org/test.org nil nil t) find-file(~/org/test.org t) call-interactively(find-file nil nil) However, I can not interpret it :-( emacs --debug-init does not show any issues in *Messages*. I just do not have any Org-mode available when opening an Org-mode file. When I do M-x org-mode I get call-interactively: Cannot open load file: org in *Messages*. Again: I'm a bit puzzled since the exact same ~/.emacs.d folder sub-hierarchy is working on my other machine. Therefore I guess, that the issue is rooted in the system configuration. I also removed /usr/share/emacs/23.4/lisp/org which was Org-mode v6 (from Debian Wheezy). -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] file-error Cannot open load file org
Karl Voit devn...@karl-voit.at writes: * Karl Voit devn...@karl-voit.at wrote: Whenever I open an Org file, I get: File mode specification error: (file-error Cannot open load file org) I found an old posting with toggle-debug-on-error and activated it before I open my test Org-mode file: Debugger entered--Lisp error: (file-error Cannot open load file org) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(#buffer test.org ~/org/test.org nil nil ~/share/all/org-mode/test.org (3408929 64768)) find-file-noselect(~/org/test.org nil nil t) find-file(~/org/test.org t) call-interactively(find-file nil nil) However, I can not interpret it :-( emacs --debug-init does not show any issues in *Messages*. I just do not have any Org-mode available when opening an Org-mode file. When I do M-x org-mode I get call-interactively: Cannot open load file: org in *Messages*. Again: I'm a bit puzzled since the exact same ~/.emacs.d folder sub-hierarchy is working on my other machine. Therefore I guess, that the issue is rooted in the system configuration. I also removed /usr/share/emacs/23.4/lisp/org which was Org-mode v6 (from Debian Wheezy). Did you try to copy a subdirs.el into the org-mode directory? , | /home/tj/gitclone/org-mode: | insgesamt 140 | drwxr-xr-x 9 tj users 4096 19. Jul 14:28 . | drwxr-xr-x 28 tj users 4096 1. Aug 20:28 .. | -rw-r--r-- 1 tj users 333 19. Jul 12:35 .dir-locals.el | [...] | -rwxr-xr-x 1 tj users 106 2. Dez 2011 subdirs.el | drwxr-xr-x 5 tj users 4096 19. Jul 12:35 testing ` with subdirs.el file content: ,- | (if (fboundp 'normal-top-level-add-subdirs-to-load-path) | (normal-top-level-add-subdirs-to-load-path)) `- -- cheers, Thorsten
Re: [O] [PATCH] Add support for `ltablex'
Hi Nicolas, What are its advantages over longtabu environment, which is already supported? There is a lot of table related packages, I'm not sure we want to support them all. I wasn't aware about the tabu package and its tabu and longtabu environments. I'll try to use it and see if I can get what I want. One nice thing about ltablex is that you don't need to use different environments for short or long tables: you still use the well known tabularx environment in any case. For now, please ignore my patch unless I come up with issues using the tabu package. Thanks a lot for your answer. Regards, Francesco
Re: [O] How to easily create a new export engine...
flammable project flammable.proj...@gmail.com writes: Thanks Nocolas and Suvayu, I will spend some time on ox-md.el and the section listed by Nicolas. One last question: If I choose to extend the existing back-end, would I be able to put all the code into a external file and allow the user to load it through it emacs config file? I mean, I would like to add a support of Twitter Bootstrap trough the ox-html.el export engine. If the user add (require 'ox-html-bootstrap) into its .emacs file, it will allow the user to extend the ox-html export engine. Does it seems possible? The trick here is that your file calls (require 'ox-html) at the top (maybe requiring org itself is a good idea), and (provide 'ox-bootstrap) at the bottom. When writing your mode, you've required ox-html at the top, so in the rest of the file you can override or build on the ox-html functions, and at the bottom you provide users with everything you've done. When users require your module, they will then require everything you've required, thus loading the whole chain of dependencies that are necessary for your module. They can go from zero to having all of org mode loaded, simply by requiring your file. Provided you've required all the necessary modules, of course! E
Re: [O] ATTR_LATEX not being applied on dynamic blocks
Hello, Francesco Pizzolante f...@missioncriticalit.com writes: But if I try what you suggest and move the #+ATTR_LATEX line inside the dynamic block (after the #+BEGIN: clocktable and just before the generated table), then this line gets lost as soon as the dynamic block is regenerated, which is not what I expect. Then some attribute could be added to dynamic block arguments in order to re-create the ATTR_LATEX keyword each time. IIRC we did that for #+CAPTION some months ago. It shouldn't be difficult to do it for this one. With Org 7, having the #+ATTR_LATEX line just before the #+BEGIN: clocktable line applies the attributes to the inner table of the dynamic block and the #+ATTR_LATEX line is not lost each time I regenerate the dynamic block. This is not possible anymore. Regards, -- Nicolas Goaziou
[O] Export and links
Hi, If I export this to html : --- #+TITLE: FOO #+macro: huge @@html:h1$1/h1@@ #+macro: large @@html:h2$1/h2@@ * Foo page {{{large([[http:test.html][FOO]])}}} --- I get : p h2[[http:test.html][FOO]]/h2 /p The link is not honoured. Is there a way to achieve p h2a href=http:foo.htmlFOO/a/h2 /p instead ? (Probably already asked ?) Secondary questions : - is there a way to avoid the spurious p ? Sometimes, you may want to avoid p around paragraphs because there are already others tags. - exporting the org text above, I also get this : div class=figure p /p /div in the midlle of the generated html. It seems to be the translation of the blank line between the heading and the text. Is there a way to avoid it? Thanks in advance, Fabrice
Re: [O] org-speed-commands-default 1 2 3
Hey Oleh, On Mon, Sep 02, 2013 at 07:54:14AM +0200, Carsten Dominik wrote: you have good arguments - but I still think this is a matter of workflow and preferences, so I am not going to change the defaults. This is what we have user options for. I think this would be a great addition to Worg. Would you be willing to write something up? Just a few points on the workflow and the relevant setup lines users can include in their setup would do. I think it would fit in well here: http://orgmode.org/worg/org-configs/org-config-examples.html If you do not have commit access to Worg, you can get it by sending your public SSH key to Matt or Bastien. See here: http://orgmode.org/worg/worg-maintainance.html If you are hesitant on making the commit yourself, you could post the write-up on the list, either me or someone else would be happy to make the commit for you. Cheers, -- Suvayu Open source is the future. It sets us free.
Re: [O] Export and links
Hello, Fabrice Popineau fabrice.popin...@gmail.com writes: If I export this to html : --- #+TITLE: FOO #+macro: huge @@html:h1$1/h1@@ #+macro: large @@html:h2$1/h2@@ * Foo page {{{large([[http:test.html][FOO]])}}} --- I get : p h2[[http:test.html][FOO]]/h2 /p The link is not honoured. It happens because you enclose it within an export snippet, where nothing is interpreted. You may use instead: #+macro: large @@html:h2@@$1@@html:/h2@@ - is there a way to avoid the spurious p ? Sometimes, you may want to avoid p around paragraphs because there are already others tags. - exporting the org text above, I also get this : div class=figure p /p /div in the midlle of the generated html. It seems to be the translation of the blank line between the heading and the text. Is there a way to avoid it? I cannot reproduce it with the example above. Regards, -- Nicolas Goaziou
Re: [O] file-error Cannot open load file org
* Thorsten Jolitz tjol...@gmail.com wrote: Did you try to copy a subdirs.el into the org-mode directory? with subdirs.el file content: ,- | (if (fboundp 'normal-top-level-add-subdirs-to-load-path) | (normal-top-level-add-subdirs-to-load-path)) `- I do not understand what this does and I don't have subdirs in my local configuration. I guess, this is a file which got invoked by convention (system-Emacs config). However, creating this file with the content above does not change anything at my issue. What else can I check? -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] [PATCH] Handle literal 'hline arguments passed to ruby.
On 2013-09-02 10:12, Carsten Dominik wrote: Applied, thank. Rick, I had trouble applying th patch, so did some handywork - please check after me. looks good modulo a couple of extra blank lines :). thanx, rick
Re: [O] asynchronous code evaluation
On Wed, Sep 4, 2013 at 10:00 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: On Wed, Sep 04, 2013 at 07:27:01AM +0200, Johannes Rainer wrote: hi all! I have some pretty calculation intense R code in a code block and when I execute the code (C-c C-c) my emacs freezes and waits for the code to finish. Is there a way to evaluate the code asynchronously, so that I could edit the file (obviously not the code block itself) while the code is being evaluated? Not sure that is a possibility yet. For the moment you could try asynchronous export as a workaround. yes, I will do that. I just realized that I have to set ess-ask-for-ess-directory to nil, otherwise the async export hangs because it tries to ask where to start R. That said, I am curious why you are knowingly tying a computationally intensive (possibly buggy, during development i.e.) process with your editor. I have to work on some fairly computationally intensive analysis with Python. I always keep them in separate modules and scripts run from the shell. well, I'm using emacs/org for my data analyses in R. I thus combine documentation (i.e. the conclusions drawn from e.g. plots created in R) and the R code to perform the analysis in my org file. Since I'm analysing high throughput data some tasks to handle the data are quite time consuming. cheers, jo Hope this helps, -- Suvayu Open source is the future. It sets us free. -- Johannes Rainer, PhD Applied Bioinformatics Group, Division Molecular Pathophysiology, Biocenter, Medical University Innsbruck, Innrain 80/82 II, 6020 Innsbruck, Austria and Tyrolean Cancer Research Institute Innrain 66, 6020 Innsbruck, Austria Tel.: +43 (0)512 9003 70961 Email: johannes.rai...@i-med.ac.at johannes.rai...@tcri.at URL: http://bioinfo.i-med.ac.at
Re: [O] [PATCH] Handle literal 'hline arguments passed to ruby.
On Sep 4, 2013, at 3:12 PM, Rick Frankel r...@rickster.com wrote: On 2013-09-02 10:12, Carsten Dominik wrote: Applied, thank. Rick, I had trouble applying th patch, so did some handywork - please check after me. looks good modulo a couple of extra blank lines :). Thank you for checking. - Carsten thanx, rick
Re: [O] mixed orgmode installation
On Wed, Sep 04, 2013 at 04:52:34PM +0200, Johannes Rainer wrote: hm, that's an option. based on your suggestion I created now my own little makefile to install the git org-mode and directly over-write the one located in /Applications/Emacs.app/Resources/lisp/org . actually, I first delete all files in this org directory and install the one from git into the dir again. This can actually cause difficult to diagnose problems sometimes. The simplest way to do it right is to setup your load-path early in your init file. To get an idea, you can take a look at my setup. https://github.com/suvayu/.emacs.d/blob/master/init.el Look at the first 18 lines; after this I can customise, load, do whatever I want with org. You will notice I load a kill-old-org.el. That line is experimental and optional, and you may skip it. Hope this helps, -- Suvayu Open source is the future. It sets us free.
Re: [O] asynchronous code evaluation
On Wed, Sep 04, 2013 at 03:23:03PM +0200, Johannes Rainer wrote: On Wed, Sep 4, 2013 at 10:00 AM, Suvayu Ali fatkasuvayu+li...@gmail.comwrote: That said, I am curious why you are knowingly tying a computationally intensive (possibly buggy, during development i.e.) process with your editor. I have to work on some fairly computationally intensive analysis with Python. I always keep them in separate modules and scripts run from the shell. well, I'm using emacs/org for my data analyses in R. I thus combine documentation (i.e. the conclusions drawn from e.g. plots created in R) and the R code to perform the analysis in my org file. Since I'm analysing high throughput data some tasks to handle the data are quite time consuming. Okay, in that case I would try to achieve the asynchronicity in R. I think you would have better luck that way. -- Suvayu Open source is the future. It sets us free.
[O] mixed orgmode installation
hi all! is there a clean way to disable the built in org from emacs? I'm loading org mode from git externally, but newer emacs always come with org mode included. would just deleting the org folder in the emacs (am using Emacs.app on mac) installation help? thanks in advance!
Re: [O] mixed orgmode installation
Johannes Rainer johannes.rai...@gmail.com writes: hi all! is there a clean way to disable the built in org from emacs? I'm loading org mode from git externally, but newer emacs always come with org mode included. would just deleting the org folder in the emacs (am using Emacs.app on mac) installation help? thanks in advance! Using the git version too, I had lots of trouble with mixed installs. Therefore the first thing I do is deleting the org folder in the emacs installation, although I have been told on this list this would be a recipe for desaster (since autoloads will be messed up or so ...). But desaster never happened, in fact I did not have any misterious problems with (multiple) org-mode(s) on my machine anymore since then. I just replace the installation org-mode folder with a symlink to the git folder and add a 'subdirs.el' to the git folder, then it works. -- cheers, Thorsten
Re: [O] asynchronous code evaluation
Johannes Rainer johannes.rainer at gmail.com writes: hi all! I have some pretty calculation intense R code in a code block and when I execute the code (C-c C-c) my emacs freezes and waits for the code to finish. Is there a way to evaluate the code asynchronously, so that I could edit the file (obviously not the code block itself) while the code is being evaluated? thanks, jo Try this: C-c ' in the R src block. Then use C-c C-c (ess-eval-region-or-function-or-paragraph-and-step) to execute the long running code from the ESS edit buffer. You may need to select the region if there are several paragraphs, or delete any blank lines. == Another alternative is to use ravel. https://github.com/chasberry/orgmode-accessories Create a knitr or Sweave doc from the org doc or a suitable subtree of the computationally intensive parts. Then you can knit() the doc from the R session and switch back to the buffer you want to edit. Also, you might want to turn on caching in the knitr doc to enable a quick restart when you log in again.
Re: [O] file-error Cannot open load file org
* Karl Voit devn...@karl-voit.at wrote: Hi! I've got a strange issue here: today, I set up a second laptop with more or less identical configuration (Debian Wheezy; orgmode from git g6fdc23). I copied my .emacs.d to the new machine but Org-mode is not working there :-O Whenever I open an Org file, I get: File mode specification error: (file-error Cannot open load file org) I could resolve my issue meanwhile. The problem was caused by a combination of mixed installation (see thread mixed orgmode installation) and a mismatch between my switch-host-function and the hostname. In other words: there were two separate errors that caused Org-mode not to be set-up as expected. Sorry for the fuzz and thanks for all tips! -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: get Memacs from https://github.com/novoid/Memacs https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] mixed orgmode installation
On Wed, Sep 4, 2013 at 4:19 PM, Thorsten Jolitz tjol...@gmail.com wrote: Johannes Rainer johannes.rai...@gmail.com writes: hi all! is there a clean way to disable the built in org from emacs? I'm loading org mode from git externally, but newer emacs always come with org mode included. would just deleting the org folder in the emacs (am using Emacs.app on mac) installation help? thanks in advance! Using the git version too, I had lots of trouble with mixed installs. Therefore the first thing I do is deleting the org folder in the emacs installation, although I have been told on this list this would be a recipe for desaster (since autoloads will be messed up or so ...). But desaster never happened, in fact I did not have any misterious problems with (multiple) org-mode(s) on my machine anymore since then. I just replace the installation org-mode folder with a symlink to the git folder and add a 'subdirs.el' to the git folder, then it works. hm, that's an option. based on your suggestion I created now my own little makefile to install the git org-mode and directly over-write the one located in /Applications/Emacs.app/Resources/lisp/org . actually, I first delete all files in this org directory and install the one from git into the dir again. thanks! -- cheers, Thorsten
Re: [O] syntax for blocks that the exporter should not render?
On Tue, Sep 03, 2013 at 11:32:33AM -0400, Matt Price wrote: #+/home/matt/Matt_headshots/Matt Price/IMG_9367_.jpg http://2013.hackinghistory.ca/wp-content/uploads/2013/08/wpid-IMG_9367_2.jpg [...chomp...chomp...chomp...] ignore these lines. I thought that the leading #+ was enough to get org to treat these lines as non-text -- but I guess I'm wrong! Anyone know a solution? Have you tried customising the leading string to # instead? That would make them comments and will be ignored by the exporter. -- Suvayu Open source is the future. It sets us free.
Re: [O] asynchronous code evaluation
On 09/04/2013 09:23 AM, Johannes Rainer wrote: well, I'm using emacs/org for my data analyses in R. I thus combine documentation (i.e. the conclusions drawn from e.g. plots created in R) and the R code to perform the analysis in my org file. Since I'm analysing high throughput data some tasks to handle the data are quite time consuming. In the past, I have solved that problem by adding a makefile in the directory, which produces a separate fragment to be consumed/included by the org file. Make based on the updated data, publish based on the static outuput of the make process. If you let the sim run in the background while you edit, you'll likely get to a point, whilst tweaking or such, that you have dispatched several long-running jobs in parallel, and only care about the last result. That's probably counterproductive. :) - Allen S. Rout
Re: [O] asynchronous code evaluation
Hi Johannes, Johannes Rainer johannes.rai...@i-med.ac.at writes: well, I'm using emacs/org for my data analyses in R. I thus combine documentation (i.e. the conclusions drawn from e.g. plots created in R) and the R code to perform the analysis in my org file. Since I'm analysing high throughput data some tasks to handle the data are quite time consuming. A variation on Allen's Makefile approach, I structure my (Python) code to be idempotent. The real code never (re)runs unless its output either doesn't exist or is older than the input. Normally when org runs the code's higher level interface it's essentially a no-op and very fast. If something does change it's usually because I'm doing development and will be running the code outside of org enough that it's reached its no-op state before I go back into emacs to refresh/edit the org document. Also, I keep things synchronous to avoid having to multiple, competing processes running at once. What I want is to take this approach and generalize into a more formal workflow system. One which handles caching files and in-memory objects in a versioned store to provide data provenance and idempotent running in a general sense. There's already been some work on this (bein, pyutilib workflow and sumatra to name some Python oriented ones) but so far nothing that just fits. I'm in the middle of trying my hand at something better, but it's not yet usable. -Brett. pgpgHPRVolmV1.pgp Description: PGP signature
Re: [O] (Emacs 23/24 binary compatibility): defstruct, setf
Does the patch below work for you? Yes. Please install. Done, Stefan