| Server IP : 217.160.0.64 / Your IP : 216.73.217.111 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : ws67269618 ( 67269618) PHP Version : 8.4.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/proc/self/root/kunden/proc/self/root/usr/share/emacs/30.1/lisp/progmodes/ |
Upload File : |
;ELC
;;; Compiled
;;; in Emacs version 30.1
;;; with all optimizations.
#@38 File name to save cpp configuration.#@2 #@34 Face used for known cpp symbols.#@36 Face used for unknown cpp symbols.#@206 Indicate what background face type you prefer.
Can be either light or dark for color screens, mono for monochrome
screens, and none if you don't use a window system and don't have
a color-capable display.#@65 Non-nil means you are allowed to modify the known conditionals.#@67 Non-nil means you are allowed to modify the unknown conditionals.#@318 Alist of cpp macros and information about how they should be displayed.
Each entry is a list with the following elements:
0. The name of the macro (a string).
1. Face used for text that is `ifdef' the macro.
2. Face used for text that is `ifndef' the macro.
3. t, nil, or `both' depending on what text may be edited.#@140 Minimum time interval in seconds for `cpp-highlight-buffer' progress messages.
If nil, `cpp-highlight-buffer' prints no progress messages.#@52 List of cpp overlays active in the current buffer.
(byte-code "\300\301\302\303\304\305\306\307\310\311& \210\312\313\314\315\316DD\317\320\321%\210\322\323\324\325\320\326%\210\312\327\314\315\330DD\331\320\323%\210\312\332\314\315\333DD\334\320\323%\210\312\335\314\315\336DD\337\340\341\320\342&\210\312\343\314\315\344DD\345\320\346%\210\312\347\314\315\350DD\351\320\346%\210\312\352\314\315\353DD\354\320\355%\210\312\356\314\315\357DD\360\320\361\362\363&\207" [custom-declare-group cpp nil "Highlight or hide text according to cpp conditionals." :link (custom-group-link :tag "Font Lock Faces group" font-lock-faces) :group c :prefix "cpp-" custom-declare-variable cpp-config-file funcall function #[0 "\300\301!\207" [convert-standard-filename ".cpp.el"] 2 (#$ . 124)] (#$ . 83) :type file define-widget cpp-face lazy "Either a face or the special symbol `invisible'." (choice (const invisible) (face)) cpp-known-face #[0 "\300\207" [invisible] 1 (#$ . 124)] (#$ . 130) cpp-unknown-face #[0 "\300\207" [highlight] 1 (#$ . 124)] (#$ . 168) cpp-face-type #[0 "\300\207" [light] 1 (#$ . 124)] (#$ . 209) :options (light dark mono nil) symbol cpp-known-writable #[0 "\300\207" [t] 1 (#$ . 124)] (#$ . 419) boolean cpp-unknown-writable #[0 "\300\207" [t] 1 (#$ . 124)] (#$ . 488) cpp-edit-list #[0 "\300\207" [nil] 1 (#$ . 124)] (#$ . 560) (repeat (list (string :tag "Macro") (cpp-face :tag "True") (cpp-face :tag "False") (choice (const :tag "True branch writable" t) (const :tag "False branch writable" nil) (const :tag "Both branches writable" both)))) cpp-message-min-time-interval #[0 "\300\207" [1.0] 1 (#$ . 124)] (#$ . 883) (choice (const :tag "Disable progress messages" nil) float) :version "26.1"] 10)
(defvar cpp-overlay-list nil (#$ . 1027))#@61 Alist of strings and names of the defined face collections.
(make-variable-buffer-local 'cpp-overlay-list)
(defconst cpp-face-type-list '(("light color background" . light) ("dark color background" . dark) ("monochrome" . mono) ("tty" . none)) (#$ . 2793))
(defconst cpp-writable-list '(("writable" . t) ("read-only")))
(defvar cpp-button-event nil)#@59 Real buffer whose cpp display information we are editing.
(defvar cpp-edit-buffer nil (#$ . 3148))
(make-variable-buffer-local 'cpp-edit-buffer)
(defconst cpp-branch-list '(("false") ("true" . t) ("both" . both)))#@245 Alist of faces you can choose from for cpp conditionals.
Each element has the form (STRING . FACE), where STRING
serves as a name (for `cpp-highlight-buffer' only)
and FACE is either a face (a symbol)
or a cons cell (background-color . COLOR).#@55 Background colors useful with dark foreground colors.#@56 Background colors useful with light foreground colors.#@60 Alist of names and faces to be used for light backgrounds.#@59 Alist of names and faces to be used for dark backgrounds.#@61 Alist of names and faces to be used for monochrome screens.#@75 Alist of names and faces available even if you don't use a window system.#@63 All faces used for highlighting text inside cpp conditionals.
(byte-code "\300\301\302\303\304DD\305\306\307%\210\300\310\302\303\311DD\312\306\313%\210\300\314\302\303\315DD\316\306\317%\210\300\320\302\303\321DD\322\306\323%\210\300\324\302\303\325DD\326\306\327%\210\300\330\302\303\331DD\332\306\333%\210\300\334\302\303\335DD\336\306\337%\207" [custom-declare-variable cpp-face-default-list funcall function #[0 "\300\207" [nil] 1 (#$ . 124)] (#$ . 3368) :type (alist :key-type (string :tag "Name") :value-type (choice face (const invisible) (cons (const background-color) (string :tag "Color")))) cpp-face-light-name-list #[0 "\300\207" [("light gray" "light blue" "light cyan" "light yellow" "light pink" "pale green" "beige" "orange" "magenta" "violet" "medium purple" "turquoise")] 1 (#$ . 124)] (#$ . 3617) (repeat string) cpp-face-dark-name-list #[0 "\300\207" [("dim gray" "blue" "cyan" "yellow" "red" "dark green" "brown" "dark orange" "dark khaki" "dark violet" "purple" "dark turquoise")] 1 (#$ . 124)] (#$ . 3676) (repeat string) cpp-face-light-list #[0 "\300\207" [nil] 1 (#$ . 124)] (#$ . 3736) (repeat (cons string (choice face (cons (const background-color) string)))) cpp-face-dark-list #[0 "\300\207" [nil] 1 (#$ . 124)] (#$ . 3800) (repeat (cons string (choice face (cons (const background-color) string)))) cpp-face-mono-list #[0 "\300\207" [(("bold" . bold) ("bold-italic" . bold-italic) ("italic" . italic) ("underline" . underline))] 1 (#$ . 124)] (#$ . 3863) (repeat (cons string face)) cpp-face-none-list #[0 "\300\207" [(("default" . default) ("invisible" . invisible))] 1 (#$ . 124)] (#$ . 3928) (repeat (cons string cpp-face))] 6)
(defvar cpp-face-all-list (append cpp-face-light-list cpp-face-dark-list cpp-face-mono-list cpp-face-none-list) (#$ . 4007))#@46 List of cpp macros used in the local buffer.
(defvar cpp-parse-symbols nil (#$ . 5800))
(make-variable-buffer-local 'cpp-parse-symbols)
(defconst cpp-parse-regexp "'\\|\"\\|/\\*\\|//\\|\\(^[ ]*#[ ]*\\(ifdef\\|ifndef\\|if\\|elif\\|else\\|endif\\)\\b\\)")#@248 Highlight C code according to preprocessor conditionals.
This command pops up a buffer which you should edit to specify
what kind of highlighting to use, and the criteria for highlighting.
A prefix arg suppresses display of that buffer.
(fn ARG)
(defalias 'cpp-highlight-buffer #[257 "\306=\204 \307>\204 \310\307!\210\311\312 \210\n\204 \313 \210\205) \314\315ed\311\211&\311\212eb\210\316
\311\306#\203F\211\203Q \211`\311\247\203J @Y\205O \317#\266\320\224\320\225{\211\321\230\204b \211\322\230\203{ \320\224b\210\3231r \324 0\266\202/ \210\325\326!\266\202/ \211\327\230\203\221 \330\331\311\306#\204B\332\333!\266\202/ \211\334\230\203\237 \335\311w\266\202/ \336\210\336\224`T\337\224\337\225{\336\225`{\340\230\203\302 \341\306$\266\202/ \342\230\203\325 \341\311$\266\202/ \343\230\203\350 \341\306$\266\202/ \344\230\203\311\211./\345\"*\210\341\306$\266\202/ \346\230\203.\f\204\325\347!\210\f@@?\f@A@F\345\"\210\211\fB\266\202/ \350\230\203=\345\"\266\202/ \325\351!\266\210\202/ \211\203N\352!\210)\f\203_\212\353\f@8b\210\325\354!)\210)\210\211\206l ?\206l\355 \207" [buffer-invisibility-spec cpp-parse-symbols cpp-edit-list cpp-message-min-time-interval cpp-state-stack cpp-parse-regexp t cpp add-to-invisibility-spec nil cpp-parse-reset cpp-edit-load make-progress-reporter "Parsing..." re-search-forward progress-reporter-do-update 0 "'" "\"" (error) forward-sexp cpp-parse-error "Unterminated string or character" "/*" search-forward "*/" error "Unterminated comment" "//" "^\n
" 1 2 "ifdef" cpp-parse-open "ifndef" "if" "elif" cpp-parse-close "else" "Top level #else" "endif" "Parser error" progress-reporter-done 3 "Unclosed conditional" cpp-parse-edit cpp-unknown-face cpp-known-face] 12 (#$ . 6062) "P"])#@98 Push information about conditional-beginning onto `cpp-state-stack'.
(fn BRANCH EXPR BEGIN END)
(defalias 'cpp-parse-open #[1028 "\303\304\"\203 \305\211\224O\305\225\306OP\262\202 \303\307\"\203% \305\211\224O\262\303\310\"\2033 \305\211\224O\262\303\311\"\203J \305\211\224O\305\225\306OP\262\2023 FB \235\204\\ B\312\n\"\203h \313\"\207\314\"\207" [cpp-state-stack cpp-parse-symbols cpp-edit-list string-match "\\b[ ]*/\\*.*\\*/[ ]*\\b" 0 nil "\\b[ ]*/\\*" "\\b[ ]*\\(//.*\\)?$" "[ ]+" assoc cpp-make-known-overlay cpp-make-unknown-overlay] 8 (#$ . 7874)])#@16
(fn FROM TO)
(defalias 'cpp-parse-close #[514 "\303@A@ \"@@\304@8A\203e \203 \305\202 \3068?\3048=G\307 \"\310 \"\210\211\nB\203B \311\312#\210\313\267\202R \314!\210\202Y \202Y \311\315#\210\203a \316!\207\317!\207\320\"\207" [cpp-state-stack cpp-edit-list cpp-overlay-list assoc 3 1 2 make-overlay cpp-make-known-overlay overlay-put priority #s(hash-table test eq purecopy t data (invisible 72 default 79)) cpp-make-overlay-hidden face cpp-make-overlay-read-only cpp-make-overlay-sticky cpp-make-unknown-overlay] 13 (#$ . 8476)])#@14
(fn ERROR)
(defalias 'cpp-parse-error #[257 "\300\301\302e`\"#\207" [error "%s at line %d" count-lines] 7 (#$ . 9047)])#@46 Reset display of cpp conditionals to normal.
(defalias 'cpp-parse-reset #[0 "\205 \301@!\210A\211\204 \302\207" [cpp-overlay-list delete-overlay nil] 3 (#$ . 9175) nil])#@48 Edit display information for cpp conditionals.
(defalias 'cpp-parse-edit #[0 "\204 \302\303!\210p\304\305!\210\306 \210\211\307 \207" [cpp-parse-symbols cpp-edit-buffer cpp-highlight-buffer t pop-to-buffer "*CPP Edit*" cpp-edit-mode cpp-edit-reset] 3 (#$ . 9356) nil])#@18
(fn START END)
(defalias 'cpp-make-known-overlay #[514 "\303\"\304=\203 \305!\210\202- \306=\204 \307\310#\210 \204- \307\311\312#\210\307\313\314#\210\211\nB\211\207" [cpp-known-face cpp-known-writable cpp-overlay-list make-overlay invisible cpp-make-overlay-hidden default overlay-put face modification-hooks (cpp-signal-read-only) insert-in-front-hooks (cpp-signal-read-only)] 7 (#$ . 9633)])
(defalias 'cpp-make-unknown-overlay #[514 "\303\"\304\267\202 \305!\210\202 \202 \306\307#\210 \204* \306\310\311#\210\306\312\313#\210\211\nB\211\207" [cpp-unknown-face cpp-unknown-writable cpp-overlay-list make-overlay #s(hash-table test eq purecopy t data (invisible 10 default 17)) cpp-make-overlay-hidden overlay-put face modification-hooks (cpp-signal-read-only) insert-in-front-hooks (cpp-signal-read-only)] 7 (#$ . 9633)])#@16
(fn OVERLAY)
(defalias 'cpp-make-overlay-hidden #[257 "\300\301\302#\210\300\303\304#\210\300\305\306#\207" [overlay-put invisible cpp modification-hooks (cpp-signal-read-only) insert-in-front-hooks (cpp-signal-read-only)] 5 (#$ . 10491)])
(defalias 'cpp-make-overlay-read-only #[257 "\300\301\302#\210\300\303\304#\210\300\305\306#\207" [overlay-put modification-hooks (cpp-signal-read-only) insert-in-front-hooks (cpp-signal-read-only) insert-behind-hooks (cpp-signal-read-only)] 5 (#$ . 10491)])
(defalias 'cpp-make-overlay-sticky #[257 "\300\301\302#\210\300\303\304#\207" [overlay-put insert-in-front-hooks (cpp-grow-overlay) insert-behind-hooks (cpp-grow-overlay)] 5 (#$ . 10491)])#@46
(fn OVERLAY AFTER START END &optional LEN)
(defalias 'cpp-signal-read-only #[1284 "?\205 \300!W\204 \301!V\205 \302\303!\207" [overlay-start overlay-end error "This text is read only"] 7 (#$ . 11194)])
(defalias 'cpp-grow-overlay #[1284 "\205 \300\301!^\302 !]#\207" [move-overlay overlay-start overlay-end] 11 (#$ . 11194)])#@29 Keymap for `cpp-edit-mode'.
(defvar cpp-edit-mode-map (byte-code "\300\301\302\303\302\304\305\306\307\310\311\312\313\314\313\315\316\317\320\321\320\322\320\323\324\325\324\326\327\330\327\331\332\333\332\334\335\336\335\337\340\341\340\342\343\344\343\345\346\347\346\350\351\352\351\353\354\355\354\356\357\360\357\361\362\363\362\364\365\366\365\367\370\371\370&J\207" [define-keymap :full t :suppress "<down-mouse-2>" cpp-push-button "<mouse-2>" ignore "SPC" scroll-up-command "S-SPC" scroll-down-command "DEL" "<delete>" scroll-down "C-c C-c" cpp-edit-apply "a" "A" "r" cpp-edit-reset "R" "s" cpp-edit-save "S" "l" cpp-edit-load "L" "h" cpp-edit-home "H" "b" cpp-edit-background "B" "k" cpp-edit-known "K" "u" cpp-edit-unknown "U" "t" cpp-edit-true "T" "f" cpp-edit-false "F" "w" cpp-edit-write "W" "X" cpp-edit-toggle-known "x" "Y" cpp-edit-toggle-unknown "y" "q" bury-buffer "Q"] 75) (#$ . 11543))#@37 Symbols defined in the edit buffer.
(defvar cpp-edit-symbols nil (#$ . 12455))
(make-variable-buffer-local 'cpp-edit-symbols)
(defvar cpp-edit-mode-hook nil)
(byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [cpp-edit-mode-hook variable-documentation put "Hook run after entering `cpp-edit-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp cpp-edit-mode-map definition-name cpp-edit-mode] 4)
(defvar cpp-edit-mode-map (make-sparse-keymap))#@301 Major mode for editing the criteria for highlighting cpp conditionals.
Click on objects to change them.
You can also use the keyboard accelerators indicated like this: [K]ey.
This mode runs the hook `cpp-edit-mode-hook', as the final or
penultimate step during initialization.
\{cpp-edit-mode-map}
(byte-code "\301\302N\204 \303\301\302\304\305!#\210\306\307!\204* \303\307\310\311#\210\312\307\306\307!\203&