commit | author | age
|
76bbd0
|
1 |
;ELC |
C |
2 |
;;; Compiled |
|
3 |
;;; in Emacs version 26.1 |
|
4 |
;;; with all optimizations. |
|
5 |
|
|
6 |
;;; This file uses dynamic docstrings, first added in Emacs 19.29. |
|
7 |
|
|
8 |
;;; This file does not contain utf-8 non-ASCII characters, |
|
9 |
;;; and so can be loaded in Emacs versions earlier than 23. |
|
10 |
|
|
11 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
12 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
13 |
|
|
14 |
|
|
15 |
(require 'ob-core) |
|
16 |
#@158 Replace newline character with ellipses. |
|
17 |
If STRING ends in a newline character, then remove the newline |
|
18 |
character and replace it with ellipses. |
|
19 |
|
|
20 |
(fn STRING) |
|
21 |
(defalias 'org-babel-table-truncate-at-newline #[257 "\211;\203 \300\301\"\203 \211\302\211\224O\303\304\"\205 \305P\207\207" [string-match "[\n
]\\(.\\)?" 0 match-string 1 "..."] 5 (#$ . 428)]) |
|
22 |
#@1124 Return the results of calling SOURCE-BLOCK with VARIABLES. |
|
23 |
|
|
24 |
Each element of VARIABLES should be a list of two elements: the |
|
25 |
first element is the name of the variable and second element is a |
|
26 |
string of its value. |
|
27 |
|
|
28 |
So this `org-sbe' construct |
|
29 |
|
|
30 |
(org-sbe "source-block" (n $2) (m 3)) |
|
31 |
|
|
32 |
is the equivalent of the following source code block: |
|
33 |
|
|
34 |
#+begin_src emacs-lisp :var results=source-block(n=val_at_col_2, m=3) :results silent |
|
35 |
results |
|
36 |
#+end_src |
|
37 |
|
|
38 |
NOTE: The quotation marks around the function name, |
|
39 |
'source-block', are optional. |
|
40 |
|
|
41 |
NOTE: By default, string variable names are interpreted as |
|
42 |
references to source-code blocks, to force interpretation of a |
|
43 |
cell's value as a string, prefix the identifier a "$" (e.g., |
|
44 |
"$$2" instead of "$2" or "$@2$2" instead of "@2$2"). |
|
45 |
|
|
46 |
NOTE: It is also possible to pass header arguments to the code |
|
47 |
block. In this case a table cell should hold the string value of |
|
48 |
the header argument which can then be passed before all variables |
|
49 |
as shown in the example below. |
|
50 |
|
|
51 |
| 1 | 2 | :file nothing.png | nothing.png | |
|
52 |
#+TBLFM: @1$4=\='(org-sbe test-sbe $3 (x $1) (y $2)) |
|
53 |
|
|
54 |
(fn SOURCE-BLOCK &rest VARIABLES) |
|
55 |
(defalias 'org-sbe '(macro . #[385 "\211@;\203 \211@\202\f \300@;\203 A\202 \301C\302\303\304\305\306\307!\310\"\311\312%\";\2045 \313!\262\203m G\314V\203m \315\316\317\320 \321 \322\323\324\325\326\fD\327BBB\330BBBBBBBBD!\331\301\332\333E\334#\262\202n \300\335;\203x \202| \336\337\"!\262\266\202\207" ["" nil mapcar make-byte-code 257 "\211@\301\302\303\304\305\306\307\310\300!\311\"\312\313%A\"\"B\207" vconcat vector [delq nil mapcar make-byte-code 257 "\211\302=\203\f \303\300\304\240\210\207\300\242\203 \305\306\"\202= \211;\203< |