Server IP : 111.118.215.189 / Your IP : 18.217.170.18 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ses.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311\312\313\314\315&\210\316\317\320\321\310\303\322\323&\210\316\324\325\326\310\303\322\327&\210\316\330\331\332\310\303\322\333&\210\316\334\335\336\310\303\322\337\340\341& \210\316\342\304\343\310\303\322\337&\207" [require unsafep custom-declare-group ses nil "Simple Emacs Spreadsheet." :tag "SES" :group applications :prefix "ses-" :version "21.1" custom-declare-variable ses-initial-size '(1 . 1) "Initial size of a new spreadsheet, as a cons (NUMROWS . NUMCOLS)." :type (cons (integer :tag "numrows") (integer :tag "numcols")) ses-initial-column-width 7 "Initial width of columns in a new spreadsheet." (integer :match (lambda (widget value) (> value 0))) ses-initial-default-printer "%.7g" "Initial default printer for a new spreadsheet." (choice string (list :tag "Parenthesized string" string) function) ses-after-entry-functions '(forward-char) "Things to do after entering a value into a cell.\nAn abnormal hook that usually runs a cursor-movement function.\nEach function is called with ARG=1." hook :options (forward-char backward-char next-line previous-line) ses-mode-hook "Hook functions to be run upon entering SES mode."] 12) #@43 List of formulas that have been typed in. (defvar ses-read-cell-history nil (#$ . 1753)) #@52 List of printer functions that have been typed in. (defvar ses-read-printer-history nil (#$ . 1848)) #@72 Context menu when mouse-3 is used on the header-line in an SES buffer. (defvar ses-header-line-menu nil (#$ . 1955)) (easy-menu-do-define 'ses-header-line-menu nil "Context menu when mouse-3 is used on the header-line in an SES buffer." '("SES header row" ["Set current row" ses-set-header-row t] ["Unset row" ses-unset-header-row (> ses--header-row 0)])) #@44 Local keymap for Simple Emacs Spreadsheet. (defconst ses-mode-map (byte-code "\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325\326\327\330\327\331\332BBBBBBBBBBBBBBBBBBBBBBBB\333 \211\203P \334 \n@\n\211A@)#\210\n\211AA)\211\2049 *\207" [ses-header-line-menu newmap keys x "\214" ses-reconstruct-all "\f" ses-recalculate-all "" ses-renarrow-buffer "" ses-recalculate-cell "\223" ses-sort-column "\210" ses-set-header-row "" ses-truncate-cell "\n" ses-jump "" ses-read-default-printer "\214" ses-reprint-all [33554444] [header-line down-mouse-3] ([header-line mouse-2] ses-sort-column-click) make-sparse-keymap define-key] 26) (#$ . 2317)) #@24 Menu bar menu for SES. (defvar ses-menu nil (#$ . 3006)) (easy-menu-do-define 'ses-menu ses-mode-map "Menu bar menu for SES." '("SES" ["Insert row" ses-insert-row (ses-in-print-area)] ["Delete row" ses-delete-row (ses-in-print-area)] ["Insert column" ses-insert-column (ses-in-print-area)] ["Delete column" ses-delete-column (ses-in-print-area)] ["Set column printer" ses-read-column-printer t] ["Set column width" ses-set-column-width t] ["Set default printer" ses-read-default-printer t] ["Jump to cell" ses-jump t] ["Set cell printer" ses-read-cell-printer t] ["Recalculate cell" ses-recalculate-cell t] ["Truncate cell display" ses-truncate-cell t] ["Export values" ses-export-tsv t] ["Export formulas" ses-export-tsf t])) #@47 Local keymap for SES minibuffer cell-editing. (defconst ses-mode-edit-map (byte-code "\303\304 \305\n\"\210 \203 \306 \211A@ \211A@#\210\202\n *\207" [newmap keys minibuffer-local-map ("" ses-insert-range "" ses-insert-ses-range [S-mouse-3] ses-insert-range-click [C-S-mouse-3] ses-insert-ses-range-click "\211" lisp-complete-symbol) make-sparse-keymap set-keymap-parent define-key] 5) (#$ . 3739)) (byte-code "\306\307\310\311\312\313 \314\315\"\210 G\316\f W\203, \317 \f\211TO\320#\210\fT\211\202 *\n\203J \321\n@\n\211A@)\322 $\210\n\211AA)\211\2041 \317\323\324#\210\203k \317@\211A@)#\210\211AA)\211\204T ,\"\207" [newmap numeric repl keys x --dotimes-limit-- defalias ses-mode-print-map ([backtab] backward-char [tab] ses-forward-or-insert " " ses-forward-or-insert "\357" ses-insert-column "" ses-insert-row " " ses-edit-cell "\353" ses-delete-column "\371" ses-yank-pop "" ses-delete-row "\n" ses-append-row-jump-first-column "\350" ses-mark-row "\310" ses-mark-column "" ses-clear-cell-forward "" ses-clear-cell-backward "(" ses-read-cell "\"" ses-read-cell "'" ses-read-symbol "=" ses-edit-cell "c" ses-recalculate-cell "j" ses-jump "p" ses-read-cell-printer "t" ses-truncate-cell "w" ses-set-column-width "x" ses-export-keymap "\360" ses-read-column-printer) (clipboard-kill-region ses-kill-override end-of-line ses-end-of-line kill-line ses-delete-row kill-region ses-kill-override open-line ses-insert-row) "0123456789.-" make-keymap suppress-keymap t 0 define-key ses-read-cell substitute-key-definition current-global-map [(menu-bar) edit cut] ses-kill-override] 8) (defconst ses-mode-print-map (symbol-function 'ses-mode-print-map)) (byte-code "\301\302\303\304!\305\306\307\310B#\210\305\311\312\313B#\210)\"\207" [map defalias ses-export-keymap make-sparse-keymap "SES export" define-key "T" " tab-formulas" ses-export-tsf "t" " tab-values" ses-export-tsv] 7) #@71 Marker string denoting the boundary between print area and data area. (defconst ses-print-data-boundary "\n\f\n" (#$ . 5668)) #@77 Initial contents for the three-element list at the bottom of the data area. (defconst ses-initial-global-parameters "\n( ;Global parameters (these are read first)\n 2 ;SES file-format\n 1 ;numrows\n 1 ;numcols\n)\n\n" (#$ . 5800)) #@71 Initial contents for the file-trailer area at the bottom of the file. (defconst ses-initial-file-trailer ";; Local Variables:\n;; mode: ses\n;; End:\n" (#$ . 6037)) #@47 The initial contents of an empty spreadsheet. (defconst ses-initial-file-contents (concat " \n" ses-print-data-boundary "(ses-cell A1 nil nil nil nil)\n" "\n" "(ses-column-widths [7])\n" "(ses-column-printers [nil])\n" "(ses-default-printer \"%.7g\")\n" "(ses-header-row 0)\n" ses-initial-global-parameters ses-initial-file-trailer) (#$ . 6208)) #@73 Display properties to create a raised box for cells in the header line. (defconst ses-box-prop '(:box (:line-width 2 :style released-button)) (#$ . 6566)) #@269 List of print functions to be included in initial history of printer functions. None of these standard-printer functions is suitable for use as a column printer or a global-default printer because they invoke the column or default printer and then modify its output. (defconst ses-standard-printer-functions '(ses-center ses-center-span ses-dashfill ses-dashfill-span ses-tildefill-span) (#$ . 6728)) #@37 Buffer-local variables used by SES. (defconst ses-localvars '(ses--blank-line ses--cells ses--col-printers ses--col-widths ses--curcell ses--curcell-overlay ses--default-printer ses--deferred-narrow ses--deferred-recalc ses--deferred-write ses--file-format (ses--header-hscroll . -1) ses--header-row ses--header-string ses--linewidth ses--numcols ses--numrows ses--symbolic-formulas ses--data-marker ses--params-marker (ses--Dijkstra-attempt-nb . 0) ses--Dijkstra-weight-bound ses--renamed-cell-symb-list mode-line-process next-line-add-newlines transient-mark-mode) (#$ . 7136)) #@53 Set buffer-local and initialize some SES variables. (defalias 'ses-set-localvars #[nil "\303\211\2056 \n@\2119\203 \304 !\303L\210\202. :\203) \304 @! AL\210\202. \305\306 \"\210\nA\211\204 \303*\207" [ses-localvars x --dolist-tail-- nil make-local-variable error "Unexpected elements `%S' in list `ses-localvars'"] 4 (#$ . 7722)]) (put 'ses--symbolic-formulas 'safe-local-variable 'consp) #@101 Offsets from 'Global parameters' line to various parameter lines in the data area of a spreadsheet. (defconst ses-paramlines-plist '(ses--col-widths -5 ses--col-printers -4 ses--default-printer -3 ses--header-row -2 ses--file-format 1 ses--numrows 2 ses--numcols 3) (#$ . 8127)) #@318 Set by `ses-relocate-formula' and `ses-relocate-range', read by `ses-relocate-all'. Set to 'delete if a cell-reference was deleted from a formula--so the formula needs recalculation. Set to 'range if the size of a `ses-range' was changed--so both the formula's value and list of dependents need to be recalculated. (defvar ses-relocate-return nil (#$ . 8413)) #@202 Set to t if last cell printer invoked by `ses-call-printer' requested left-justification of the result. Set to error-signal if `ses-call-printer' encountered an error during printing. Otherwise nil. (defvar ses-call-printer-return nil (#$ . 8782)) #@107 Time when current operation started. Used by `ses-time-check' to decide when to emit a progress message. (defvar ses-start-time nil (#$ . 9039)) #@73 Return the cell structure that stores information about cell (ROW,COL). (defalias 'ses-get-cell '(macro . #[(row col) "\302\211\303E E\207" [row col aref ses--cells] 4 (#$ . 9191)])) (defalias 'ses-make-cell #[(&optional symbol formula printer references property-list) "\305 \n\f%\207" [symbol formula printer references property-list vector] 6]) (put 'ses-make-cell 'byte-optimizer 'byte-compile-inline-expand) #@112 From a CELL or a pair (ROW,COL), get the symbol that names the local-variable holding its value. (0,0) => A1. (defalias 'ses-cell-symbol '(macro . #[(row &optional col) "\302\203\f \303 E\202 \304BB\207" [col row aref ses-get-cell (0)] 4 (#$ . 9614)])) (put 'ses-cell-symbol 'safe-function t) #@76 From a CELL or a pair (ROW,COL), get the function that computes its value. (defalias 'ses-cell-formula '(macro . #[(row &optional col) "\302\203\f \303 E\202 \304BB\207" [col row aref ses-get-cell (1)] 4 (#$ . 9918)])) #@55 From a CELL set the function that computes its value. (defalias 'ses-cell-formula-aset '(macro . #[(cell formula) "\302\303 F\207" [cell formula aset 1] 4 (#$ . 10147)])) #@74 From a CELL or a pair (ROW,COL), get the function that prints its value. (defalias 'ses-cell-printer '(macro . #[(row &optional col) "\302\203\f \303 E\202 \304BB\207" [col row aref ses-get-cell (2)] 4 (#$ . 10325)])) #@104 From a CELL or a pair (ROW,COL), get the list of symbols for cells whose functions refer to its value. (defalias 'ses-cell-references '(macro . #[(row &optional col) "\302\203\f \303 E\202 \304BB\207" [col row aref ses-get-cell (3)] 4 (#$ . 10554)])) #@100 From a CELL set the list REFERENCES of symbols for cells the function of which refer to its value. (defalias 'ses-cell-references-aset '(macro . #[(cell references) "\302\303 F\207" [cell references aset 3] 4 (#$ . 10816)])) #@55 Return non `nil' is CELL is a cell of current buffer. (defalias 'ses-cell-p #[(cell) "\303!\205\"