From bdfee720197d94465dfe40776a3f0a249b7ddcb5 Mon Sep 17 00:00:00 2001 From: Nico Sonack Date: Mon, 28 Jun 2021 11:07:10 +0200 Subject: [PATCH] lisp/ob-fortran.el: Make org-babel-fortran-compiler a custom variable * lisp/ob-fortran.el (org-babel-fortran-compiler): defvar -> defcustom so that the fortran compiler is customizable like almost all 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/ob-fortran.el b/lisp/ob-fortran.el index 99afa0d96..bb2e5d2a3 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" +(defcustom org-babel-fortran-compiler "gfortran" "fortran command used to compile a fortran source code file into an - executable.") + executable." + :group 'org-babel + :type 'string) (defun org-babel-execute:fortran (body params) "This function should only be called by `org-babel-execute:fortran'." -- 2.31.0