;ELC ;;; Compiled by cyd@localhost on Mon Apr 23 22:20:32 2007 ;;; from file /home/cyd/emacs/lisp/autoarg.el ;;; in Emacs version 22.0.99 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. (if (and (boundp 'emacs-version) (< (aref emacs-version (1- (length emacs-version))) ?A) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19.29"))) (error "`autoarg.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@26 Keymap for Autoarg mode. (defvar autoarg-mode-map (byte-code "\303 \304\305 \nW\203*\306\307 \310\\!\311#\210\306\307\312 \310\\D!\313#\210 T\211\202*\306\314\315#\210)\207" [map i #1=#:--cl-dotimes-temp-- make-sparse-keymap 10 0 define-key vector 48 digit-argument control self-insert-command " " autoarg-terminate] 7) (#$ . 561)) (byte-code "\304B\305\304!\204.\306\304\307\310\311\n W\203*\312\313\314\n\"!\nB B\nT\211\202 +\"\210\307\207" [current-load-list alist i #:--cl-dotimes-temp-- autoarg-kp-digits default-boundp set-default nil 10 0 intern format "kp-%d"] 7) #@75 Part of the numeric argument for the next command, like `digit-argument'. (defalias 'autoarg-kp-digit-argument #[(arg) " \236A \250\203 \306_ \307W\203\n[\202\n\\\2026 \310=\2034\311\n!\203.\310\2020\n[\2026\n)\312 G \211\f\207" [last-command-char autoarg-kp-digits digit arg prefix-arg universal-argument-num-events 10 0 - zerop this-command-keys universal-argument-map overriding-terminal-local-map] 3 (#$ . 1161) "P"]) #@29 Keymap for Autoarg-KP mode. (defvar autoarg-kp-mode-map (byte-code "\304 \305\306 \nW\203$\307\310\311 \"!\312\313 !\314#\210) T\211\202*\312\315\316#\210)\207" [map i #1=#:--cl-dotimes-temp-- sym make-sparse-keymap 10 0 intern format "kp-%d" define-key vector autoarg-kp-digit-argument [kp-subtract] negative-argument] 5) (#$ . 1608)) #@106 Non-nil if Autoarg mode is enabled. See the command `autoarg-mode' for a description of this minor-mode. (custom-declare-variable 'autoarg-mode 'nil '(#$ . 1962) :set 'custom-set-minor-mode :initialize 'custom-initialize-default :group 'keyboard :type 'boolean) #@904 Toggle Autoarg minor mode globally. With ARG, turn Autoarg mode on if ARG is positive, off otherwise. \ In Autoarg mode digits are bound to `digit-argument' -- i.e. they supply prefix arguments as C-DIGIT and M-DIGIT normally do -- and C-DIGIT inserts DIGIT. \[autoarg-terminate] terminates the prefix sequence and inserts the digits of the autoarg sequence into the buffer. Without a numeric prefix arg the normal binding of \[autoarg-terminate] is invoked, i.e. what it would be with Autoarg mode off. For example: `6 9 \[autoarg-terminate]' inserts `69' into the buffer, as does `C-6 C-9'. `6 9 a' inserts 69 `a's into the buffer. `6 9 \[autoarg-terminate] \[autoarg-terminate]' inserts `69' into the buffer and then invokes the normal binding of \[autoarg-terminate]. `C-u \[autoarg-terminate]' invokes the normal binding of \[autoarg-terminate] four times. \{autoarg-mode-map} (defalias 'autoarg-mode #[(&optional arg) "\302=\203 ?\202%\203\303!\304V\202% \204\305\202%\306\307\301\"\210\310\311\312 \2030\313\2021\314\"\210\315 \203I\316\301!\210\306\317 \203F\320\202G\321\"\210\322 \210 \207" [arg autoarg-mode toggle prefix-numeric-value 0 t message "Toggling %s off; better pass an explicit argument." nil run-hooks autoarg-mode-hook autoarg-mode-on-hook autoarg-mode-off-hook called-interactively-p customize-mark-as-set "Autoarg mode %sabled" "en" "dis" force-mode-line-update] 3 (#$ . 2231) (list (or current-prefix-arg 'toggle))]) (add-minor-mode 'autoarg-mode " Aarg" autoarg-mode-map) #@266 Non-nil if Autoarg-Kp mode is enabled. See the command `autoarg-kp-mode' for a description of this minor-mode. Setting this variable directly does not take effect; either customize it (see the info node `Easy Customization') or call the function `autoarg-kp-mode'. (custom-declare-variable 'autoarg-kp-mode 'nil '(#$ . 3778) :set 'custom-set-minor-mode :initialize 'custom-initialize-default :group 'keyboard :type 'boolean) #@255 Toggle Autoarg-KP minor mode globally. With ARG, turn Autoarg mode on if ARG is positive, off otherwise. \ This is similar to \[autoarg-mode] but rebinds the keypad keys `kp-1' etc. to supply digit arguments. \{autoarg-kp-mode-map} (defalias 'autoarg-kp-mode #[(&optional arg) "\306=\203 ?\202%\203\307!\310V\202% \204\311\202%\312\313\301\"\210\314\211\203O\315\310\n W\203K\316\317\320\n\"!\321 \322\f!\323#\210)\nT\211\202/*\202s\315\310\nW\203r\316\317\320\n\"!\321 \322\f!\314#\210)\nT\211\202U*\324\325 \203}\326\202~\327\"\210\330 \203\226\331\301!\210\312\332 \203\223\333\202\224\334\"\210\335 \210 \207" [arg autoarg-kp-mode i #1=#:--cl-dotimes-temp-- sym universal-argument-map toggle prefix-numeric-value 0 t message "Toggling %s off; better pass an explicit argument." nil 10 intern format "kp-%d" define-key vector autoarg-kp-digit-argument run-hooks autoarg-kp-mode-hook autoarg-kp-mode-on-hook autoarg-kp-mode-off-hook called-interactively-p customize-mark-as-set "Autoarg-Kp mode %sabled" "en" "dis" force-mode-line-update #2=#:--cl-dotimes-temp--] 6 (#$ . 4210) (list (or current-prefix-arg 'toggle))]) (add-minor-mode 'autoarg-kp-mode " Aakp" autoarg-kp-mode-map) #@241 Maybe terminate a digit prefix sequence. With a non-negative numeric prefix arg, insert the digits comprising the arg into the current buffer. Otherwise use the binding of the key which invoked this function, excluding the Autoarg keymap. (defalias 'autoarg-terminate #[(n) "\247\203\n\303!c\207\304\305\306 !\211\205\307\n!*\207" [n autoarg-mode binding number-to-string nil key-binding this-single-command-keys call-interactively] 3 (#$ . 5457) "P"]) (provide 'autoarg)