View file File name : org-table.elc Content :;ELC ;;; Compiled ;;; in Emacs version 27.1 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314&\210\315\316\317\320\321DD\322\313\306\323\324&\210\315\325\317\320\326DD\327\313\306\323\330&\210\305\331\307\332\311\333\313\306&\210\315\334\317\320\335DD\336\313\331\323\337&\210\315\340\317\320\341DD\342\313\331\323\343&\210\315\344\317\320\345DD\346\313\331\323\347&\210\315\350\317\320\351DD\352\313\331\353\354\323\337& \210\305\355\307\356\311\357\313\306&\210\315\360\317\320\361DD\362\313\355\323\324&\210\315\363\317\320\364DD\365\313\355\323\324&\210\315\366\317\320\367DD\370\313\306\353\354\323\324& \210\315\371\317\320\372DD\373\313\355\353\354\323\374& \210\315\375\317\320\376DD\377\313\355\323\324&\210\315\201@ \317\320\201A DD\201B \313\355\323\337\201C \201D \201E \201F &\210\305\201G \307\310\311\201H \313\306&\210\315\201I \317\320\201J DD\201K \313\201G \323\201L &\210\315\201M \317\320\201N DD\201O \313\201G \353\201P \201C \201Q \323\201R &\210\315\201S \317\320\201T DD\201U \313\201G \323\201V &\210\315\201W \317\320\201X DD\201Y \313\201G \353\354\323\201Z & \210\315\201[ \317\320\201\\ DD\201] \313\201G \353\201P \201C \201^ \323\324\201E \201_ & \210\315\201` \317\320\201a DD\201b \313\201G \323\324&\210\315\201c \317\320\201d DD\201e \313\201G \323\324&\210\315\201f \317\320\201g DD\201h \313\201G \323\201i &\210\315\201j \317\320\201k DD\201l \313\201G \323\324&\210\315\201m \317\320\201n DD\201o \313\201G \323\201p &\210\315\201q \317\320\201r DD\201s \313\201G \201C \201t \323\201u & \210\305\201v \307\201w \311\201x \313\306&\210\315\201y \317\320\201z DD\201{ \313\201v \323\337&\210\315\201| \317\320\201} DD\201~ \313\201v \323\201 \201C \201\200 & \207" [require cl-lib org-macs org-compat org-keys custom-declare-group org-table nil "Options concerning tables in Org mode." :tag "Org Table" :group org custom-declare-variable orgtbl-optimized funcall function #[0 "\300\207" [t] 1] "Non-nil means use the optimized table editor version for `orgtbl-mode'.\n\nIn the optimized version, the table editor takes over all simple keys that\nnormally just insert a character. In tables, the characters are inserted\nin a way to minimize disturbing the table structure (i.e. in overwrite mode\nfor empty fields). Outside tables, the correct binding of the keys is\nrestored.\n\nChanging this variable requires a restart of Emacs to become\neffective." :type boolean orgtbl-radio-table-templates #[0 "\300\207" [((latex-mode "% BEGIN RECEIVE ORGTBL %n\n% END RECEIVE ORGTBL %n\n\\begin{comment}\n#+ORGTBL: SEND %n orgtbl-to-latex :splice nil :skip 0\n| | |\n\\end{comment}\n") (texinfo-mode "@c BEGIN RECEIVE ORGTBL %n\n@c END RECEIVE ORGTBL %n\n@ignore\n#+ORGTBL: SEND %n orgtbl-to-html :splice nil :skip 0\n| | |\n@end ignore\n") (html-mode "<!-- BEGIN RECEIVE ORGTBL %n -->\n<!-- END RECEIVE ORGTBL %n -->\n<!--\n#+ORGTBL: SEND %n orgtbl-to-html :splice nil :skip 0\n| | |\n-->\n") (org-mode "#+ BEGIN RECEIVE ORGTBL %n\n#+ END RECEIVE ORGTBL %n\n\n#+ORGTBL: SEND %n orgtbl-to-orgtbl :splice nil :skip 0\n| | |\n"))] 1] "Templates for radio tables in different major modes.\nEach template must define lines that will be treated as a comment and that\nmust contain the \"BEGIN RECEIVE ORGTBL %n\" and \"END RECEIVE ORGTBL\"\nlines where \"%n\" will be replaced with the name of the table during\ninsertion of the template. The transformed table will later be inserted\nbetween these lines.\n\nThe template should also contain a minimal table in a multiline comment.\nIf multiline comments are not possible in the buffer language,\nyou can pack it into a string that will not be used when the code\nis compiled or executed. Above the table will you need a line with\nthe fixed string \"#+ORGTBL: SEND\", followed by instruction on how to\nconvert the table into a data structure useful in the\nlanguage of the buffer. Check the manual for the section on\n\"Translator functions\", and more generally check out\nthe Info node `(org)Tables in arbitrary syntax'.\n\nAll occurrences of %n in a template will be replaced with the name of the\ntable, obtained by prompting the user." (repeat (list (symbol :tag "Major mode") (string :tag "Format"))) org-table-settings "Settings for tables in Org mode." "Org Table Settings" org-table-default-size #[0 "\300\207" [#1="5x2"] 1 #1#] "The default size for newly created tables, Columns x Rows." string org-table-number-regexp #[0 "\300\207" [#2="^\\([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%:]*\\|[<>]?[-+]?0[xX][[:xdigit:].]+\\|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+\\|nan\\|[-+u]?inf\\)$"] 1 #2#] "Regular expression for recognizing numbers in table columns.\nIf a table column contains mostly numbers, it will be aligned to the\nright. If not, it will be aligned to the left.\n\nThe default value of this option is a regular expression which allows\nanything which looks remotely like a number as used in scientific\ncontext. For example, all of the following will be considered a\nnumber:\n 12 12.2 2.4e-08 2x10^12 4.034+-0.02 2.7(10) >3.5\n\nOther options offered by the customize interface are more restrictive." (choice (const :tag "Positive Integers" "^[0-9]+$") (const :tag "Integers" "^[-+]?[0-9]+$") (const :tag "Floating Point Numbers" "^[-+]?\\([0-9]*\\.[0-9]+\\|[0-9]+\\.[0-9]*\\)$") (const :tag "Floating Point Number or Integer" "^[-+]?\\([0-9]*\\.[0-9]+\\|[0-9]+\\.?[0-9]*\\)$") (const :tag "Exponential, Floating point, Integer" "^[-+]?[0-9.]+\\([eEdD][-+0-9]+\\)?$") (const :tag "Very General Number-Like, including hex and Calc radix" "^\\([<>]?[-+^.0-9]*[0-9][-+^.0-9eEdDx()%]*\\|[<>]?[-+]?0[xX][[:xdigit:].]+\\|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+\\|nan\\|[-+u]?inf\\)$") (const :tag "Very General Number-Like, including hex and Calc radix, allows comma as decimal mark" "^\\([<>]?[-+^.,0-9]*[0-9][-+^.0-9eEdDx()%]*\\|[<>]?[-+]?0[xX][[:xdigit:].]+\\|[<>]?[-+]?[0-9]+#[0-9a-zA-Z.]+\\|nan\\|[-+u]?inf\\)$") (string :tag "Regexp:")) org-table-number-fraction #[0 "\300\207" [0.5] 1] "Fraction of numbers in a column required to make the column align right.\nIn a column all non-white fields are considered. If at least\nthis fraction of fields is matched by `org-table-number-regexp',\nalignment to the right border applies." number org-table-formula-field-format #[0 "\300\207" [#3="%s"] 1 #3#] "Format for fields which contain the result of a formula.\nFor example, using \"~%s~\" will display the result within tilde\ncharacters. Beware that modifying the display can prevent the\nfield from being used in another formula." :version "24.1" org-table-editing "Behavior of tables during editing in Org mode." "Org Table Editing" org-table-automatic-realign #[0 "\300\207" [t] 1] "Non-nil means automatically re-align table when pressing TAB or RETURN.\nWhen nil, aligning is only done with `\\[org-table-align]', or after column\nremoval/insertion." org-table-auto-blank-field #[0 "\300\207" [t] 1] "Non-nil means automatically blank table field when starting to type into it.\nThis only happens when typing immediately after a field motion\ncommand (TAB, S-TAB or RET)." org-table-exit-follow-field-mode-when-leaving-table #[0 "\300\207" [t] 1] "Non-nil means automatically exit the follow mode.\nWhen nil, the follow mode will stay on and be active in any table\nthe cursor enters. Since the table follow filed mode messes with the\nwindow configuration, it is not recommended to set this variable to nil,\nexcept maybe locally in a special file that has mostly tables with long\nfields." org-table-fix-formulas-confirm #[0 "\300\207" [nil] 1] "Whether the user should confirm when Org fixes formulas." (choice (const :tag "with yes-or-no" yes-or-no-p) (const :tag "with y-or-n" y-or-n-p) (const :tag "no confirmation" nil)) org-table-tab-jumps-over-hlines #[0 "\300\207" [t] 1] "Non-nil means tab in the last column of a table with jump over a hline.\nIf a horizontal separator line is following the current line,\n`org-table-next-field' can either create a new row before that line, or jump\nover the line. When this option is nil, a new line will be created before\nthis line." org-table-shrunk-column-indicator #[0 "\300\207" [#4="…"] 1 #4#] "String to be displayed in a shrunk column." :package-version (Org . "9.2") :safe #[257 "\211;\205 \211\300\232?\207" [""] 3 "\n\n(fn V)"] org-table-calculation "Org Table Calculation" org-table-use-standard-references #[0 "\300\207" [from] 1] "Non-nil means using table references like B3 instead of @3$2.\nPossible values are:\nnil never use them\nfrom accept as input, do not present for editing\nt accept as input and present for editing" (choice (const :tag "Never, don't even check user input for them" nil) (const :tag "Always, both as user input, and when editing" t) (const :tag "Convert user input, don't offer during editing" from)) org-table-copy-increment #[0 "\300\207" [t] 1] "Non-nil means increment when copying current field with `\\[org-table-copy-down]'." "26.1" (Org . "8.3") (choice (const :tag "Use the difference between the current and the above fields" t) (integer :tag "Use a number" 1) (const :tag "Don't increment the value when copying a field" nil)) org-calc-default-modes #[0 "\300\207" [(calc-internal-prec 12 calc-float-format (float 8) calc-angle-mode deg calc-prefer-frac nil calc-symbolic-mode nil calc-date-format (YYYY "-" MM "-" DD " " Www (" " hh ":" mm)) calc-display-working-message t)] 1] "List with Calc mode settings for use in `calc-eval' for table formulas.\nThe list must contain alternating symbols (Calc modes variables and values).\nDon't remove any of the default settings, just change the values. Org mode\nrelies on the variables to be present in the list." plist org-table-duration-custom-format #[0 "\300\207" [hours] 1] "Format for the output of calc computations like $1+$2;t.\nThe default value is `hours', and will output the results as a\nnumber of hours. Other allowed values are `seconds', `minutes' and\n`days', and the output will be a fraction of seconds, minutes or\ndays. `hh:mm' selects to use hours and minutes, ignoring seconds.\nThe `U' flag in a table formula will select this specific format for\na single formula." (choice (symbol :tag "Seconds" 'seconds) (symbol :tag "Minutes" 'minutes) (symbol :tag "Hours " 'hours) (symbol :tag "Days " 'days) (symbol :tag "HH:MM " 'hh:mm)) org-table-duration-hour-zero-padding #[0 "\300\207" [t] 1] "Non-nil means hours in table duration computations should be zero-padded.\nSo this is about 08:32:34 versus 8:33:34." (Org . "9.1") booleanp org-table-formula-evaluate-inline #[0 "\300\207" [t] 1] "Non-nil means TAB and RET evaluate a formula in current table field.\nIf the current field starts with an equal sign, it is assumed to be a formula\nwhich should be evaluated as described in the manual and in the documentation\nstring of the command `org-table-eval-formula'. This feature requires the\nEmacs calc package.\nWhen this variable is nil, formula calculation is only available through\nthe command `\\[org-table-eval-formula]'." org-table-formula-use-constants #[0 "\300\207" [t] 1] "Non-nil means interpret constants in formulas in tables.\nA constant looks like `$c' or `$Grav' and will be replaced before evaluation\nby the value given in `org-table-formula-constants', or by a value obtained\nfrom the `constants.el' package." org-table-formula-constants #[0 "\300\207" [nil] 1] "Alist with constant names and values, for use in table formulas.\nThe car of each element is a name of a constant, without the `$' before it.\nThe cdr is the value as a string. For example, if you'd like to use the\nspeed of light in a formula, you would configure\n\n (setq org-table-formula-constants \\='((\"c\" . \"299792458.\")))\n\nand then use it in an equation like `$1*$c'.\n\nConstants can also be defined on a per-file basis using a line like\n\n#+CONSTANTS: c=299792458. pi=3.14 eps=2.4e-6" (repeat (cons (string :tag "name") (string :tag "value"))) org-table-allow-automatic-line-recalculation #[0 "\300\207" [t] 1] "Non-nil means lines marked with |#| or |*| will be recomputed automatically.\n\\<org-mode-map>Automatically means when `TAB' or `RET' or `\\[org-ctrl-c-ctrl-c]' are pressed in the line." org-table-relative-ref-may-cross-hline #[0 "\300\207" [t] 1] "Non-nil means relative formula references may cross hlines.\nHere are the allowed values:\n\nnil Relative references may not cross hlines. They will reference the\n field next to the hline instead. Coming from below, the reference\n will be to the field below the hline. Coming from above, it will be\n to the field above.\nt Relative references may cross hlines.\nerror An attempt to cross a hline will throw an error.\n\nIt is probably good to never set this variable to nil, for the sake of\nportability of tables." (choice (const :tag "Allow to cross" t) (const :tag "Stick to hline" nil) (const :tag "Error on attempt to cross" error)) org-table-formula-create-columns #[0 "\300\207" [nil] 1] "Non-nil means evaluation of formula can add new columns.\nWhen non-nil, evaluating an out-of-bounds field can insert as\nmany columns as needed. When set to `warn', issue a warning when\ndoing so. When set to `prompt', ask user before creating a new\ncolumn. Otherwise, throw an error." (Org . "8.3") (choice (const :tag "Out-of-bounds field generates an error (default)" nil) (const :tag "Out-of-bounds field silently adds columns as needed" t) (const :tag "Out-of-bounds field adds columns, but issues a warning" warn) (const :tag "Prompt user when setting an out-of-bounds field" prompt)) org-table-import-export "Options concerning table import and export in Org mode." "Org Table Import Export" org-table-export-default-format #[0 "\300\207" [#5="orgtbl-to-tsv"] 1 #5#] "Default export parameters for `org-table-export'.\nThese can be overridden for a specific table by setting the\nTABLE_EXPORT_FORMAT property. See the manual section on orgtbl\nradio tables for the different export transformations and\navailable parameters." org-table-convert-region-max-lines #[0 "\300\207" [999] 1] "Max lines that `org-table-convert-region' will attempt to process.\n\nThe function can be slow on larger regions; this safety feature\nprevents it from hanging Emacs." integer (Org . "8.3")] 14) #@41 Detect an org-type or table-type table. (defconst org-table-any-line-regexp "^[ ]*\\(|\\|\\+-[-+]\\)" (#$ . 14732)) #@32 Detect an org-type table line. (defconst org-table-line-regexp "^[ ]*|" (#$ . 14855)) #@32 Detect an org-type table line. (defconst org-table-dataline-regexp "^[ ]*|[^-]" (#$ . 14948)) #@33 Detect an org-type table hline. (defconst org-table-hline-regexp "^[ ]*|-" (#$ . 15049)) #@34 Detect a table-type table hline. (defconst org-table1-hline-regexp "^[ ]*\\+-[-+]" (#$ . 15145)) #@103 Detect the first line outside a table when searching from within it. This works for both table types. (defconst org-table-any-border-regexp "^[ ]*[^|+ ]" (#$ . 15250)) #@24 Detect a #+TBLFM line. (defconst org-TBLFM-regexp "^[ ]*#\\+TBLFM: " (#$ . 15426)) (defvar org-table-TBLFM-begin-regexp "^[ ]*|.*\n[ ]*#\\+TBLFM: ") #@60 Regexp matching a line marked for automatic recalculation. (defconst org-table-auto-recalculate-regexp "^[ ]*| *# *\\(|\\|$\\)" (#$ . 15584)) #@50 Regexp matching a line marked for recalculation. (defconst org-table-recalculate-regexp "^[ ]*| *[#*] *\\(|\\|$\\)" (#$ . 15733)) #@48 Regexp matching a line marked for calculation. (defconst org-table-calculate-mark-regexp "^[ ]*| *[!$^_#*] *\\(|\\|$\\)" (#$ . 15870)) #@48 Regexp matching any line outside an Org table. (defconst org-table-border-regexp "^[ ]*[^| ]" (#$ . 16012)) #@53 Regular expression for matching ranges in formulas. (defconst org-table-range-regexp "@\\([-+]?I*[-+]?[0-9]*\\)\\(\\$[-+]?[0-9]+\\)?\\(\\.\\.@?\\([-+]?I*[-+]?[0-9]*\\)\\(\\$[-+]?[0-9]+\\)?\\)?" (#$ . 16128)) #@38 Match a range for reference display. (defconst org-table-range-regexp2 "\\(@[-0-9I$&]+\\|[a-zA-Z]\\{1,2\\}\\([0-9]+\\|&\\)\\|\\$[a-zA-Z0-9]+\\)\\.\\.\\(@?[-0-9I$&]+\\|[a-zA-Z]\\{1,2\\}\\([0-9]+\\|&\\)\\|\\$[a-zA-Z0-9]+\\)" (#$ . 16342)) #@66 Match a reference that needs translation, for reference display. (defconst org-table-translate-regexp "\\(@[-0-9I$]+\\|[a-zA-Z]\\{1,2\\}\\([0-9]+\\|&\\)\\)" (#$ . 16585)) #@142 Space used around fields when aligning the table. This space serves as a segment separator for the purposes of the bidirectional reordering. (defconst org-table-separator-space (propertize " " 'display '(space :relative-width 1)) (#$ . 16763)) (defvar org-table-last-highlighted-reference nil) (defvar org-table-formula-history nil) (defvar org-field-marker nil) (defvar org-table-buffer-is-an nil) #@49 Local version of `org-table-formula-constants'. (defvar org-table-formula-constants-local nil (#$ . 17168)) (make-variable-buffer-local 'org-table-formula-constants-local) #@139 Indicates that a table might need an update. This variable is set by `org-before-change-function'. `org-table-align' sets it back to nil. (defvar org-table-may-need-update t (#$ . 17347)) #@225 Hook for functions attaching to `C-c C-c', if the table is sent. This can be used to add additional functionality after the table is sent to the receiver position, otherwise, if table is not sent, the functions are not run. (defvar orgtbl-after-send-table-hook nil (#$ . 17542)) #@108 Alist with column names, derived from the `!' line. This variable is initialized with `org-table-analyze'. (defvar org-table-column-names nil (#$ . 17828)) #@110 Regular expression matching the current column names. This variable is initialized with `org-table-analyze'. (defvar org-table-column-name-regexp nil (#$ . 17991)) #@111 Alist with parameter names, derived from the `$' line. This variable is initialized with `org-table-analyze'. (defvar org-table-local-parameters nil (#$ . 18162)) #@311 Alist with locations of named fields. Associations follow the pattern (NAME LINE COLUMN) where NAME is the name of the field as a string, LINE is the number of lines from the beginning of the table, COLUMN is the column of the field, as an integer. This variable is initialized with `org-table-analyze'. (defvar org-table-named-field-locations nil (#$ . 18332)) #@90 Table row types in current table. This variable is initialized with `org-table-analyze'. (defvar org-table-current-line-types nil (#$ . 18706)) #@99 Current table begin position, as a marker. This variable is initialized with `org-table-analyze'. (defvar org-table-current-begin-pos nil (#$ . 18856)) #@92 Number of columns in current table. This variable is initialized with `org-table-analyze'. (defvar org-table-current-ncol nil (#$ . 19014)) #@170 Vector of data line line numbers in the current table. Line numbers are counted from the beginning of the table. This variable is initialized with `org-table-analyze'. (defvar org-table-dlines nil (#$ . 19161)) #@166 Vector of hline line numbers in the current table. Line numbers are counted from the beginning of the table. This variable is initialized with `org-table-analyze'. (defvar org-table-hlines nil (#$ . 19380)) #@125 Marker at the beginning of the table last aligned. Used to check if cursor still is in that table, to minimize realignment. (defvar org-table-aligned-begin-marker (make-marker) (#$ . 19595)) #@119 Marker at the end of the table last aligned. Used to check if cursor still is in that table, to minimize realignment. (defvar org-table-aligned-end-marker (make-marker) (#$ . 19793)) #@140 List of flags for flushright alignment, from the last re-alignment. This is being used to correctly align a single field after TAB or RET. (defvar org-table-last-alignment nil (#$ . 19983)) #@116 List of max width of fields in each column. This is being used to correctly align a single field after TAB or RET. (defvar org-table-last-column-widths nil (#$ . 20180)) #@90 Non-nil means debug table formulas. When nil, simply write "#ERROR" in corrupted fields. (defvar org-table-formula-debug nil (#$ . 20356)) (make-variable-buffer-local 'org-table-formula-debug) #@50 Overlay coordinates after each align of a table. (defvar org-table-overlay-coordinates nil (#$ . 20555)) (make-variable-buffer-local 'org-table-overlay-coordinates) (defvar org-last-recalc-line nil) (defvar org-show-positions nil) (defvar org-table-rectangle-overlays nil) #@30 Clipboard for table regions. (defvar org-table-clip nil (#$ . 20834)) (defvar org-timecnt nil) #@99 List of commands triggering the recalculation of a line. Will be filled automatically during use. (defvar org-recalc-commands nil (#$ . 20935)) (defvar org-recalc-marks '((" " . "Unmarked: no special line, no automatic recalculation") ("#" . "Automatically recalculate this line upon TAB, RET, and C-c C-c in the line") ("*" . "Recalculate only when entire table is recalculated with `C-u C-c *'") ("!" . "Column name definition line. Reference in formula as $name.") ("$" . "Parameter definition line name=value. Reference in formula as $name.") ("_" . "Names for values in row below this one.") ("^" . "Names for values in row above this one."))) (defvar org-tbl-calc-modes nil) (defvar org-pos nil) #@84 Expand all columns before executing BODY, then shrink them again. (fn &rest BODY) (defalias 'org-table-with-shrunk-columns '(macro . #[128 "\300\301!\300\302!\300\303!\304\305B\306B\307BE\310\311EE\312\313B\314F\315\316BB\315\317BB\257F\207" [make-symbol "--shrunk-columns" "--begin" "--end" let ((copy-marker (org-table-begin))) ((copy-marker (org-table-end) t)) ((org-table--list-shrunk-columns)) org-with-point-at org-table-expand unwind-protect progn org-table--shrink-columns set-marker (nil) (nil)] 14 (#$ . 21645)])) (put 'org-table-with-shrunk-columns 'edebug-form-spec '(body)) #@75 Save field shrunk state, execute BODY and restore state. (fn &rest BODY) (defalias 'org-table-with-shrunk-field '(macro . #[128 "\300\301!\300\302!\300\303!\304\305B\306\307\310D\311BBED\306\312 \313\nDEEDE\314\315DE\316\317B\314\320 \312\fE\fFEEF\207" [make-symbol "--end" "--shrunk" "--size" let* ((save-match-data (org-table--shrunk-field))) and copy-marker overlay-end (t) - overlay-start when delete-overlay unwind-protect progn move-overlay] 16 (#$ . 22260)])) (put 'org-table-with-shrunk-field 'edebug-form-spec '(body)) #@116 Save current field; execute BODY; restore field. Field is restored even in case of abnormal exit. (fn &rest BODY) (defalias 'org-table-save-field '(macro . #[128 "\300\301!\300\302!\303\304B\305BD\306\307B\310D\311D\312\313BB\257E\207" [make-symbol "--line" "--column" let ((copy-marker (line-beginning-position))) ((org-table-current-column)) unwind-protect progn goto-char org-table-goto-column set-marker (nil)] 12 (#$ . 22818)])) (put 'org-table-save-field 'edebug-form-spec '(body)) #@28 (fn VAR &optional VALUE) (defalias 'org-table--set-calc-mode #[513 ";\203 \301\302\"\262\3038\262A@\262>\203% >A\240\210\202' \210\207" [org-tbl-calc-modes assoc (("D" calc-angle-mode deg) ("R" calc-angle-mode rad) ("F" calc-prefer-frac t) ("S" calc-symbolic-mode t)) 2] 5 (#$ . 23324)]) (put 'org-table--set-calc-mode 'byte-optimizer 'byte-compile-inline-expand) #@69 Non-nil when point (or POS) is in #+TBLFM line. (fn &optional POS) (defalias 'org-at-TBLFM-p #[256 "\212\211\206 `b\210\302 \210\303\304 !)\205 \305\306 !\307=)\207" [case-fold-search org-TBLFM-regexp beginning-of-line t looking-at org-element-type org-element-at-point table] 3 (#$ . 23711)]) #@137 Non-nil if the cursor is inside an Org table. If TABLE-TYPE is non-nil, also check for table.el-type tables. (fn &optional TABLE-TYPE) (defalias 'org-at-table-p #[256 "\300\203 \301\202\n \302!\205+ \303\304!?\206+ \305\306 \307\310#\211\205) \206) \311\312\"\313=\262\207" [org-match-line "[ ]*[|+]" "[ ]*|" derived-mode-p org-mode org-element-lineage org-element-at-point (table) t org-element-property :type org] 5 (#$ . 24016)]) #@44 Non-nil when point is at a table.el table. (defalias 'org-at-table\.el-p #[0 "\300\301!\205 \302 \303!\304=\205 \305\306\"\307=\262\207" [org-match-line "[ ]*[|+]" org-element-at-point org-element-type table org-element-property :type table\.el] 4 (#$ . 24463)]) #@86 Non-nil when point is inside a hline in a table. Assume point is already in a table. (defalias 'org-at-table-hline-p #[0 "\301!\207" [org-table-hline-regexp org-match-line] 2 (#$ . 24738)]) #@284 Non-nil when point is inside a table data field. Raise an error otherwise, unless NOERROR is non-nil. In that case, return nil if point is not inside a data field. When optional argument ASSUME-TABLE is non-nil, assume point is within a table. (fn &optional NOERROR ASSUME-TABLE) (defalias 'org-table-check-inside-data-field #[512 "\211\204 \301 \203% \212\302\303x\210n)\204% \304 \204% \305\306\307!)\262?\206. \203+ \303\207\310\311!\207" [inhibit-changing-match-data org-at-table-p " " nil org-at-table-hline-p "[ ]*$" t looking-at user-error "Not in table data field"] 5 (#$ . 24936)]) #@135 Use the table.el package to insert a new table. If there is already a table at point, convert between Org tables and table.el tables. (defalias 'org-table-create-with-table\.el #[0 "\300\301!\210\302 \203 \303\304!\203 \305 \207\306 \203# \303\307!\203# \310 \210\305 \207\311\312!\207" [require table org-at-table\.el-p y-or-n-p "Convert table to Org table? " org-table-convert org-at-table-p "Convert table to table.el table? " org-table-align call-interactively table-insert] 2 (#$ . 25544) nil]) #@359 Convert region to table, or create an empty table. If there is an active region, convert it to a table, using the function `org-table-convert-region'. See the documentation of that function to learn how the prefix argument is interpreted to determine the field separator. If there is no such region, create an empty table with `org-table-create'. (fn ARG) (defalias 'org-table-create-or-convert-from-region #[257 "\300 \203 \301\302 \303 #\207\304!\207" [org-region-active-p org-table-convert-region region-beginning region-end org-table-create] 5 (#$ . 26053) "P"]) #@124 Query for a size and insert a table skeleton. SIZE is a string Columns x Rows like for example "3x2". (fn &optional SIZE) (defalias 'org-table-create #[256 "\211\204 \301\302\303Q\304\305$\262`\306i\307\"\310\311\"\312A@!\312@!\313\314\315\316\317\"$\320P\321\322\323\324 `\"\"\203>