[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org f76d4d1 2/2: ob-fortran: Use a defcustom for fortra
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org f76d4d1 2/2: ob-fortran: Use a defcustom for fortran compiler |
Date: |
Thu, 1 Jul 2021 17:57:13 -0400 (EDT) |
branch: externals/org
commit f76d4d103fe6d8bb61a08d338a1630120f2b255c
Author: Nico Sonack <nsonack@outlook.com>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>
ob-fortran: Use a defcustom for fortran compiler
* lisp/ob-fortran.el (org-babel-fortran-compiler): Change `defvar' to
`defcustom' so that the fortran compiler is customizable like almost
all other org-babel compilers.
TINYCHANGE
Sometimes the compiler isn't `gfortran` (but e.g. `gfortran10`
etc.). Accomodate for that like we do with all other org-babel
language integrations.
---
lisp/ob-fortran.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lisp/ob-fortran.el b/lisp/ob-fortran.el
index 99afa0d..6cf3a79 100644
--- a/lisp/ob-fortran.el
+++ b/lisp/ob-fortran.el
@@ -40,9 +40,11 @@
(defvar org-babel-default-header-args:fortran '())
-(defvar org-babel-fortran-compiler "gfortran"
- "fortran command used to compile a fortran source code file into an
- executable.")
+(defcustom org-babel-fortran-compiler "gfortran"
+ "Fortran command used to compile Fortran source code file."
+ :group 'org-babel
+ :package-version '(Org . "9.5")
+ :type 'string)
(defun org-babel-execute:fortran (body params)
"This function should only be called by `org-babel-execute:fortran'."