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 |
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\306\307\310\311\312DD\313\314\315\316\317\320\321\322\323&\210\306\324\310\311\325DD\326\314\315\316\317\320\327\322\330&\210\306\331\310\311\332DD\333\314\315\322\334&\210\306\335\310\311\336DD\337\314\315\322\340&\210\306\341\310\311\342DD\343\314\315\322\323&\210\306\344\310\311\345DD\346\314\315\322\330&\210\306\347\310\311\350DD\351\314\315\322\323&\210\306\352\310\311\353DD\354\314\315\316\317\320\355\322\323&\210\306\356\310\311\357DD\360\314\315\322\361&\207" [require cl-lib org-macs org-compat ob-keys ob-comint custom-declare-variable org-edit-src-turn-on-auto-save funcall function #[0 "\300\207" [nil] 1] "Non-nil means turn `auto-save-mode' on when editing a source block.\nThis will save the content of the source code editing buffer into\na newly created file, not the base buffer for this source block.\n\nIf you want to regularly save the base buffer instead of the source\ncode editing buffer, see `org-edit-src-auto-save-idle-delay' instead." :group org-edit-structure :version "24.4" :package-version (Org . "8.0") :type boolean org-edit-src-auto-save-idle-delay #[0 "\300\207" [0] 1] "Delay before saving a source code buffer back into its base buffer.\nWhen a positive integer N, save after N seconds of idle time.\nWhen 0 (the default), don't auto-save.\n\nIf you want to save the source code buffer itself, don't use this.\nCheck `org-edit-src-turn-on-auto-save' instead." (Org . "8.0") integer org-coderef-label-format #[0 "\300\207" [#1="(ref:%s)"] 1 #1#] "The default coderef format.\nThis format string will be used to search for coderef labels in literal\nexamples (EXAMPLE and SRC blocks). The format can be overwritten in\nan individual literal example with the -l option, like\n\n#+BEGIN_SRC pascal +n -r -l \"((%s))\"\n...\n#+END_SRC\n\nIf you want to use this for HTML export, make sure that the format does\nnot introduce special font-locking, and avoid the HTML special\ncharacters `<', `>', and `&'. The reason for this restriction is that\nthe labels are searched for only after htmlize has done its job." string org-edit-fixed-width-region-mode #[0 "\300\207" [artist-mode] 1] "The mode that should be used to edit fixed-width regions.\nThese are the regions where each line starts with a colon." (choice (const artist-mode) (const picture-mode) (const fundamental-mode) (function :tag "Other (specify)")) org-src-preserve-indentation #[0 "\300\207" [nil] 1] "If non-nil preserve leading whitespace characters on export.\n\\<org-mode-map>\nIf non-nil leading whitespace characters in source code blocks\nare preserved on export, and when switching between the org\nbuffer and the language mode edit buffer.\n\nWhen this variable is nil, after editing with `\\[org-edit-src-code]',\nthe minimum (across-lines) number of leading whitespace characters\nare removed from all lines, and the code block is uniformly indented\naccording to the value of `org-edit-src-content-indentation'." org-edit-src-content-indentation #[0 "\300\207" [2] 1] "Indentation for the content of a source code block.\n\nThis should be the number of spaces added to the indentation of the #+begin\nline in order to compute the indentation of the block content after\nediting it with `\\[org-edit-src-code]'.\n\nIt has no effect if `org-src-preserve-indentation' is non-nil." org-edit-src-persistent-message #[0 "\300\207" [t] 1] "Non-nil means show persistent exit help message while editing src examples.\nThe message is shown in the header-line, which will be created in the\nfirst line of the window showing the editing buffer." org-src-ask-before-returning-to-edit-buffer #[0 "\300\207" [t] 1] "Non-nil means ask before switching to an existing edit buffer.\nIf nil, when `org-edit-src-code' is used on a block that already\nhas an active edit buffer, it will switch to that edit buffer\nimmediately; otherwise it will ask whether you want to return to\nthe existing edit buffer." (Org . "8.0") org-src-window-setup #[0 "\300\207" [reorganize-frame] 1] "How the source code edit buffer should be displayed.\nPossible values for this option are:\n\ncurrent-window Show edit buffer in the current window, keeping all other\n windows.\nother-window Use `switch-to-buffer-other-window' to display edit buffer.\nreorganize-frame Show only two windows on the current frame, the current\n window and the edit buffer. When exiting the edit buffer,\n return to one window.\nother-frame Use `switch-to-buffer-other-frame' to display edit buffer.\n Also, when exiting the edit buffer, kill that frame." (choice (const current-window) (const other-frame) (const other-window) (const reorganize-frame))] 12) |
|
16 |
#@451 Hook run after Org switched a source code snippet to its Emacs mode. |
|
17 |
\<org-mode-map> |
|
18 |
This hook will run: |
|
19 |
- when editing a source code snippet with `\[org-edit-special]' |
|
20 |
- when formatting a source code snippet for export with htmlize. |
|
21 |
|
|
22 |
You may want to use this hook for example to turn off `outline-minor-mode' |
|
23 |
or similar things which you want to have when editing a source code file, |
|
24 |
but which mess up the display of a snippet in Org exported files. |
|
25 |
(defvar org-src-mode-hook nil (#$ . 5198)) |
|
26 |
(byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\315\316\317\320\321&\210\300\322\302\303\323DD\324\310\325\316\326\306\327& \207" [custom-declare-variable org-src-lang-modes funcall function #[0 "\300\207" [(("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh))] 1] "Alist mapping languages to their major mode.\nThe key is the language name, the value is the string that should\nbe inserted as the name of the major mode. For many languages this is\nsimple, but for language where this is not the case, this variable\nprovides a way to simplify things on the user side.\nFor example, there is no ocaml-mode in Emacs, but the mode to use is\n`tuareg-mode'." :group org-edit-structure :type (repeat (cons (string "Language name") (symbol "Major mode"))) org-src-block-faces #[0 "\300\207" [nil] 1] "Alist of faces to be used for source-block.\nEach element is a cell of the format\n\n (\"language\" FACE)\n\nWhere FACE is either a defined face or an anonymous face.\n\nFor instance, the following value would color the background of\nemacs-lisp source blocks and python source blocks in purple and\ngreen, respectability.\n\n \\='((\"emacs-lisp\" (:background \"#EEE2FF\"))\n (\"python\" (:background \"#e5ffb8\")))" (repeat (list (string :tag "language") (choice (face :tag "Face") (sexp :tag "Anonymous face")))) :version "26.1" :package-version (Org . "9.0") org-src-tab-acts-natively #[0 "\300\207" [nil] 1] "If non-nil, the effect of TAB in a code block is as if it were\nissued in the language major mode buffer." boolean "24.1" org-babel] 12) |
|
27 |
(defvar org-src--allow-write-back t nil) |
|
28 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--allow-write-back put permanent-local t] 4) |
|
29 |
(defvar org-src--auto-save-timer nil nil) |
|
30 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--auto-save-timer put permanent-local t] 4) |
|
31 |
(defvar org-src--babel-info nil nil) |
|
32 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--babel-info put permanent-local t] 4) |
|
33 |
(defvar org-src--beg-marker nil nil) |
|
34 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--beg-marker put permanent-local t] 4) |
|
35 |
(defvar org-src--block-indentation nil nil) |
|
36 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--block-indentation put permanent-local t] 4) |
|
37 |
(defvar org-src--end-marker nil nil) |
|
38 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--end-marker put permanent-local t] 4) |
|
39 |
(defvar org-src--from-org-mode nil nil) |
|
40 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--from-org-mode put permanent-local t] 4) |
|
41 |
(defvar org-src--overlay nil nil) |
|
42 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--overlay put permanent-local t] 4) |
|
43 |
(defvar org-src--preserve-indentation nil nil) |
|
44 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--preserve-indentation put permanent-local t] 4) |
|
45 |
(defvar org-src--remote nil nil) |
|
46 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--remote put permanent-local t] 4) |
|
47 |
(defvar org-src--saved-temp-window-config nil nil) |
|
48 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--saved-temp-window-config put permanent-local t] 4) |
|
49 |
#@44 Type of element being edited, as a symbol. |
|
50 |
(defvar org-src--source-type nil (#$ . 9317)) |
|
51 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--source-type put permanent-local t] 4) |
|
52 |
#@122 Contains `tab-width' value from Org source buffer. |
|
53 |
However, if `indent-tabs-mode' is nil in that buffer, its value |
|
54 |
is 0. |
|
55 |
(defvar org-src--tab-width nil (#$ . 9536)) |
|
56 |
(byte-code "\300\301!\210\302\301\303\304#\207" [make-variable-buffer-local org-src--tab-width put permanent-local t] 4) |
|
57 |
#@83 Construct the buffer name for a source editing buffer. |
|
58 |
|
|
59 |
(fn ORG-BUFFER-NAME LANG) |
|
60 |
(defalias 'org-src--construct-edit-buffer-name #[514 "\300\301\302\260\207" ["*Org Src " "[ " " ]*"] 7 (#$ . 9828)]) |
|
61 |
#@102 Return buffer editing area between BEG and END. |
|
62 |
Return nil if there is no such buffer. |
|
63 |
|
|
64 |
(fn BEG END) |
|
65 |
(defalias 'org-src--edit-buffer #[514 "\3022E \303 \211\205B \211@r\211q\210\304 \203: U\203: \305!\305!=\203: U\203: \305!\305 !=\203: \306\302\"\210)A\266\202\202 \2620\207" [org-src--beg-marker org-src--end-marker exit buffer-list org-src-edit-buffer-p marker-buffer throw] 7 (#$ . 10037)]) |
|
66 |
#@48 Return source buffer edited by current buffer. |
|
67 |
(defalias 'org-src--source-buffer #[0 "\301 \204 |