%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/emacs-lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/emacs-lisp/chart.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; 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#\210\306\211\203, \211@\303N\203% \304N\204% \307\304\303N#\210A\266\202\202 \210\310\303\304\311#\207" [require eieio defvaralias chart-map chart-mode-map nil (saved-value saved-variable-comment) put make-obsolete-variable "24.1"] 7) #@28 Keymap used in chart mode. (defvar chart-mode-map (make-sparse-keymap) (#$ . 691)) #@63 Local variable containing the locally displayed chart object. (defvar chart-local-object nil (#$ . 780)) (make-variable-buffer-local 'chart-local-object) #@87 Colors to use when generating `chart-face-list'. Colors will be the background color. (defvar chart-face-color-list '("red" "green" "blue" "cyan" "yellow" "purple") (#$ . 940)) #@103 If pixmaps are allowed, display these background pixmaps. Useful if new Emacs is used on B&W display. (defvar chart-face-pixmap-list (byte-code "\300\301!\205\f \301 \205\f \302\207" [fboundp display-graphic-p ("dimple1" "scales" "dot" "cross_weave" "boxes" "dimple3")] 2) (#$ . 1124)) (byte-code "\300\301\302\303\304DD\305\306\307\310\311&\207" [custom-declare-variable chart-face-use-pixmaps funcall function #[0 "\300\207" [nil] 1] "Non-nil to use fancy pixmaps in the background of chart face colors." :group eieio :type boolean] 8) #@139 Faces used to colorize charts. List is limited currently, which is ok since you really can't display too much in text characters anyways. (defvar chart-face-list (byte-code "\303 \205s \304\211\203p \305\306\307@\310@R!!\262\311\3121* \313 \314V0\202. \210\2021 \2036 @\2027 \315\"\210\316\317\"\210\n\203` \203` \320\321!\203` \3221Y \321@\"0\202_ \210\323\324@\"\210\211B\262A\262A\262\202 \266\204\207" [chart-face-color-list chart-face-pixmap-list chart-face-use-pixmaps display-color-p nil make-face intern "chart-" "-" set-face-background (error) x-display-color-cells 4 "white" set-face-foreground "black" fboundp set-face-background-pixmap (error) message "Cannot set background pixmap %s"] 10) (#$ . 1670)) (defvar chart-mode-hook nil) (byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [chart-mode-hook variable-documentation put "Hook run after entering Chart mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp chart-mode-map definition-name chart-mode] 4) (defvar chart-mode-map (make-sparse-keymap)) (byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204 \303\307\310\311#\210\312\313 !\210\307\302N\204- \303\307\302\304\314!#\210\306\300!\204B \303\300\310\311#\210\315\316\300\317\"\210!\210\300\302N\204P \303\300\302\304\320!#\210\303\311\321\322#\207" [chart-mode-abbrev-table chart-mode-map variable-documentation put purecopy "Keymap for `chart-mode'." boundp chart-mode-syntax-table definition-name chart-mode (lambda (#1=#:def-tmp-var) (defvar chart-mode-syntax-table #1#)) make-syntax-table "Syntax table for `chart-mode'." (lambda (#1#) (defvar chart-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `chart-mode'." derived-mode-parent special-mode] 5) #@239 Define a mode in Emacs for displaying a chart. In addition to any hooks its parent mode `special-mode' might have run, this mode runs the hook `chart-mode-hook', as the final or penultimate step during initialization. \{chart-mode-map} (defalias 'chart-mode #[0 "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204' \316\317 \"\210\320\f!\211\2035 \211\321 =\203; \322\f\323 \"\210\210\324 \325\"\204R =\204R \326 \325 C#\210\327!\210\330\f!\210 \331 \210\306\332!\210\333\334\335!\210)\336\337!\207" [delay-mode-hooks major-mode mode-name chart-mode-map chart-mode-syntax-table chart-mode-abbrev-table make-local-variable t special-mode chart-mode "Chart" mode-class put keymap-parent set-keymap-parent current-local-map char-table-parent standard-syntax-table set-char-table-parent syntax-table abbrev-table-get :parents abbrev-table-put use-local-map set-syntax-table buffer-disable-undo font-lock-global-modes nil font-lock-mode -1 run-mode-hooks chart-mode-hook local-abbrev-table] 5 (#$ . 3542) nil]) (byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias chart-p eieio-make-class-predicate chart chart--eieio-childp eieio-make-child-predicate chart-child-p make-obsolete "use (cl-typep ... \\='chart) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal nil ((title :initarg :title :initform "Emacs Chart") (title-face :initarg :title-face :initform 'bold-italic) (x-axis :initarg :x-axis :initform nil) (x-margin :initarg :x-margin :initform 5) (x-width :initarg :x-width) (y-axis :initarg :y-axis :initform nil) (y-margin :initarg :y-margin :initform 5) (y-width :initarg :y-width) (key-label :initarg :key-label :initform "Key") (sequences :initarg :sequences :initform nil)) (:documentation "Superclass for all charts to be displayed in an Emacs buffer.")] 6) #@62 Create a new object of class type `chart'. (fn &rest SLOTS) (defalias 'chart #[128 "\300\301\302#\207" [apply make-instance chart] 5 (#$ . 5491)]) (byte-code "\300\301\302\303#\300\207" [function-put chart compiler-macro chart--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 5743)]) #@107 Create a new buffer NAME in which the chart OBJ is displayed. Returns the newly created buffer. (fn OBJ) (defalias 'chart-new-buffer #[257 "r\301\302\303\304\305\"\"!q\210\306 \210\211p)\207" [chart-local-object get-buffer-create format "*%s*" eieio-oref title chart-mode] 7 (#$ . 5968)]) (byte-code "\300\301\302\303\304\305%\210\306\307\310\311!\"\210\306\312\313\311!\"\210\306\314\312\"\210\315\314\316\317#\210\320\311\321\312#\322\311\304\323\324$\207" [cl-generic-define-method initialize-instance (:after) ((obj chart) &rest _fields) nil #[385 "\300\301\302 \303Z#\210\300\304\305 \306Z#\207" [eieio-oset x-width window-width 10 y-width window-height 12] 7 "Initialize the chart OBJ being created with FIELDS.\nMake sure the width/height is correct.\n\n(fn OBJ &rest FIELDS)"] defalias chart-axis-p eieio-make-class-predicate chart-axis chart-axis--eieio-childp eieio-make-child-predicate chart-axis-child-p make-obsolete "use (cl-typep ... \\='chart-axis) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal ((name :initarg :name :initform "Generic Axis") (loweredge :initarg :loweredge :initform t) (name-face :initarg :name-face :initform 'bold) (labels-face :initarg :labels-face :initform 'italic) (chart :initarg :chart :initform nil)) (:documentation "Superclass used for display of an axis.")] 6) #@67 Create a new object of class type `chart-axis'. (fn &rest SLOTS) (defalias 'chart-axis #[128 "\300\301\302#\207" [apply make-instance chart-axis] 5 (#$ . 7320)]) (byte-code "\300\301\302\303#\300\207" [function-put chart-axis compiler-macro chart-axis--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart-axis--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 7597)]) (byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias chart-axis-range-p eieio-make-class-predicate chart-axis-range chart-axis-range--eieio-childp eieio-make-child-predicate chart-axis-range-child-p make-obsolete "use (cl-typep ... \\='chart-axis-range) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (chart-axis) ((bounds :initarg :bounds :initform '(0.0 . 50.0))) (:documentation "Class used to display an axis defined by a range of values.")] 6) #@73 Create a new object of class type `chart-axis-range'. (fn &rest SLOTS) (defalias 'chart-axis-range #[128 "\300\301\302#\207" [apply make-instance chart-axis-range] 5 (#$ . 8406)]) (byte-code "\300\301\302\303#\300\207" [function-put chart-axis-range compiler-macro chart-axis-range--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart-axis-range--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 8713)]) (byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias chart-axis-names-p eieio-make-class-predicate chart-axis-names chart-axis-names--eieio-childp eieio-make-child-predicate chart-axis-names-child-p make-obsolete "use (cl-typep ... \\='chart-axis-names) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (chart-axis) ((items :initarg :items :initform nil)) (:documentation "Class used to display an axis which represents different named items.")] 6) #@73 Create a new object of class type `chart-axis-names'. (fn &rest SLOTS) (defalias 'chart-axis-names #[128 "\300\301\302#\207" [apply make-instance chart-axis-names] 5 (#$ . 9526)]) (byte-code "\300\301\302\303#\300\207" [function-put chart-axis-names compiler-macro chart-axis-names--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart-axis-names--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 9833)]) (byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias chart-sequece-p eieio-make-class-predicate chart-sequece chart-sequece--eieio-childp eieio-make-child-predicate chart-sequece-child-p make-obsolete "use (cl-typep ... \\='chart-sequece) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal nil ((data :initarg :data :initform nil) (name :initarg :name :initform "Data")) (:documentation "Class used for all data in different charts.")] 6) #@70 Create a new object of class type `chart-sequece'. (fn &rest SLOTS) (defalias 'chart-sequece #[128 "\300\301\302#\207" [apply make-instance chart-sequece] 5 (#$ . 10634)]) (byte-code "\300\301\302\303#\300\207" [function-put chart-sequece compiler-macro chart-sequece--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart-sequece--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 10927)]) (byte-code "\300\301\302\303!\"\210\300\304\305\303!\"\210\300\306\304\"\210\307\306\310\311#\210\312\303\313\304#\314\303\315\316\317$\207" [defalias chart-bar-p eieio-make-class-predicate chart-bar chart-bar--eieio-childp eieio-make-child-predicate chart-bar-child-p make-obsolete "use (cl-typep ... \\='chart-bar) instead" "25.1" define-symbol-prop cl-deftype-satisfies eieio-defclass-internal (chart) ((direction :initarg :direction :initform vertical)) (:documentation "Subclass for bar charts (vertical or horizontal).")] 6) #@66 Create a new object of class type `chart-bar'. (fn &rest SLOTS) (defalias 'chart-bar #[128 "\300\301\302#\207" [apply make-instance chart-bar] 5 (#$ . 11691)]) (byte-code "\300\301\302\303#\300\207" [function-put chart-bar compiler-macro chart-bar--anon-cmacro] 4) #@26 (fn WHOLE &rest SLOTS) (defalias 'chart-bar--anon-cmacro #[385 "\211@;\204 \207\300\301\302@@#@\303@DABB\"\207" [macroexp--warn-and-return format "Obsolete name arg %S to constructor %S" identity] 7 (#$ . 11964)]) (byte-code "\300\301\302\303\302\304%\210\300\305\302\306\302\307%\210\300\310\302\311\302\312%\210\300\313\302\314\302\315%\210\300\316\302\317\302\320%\210\300\321\302\322\302\323%\210\300\324\302\325\302\326%\210\300\316\302\327\330\331%\210\300\332\302\333\302\334%\210\300\316\302\335\330\336%\210\300\337\302\340\302\341%\210\300\342\302\343\302\344%\210\300\345\302\346\302\347%\210\300\350\302\351\302\352%\207" [cl-generic-define-method chart-draw nil ((c chart) &optional buff) #[513 "\303 \304\211\304\305\306\307\310\311!\312\"\313$\216\212\203 q\210\314 \210\315\316\317 !\320\"c\210\321!\210\322!\210\323\324!\210\325\306!\210\326!\210\323\327!-\207" [buffer-undo-list inhibit-read-only inhibit-modification-hooks buffer-modified-p t make-byte-code 0 "\300?\205 \301\302!\207" vconcat vector [restore-buffer-modified-p nil] 2 erase-buffer make-string window-height selected-window 10 chart-draw-axis chart-draw-title message "Rendering chart..." sit-for chart-draw-data "Rendering chart...done"] 10 "Start drawing a chart object C in optional BUFF.\nErases current contents of buffer.\n\n(fn C &optional BUFF)"] chart-draw-title ((c chart)) #[257 "\300\301\302\"\303\304\211\305 \301\306\"&\207" [chart-display-label eieio-oref title horizontal 0 window-width title-face] 10 "Draw a title upon the chart.\nArgument C is the chart object.\n\n(fn C)"] chart-size-in-dir ((c chart) dir) #[514 "\211\300=\203 \301\302\"\207\301\303\"\207" [vertical eieio-oref y-width x-width] 5 "Return the physical size of chart C in direction DIR.\n\n(fn C DIR)"] chart-draw-axis ((c chart)) #[257 "\300\301\"\300\302\"\300\303\"\300\304\"\305\300\306\"\307\300\211\n\306\"\310\"?\205&