[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [PATCH] Wrap: override default
From: |
Michael Gauland |
Subject: |
[O] [PATCH] Wrap: override default |
Date: |
Mon, 10 Dec 2012 21:34:18 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
* lisp/ob.el (org-babel-insert-result): only wrap if the :wrap value is
non-null.
It can be convenient to specify the :wrap property at a higher level (e.g., file
or tree), rather than for each block. This patch allows you to override the
propery by specifying :wrap with no argument.
TINYCHANGE
---
lisp/ob.el | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lisp/ob.el b/lisp/ob.el
index 0aba523..757bc06 100644
--- a/lisp/ob.el
+++ b/lisp/ob.el
@@ -1998,7 +1998,8 @@ code ---- the results are extracted in the syntax of the
source
(setq end (point-marker))
;; possibly wrap result
(cond
- ((assoc :wrap (nth 2 info))
+ ((and (assoc :wrap (nth 2 info))
+ (cdr (assoc :wrap (nth 2 info))))
(let ((name (or (cdr (assoc :wrap (nth 2 info))) "RESULTS")))
(funcall wrap (concat "#+BEGIN_" name) (concat "#+END_"
name))))
((member "html" result-params)
--
1.7.9
- [O] [PATCH] Wrap: override default,
Michael Gauland <=