?
Current Path : /usr/share/emacs/24.3/lisp/progmodes/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/progmodes/subword.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:30 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/progmodes/subword.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. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@48 Function to call for forward subword movement. (defvar subword-forward-function 'subword-forward-internal (#$ . 560)) #@49 Function to call for backward subword movement. (defvar subword-backward-function 'subword-backward-internal (#$ . 684)) #@44 Regexp used by `subword-forward-internal'. (defvar subword-forward-regexp "\\W*\\(\\([[:upper:]]*\\W?\\)[[:lower:][:digit:]]*\\)" (#$ . 811)) #@45 Regexp used by `subword-backward-internal'. (defvar subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([[:upper:]]+\\W*\\)\\|\\W\\w+\\)" (#$ . 959)) #@43 Keymap used in `subword-mode' minor mode. (defvar subword-mode-map (byte-code "\305 \306\307\211\2032 \n@\310 !\311\312\"\210\313\314\315\316\"P!)\317\320\321 \"\f#\210)\nA\211\204 *)\207" [map cmd --dolist-tail-- name othercmd make-sparse-keymap (forward-word backward-word mark-word kill-word backward-kill-word transpose-words capitalize-word upcase-word downcase-word) nil symbol-name string-match "\\([[:alpha:]-]+\\)-word[s]?" intern "subword-" match-string 1 define-key vector remap] 6) (#$ . 1126)) #@93 Non-nil if Subword mode is enabled. Use the command `subword-mode' to change this variable. (defvar subword-mode nil (#$ . 1651)) (make-variable-buffer-local 'subword-mode) #@1043 Toggle subword movement and editing (Subword mode). With a prefix argument ARG, enable Subword mode if ARG is positive, and disable it otherwise. If called from Lisp, enable the mode if ARG is omitted or nil. Subword mode is a buffer-local minor mode. Enabling it remaps word-based editing commands to subword-based commands that handle 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" The subword oriented commands activated in this minor mode recognize subwords in a nomenclature to move between subwords and to edit them as words. \{subword-mode-map} (defalias 'subword-mode #[(&optional arg) "\303 \304=\203 \n?\202 \305 !\306V\307\310\n\203 \311\202 \312\"\210\313\314!\203@ \303 \2033 \303 \232\203@ \315\316\n\203= \317\202>