summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNico Sonack <nsonack@outlook.com>2021-06-28 11:07:10 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-07-01 23:21:15 +0200
commitf76d4d103fe6d8bb61a08d338a1630120f2b255c (patch)
treedac6004c3a4d41aaf68afe6a548a2772b07b0263
parentd1900adfbe81813ebc0f655470631739fe19ee3d (diff)
downloadorg-mode-f76d4d103fe6d8bb61a08d338a1630120f2b255c.tar.gz
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.
-rw-r--r--lisp/ob-fortran.el8
1 files 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'."