branch: externals/org commit f76d4d103fe6d8bb61a08d338a1630120f2b255c Author: Nico Sonack <nson...@outlook.com> Commit: Nicolas Goaziou <m...@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'."