Re: [O] Fortran missing in List of supported code block languages?
Rasmus writes: Is there an independent way of checking which languages are supported? On a file-system level you could do something like: ls /usr/share/emacs/site-lisp/org*/ob* | grep -i fortran = /usr/share/emacs/site-lisp/org/ob-fortran.el In Emacs you could to something like: M-x find-library ob- [TAB]. There's also the apropos commands. Hope it helps, It does, thanks.
Re: [O] Fortran missing in List of supported code block languages?
John Kitchin writes: Fortran is supported in the sense that you can edit a block in Fortran mode. But you cannot execute a Fortran block directly afaik. You have to tangle it, compile it and then run the executable. Thanks for the precision. I guess it would not hurt to mention this kind of details in the doc, to some extent at least. For example like this: http://kitchingroup.cheme.cmu.edu/blog/2014/02/04/Literate-programming-example-with-Fortran-and-org-mode/ Very helpful. Seems to me that having such examples (at least the simple one) in the doc would be extremely helpful to beginners.
[O] Export org file to Mardown (github flavour)
I am facing a problem with converting org file to markdown. While converting i find html in it. but I want to be in github flavour markdown. Any ideas??. I have found that org-gfm.el would help.. But I dont know how to setup custom backend for markdown export..
Re: [O] Installing from Git
On 2015-05-14, at 15:04, Marcin Borkowski mb...@mbork.pl wrote: I wanted to upgrade Org, using the package manager, and it failed. Being accustomed to the package manager failing (for whatever reason), I deleted Org-mode and decided to go with the git version. I did a clone, then make, make doc and sudo make install, but M-x org-version says its Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.0.50/lisp/org/) Shouldn't it be a bit higher? Or maybe it's the Org bundled with Emacs? (I'm on: GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.10.8) of 2015-01-02.) What should I do to use the bleeding edge version? OK, so I'm a moron - I didn't add the directories to load-path. But one problem remains: the info manual is still taken from Emacs, not from the newest Org. This, however, I'll be able to sort out once I have spare 30 minutes. Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
[O] Installing from Git
Hi all, I wanted to upgrade Org, using the package manager, and it failed. Being accustomed to the package manager failing (for whatever reason), I deleted Org-mode and decided to go with the git version. I did a clone, then make, make doc and sudo make install, but M-x org-version says its Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.0.50/lisp/org/) Shouldn't it be a bit higher? Or maybe it's the Org bundled with Emacs? (I'm on: GNU Emacs 25.0.50.1 (i686-pc-linux-gnu, GTK+ Version 3.10.8) of 2015-01-02.) What should I do to use the bleeding edge version? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
Re: [O] Installing from Git
Marcin Borkowski writes: But one problem remains: the info manual is still taken from Emacs, not from the newest Org. Did you try to do 'make install-info'? -- Jorge.
Re: [O] Bug: org-set-tags duplicates tags in org-tag-persistent-alist
Hello, Paul Rankin he...@paulwrankin.com writes: When setting org-tag-alist or org-tag-persistent-alist, calling org-set-tags or org-agenda-set-tags will populate select with both alist tags and any tags from tagged subheadings. To reproduce: $ cat tmp.org * TODO task:tag1: $ emacs -Q (setq org-tag-persistent-alist '((tag1 . ?1) (tag2 . ?2))) M-x eval-last sexp M-x find-file RET tmp.org M-x org-set-tags Inherited: Current:tag1 [1] tag1 [2] tag2 [t] tag1 tag1 is duplicated. I cannot reproduce it in development version. You may want to switch to it. Regards, -- Nicolas Goaziou
Re: [O] Fortran missing in List of supported code block languages?
Hello, alain.coch...@unistra.fr writes: The 'fortran' keyword is indeed recognized in the edit buffer, and, as far as I can see, everything works quite well. But I later realized that 'Fortran' is not mentioned in the list of supported languages, section 14.7 of the org info manual [File: org, Node: Languages]. Fixed. Thank you. Perhaps because it is still in development? But if (As an aside note, I fail to understand why the 'Emacs Calc' language, with identifier 'calc', appears before 'C' in the list. Fixed too. Regards, -- Nicolas Goaziou
Re: [O] Fortran missing in List of supported code block languages?
On Thu, May 14, 2015 at 8:37 AM, alain.coch...@unistra.fr wrote: John Kitchin writes: Fortran is supported in the sense that you can edit a block in Fortran mode. But you cannot execute a Fortran block directly afaik. You have to tangle it, compile it and then run the executable. That is not true, you can in fact execute fortran blocks directly. ob-fortran.el has been part of org since 2011. IMO it is a documentation bug that it is not listed as a supported language. Best, Ista Thanks for the precision. I guess it would not hurt to mention this kind of details in the doc, to some extent at least. For example like this: http://kitchingroup.cheme.cmu.edu/blog/2014/02/04/Literate-programming-example-with-Fortran-and-org-mode/ Very helpful. Seems to me that having such examples (at least the simple one) in the doc would be extremely helpful to beginners.
[O] get name of source block
Hi all, for quite some time I've had the following in my .emacs: --8---cut here---start-8--- ;; This Snippet returns the name of the current source block. ;; An elisp block to simplify the =:prologue= definition. ;; Author: Eric Schulte ;; It is useful to insert the debug message 'Entering foo()' as output. ;; For R code blocks, enable it with this line: ;; #+PROPERTY: header-args:R :session *R* :prologue (format print(\entering %s\) (get-current-name)) (defun get-current-name () (or (when org-babel-current-src-block-location (save-excursion (goto-char org-babel-current-src-block-location) (while (and (forward-line -1) (looking-at org-babel-multi-line-header-regexp))) (when (looking-at org-babel-src-name-w-name-regexp) (org-no-properties (match-string 3) )) --8---cut here---end---8--- That had stopped working during export (my main use-case) a few weeks back. Now, org-babel-src-name-w-name-regexp is gone from the source so that this snippet is completely broken. I would like to again have the name of the source block displayed during execution of src blocks. Is there a function in org already? And if not, how would the proposed function look like so that it works during export as well? Thanks in advance! Andreas
Re: [O] org-babel for prolog
Thanks for your great effort, BTW. Confused by the requirement: ;; To activate ob-prolog add the following to your init.el file: ;; ;; (eval-after-load 'org ;;'(require 'org-prolog)) My Emacs ( 24.5.1) gives an error with this line. I know I'm probably missing something obvious, but what is org-prolog? On Fri, Jan 2, 2015 at 8:29 AM, Bjarte Johansen bjarte.johan...@infomedia.uib.no wrote: I thought you should know that I moved the project here: https://github.com/ljos/ob-prolog This makes it a bit easier for me to track issues and do proper commit-messages etc. I have now implemented the session stuff properly (I think). I still have to implement the variable stuff and expansion of the body (or I can perhaps just use the generic function). 19. des. 2014 kl. 16.25 skrev Bjarte Johansen bjarte.johan...@infomedia.uib.no: I just wanted to report that it is now possible to evaluate prolog code and it should return the correct result. Both as a call to the executable and in a session. When calling a goal in a session, I add a cut at the end of the goal so that prolog doesn’t ask if you want to get the next possible answer. I am not sure if this is the best approach. I haven’t implemented variable assignment yet because I haven’t decided how it should do that considering how prolog uses variables. If someone has any ideas for this I would be glad to hear them. I have considered entering the variables into the prolog database with the record predicates or replacing all prolog variables with the same name as in the var declaration with the value. The last one I don’t think is a particularly good idea, except if we only replace the free variables. Regards, Bjarte 10. des. 2014 kl. 18.20 skrev Bjarte Johansen bjarte.johan...@infomedia.uib.no: Hi, I have started to implement org-babel support for (swi-)prolog. I have gotten to the point where I can execute a goal in an external process and have the result show up in the org file. I am now working on getting the session to work correctly. It runs and prints, but it doesn’t do the correct thing in the inferior-mode-buffer and the output is garbled. I still have some work ahead of me. I just thought I would let you know in case someone was interested in following the progress or maybe also in helping me. I have the mode hosted in its current state here https://gist.github.com/ljos/2e346333e1b7bfd56d05 . And before you ask, yes, if I get this into a working order, I would eventually be interested in getting this into either contrib or core. Regards, Bjarte
Re: [O] Fortran missing in List of supported code block languages?
Ista Zahn istaz...@gmail.com writes: On Thu, May 14, 2015 at 8:37 AM, alain.coch...@unistra.fr wrote: John Kitchin writes: Fortran is supported in the sense that you can edit a block in Fortran mode. But you cannot execute a Fortran block directly afaik. You have to tangle it, compile it and then run the executable. That is not true, you can in fact execute fortran blocks directly. ob-fortran.el has been part of org since 2011. IMO it is a documentation bug that it is not listed as a supported language. Best, Ista Thanks for the precision. I guess it would not hurt to mention this kind of details in the doc, to some extent at least. For example like this: http://kitchingroup.cheme.cmu.edu/blog/2014/02/04/Literate-programming-example-with-Fortran-and-org-mode/ Very helpful. Seems to me that having such examples (at least the simple one) in the doc would be extremely helpful to beginners. Fortran is one of several under-documented babel languages (see http://orgmode.org/worg/org-contrib/babel/languages.html). There is a template for users willing to start a first draft of the fortran or other language documentation (see http://orgmode.org/worg/org-contrib/babel/languages.html#develop). All the best, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] org-babel for prolog
On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff borg...@gmail.com wrote: Confused by the requirement: ;; To activate ob-prolog add the following to your init.el file: ;; ;; (eval-after-load 'org ;;'(require 'org-prolog)) I'm guessing its a typo and should be ob-prolog. The file provides ob-prolog.
Re: [O] Org to mindmap and back
After some research, I could finally find the repository on github for this project, so, for anyone who might also be interested, here it is: https://github.com/dogriffiths/hipster The email shown in the org buffer in the video did not exist, but searching for the name of the app (hiPster mindmapping), surprinsigly brought back the github repo. Thank you David for making it open source! On Wed, Mar 18, 2015 at 3:02 PM, Marcelo de Moraes Serpa celose...@gmail.com wrote: Hi Nick, Good catch, thanks. I'll try contacting him directly and will share my findings here. -- Marcelo On Wed, Mar 18, 2015 at 10:05 AM, Nick Dokos ndo...@gmail.com wrote: Marcelo de Moraes Serpa celose...@gmail.com writes: Hi Dave, Yes, I'm aware of the freemind exporter. I'm not very fond of freemind though, I find it clunky to use. I really liked the minimalist style of the mind-mapping application shown in the video (also the animation effects are cool, too). Would be great if the author could chime in and perhaps share the code. Heck, I'd be willing to buy it if the integration with org was good enough (both-ways auto synchronization). If you examine the video closely, it looks like it's a Mac application, the author is David Griffiths and the application *might* be iMapMinder (also available on Windows, but not on Linux - non-free both in the freedom and beer sense). All of this is pure guesswork on my part and might very well be completely wrong. If David Griffiths is indeed the author, I don't remember seeing him on the ML. You'll have to find another way to contact him. The org file shows an email address of dgriffiths AT fas.harvard.edu but that might not be valid any longer (the video was posted in 2011). Nick On Tue, Mar 17, 2015 at 3:59 PM, J. David Boyd dbo...@mmm.com wrote: Marcelo de Moraes Serpa celose...@gmail.com writes: Hi, While searching for mind mapping tools that already had some integration with orgmode, I found this video: https://www.youtube.com/watch?v=93cqGFu3B-g, which shows a simple (but seemingly powerful) mindmapping tool that integrates well with org. Unfortunately the link to the code / app is nowhere to be found in the video description and the video is pretty old. It'd be unfortunate to not share such an interesting project. I'm very interested in using/testing/extending it. I'm wondering if the author still lurks around this mailing list? *ping* Either way, it's a great idea and someone else (even myself) could get some inspiration out off it and create something similar (and share!) - I've been wanting a way to visualize my org files in the form of a mindmap and keep both representations synced so I could just switch when I wanted, and this seems to be the gist of it. Cheers, -- Marcelo There is a connection to Freemind in the source tree. Not near my computer right now. The name is something like ox-freemind.el... Dave
Re: [O] org-babel for prolog
On 14 May 2015, at 20:22, Puneeth Chaganti puncha...@gmail.com wrote: On Thu, May 14, 2015 at 11:41 PM, Lawrence Bottorff borg...@gmail.com wrote: Confused by the requirement: ;; To activate ob-prolog add the following to your init.el file: ;; ;; (eval-after-load 'org ;;'(require 'org-prolog)) I'm guessing its a typo and should be ob-prolog. The file provides ob-prolog. Yes, I typed it wrong. Thank you for bringing it to my attention. I also discovered that it is better to use `org-babel-do-load-languages’ instead as well. I will change the recommendation tomorrow. Regards, Bjarte
Re: [O] Bug: org-set-tags duplicates tags in org-tag-persistent-alist
On 15 May 2015, at 12:32 am, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: I cannot reproduce it in development version. You may want to switch to it. I'm on the Org ELPA version, which appears to get updated a few times a month. How far apart are they? If the alleged bug has been fixed in the development branch, is it worth then finding and merging with stable?
Re: [O] Installing from Git
Hello. This is my Org-from-Git recipe: After you've cloned the repository (master branch), run make and then edit the local.mk file. There you'll find a variable named prefix; change it according to your Emacs installation. In my setup, Emacs files live in /usr/share/emacs/ so I leave prefix unchanged. In a previous installation it was in /usr/local/share/emacs/ so I wrote prefix = /usr/local/share. Only then run make install. Now the Info manual will be correctly installed. Also important, add this line to your init file: (require 'org-loaddefs) That should do it.
Re: [O] org-ref: various directories
The thing to do here is write a function that will take a bibtex key, and loop through your directories to find the pdf, and then return the full path to the pdf. Then customize the variable org-ref-get-pdf-filename-function to point to that function. https://github.com/jkitchin/org-ref/blob/master/org-ref.el#L122 Out of the box, org-ref expects all the pdfs to be named key.pdf and to be in a single directory. That is partly due to this library https://github.com/jkitchin/org-ref/blob/master/doi-utils.el which downloads pdfs for you from a doi in that format. John --- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Wed, May 13, 2015 at 3:00 PM, Michael Giepen mgie...@uni-bonn.de wrote: Hello, I just cannot get org-ref to accept various directories: I tried (setq org-ref-pdf-directory (quote ( /home/mcg/thesis/library/folder1/ /home/mcg/thesis/library/folder2/ /home/mcg/thesis/library/folder3/ ))) It would also suffice if I could include subdirectories of .../thesis/library/
[O] Fortran missing in List of supported code block languages?
I was starting investigating Working with source code. I tried with the bloc: #+BEGIN_SRC fortran #+END_SRC The 'fortran' keyword is indeed recognized in the edit buffer, and, as far as I can see, everything works quite well. But I later realized that 'Fortran' is not mentioned in the list of supported languages, section 14.7 of the org info manual [File: org, Node: Languages]. Perhaps because it is still in development? But if I had checked this list before, I wouldn't even have tried it, waiting for better times... Is there an independent way of checking which languages are supported? Thanks -- (As an aside note, I fail to understand why the 'Emacs Calc' language, with identifier 'calc', appears before 'C' in the list. Perhaps because it is difficult to update such a two-column format, and 'calc' is close enough to its true place? But, for me at least, I fell that a single column would actually be less confusing; and anyway, I believe a blank line after the Language ... Identifier line would help.) Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/) -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France| Fax: +33 (0)3 68 85 01 25
Re: [O] Status of MobileOrg on IOS??
John Hendy jw.he...@gmail.com: On Tue, May 12, 2015 at 11:43 AM, David Masterson dsmaster...@gmail.com wrote: I've asked this before and I'll probably continue asking as I move in and out of using it, but... What's the development status of MobileOrg -- particularly on IOS? From what I see, it appears that development is stalled. My attempts at trying to use it show the following: * It seems to work even on my iPhone 6 as far as it goes * It only seems to support basic viewing and minimal editting What would you expect/like? I'm not David, and I use android and not IOS, but I would like to see habit tracking implemented, including habit tracking with comments. It would also be nice to have tables, especially with all of the features in emacs org.
Re: [O] Correct way to insert results
Alex Bennée alex.ben...@linaro.org writes: Hi, I'm working on adding async call functionality to org-babel blocks so I don't need to block my main Emacs for long running calculations. However I'm having problems with the insertion of the results once handled. Ping? Is this something I should just write a custom routine for to replace a token generated at the initial call? My code looks like this: (defmacro async-org-call (async-form) Expands `ASYNC-FORM' as an asynchronus org-bable function. If executed inside an org file will insert the results into the src blocks results. Otherwise the result will be echoed to the Message buffer. (let ((result-buffer (buffer-name)) (result-org-name (nth 4 (org-babel-get-src-block-info `(async-start ;; The result of the async-sexp is returned to the handler ;; as result. (lambda () ,(async-inject-variables async-form) (eval async-form)) ;; This code runs in the current emacs process. (lambda (result) (let ((buf ,result-buffer) (org ,result-org-name)) ;; Send the results somewhere (if (and buf org) (save-excursion (with-current-buffer buf (org-babel-goto-named-result org) (org-babel-insert-result (format %s result (message (pp (format async-result: %s result) However the insert result seems to keep skipping the named result I'm aiming for (I was calling basic-async-test, the results end up after async-with-delay in a fresh RESULTS: drawer): ** Basic async #+name: basic-async-test #+begin_src emacs-lisp (async-org-call (format this is in inferior)) #+end_src #+RESULTS: basic-async-test : #process emacs #+name: async-with-delay #+begin_src emacs-lisp (async-org-call ((sleep-for 3) (format woken up))) #+end_src #+RESULTS: =this is in inferior =: this is in inferior #+RESULTS: async-with-delay : #process emacs Any idea how I can do this better? -- Alex Bennée
Re: [O] Fortran missing in List of supported code block languages?
Fortran is supported in the sense that you can edit a block in Fortran mode. But you cannot execute a Fortran block directly afaik. You have to tangle it, compile it and then run the executable. For example like this: http://kitchingroup.cheme.cmu.edu/blog/2014/02/04/Literate-programming-example-with-Fortran-and-org-mode/ On May 14, 2015, at 2:20 AM, alain.coch...@unistra.fr wrote: I was starting investigating Working with source code. I tried with the bloc: #+BEGIN_SRC fortran #+END_SRC The 'fortran' keyword is indeed recognized in the edit buffer, and, as far as I can see, everything works quite well. But I later realized that 'Fortran' is not mentioned in the list of supported languages, section 14.7 of the org info manual [File: org, Node: Languages]. Perhaps because it is still in development? But if I had checked this list before, I wouldn't even have tried it, waiting for better times... Is there an independent way of checking which languages are supported? Thanks -- (As an aside note, I fail to understand why the 'Emacs Calc' language, with identifier 'calc', appears before 'C' in the list. Perhaps because it is difficult to update such a two-column format, and 'calc' is close enough to its true place? But, for me at least, I fell that a single column would actually be less confusing; and anyway, I believe a blank line after the Language ... Identifier line would help.) Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/) -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France| Fax: +33 (0)3 68 85 01 25
Re: [O] Fortran missing in List of supported code block languages?
John Kitchin johnrkitc...@gmail.com writes: Is there an independent way of checking which languages are supported? On a file-system level you could do something like: ls /usr/share/emacs/site-lisp/org*/ob* | grep -i fortran = /usr/share/emacs/site-lisp/org/ob-fortran.el In Emacs you could to something like: M-x find-library ob- [TAB]. There's also the apropos commands. Hope it helps, Rasmus -- If you can mix business and politics wonderful things can happen!