[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 67bd4b0a36 08/17: * lisp/ob-fortran.el: Add support
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 67bd4b0a36 08/17: * lisp/ob-fortran.el: Add support for :prologue/:epilogue parameters |
Date: |
Thu, 19 Oct 2023 06:58:51 -0400 (EDT) |
branch: externals/org
commit 67bd4b0a36572cd353b4cdab6b1123c1565c3f14
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
* lisp/ob-fortran.el: Add support for :prologue/:epilogue parameters
(org-babel-expand-body:fortran):
---
lisp/ob-fortran.el | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/lisp/ob-fortran.el b/lisp/ob-fortran.el
index fabc6a47a9..3c3bf8cf42 100644
--- a/lisp/ob-fortran.el
+++ b/lisp/ob-fortran.el
@@ -85,6 +85,8 @@ This function is called by `org-babel-execute-src-block'."
(defun org-babel-expand-body:fortran (body params)
"Expand a fortran BODY according to its header arguments defined in PARAMS."
(let ((vars (org-babel--get-vars params))
+ (prologue (cdr (assq :prologue params)))
+ (epilogue (cdr (assq :epilogue params)))
(main-p (not (string= (cdr (assq :main params)) "no")))
(includes (or (cdr (assq :includes params))
(org-babel-read (org-entry-get nil "includes" t))))
@@ -107,9 +109,16 @@ This function is called by `org-babel-execute-src-block'."
(concat
;; variables
(mapconcat 'org-babel-fortran-var-to-fortran vars "\n")
- body)
+ (and prologue (concat prologue "\n"))
+ body
+ (and prologue (concat prologue "\n")))
params)
- body) "\n") "\n")))
+ (concat
+ (and prologue (concat prologue "\n"))
+ body
+ (and epilogue (concat "\n" epilogue "\n"))))
+ "\n")
+ "\n")))
(defun org-babel-fortran-ensure-main-wrap (body params)
"Wrap BODY in a \"program ... end program\" block if none exists.
- [elpa] externals/org 936290fe18 07/17: * lisp/ob-emacs-lisp.el: Add support for :prologue/:epilogue parameters, (continued)
- [elpa] externals/org 936290fe18 07/17: * lisp/ob-emacs-lisp.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 312deaa13a 03/17: * lisp/ob-C.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org f0a2531bb4 10/17: * lisp/ob-latex.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 6887851401 11/17: * lisp/ob-lilypond.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org ab4ec726e5 13/17: * lisp/ob-org.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 13353f1fa3 16/17: org-fold-hide-drawer-all: Make interactive, ELPA Syncer, 2023/10/19
- [elpa] externals/org 733cb9614c 14/17: * lisp/ob-sqlite.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org b3c8a7c360 02/17: * lisp/org-element.el (org-element-entity-parser): Add comment, ELPA Syncer, 2023/10/19
- [elpa] externals/org e34d7781f0 01/17: org-element-entity-parser: Refactor entity regexp using `rx', ELPA Syncer, 2023/10/19
- [elpa] externals/org be59f11435 05/17: * lisp/ob-calc.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 67bd4b0a36 08/17: * lisp/ob-fortran.el: Add support for :prologue/:epilogue parameters,
ELPA Syncer <=
- [elpa] externals/org 1f0eaefa52 04/17: * lisp/ob-awk.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 92b69d4331 09/17: * lisp/ob-java.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org 320b0e5b1f 12/17: * lisp/ob-lisp.el: Add support for :prologue/:epilogue parameters, ELPA Syncer, 2023/10/19
- [elpa] externals/org c77e7f9c8a 15/17: * etc/ORG-NEWS (=UNNUMBERED= property ...): Add reference to the manual, ELPA Syncer, 2023/10/19
- [elpa] externals/org 46a52a5708 17/17: * lisp/ob-sqlite.el: Document all the function arguments, ELPA Syncer, 2023/10/19