Current File : //usr/share/emacs/site-lisp/cmake3/cmake3-mode.elc
;ELC
;;; Compiled by mockbuild@buildhw-x86-10.iad2.fedoraproject.org on Wed Dec  9 11:27:16 2020
;;; from file /builddir/build/BUILDROOT/cmake3-3.17.5-1.el7.x86_64/usr/share/emacs/site-lisp/cmake3/cmake3-mode.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.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


#@281 *The name of the cmake executable.

This can be either absolute or looked up in $PATH.  You can also
set the path with these commands:
 (setenv "PATH" (concat (getenv "PATH") ";C:\\Program Files\\CMake 2.8\\bin"))
 (setenv "PATH" (concat (getenv "PATH") ":/usr/local/cmake/bin"))
(custom-declare-variable 'cmake-mode-cmake-executable "cmake" '(#$ . -605) :type 'file :group 'cmake)
(defconst cmake-keywords-block-open '("IF" "MACRO" "FOREACH" "ELSE" "ELSEIF" "WHILE" "FUNCTION"))
(defconst cmake-keywords-block-close '("ENDIF" "ENDFOREACH" "ENDMACRO" "ELSE" "ELSEIF" "ENDWHILE" "ENDFUNCTION"))
(defconst cmake-keywords (byte-code "\303	\304#\305\n!)\207" [cmake-keywords-block-open cmake-keywords-block-close kwds append nil delete-dups] 4))
(defconst cmake-regex-blank "^[ 	]*$")
(defconst cmake-regex-comment "#.*")
(defconst cmake-regex-paren-left "(")
(defconst cmake-regex-paren-right ")")
(defconst cmake-regex-argument-quoted "\"\\(?:[^\"\\]\\|\\\\\\(?:.\\|\n\\)\\)*\"")
(defconst cmake-regex-argument-unquoted "\\(?:[^\n\"#()\\[:space:]]\\|\\\\.\\)\\(?:[^\n#()\\[:space:]]\\|\\\\.\\)*")
(defconst cmake-regex-token (byte-code "\303\304\305\306D\307\310\306	D\306\nD\257D!\207" [cmake-regex-comment cmake-regex-argument-unquoted cmake-regex-argument-quoted rx-to-string group or regexp 40 41] 9))
(defconst cmake-regex-indented (byte-code "\301\302\303\304\305\306\307D\310BBDDE!\207" [cmake-regex-token rx-to-string and bol * group or regexp ((any space 10))] 8))
(defconst cmake-regex-block-open (byte-code "\301\302\303\304\305\306\307\"\"B\310BBB!\207" [cmake-keywords-block-open rx-to-string and symbol-start or append mapcar downcase (symbol-end)] 9))
(defconst cmake-regex-block-close (byte-code "\301\302\303\304\305\306\307\"\"B\310BBB!\207" [cmake-keywords-block-close rx-to-string and symbol-start or append mapcar downcase (symbol-end)] 9))
(defconst cmake-regex-close (byte-code "\302\303\304\305\306D\307\306	D\257!\207" [cmake-regex-block-close cmake-regex-paren-left rx-to-string and bol (* space) regexp (* space)] 8))
#@69 Determine whether the beginning of the current line is in a string.
(defalias 'cmake-line-starts-inside-string #[nil "\212\301 \210`eb\210\302\303`\"8*\207" [parse-end beginning-of-line 3 parse-partial-sexp] 4 (#$ . 2665)])
#@73 Move to the beginning of the last line that has meaningful indentation.
(defalias 'cmake-find-last-indented-line #[nil "`\304\305y\210\306`	\"o?\2057\307\n!\204,\310 \204,\311\"\205(G\312\225U?\2057\305y\210\306`	\"\202\f*\207" [region point-start cmake-regex-blank cmake-regex-indented nil -1 buffer-substring-no-properties looking-at cmake-line-starts-inside-string string-match 0] 3 (#$ . 2897)])
#@42 Number of columns to indent cmake blocks
(custom-declare-variable 'cmake-tab-width 2 '(#$ . 3316) :type 'integer :group 'cmake)
#@36 Indent current line as CMake code.
(defalias 'cmake-indent #[nil "\306 ?\205to\203\307\310!\207\311\212\312 \210`\313\311\314 \210\315 \316\f\313#\203^\317\310!\320\321
\322Q	\"\204F\320	\"\203K\323\324
P!\203K\\\320\321\322Q	\"\203 Z\202 b\210\323!\203mZ,\307\310]!)\207" [cur-indent token case-fold-search point-start cmake-regex-token cmake-regex-paren-left cmake-line-starts-inside-string cmake-indent-line-to 0 nil beginning-of-line t cmake-find-last-indented-line current-indentation re-search-forward match-string string-match "^" "$" looking-at "[ 	]*" cmake-regex-block-open cmake-tab-width cmake-regex-paren-right cmake-regex-close] 4 (#$ . 3450) nil])
(defalias 'cmake-point-in-indendation #[nil "\300\301\302 `{\"\207" [string-match "^[ \\t]*$" point-at-bol] 4])
#@175 Indent the current line to COLUMN.
If point is within the existing indentation it is moved to the end of
the indentation.  Otherwise it retains the same position on the line
(defalias 'cmake-indent-line-to #[(column) "\301 \203	\302!\207\212\302!)\207" [column cmake-point-in-indendation indent-line-to] 2 (#$ . 4269)])
#@52 Convert all CMake commands to lowercase in buffer.
(defalias 'cmake-unscreamify-buffer #[nil "\212eb\210\300\301\302\303#\205\304\305\306!\305\307!\227\305\310!Q\303\"\210\202)\207" [re-search-forward "^\\([ 	]*\\)\\_<\\(\\(?:\\w\\|\\s_\\)+\\)\\_>\\([ 	]*(\\)" nil t replace-match match-string 1 2 3] 5 (#$ . 4598) nil])
#@42 Highlighting expressions for CMake mode.
(defconst cmake-font-lock-keywords (byte-code "\301\302\303\304\305\306\307\"\"B\310BBB!\311B\312\313B\314\315BE\207" [cmake-keywords rx-to-string and symbol-start or append mapcar downcase (symbol-end) font-lock-keyword-face "\\_<\\(\\(?:[[:word:]]\\|\\s_\\)+\\)[[:blank:]]*(" (1 font-lock-function-name-face) "\\${\\([--/+_[:alnum:]]+\\)}" (1 font-lock-variable-name-face t)] 9) (#$ . 4929))
#@30 Syntax table for CMake mode.
(defvar cmake-mode-syntax-table nil (#$ . 5372))
(byte-code "\204(\302 \303\304\305	#\210\303\306\307	#\210\303\310\311	#\210\303\312\313	#\210\303\314\315	#\210	)\302\207" [cmake-mode-syntax-table table make-syntax-table modify-syntax-entry 40 "()" 41 ")(" 35 "<" 10 ">" 36 "'"] 4)
(defvar cmake-mode-hook nil)
(byte-code "\300\301N\204\302\300\301\303\304!#\210\305\306!\204\302\306\307\310#\210\300\207" [cmake-mode-hook variable-documentation put purecopy "Hook run when entering CMake mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" boundp cmake-mode-map definition-name cmake-mode] 5)
(defvar cmake-mode-map (make-sparse-keymap))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\305\306!\204\302\306\307\310#\210\300\207" [cmake-mode-map variable-documentation put purecopy "Keymap for `cmake-mode'." boundp cmake-mode-syntax-table definition-name cmake-mode] 5)
(defvar cmake-mode-syntax-table (make-syntax-table))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [cmake-mode-syntax-table variable-documentation put purecopy "Syntax table for `cmake-mode'." cmake-mode-abbrev-table definition-name cmake-mode] 5)
(defvar cmake-mode-abbrev-table (progn (define-abbrev-table 'cmake-mode-abbrev-table nil) cmake-mode-abbrev-table))
(byte-code "\300\301N\204\302\300\301\303\304!#\210\302\305\306\307#\207" [cmake-mode-abbrev-table variable-documentation put purecopy "Abbrev table for `cmake-mode'." cmake-mode derived-mode-parent prog-mode] 5)
#@217 Major mode for editing CMake source files.

In addition to any hooks its parent mode `prog-mode' might have run,
this mode runs the hook `cmake-mode-hook', as the final step
during initialization.

\{cmake-mode-map}
(defalias 'cmake-mode #[nil "\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\2036
\321 =\203<\322\f\323 \"\210)\324!\325\"\204V!\"=\204V\326!\325\"C#\210\327!\210\330\f!\210!\"\306\331!\210\332\306\333!\210\334\306\335!\210\336)\337\340!\207" [delay-mode-hooks major-mode mode-name cmake-mode-map cmake-mode-syntax-table parent make-local-variable t prog-mode cmake-mode "CMake" 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 font-lock-defaults (cmake-font-lock-keywords) indent-line-function cmake-indent comment-start "#" run-mode-hooks cmake-mode-hook cmake-mode-abbrev-table local-abbrev-table] 6 (#$ . 6987) nil])
#@122 Runs the command cmake with the arguments specified.  The
optional argument topic will be appended to the argument list.
(defalias 'cmake-command-run #[(type &optional topic buffer) "\203\202\306	\n\205\307\n\310\260\311!\203 \311!\202#\312!\f\313	\313\n\260\314\315
\"\210\316 r\317\216\320\321\322\"!\210\323 \210\324\325!.\207" [buffer type topic bufname cmake-mode-cmake-executable command "*CMake" "-" "*" get-buffer generate-new-buffer " " nil shell-command internal--before-save-selected-window ((internal--after-save-selected-window save-selected-window--state)) select-window display-buffer not-this-window cmake-mode read-only-mode 1 resize-mini-windows save-selected-window--state] 5 (#$ . 8085) "s"])
#@42 Prints out a list of the cmake commands.
(defalias 'cmake-help-list-commands #[nil "\300\301!\207" [cmake-command-run "--help-command-list"] 2 (#$ . 8829) nil])
#@46 List of available topics for --help-command.
(defvar cmake-commands nil (#$ . 8996))
#@23 Command read history.
(defvar cmake-help-command-history nil (#$ . 9087))
#@45 List of available topics for --help-module.
(defvar cmake-modules nil (#$ . 9167))
#@22 Module read history.
(defvar cmake-help-module-history nil (#$ . 9256))
#@47 List of available topics for --help-variable.
(defvar cmake-variables nil (#$ . 9334))
#@24 Variable read history.
(defvar cmake-help-variable-history nil (#$ . 9427))
#@47 List of available topics for --help-property.
(defvar cmake-properties nil (#$ . 9509))
#@24 Property read history.
(defvar cmake-help-property-history nil (#$ . 9603))
#@29 Complete help read history.
(defvar cmake-help-complete-history nil (#$ . 9685))
(defvar cmake-string-to-list-symbol '(("command" cmake-commands cmake-help-command-history) ("module" cmake-modules cmake-help-module-history) ("variable" cmake-variables cmake-help-variable-history) ("property" cmake-properties cmake-help-property-history)))
#@107 If the value of LISTVAR is nil, run cmake --help-LISTNAME-list
and store the result as a list in LISTVAR.
(defalias 'cmake-get-list #[(listname) "\305	\"A@\211J\204.\306\307 \310\216\311\312\313Q\314#\210rq\210\n\315\316ed\"\317\320#L,\2020\nJ)\207" [listname cmake-string-to-list-symbol listvar temp-buffer-name #1=#:wconfig assoc "*CMake Temporary*" current-window-configuration ((set-window-configuration #1#)) cmake-command-run "--help-" "-list" nil split-string buffer-substring-no-properties "\n" t] 6 (#$ . 10033)])
(require 'thingatpt)
(defalias 'cmake-symbol-at-point #[nil "\301 \211??\205\f\302!)\207" [symbol symbol-at-point symbol-name] 3])
(defalias 'cmake-help-type #[(type) "\305 \306	\n\"AA@\307\310\311	\"\312	!\313\314&\211\315\230\203&\316\317!\202'\f+\207" [default-entry type cmake-string-to-list-symbol history input cmake-symbol-at-point assoc completing-read format "CMake %s: " cmake-get-list nil t "" error "No argument given"] 8])
#@63 Prints out the help message for the command the cursor is on.
(defalias 'cmake-help-command #[nil "\300\301\302\303!\304#\207" [cmake-command-run "--help-command" cmake-help-type "command" "*CMake Help*"] 4 (#$ . 11018) nil])
#@62 Prints out the help message for the module the cursor is on.
(defalias 'cmake-help-module #[nil "\300\301\302\303!\304#\207" [cmake-command-run "--help-module" cmake-help-type "module" "*CMake Help*"] 4 (#$ . 11250) nil])
#@64 Prints out the help message for the variable the cursor is on.
(defalias 'cmake-help-variable #[nil "\300\301\302\303!\304#\207" [cmake-command-run "--help-variable" cmake-help-type "variable" "*CMake Help*"] 4 (#$ . 11478) nil])
#@64 Prints out the help message for the property the cursor is on.
(defalias 'cmake-help-property #[nil "\300\301\302\303!\304#\207" [cmake-command-run "--help-property" cmake-help-type "property" "*CMake Help*"] 4 (#$ . 11714) nil])
#@88 Queries for any of the four available help topics and prints out the appropriate page.
(defalias 'cmake-help #[nil "\306 \307\310!\307\311!\307\312!\307\313!\314	\n\f$\315\316
\317\320\321&\211\322\230\2031\323\324!\202t	\235\203A\325\326\327#\202t\n\235\203Q\325\330\327#\202t\235\203a\325\331\327#\202t\f\235\203q\325\332\327#\202t\323\333!.\207" [default-entry command-list variable-list module-list property-list all-words cmake-symbol-at-point cmake-get-list "command" "variable" "module" "property" append completing-read "CMake command/module/variable/property: " nil t cmake-help-complete-history "" error "No argument given" cmake-command-run "--help-command" "*CMake Help*" "--help-variable" "--help-module" "--help-property" "Not a know help topic." input] 8 (#$ . 11950) nil])
(byte-code "\300\301\302\"\210\300\301\303\"\210\304\305!\207" [add-to-list auto-mode-alist ("CMakeLists\\.txt\\'" . cmake-mode) ("\\.cmake\\'" . cmake-mode) provide cmake-mode] 3)