|
@@ -179,6 +179,14 @@ This string must include a \"%s\" which will be replaced by the results."
|
|
|
:package-version '(Org . "9.0")
|
|
|
:safe #'booleanp)
|
|
|
|
|
|
+(defcustom org-babel-uppercase-example-markers nil
|
|
|
+ "When non-nil, begin/end example markers will be inserted in upper case."
|
|
|
+ :group 'org-babel
|
|
|
+ :type 'boolean
|
|
|
+ :version "26.1"
|
|
|
+ :package-version '(Org . "9.1")
|
|
|
+ :safe #'booleanp)
|
|
|
+
|
|
|
(defun org-babel-noweb-wrap (&optional regexp)
|
|
|
(concat org-babel-noweb-wrap-start
|
|
|
(or regexp "\\([^ \t\n].+?[^ \t]\\|[^ \t\n]\\)")
|
|
@@ -2435,15 +2443,12 @@ file's directory then expand relative links."
|
|
|
result)
|
|
|
(if description (concat "[" description "]") ""))))
|
|
|
|
|
|
-(defvar org-babel-capitalize-example-region-markers nil
|
|
|
- "Make true to capitalize begin/end example markers inserted by code blocks.")
|
|
|
-
|
|
|
(defun org-babel-examplify-region (beg end &optional results-switches inline)
|
|
|
"Comment out region using the inline `==' or `: ' org example quote."
|
|
|
(interactive "*r")
|
|
|
(let ((maybe-cap
|
|
|
(lambda (str)
|
|
|
- (if org-babel-capitalize-example-region-markers (upcase str) str))))
|
|
|
+ (if org-babel-uppercase-example-markers (upcase str) str))))
|
|
|
(if inline
|
|
|
(save-excursion
|
|
|
(goto-char beg)
|