Current File : //proc/self/root/kunden/usr/share/emacs/27.2/lisp/emacs-lisp/re-builder.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\302\303\304\305\306\307&\210\310\311\312\313\314DD\315\304\301\316\317&\210\310\320\312\313\321DD\322\304\301\316\323&\210\310\324\312\313\325DD\326\304\301\316\327&\210\310\330\312\313\331DD\332\304\301\316\333&\210\334\335\336\337\304\301%\210\334\340\341\342\304\301%\210\334\343\344\345\304\301%\210\334\346\347\350\304\301%\207" [custom-declare-group re-builder nil "Options for the RE Builder." :group lisp :prefix "reb-" custom-declare-variable reb-blink-delay funcall function #[0 "\300\207" [0.5] 1] "Seconds to blink cursor for next/previous match in RE Builder." :type number reb-mode-hook #[0 "\300\207" [nil] 1] "Hooks to run on entering RE Builder mode." hook reb-re-syntax #[0 "\300\207" [read] 1] "Syntax for the REs in the RE Builder.\nCan either be `read', `string', or `rx'." (choice (const :tag "Read syntax" read) (const :tag "String syntax" string) (const :tag "`rx' syntax" rx)) reb-auto-match-limit #[0 "\300\207" [200] 1] "Positive integer limiting the matches for RE Builder auto updates.\nSet it to nil if you don't want limits here." (restricted-sexp :match-alternatives (integerp 'nil)) custom-declare-face reb-match-0 ((((class color) (background light)) :background "lightblue") (((class color) (background dark)) :background "steelblue4") (t :inverse-video t)) "Used for displaying the whole match." reb-match-1 ((((class color) (background light)) :background "aquamarine") (((class color) (background dark)) :background "blue3") (t :inverse-video t)) "Used for displaying the first matching subexpression." reb-match-2 ((((class color) (background light)) :background "springgreen") (((class color) (background dark)) :background "chartreuse4") (t :inverse-video t)) "Used for displaying the second matching subexpression." reb-match-3 ((((min-colors 88) (class color) (background light)) :background "yellow1") (((class color) (background light)) :background "yellow") (((class color) (background dark)) :background "sienna4") (t :inverse-video t)) "Used for displaying the third matching subexpression."] 8)
#@36 Enables the RE Builder minor mode.
(defvar reb-mode nil (#$ . 2478))
#@39 Buffer to which the RE is applied to.
(defvar reb-target-buffer nil (#$ . 2553))
#@39 Window to which the RE is applied to.
(defvar reb-target-window nil (#$ . 2640))
#@33 Last regexp used by RE Builder.
(defvar reb-regexp nil (#$ . 2727))
#@111 Last regexp used by RE Builder before processing it.
Except for Lisp syntax this is the same as `reb-regexp'.
(defvar reb-regexp-src nil (#$ . 2802))
#@37 List of overlays of the RE Builder.
(defvar reb-overlays nil (#$ . 2958))
#@27 Old window configuration.
(defvar reb-window-config nil (#$ . 3038))
#@43 Indicates whether sub-exp mode is active.
(defvar reb-subexp-mode nil (#$ . 3113))
#@36 Indicates which sub-exp is active.
(defvar reb-subexp-displayed nil (#$ . 3202))
#@42 String in mode line for additional info.
(defvar reb-mode-string "" (#$ . 3289))
#@45 String in mode line showing validity of RE.
(defvar reb-valid-string "" (#$ . 3376))
(byte-code "\300\301!\210\300\302!\210\300\303!\207" [make-variable-buffer-local reb-overlays reb-regexp reb-regexp-src] 2)
#@35 Buffer to use for the RE Builder.
(defconst reb-buffer "*RE-Builder*" (#$ . 3591))
#@32 Keymap used by the RE Builder.
(defvar reb-mode-map (byte-code "\300 \300 \301\302\303#\210\301\304\305#\210\301\306\307#\210\301\310\311#\210\301\312\313#\210\301\314\315#\210\301\316\317#\210\301\320\321#\210\301\322\323#\210\301\324\325B#\210\301\326\327#\210\301\330\331#\210\301\332\333#\210\301\334\335#\210\301\336\337#\210\301\340\341#\210\301\342\343#\210\301\344\345#\210\301\346\347#\210\301\350\351#\210\301\352\353#\210\301\354\355#\210\207" [make-sparse-keymap define-key "" reb-toggle-case "" reb-quit "" reb-copy "" reb-next-match "" reb-prev-match " " reb-change-syntax "" reb-enter-subexp-mode "" reb-change-target-buffer "" reb-force-update [menu-bar reb-mode] "Re-Builder" [rq] (menu-item "Quit" reb-quit :help "Quit the RE Builder mode") [div1] (menu-item "--") [rt] (menu-item "Case sensitive" reb-toggle-case :button (:toggle with-current-buffer reb-target-buffer (null case-fold-search)) :help "Toggle case sensitivity of searches for RE Builder target buffer") [rb] (menu-item "Change target buffer..." reb-change-target-buffer :help "Change the target buffer and display it in the target window") [rs] (menu-item "Change syntax..." reb-change-syntax :help "Change the syntax used by the RE Builder") [div2] (menu-item "--") [re] (menu-item "Enter subexpression mode" reb-enter-subexp-mode :help "Enter the subexpression mode in the RE Builder") [ru] (menu-item "Force update" reb-force-update :help "Force an update in the RE Builder target window without a match limit") [rn] (menu-item "Go to next match" reb-next-match :help "Go to next match in the RE Builder target window") [rp] (menu-item "Go to previous match" reb-prev-match :help "Go to previous match in the RE Builder target window") [div3] (menu-item "--") [rc] (menu-item "Copy current RE" reb-copy :help "Copy current RE into the kill ring for later insertion")] 7) (#$ . 3680))
(defvar reb-mode-hook nil)
(byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [reb-mode-hook variable-documentation put "Hook run after entering RE Builder mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp reb-mode-map definition-name reb-mode] 4)
(defvar reb-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\317#\207" [reb-mode-abbrev-table reb-mode-map variable-documentation put purecopy "Keymap for `reb-mode'." boundp reb-mode-syntax-table definition-name reb-mode (lambda (#1=#:def-tmp-var) (defvar reb-mode-syntax-table #1#)) make-syntax-table "Syntax table for `reb-mode'." (lambda (#1#) (defvar reb-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `reb-mode'." derived-mode-parent] 5)
#@175 Major mode for interactively building Regular Expressions.
This mode runs the hook `reb-mode-hook', as the final or penultimate step
during initialization.
\{reb-mode-map}
(defalias 'reb-mode #[0 "\306\300!\210\307\310 \210\311\312\313!\210\314\f!\210
\306\315!\210\316
\317 \210)\320\321!\207" [delay-mode-hooks major-mode mode-name reb-mode-map reb-mode-syntax-table reb-mode-abbrev-table make-local-variable t kill-all-local-variables reb-mode "RE Builder" use-local-map set-syntax-table blink-matching-paren nil reb-mode-common run-mode-hooks reb-mode-hook local-abbrev-table] 2 (#$ . 6688) nil])
(defvar reb-lisp-mode-map (byte-code "\301 \302\303\304\303\"#\210\211\207" [reb-mode-map make-sparse-keymap define-key "" lookup-key] 7))
(defvar reb-lisp-mode-hook nil)
(byte-code "\300\301N\204\f \302\300\301\303#\210\304\305!\204 \302\305\306\307#\210\300\207" [reb-lisp-mode-hook variable-documentation put "Hook run after entering RE Builder Lisp mode.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" boundp reb-lisp-mode-map definition-name reb-lisp-mode] 4)
(defvar reb-lisp-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" [reb-lisp-mode-abbrev-table reb-lisp-mode-map variable-documentation put purecopy "Keymap for `reb-lisp-mode'." boundp reb-lisp-mode-syntax-table definition-name reb-lisp-mode (lambda (#1=#:def-tmp-var) (defvar reb-lisp-mode-syntax-table #1#)) make-syntax-table "Syntax table for `reb-lisp-mode'." (lambda (#1#) (defvar reb-lisp-mode-abbrev-table #1#)) define-abbrev-table nil "Abbrev table for `reb-lisp-mode'." derived-mode-parent emacs-lisp-mode] 5)
#@269 Major mode for interactively building symbolic Regular Expressions.
In addition to any hooks its parent mode `emacs-lisp-mode' might have run,
this mode runs the hook `reb-lisp-mode-hook', as the final or penultimate step
during initialization.
\{reb-lisp-mode-map}
(defalias 'reb-lisp-mode #[0 "\306\300!\210\307\310 \210\311\312\310\313N\203 \314\311\313\310\313N#\210\315!\204'