%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/progmodes/ |
Current File : //usr/local/share/emacs/27.2/lisp/progmodes/subword.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file contains utf-8 non-ASCII characters, ;;; and so cannot be loaded into Emacs 22 or earlier. (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (string-lessp emacs-version "23") (error "`%s' was compiled for Emacs 23 or later" #$)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@48 Function to call for forward subword movement. (defvar subword-forward-function 'subword-forward-internal (#$ . 408)) #@49 Function to call for backward subword movement. (defvar subword-backward-function 'subword-backward-internal (#$ . 532)) #@44 Regexp used by `subword-forward-internal'. (defvar subword-forward-regexp "\\W*\\(\\([[:upper:]]*\\(\\W\\)?\\)[[:lower:][:digit:]]*\\)" (#$ . 659)) #@45 Regexp used by `subword-backward-internal'. (defvar subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([[:upper:]]+\\W*\\)\\|\\W\\w+\\)" (#$ . 813)) #@43 Keymap used in `subword-mode' minor mode. (defvar subword-mode-map (make-sparse-keymap) (#$ . 980)) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias capitalized-words-mode subword-mode nil make-obsolete "25.1"] 4) #@93 Non-nil if Subword mode is enabled. Use the command `subword-mode' to change this variable. (defvar subword-mode nil (#$ . 1217)) (make-variable-buffer-local 'subword-mode) #@1091 Toggle subword movement and editing (Subword mode). If called interactively, enable Subword mode if ARG is positive, and disable it if ARG is zero or negative. If called from Lisp, also enable the mode if ARG is omitted or nil, and toggle it if ARG is `toggle'; disable the mode otherwise. Subword mode is a buffer-local minor mode. Enabling it changes the definition of a word so that word-based commands stop inside symbols with mixed uppercase and lowercase letters, e.g. "GtkWidget", "EmacsFrameClass", "NSGraphicsContext". Here we call these mixed case symbols `nomenclatures'. Each capitalized (or completely uppercase) part of a nomenclature is called a `subword'. Here are some examples: Nomenclature Subwords =========================================================== GtkWindow => "Gtk" and "Window" EmacsFrameClass => "Emacs", "Frame" and "Class" NSGraphicsContext => "NS", "Graphics" and "Context" This mode changes the definition of a word so that word commands treat nomenclature boundaries as word boundaries. (fn &optional ARG) (defalias 'subword-mode #[256 "\301 \302=\203 ?\202 \303!\304V\211\203 \305\306!\210\307 \210\310\311\203( \312\202) \313\"\210\314\315!\203M \301 \203= \211\301 \232\203M \316\317\320\203H \321\202I \322#\266\210\323 \210\207" [subword-mode current-message toggle prefix-numeric-value 0 superword-mode -1 subword-setup-buffer run-hooks subword-mode-hook subword-mode-on-hook subword-mode-off-hook called-interactively-p any " in current buffer" message "Subword mode %sabled%s" "en" "dis" force-mode-line-update] 8 (#$ . 1398) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) (defvar subword-mode-hook nil) (byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \311\211%\210\312\313\306\311#\210\314\313\306\315#\210\303\316\317\320#\207" [subword-mode-map subword-mode-hook variable-documentation put "Hook run after entering or leaving `subword-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode subword-mode " ," boundp nil defalias c-subword-mode make-obsolete "23.2" global-subword-mode globalized-minor-mode t] 6) (defvar subword-mode-major-mode nil) (byte-code "\300\301!\210\302\303\304\305\306DD\307\310\311\312\313\314\315\316\317&\207" [make-variable-buffer-local subword-mode-major-mode custom-declare-variable global-subword-mode funcall function #[0 "\300\207" [nil] 1] "Non-nil if Global Subword mode is enabled.\nSee the `global-subword-mode' command\nfor a description of this minor mode.\nSetting this variable directly does not take effect;\neither customize it (see the info node `Easy Customization')\nor call the function `global-subword-mode'." :set custom-set-minor-mode :initialize custom-initialize-default :group convenience :type boolean] 12) #@356 Toggle Subword mode in all buffers. With prefix ARG, enable Global Subword mode if ARG is positive; otherwise, disable it. If called from Lisp, enable the mode if ARG is omitted or nil. Subword mode is enabled in all buffers where `(lambda nil (subword-mode 1))' would do it. See `subword-mode' for more information on Subword mode. (fn &optional ARG) (defalias 'global-subword-mode #[256 "\302 \303\300\304=\203 \305\300!?\202 \306!\307V\"\210\203. \310\311\312\"\210\310\313\314\"\210\310\315\316\"\210\202= \317\311\312\"\210\317\313\314\"\210\317\315\316\"\210\320 \211\203d \211@r\211q\210\203T \301\321!\210\202\\ \203\\ \301\322!\210)A\266\202\202? \210\323\324\305\300!\203q \325\202r \326\"\210\327\330!\203\234 \331\300!\210\302 \203\212 \211\302 \232\203\234 \332\333\334\305\300!\203\227 \335\202\230 \336#\266\210\337 \210\305\300!\207" [global-subword-mode subword-mode current-message set-default toggle default-value prefix-numeric-value 0 add-hook after-change-major-mode-hook global-subword-mode-enable-in-buffers find-file-hook global-subword-mode-check-buffers change-major-mode-hook global-subword-mode-cmhh remove-hook buffer-list 1 -1 run-hooks global-subword-mode-hook global-subword-mode-on-hook global-subword-mode-off-hook called-interactively-p any customize-mark-as-set "" message "Global Subword mode %sabled%s" "en" "dis" force-mode-line-update] 7 (#$ . 4316) (byte-code "\206 \301C\207" [current-prefix-arg toggle] 1)]) (defvar global-subword-mode-hook nil) (byte-code "\301\302N\204\f \303\301\302\304#\210\305\306\307\310\300!\205 \307\211%\207" [global-subword-mode-map global-subword-mode-hook variable-documentation put "Hook run after entering or leaving `global-subword-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it. (This is true for all hook variables.)" add-minor-mode global-subword-mode nil boundp] 6) (defvar subword-mode-set-explicitly nil nil) (make-variable-buffer-local 'subword-mode-set-explicitly) (defalias 'subword-mode-set-explicitly #[0 "\301\211\207" [subword-mode-set-explicitly t] 2]) (byte-code "\300\301\302\303#\210\304\305\301\"\207" [put subword-mode-set-explicitly definition-name global-subword-mode add-hook subword-mode-hook] 4) (defvar global-subword-mode-buffers nil) (defalias 'global-subword-mode-enable-in-buffers #[0 "\305\211\211\205; \211@\306!\2034 r\211q\210 \2041 \n=\2041 \f\203- \304\307!\210\304\310!\210\2021 \304\310!\210)A\266\202\202 \262\207" [global-subword-mode-buffers subword-mode-set-explicitly subword-mode-major-mode major-mode subword-mode nil buffer-live-p -1 1] 5]) (put 'global-subword-mode-enable-in-buffers 'definition-name 'global-subword-mode) (defalias 'global-subword-mode-check-buffers #[0 "\300 \210\301\302\303\"\207" [global-subword-mode-enable-in-buffers remove-hook post-command-hook global-subword-mode-check-buffers] 3]) (put 'global-subword-mode-check-buffers 'definition-name 'global-subword-mode) (defalias 'global-subword-mode-cmhh #[0 "p\211\235\203\f \210\202 \211B\210\301\302\303\"\207" [global-subword-mode-buffers add-hook post-command-hook global-subword-mode-check-buffers] 3]) (put 'global-subword-mode-cmhh 'definition-name 'global-subword-mode) #@187 Do the same as `forward-word' but on subwords. See the command `subword-mode' for a description of subwords. Optional argument ARG is the same as for `forward-word'. (fn &optional ARG) (defalias 'subword-forward #[256 "\211\204 \302\262\303W\203&