Re: [O] Fortran missing in List of supported code block languages?

2015-05-14 Thread Alain . Cochard
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?

2015-05-14 Thread Alain . Cochard
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.



Re: [O] Fortran missing in List of supported code block languages?

2015-05-14 Thread Nicolas Goaziou
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?

2015-05-14 Thread Ista Zahn
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.




Re: [O] Fortran missing in List of supported code block languages?

2015-05-14 Thread Thomas S. Dye
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



[O] Fortran missing in List of supported code block languages?

2015-05-14 Thread Alain . Cochard

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?

2015-05-14 Thread John Kitchin
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?

2015-05-14 Thread Rasmus
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!