%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/ |
Current File : //usr/local/share/emacs/27.2/lisp/kmacro.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!\210\300\302!\210\303\304\305\306\307\310\307\311\312\313\314\315\314\316& \210\317\320\321\322\323DD\324\325\326%\210\317\327\321\322\330DD\331\325\332%\210\317\333\321\322\334DD\335\325\336%\210\317\337\321\322\340DD\341\325\336%\210\317\342\321\322\343DD\344\325\345%\210\317\346\321\322\347DD\350\325\336%\210\317\351\321\322\352DD\353\325\354%\207" [require replace cl-lib custom-declare-group kmacro nil "Simplified keyboard macro user interface." :group keyboard convenience :version "22.1" :link (emacs-commentary-link :tag "Commentary" "kmacro.el") (emacs-library-link :tag "Lisp File" "kmacro.el") custom-declare-variable kmacro-call-mouse-event funcall function #[0 "\300\207" [S-mouse-3] 1] "The mouse event used by kmacro to call a macro.\nSet to nil if no mouse binding is desired." :type symbol kmacro-ring-max #[0 "\300\207" [8] 1] "Maximum number of keyboard macros to save in macro ring." integer kmacro-execute-before-append #[0 "\300\207" [t] 1] "Controls whether appending to a macro starts by executing the macro.\nIf non-nil, using a single \\[universal-argument] prefix executes the macro\nbefore appending, while more than one \\[universal-argument] prefix does not\nexecute the macro.\nOtherwise, a single \\[universal-argument] prefix does not execute the\nmacro, while more than one \\[universal-argument] prefix causes the\nmacro to be executed before appending to it." boolean kmacro-repeat-no-prefix #[0 "\300\207" [t] 1] "Allow repeating certain macro commands without entering the C-x C-k prefix." kmacro-call-repeat-key #[0 "\300\207" [t] 1] "Allow repeating macro call using last key or a specific key." (choice (const :tag "Disabled" nil) (const :tag "Last key" t) (character :tag "Character" :value 101) (symbol :tag "Key symbol" :value RET)) kmacro-call-repeat-with-arg #[0 "\300\207" [nil] 1] "Repeat macro call with original arg when non-nil; repeat once if nil." kmacro-step-edit-mini-window-height #[0 "\300\207" [0.75] 1] "Override `max-mini-window-height' when step edit keyboard macro." number] 14) #@37 Keymap for keyboard macro commands. (defvar kmacro-keymap (byte-code "\300 \301\302\303#\210\301\304\303#\210\301\305\306#\210\301\307\310#\210\301\311\312#\210\301\313\314#\210\301\315\316#\210\301\317\320#\210\301\321\322#\210\301\323\324#\210\301\325\326#\210\301\327\330#\210\301\331\332#\210\301\333\334#\210\301\335\336#\210\301\337\340#\210\301\341\342#\210\301\343\344#\210\301\345\346#\210\301\347\350#\210\301\351\352#\210\301\353\354#\210\301\355\356#\210\211\207" [make-sparse-keymap define-key "s" kmacro-start-macro "" "" kmacro-end-or-call-macro-repeat "r" apply-macro-to-region-lines "q" kbd-macro-query "" kmacro-cycle-ring-next "" kmacro-cycle-ring-previous "" kmacro-view-macro-repeat "" kmacro-delete-ring-head "" kmacro-swap-ring "\f" kmacro-call-ring-2nd-repeat "" kmacro-set-format "" kmacro-set-counter " " kmacro-insert-counter "" kmacro-add-counter "" kmacro-edit-macro-repeat " " kmacro-edit-macro "e" edit-kbd-macro "l" kmacro-edit-lossage " " kmacro-step-edit-macro "b" kmacro-bind-to-key "n" kmacro-name-last-macro "x" kmacro-to-register] 5) (#$ . 2473)) (byte-code "\302\300\"\210 \203 \303\304 !\305\"\210\302\207" [kmacro-keymap kmacro-call-mouse-event defalias global-set-key vector kmacro-end-call-mouse] 3) (defalias 'kmacro-keyboard-quit #[0 "?\206 \301=\206 \302 \206 \303 \207" [defining-kbd-macro append kmacro-ring-empty-p kmacro-pop-ring] 2]) #@238 Current keyboard macro counter. This is normally initialized to zero when the macro is defined, and incremented each time the value of the counter is inserted into a buffer. See `kmacro-start-macro-or-insert-counter' for more details. (defvar kmacro-counter 0 (#$ . 3906)) (defvar kmacro-default-counter-format "%d") #@97 Current keyboard macro counter format. Can be set directly via `kmacro-set-format', which see. (defvar kmacro-counter-format "%d" (#$ . 4231)) #@43 Macro format at start of macro execution. (defvar kmacro-counter-format-start kmacro-counter-format (#$ . 4381)) #@44 Macro counter at start of macro execution. (defvar kmacro-counter-value-start kmacro-counter (#$ . 4500)) #@37 Last counter inserted by key macro. (defvar kmacro-last-counter 0 (#$ . 4612)) #@66 Initial counter value for the next keyboard macro to be defined. (defvar kmacro-initial-counter-value nil (#$ . 4697)) #@308 Insert current value of `kmacro-counter', then increment it by ARG. Interactively, ARG defaults to 1. With \[universal-argument], insert the previous value of `kmacro-counter', and do not increment the current value. The previous value of the counter is the one it had before the last increment. (fn ARG) (defalias 'kmacro-insert-counter #[257 "\203 \304\211:\203 \305\n\"c\207\305\n \"c\210\306\307!!\207" [kmacro-initial-counter-value kmacro-counter kmacro-counter-format kmacro-last-counter nil format kmacro-add-counter prefix-numeric-value] 4 (#$ . 4823) "P"]) #@60 Set the format of `kmacro-counter' to FORMAT. (fn FORMAT) (defalias 'kmacro-set-format #[257 "\211\304\232\203\n \305\202 \211 \206 \n?\205 \211\207" [kmacro-counter-format defining-kbd-macro executing-kbd-macro kmacro-default-counter-format "" "%d"] 3 (#$ . 5405) "sMacro Counter Format: "]) #@54 Display current counter value. (fn &optional VALUE) (defalias 'kmacro-display-counter #[256 "\211\204 \262\302\303\304 \"#\207" [kmacro-counter kmacro-counter-format message "New macro counter value: %s (%d)" format] 6 (#$ . 5711)]) #@189 Set the value of `kmacro-counter' to ARG, or prompt for value if no argument. With \[universal-argument] prefix, reset counter to its value prior to this iteration of the macro. (fn ARG) (defalias 'kmacro-set-counter #[257 "\204 \204 \306\211!\207 \203 <\203 \202 \211 ?\205' \306 \207" [defining-kbd-macro executing-kbd-macro kmacro-initial-counter-value kmacro-counter kmacro-last-counter current-prefix-arg kmacro-display-counter kmacro-counter-value-start] 4 (#$ . 5957) "NMacro counter value: "]) #@148 Add the value of numeric prefix arg (prompt if missing) to `kmacro-counter'. With \[universal-argument], restore previous counter value. (fn ARG) (defalias 'kmacro-add-counter #[257 "\203 \305\n \203 <\203 \211\202 \210 \\\210\f?\205&