;ELC ;;; Compiled by jkh@hoser.apple.com on Wed Feb 16 20:38:28 2005 ;;; from file /private/tmp/submission/1559/emacs/emacs/lisp/subr.el ;;; in Emacs version 21.2 ;;; with bytecomp version 1.1.1.4 ;;; 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 "`subr.el' was compiled for Emacs 19.29 or later")) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #@150 Record `defcustom' calls made before `custom.el' is loaded to handle them. Each element of this list holds the arguments to one call to `defcustom'. (defvar custom-declare-variable-list nil (#$ . 618)) (defalias 'custom-declare-variable-early #[(&rest arguments) " B\211\207" [arguments custom-declare-variable-list] 2]) #@702 Return a lambda expression. A call of the form (lambda ARGS DOCSTRING INTERACTIVE BODY) is self-quoting; the result of evaluating the lambda expression is the expression itself. The lambda expression may then be treated as a function, i.e., stored as the function value of a symbol, passed to funcall or mapcar, etc. ARGS should take the same form as an argument list for a `defun'. DOCSTRING is an optional documentation string. If present, it should describe how to call the function. But documentation strings are usually not useful in nameless functions. INTERACTIVE should be a call to the function `interactive', which see. It may also be omitted. BODY should be a list of lisp expressions. (defalias 'lambda '(macro . #[(&rest cdr) "\301\302BD\207" [cdr function lambda] 3 (#$ . 948)])) #@144 Add NEWELT to the list stored in the symbol LISTNAME. This is equivalent to (setq LISTNAME (cons NEWELT LISTNAME)). LISTNAME must be a symbol. (defalias 'push '(macro . #[(newelt listname) "\302\303 EE\207" [listname newelt setq cons] 5 (#$ . 1754)])) #@203 Return the first element of LISTNAME's value, and remove it from the list. LISTNAME must be a symbol whose value is a list. If the value is nil, `pop' returns nil but does not actually change the list. (defalias 'pop '(macro . #[(listname) "\301\302D\303\304DEE\207" [listname prog1 car setq cdr] 6 (#$ . 2015)])) #@51 If COND yields non-nil, do BODY, else return nil. (defalias 'when '(macro . #[(cond &rest body) "\302\303 BE\207" [cond body if progn] 4 (#$ . 2338)])) #@47 If COND yields nil, do BODY, else return nil. (defalias 'unless '(macro . #[(cond &rest body) "\302\303 BBB\207" [cond body if nil] 4 (#$ . 2497)])) #@173 (dolist (VAR LIST [RESULT]) BODY...): loop over a list. Evaluate BODY with VAR bound to each car from LIST, in turn. Then evaluate RESULT to get return value, default nil. (defalias 'dolist '(macro . #[(spec &rest body) "\303\304!\305 A@D @D\306\307 @\310DE\311\312\n\307\313DEC\"BF AA\2054\311\307 @\314E AABBF)\207" [temp spec body make-symbol "--dolist-temp--" let while setq car progn append cdr nil] 12 (#$ . 2654)])) #@247 (dotimes (VAR COUNT [RESULT]) BODY...): loop a certain number of times. Evaluate BODY with VAR bound to successive integers running from 0, inclusive, to COUNT, exclusive. Then evaluate RESULT to get the return value (nil if RESULT is omitted). (defalias 'dotimes '(macro . #[(spec &rest body) "\303\304!\305 A@D @\306DD\307\310 @E\311\312\n\313 @\314 @DEC\"BE AA\205. AA@F)\207" [temp spec body make-symbol "--dotimes-temp--" let 0 while < progn append setq 1+] 11 (#$ . 3091)])) #@33 Return the car of the car of X. (defalias 'caar #[(x) "@@\207" [x] 1 (#$ . 3583)]) (put 'caar 'byte-optimizer 'byte-compile-inline-expand) #@33 Return the car of the cdr of X. (defalias 'cadr #[(x) "A@\207" [x] 1 (#$ . 3729)]) (put 'cadr 'byte-optimizer 'byte-compile-inline-expand) #@33 Return the cdr of the car of X. (defalias 'cdar #[(x) "@A\207" [x] 1 (#$ . 3875)]) (put 'cdar 'byte-optimizer 'byte-compile-inline-expand) #@33 Return the cdr of the cdr of X. (defalias 'cddr #[(x) "AA\207" [x] 1 (#$ . 4021)]) (put 'cddr 'byte-optimizer 'byte-compile-inline-expand) #@190 Return the last link of the list X. Its car is the last element. If X is nil, return nil. If N is non-nil, return the Nth-to-last link of X. If N is bigger than the length of X, return X. (defalias 'last #[(x &optional n) "\2032\304 \n:\203 T\nA\211\202 \304X\203!\n\2020 W\203/ Z \233\2020 *\207 A:\203? A\211\2023 \207" [n x p m 0] 3 (#$ . 4168)]) #@58 Returns a copy of LIST with the last N elements removed. (defalias 'butlast #[(x &optional n) "\203\f\302X\203\f \207\303\304 !\"\207" [n x 0 nbutlast copy-sequence] 3 (#$ . 4544)]) #@46 Modifies LIST to remove the last N elements. (defalias 'nbutlast #[(x &optional n) "G\n\204 \303\n W\205\n\304V\203 S\nZ\233\305\241\210)\207" [x m n 1 0 nil] 2 (#$ . 4737)]) #@135 Return a copy of SEQ with all occurences of ELT removed. SEQ must be a list, vector, or string. The comparison is done with `equal'. (defalias 'remove #[(elt seq) "<\204\n\302 \"\207\302 \303!\"\207" [seq elt delete copy-sequence] 4 (#$ . 4929)]) #@93 Return a copy of LIST with all occurences of ELT removed. The comparison is done with `eq'. (defalias 'remq #[(elt list) " >\203 \302\303 !\"\207 \207" [elt list delq copy-sequence] 4 (#$ . 5187)]) #@424 Find object KEY in a pseudo-alist ALIST. ALIST is a list of conses or objects. Each element (or the element's car, if it is a cons) is compared with KEY by evaluating (TEST (car elt) KEY). If that is non-nil, the element matches; then `assoc-default' returns the element's cdr, if it is a cons, or DEFAULT if the element is not a cons. If no element matches, the value is nil. If TEST is omitted or nil, `equal' is used. (defalias 'assoc-default #[(key alist &optional test default) "\306\306\n\203> \204>\n@ \206\307\f:\203 \f@\202!\f \"\2036\310\f:\2033\fA\2025\n)\nA\211\204\n +\207" [alist value tail found elt test nil equal t key default] 4 (#$ . 5395)]) #@210 Like `assoc', but ignores differences in case and text representation. KEY must be a string. Upper-case and lower-case letters are treated as equal. Unibyte strings are converted to multibyte for comparison. (defalias 'assoc-ignore-case #[(key alist) "\303 \203%\204%\304\n\305\303 @@\305\303\306&\306=\203 @ A\211\204)\207" [element alist key nil compare-strings 0 t] 9 (#$ . 6085)]) #@146 Like `assoc', but ignores differences in text representation. KEY must be a string. Unibyte strings are converted to multibyte for comparison. (defalias 'assoc-ignore-representation #[(key alist) "\303 \203$\204$\304\n\305\303 @@\305\303&\306=\203 @ A\211\204)\207" [element alist key nil compare-strings 0 t] 8 (#$ . 6490)]) #@211 Like `member', but ignores differences in case and text representation. ELT must be a string. Upper-case and lower-case letters are treated as equal. Unibyte strings are converted to multibyte for comparison. (defalias 'member-ignore-case #[(elt list) "\203\302 \303\304@\303\304\305&\305=\204A\211\204\207" [list elt compare-strings 0 nil t] 9 (#$ . 6837)]) (defalias 'undefined #[nil "\300 \207" [ding] 1 nil nil]) (put 'undefined 'suppress-keymap t) #@218 Make MAP override all normally self-inserting keys to be undefined. Normally, as an exception, digits and minus-sign are set to make prefix args, but optional second arg NODIGITS non-nil treats them like other chars. (defalias 'suppress-keymap #[(map &optional nodigits) "\304\305\306 $\210\n\206+\307\310\311\312#\210\313\313\314X\205*\310\315 !\316#\210 T\211\202)\207" [map global-map nodigits loop substitute-key-definition self-insert-command undefined nil define-key "-" negative-argument 48 57 char-to-string digit-argument] 6 (#$ . 7310)]) #@47 Used internally by substitute-key-definition. (defvar key-substitution-in-progress nil (#$ . 7874)) #@290 Replace OLDDEF with NEWDEF for any keys in KEYMAP now defined as OLDDEF. In other words, OLDDEF is replaced with NEWDEF where ever it appears. Alternatively, if optional fourth argument OLDMAP is specified, we redefine in KEYMAP as NEWDEF those keys which are defined as OLDDEF in OLDMAP. (defalias 'substitute-key-definition #[(olddef newdef keymap &optional oldmap prefix) "\204\306 \206 \n\307\310!\311\f\" B :\205\326 @:\203\342 @@ @A\f\312I\210 GI\210\310\211\242;\203[@BA\211\202E:\203m@:\203mA\2119\203\206\313!\203\206K\211\202r=\204\243;\204\233\314!\203\261\232\203\261\315\n \237\244#\210\202\336\316!\203\336\317\n \"\211?\206\307\316!)\203\336>\204\336\320\n %\210,\202\317\314 @!\203\302 @\211G\312\312W\203\276H\f\312I\210 GI\210\310\211\242;\2031@BA\211\202:\203C@:\203CA\2119\203\\\313!\203\\K\211\202H=\204y;\204q\314!\203\207\232\203\207\315\n \237\244#\210\202\264\316!\203\264\317\n \"\211?\206\235\316!)\203\264>\204\264\320\n %\210,T\211\202\365+\202\317\321 @!\203\317\322\323 @\"\210 A\211\202,\207" [prefix oldmap keymap scan vec1 prefix1 "" vector nil vconcat 0 fboundp vectorp define-key keymapp lookup-key substitute-key-definition char-table-p map-char-table #[(char defn) "\306 I\210\n G I\210\307\211\242;\203%@\fBA\211\202:\2037@:\2037A\2119\203L\310 !\203L K\211\202;=\204i;\204a\311!\203v\232\203v\312\n\f\237\244#\202\243\313!\205\243\314\n\"\211?\206\215\313!)\205\243 >?\205\243\315 \n%*\207" [vec1 char prefix1 prefix skipped inner-def 0 nil fboundp vectorp define-key keymapp lookup-key substitute-key-definition defn olddef keymap newdef elt key-substitution-in-progress] 7] key-substitution-in-progress defn char skipped inner-def olddef newdef elt array len i] 7 (#$ . 7981)]) #@688 Add binding in KEYMAP for KEY => DEFINITION, right after AFTER's binding. This is like `define-key' except that the binding for KEY is placed just after the binding for the event AFTER, instead of at the beginning of the map. Note that AFTER must be an event type (like KEY), NOT a command (like DEFINITION). If AFTER is t or omitted, the new binding goes at the end of the keymap. KEY must contain just one event type--that is to say, it must be a string or vector of length 1, but AFTER should be a single event type--a symbol or a character, not a sequence. Bindings are always added before any inherited map. The order of bindings in a keymap matters when it is used as a menu. (defalias 'define-key-after #[(keymap key definition &optional after) "\204\306\307 !\204\310\311\307 D\"\210\nG\312V\203\313\314!\210 \315\211\n\316H ?\205\211\205\211A@\242 =\203D\211AA\241\210@\242=\203S\306=\203bA@\301=\204bA\204\201A@\301=\203m\306\f\204\n\316HBAB\241\210\306A\202),\207" [after keymap key first inserted done t keymapp signal wrong-type-argument 1 error "multi-event key specified in `define-key-after'" nil 0 tail definition] 5 (#$ . 10006)]) #@161 Convert KEYS to the internal Emacs key representation. KEYS should be a string constant in the format used for saving keyboard macros (see `insert-kbd-macro'). (defalias 'kbd '(macro . #[(keys) "\301!\207" [keys read-kbd-macro] 2 (#$ . 11219)])) (put 'keyboard-translate-table 'char-table-extra-slots 0) #@147 Translate character FROM to TO at a low level. This function creates a `keyboard-translate-table' if necessary and then modifies one entry in it. (defalias 'keyboard-translate #[(from to) "\303!\204 \304\300\305\" \nI\207" [keyboard-translate-table from to char-table-p make-char-table nil] 3 (#$ . 11531)]) #@148 Default global keymap mapping Emacs keyboard input into commands. The value is a keymap which is usually (but not necessarily) Emacs's global map. (defvar global-map nil (#$ . 11850)) #@117 Default keymap for ESC (meta) commands. The normal global definition of the character ESC indirects to this keymap. (defvar esc-map nil (#$ . 12041)) #@110 Default keymap for C-x commands. The normal global definition of the character C-x indirects to this keymap. (defvar ctl-x-map nil (#$ . 12198)) #@33 Keymap for subcommands of C-x 4 (defvar ctl-x-4-map (make-sparse-keymap) (#$ . 12349)) (byte-code "\302\303\"\210\304 \305\303#\207" [ctl-x-4-map ctl-x-map defalias ctl-x-4-prefix define-key "4"] 4) #@28 Keymap for frame commands. (defvar ctl-x-5-map (make-sparse-keymap) (#$ . 12555)) (byte-code "\304\305\"\210\306 \307\305#\210\303\nB\310\311\312!\313\"\304\207" [ctl-x-5-map ctl-x-map current-load-list listify-key-sequence-1 defalias ctl-x-5-prefix define-key "5" logior read "?\\M-\\^@" 128] 4) #@45 Convert a key sequence to a list of events. (defalias 'listify-key-sequence #[(key) "\301!\203 \302\303\"\207\304\305\302\303\"\"\207" [key vectorp append nil mapcar #[(c) "\302V\203 \303 \"\207\207" [c listify-key-sequence-1 127 logxor] 3]] 5 (#$ . 12861)]) #@42 True if the argument is an event object. (defalias 'eventp #[(obj) "\250\2069\203\301N\206:\205@9\205@\301N\207" [obj event-symbol-elements] 2 (#$ . 13134)]) (put 'eventp 'byte-optimizer 'byte-compile-inline-expand) #@213 Returns a list of symbols representing the modifier keys in event EVENT. The elements of the list may include `meta', `control', `shift', `hyper', `super', `alt', `click', `double', `triple', `drag', and `down'. (defalias 'event-modifiers #[(event) "\211<\203\n @ 9\203 \303NA\202~\304\305\306 \307\"!\204%\310\nB\305\306 \311\"!\2037\306 \312\"\313Y\204;\314\nB\305\306 \315\"!\203Q\306 \316\"\306 \316\"\227U\204U\317\nB\305\306 \320\"!\204b\321\nB\305\306 \322\"!\204o\323\nB\305\306 \324\"!\204|\325\nB\n))\207" [event type list event-symbol-elements nil zerop logand -134217728 meta 67108864 127 32 control 33554432 255 shift 16777216 hyper 8388608 super 4194304 alt] 5 (#$ . 13373)]) #@132 Returns the basic type of the given event (all modifiers removed). The value is a printing character (not upper case) or a symbol. (defalias 'event-basic-type #[(event) ":\203@9\203\302N@\207\303\304\305\306\"S\"\211\307W\203(\310 \311\"\202) \227)\207" [event base event-symbol-elements logand lsh 1 18 32 logior 64] 6 (#$ . 14092)]) #@53 Return non-nil if OBJECT is a mouse movement event. (defalias 'mouse-movement-p #[(object) ":\205 @\301=\207" [object mouse-movement] 2 (#$ . 14446)]) (put 'mouse-movement-p 'byte-optimizer 'byte-compile-inline-expand) #@318 Return the starting position of EVENT. If EVENT is a mouse press or a mouse click, this returns the location of the event. If EVENT is a drag, this returns the drag's starting position. The return value is of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) The `posn-' functions access elements of such lists. (defalias 'event-start #[(event) "A@\207" [event] 1 (#$ . 14675)]) (put 'event-start 'byte-optimizer 'byte-compile-inline-expand) #@280 Return the ending location of EVENT. EVENT should be a click or drag event. If EVENT is a click event, this function is the same as `event-start'. The return value is of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) The `posn-' functions access elements of such lists. (defalias 'event-end #[(event) "\3018:\203 \301\202\f\3028\207" [event 2 1] 2 (#$ . 15130)]) (put 'event-end 'byte-optimizer 'byte-compile-inline-expand) #@103 Return the multi-click count of EVENT, a click or drag event. The return value is a positive integer. (defalias 'event-click-count #[(event) "\3018\250\203 \3018\207\302\207" [event 2 1] 2 (#$ . 15574)]) (put 'event-click-count 'byte-optimizer 'byte-compile-inline-expand) #@176 Return the window in POSITION. POSITION should be a list of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) as returned by the `event-start' and `event-end' functions. (defalias 'posn-window #[(position) "@\207" [position] 1 (#$ . 15857)]) (put 'posn-window 'byte-optimizer 'byte-compile-inline-expand) #@185 Return the buffer location in POSITION. POSITION should be a list of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) as returned by the `event-start' and `event-end' functions. (defalias 'posn-point #[(position) "A@:\203\fA@@\207A@\207" [position] 1 (#$ . 16175)]) (put 'posn-point 'byte-optimizer 'byte-compile-inline-expand) #@189 Return the x and y coordinates in POSITION. POSITION should be a list of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) as returned by the `event-start' and `event-end' functions. (defalias 'posn-x-y #[(position) "\3018\207" [position 2] 2 (#$ . 16520)]) (put 'posn-x-y 'byte-optimizer 'byte-compile-inline-expand) #@337 Return the column and row in POSITION, measured in characters. POSITION should be a list of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) as returned by the `event-start' and `event-end' functions. For a scroll-bar event, the result column is 0, and the row corresponds to the vertical position of the click in the scroll bar. (defalias 'posn-col-row #[(position) "\3068\211@)A@:\203A@@\202A@\307=\203,\310\311\n\312 !S\"B\202mA@:\203:A@@\202=A@\313=\203M\311\n\314 !\"\310B\202m\315 !\203W \202Z\316 !\n@\317 !\245\nA\320 !\245\f +B*\207" [position window pair frame x y 2 vertical-scroll-bar 0 scroll-bar-scale window-height horizontal-scroll-bar window-width framep window-frame frame-char-width frame-char-height] 6 (#$ . 16851)]) #@179 Return the timestamp of POSITION. POSITION should be a list of the form (WINDOW BUFFER-POSITION (X . Y) TIMESTAMP) as returned by the `event-start' and `event-end' functions. (defalias 'posn-timestamp #[(position) "\3018\207" [position 3] 2 (#$ . 17628)]) (byte-code "\300\301\302\303#\210\304\305\306\"\210\304\307\310\"\210\304\311\312\"\210\304\313\314\"\210\304\315\316\"\210\304\317\320\"\210\304\321\322\"\210\304\323\324\"\210\304\325\326\"\210\304\327\330\"\210\304\331\332\"\210\304\333\334\"\210\304\335\336\"\210\304\337\304\"\210\304\340\341\"\210\342\340\341\343#\210\342\344\345\343#\207" [put posn-timestamp byte-optimizer byte-compile-inline-expand defalias dot point dot-marker point-marker dot-min point-min dot-max point-max window-dot window-point set-window-dot set-window-point read-input read-string send-string process-send-string send-region process-send-region show-buffer set-window-buffer buffer-flush-undo buffer-disable-undo eval-current-buffer eval-buffer compiled-function-p byte-code-function-p define-function sref aref make-obsolete "20.4" char-bytes "Now this function always returns 1"] 4) #@139 Obsolete function returning the value of the `baud-rate' variable. Please convert your programs to use the variable `baud-rate' directly. (defalias 'baud-rate #[nil "\207" [baud-rate] 1 (#$ . 18766)]) (byte-code "\300\301\302\"\210\300\303\302\"\210\300\304\305\"\210\300\306\307\"\210\300\310\311\"\210\300\312\313\"\210\300\314\315\"\210\300\316\317\"\210\300\320\321\"\210\300\322\323\"\210\300\324\325\"\210\300\326\327K\"\210\300\330\331K\"\210\300\332\333\"\210\300\334\335\"\210\300\336\337\"\210\300\340\341\"\210\300\342\343\"\207" [defalias focus-frame ignore unfocus-frame string= string-equal string< string-lessp move-marker set-marker not null rplaca setcar rplacd setcdr beep ding indent-to-column indent-to backward-delete-char delete-backward-char search-forward-regexp re-search-forward search-backward-regexp re-search-backward int-to-string number-to-string store-match-data set-match-data point-at-eol line-end-position point-at-bol line-beginning-position string-to-int string-to-number] 3) #@883 Make the hook HOOK local to the current buffer. The return value is HOOK. You never need to call this function now that `add-hook' does it for you if its LOCAL argument is non-nil. When a hook is local, its local and global values work in concert: running the hook actually runs all the hook functions listed in *either* the local value *or* the global value of the hook variable. This function works by making `t' a member of the buffer-local value, which acts as a flag to run the hook functions in the default value as well. This works for all normal hooks, but does not work for most non-normal hooks yet. We will be changing the callers of non-normal hooks so that they can handle localness; this has to be done one by one. This function does nothing if HOOK is already local in the current buffer. Do not use `make-local-variable' to make a hook variable buffer-local. (defalias 'make-local-hook #[(hook) "\301!\204\302!\204\303L\210\304!\210\305CL\210\207" [hook local-variable-p boundp nil make-local-variable t] 2 (#$ . 19787)]) #@700 Add to the value of HOOK the function FUNCTION. FUNCTION is not added if already present. FUNCTION is added (if necessary) at the beginning of the hook list unless the optional argument APPEND is non-nil, in which case FUNCTION is added at the end. The optional fourth argument, LOCAL, if non-nil, says to modify the hook's buffer-local value rather than its default value. This makes the hook buffer-local if needed. To make a hook variable buffer-local, always use `make-local-hook', not `make-local-variable'. HOOK should be a symbol, and FUNCTION may be any valid function. If HOOK is void, it is first set to nil. If HOOK's value is a single function, it is changed to a list of functions. (defalias 'add-hook #[(hook function &optional append local) "\305!\204\n\306L\210\307!\204\310\306\"\210 \203&\311!\2045\312!\210\2025J:\2033\313J>\2045\313 \203>J\202A\314!\211<\203N\n@\315=\203Q\nC \n\235\204g\f\203c\304\n C\"\202f \nB \203q\nL\202u\310\n\")\207" [hook local hook-value function append boundp nil default-boundp set-default local-variable-if-set-p make-local-hook t default-value lambda] 4 (#$ . 20849)]) #@528 Remove from the value of HOOK the function FUNCTION. HOOK should be a symbol, and FUNCTION may be any valid function. If FUNCTION isn't the value of HOOK, or, if FUNCTION doesn't appear in the list of hooks to run in HOOK, then nothing is done. See `add-hook'. The optional third argument, LOCAL, if non-nil, says to modify the hook's buffer-local value rather than its default value. This makes the hook buffer-local if needed. To make a hook variable buffer-local, always use `make-local-hook', not `make-local-variable'. (defalias 'remove-hook #[(hook function &optional local) "\304!\204\n\305L\210\306!\204\307\305\"\210 \203&\310!\2045\311!\210\2025J:\2033\312J>\2045\312 \203>J\202A\313!\211<\203N\n@\314=\203Y\n \232\203`\305\202`\315 \316\n!\" \203j\nL\202n\307\n\")\207" [hook local hook-value function boundp nil default-boundp set-default local-variable-if-set-p make-local-hook t default-value lambda delete copy-sequence] 5 (#$ . 22013)]) #@613 Add to the value of LIST-VAR the element ELEMENT if it isn't there yet. The test for presence of ELEMENT is done with `equal'. If ELEMENT is added, it is added at the beginning of the list, unless the optional argument APPEND is non-nil, in which case ELEMENT is added at the end. If you want to use `add-to-list' on a variable that is not defined until a certain package is loaded, you should put the call to `add-to-list' into a hook function that will be run only after loading the package. `eval-after-load' provides one way to do this. In some cases other hooks, such as major mode hooks, can do the job. (defalias 'add-to-list #[(list-var element &optional append) " J\235\203\n J\207 \n\203\302 JC\"\202 JBL\207" [element list-var append] 4 (#$ . 23008)]) #@386 Arrange that, if FILE is ever loaded, FORM will be run at that time. This makes or adds to an entry on `after-load-alist'. If FILE is already loaded, evaluate FORM right now. It does nothing if FORM is already on the list for FILE. FILE must match exactly. Normally FILE is the name of a library, with no directory or extension specified, since that is how `load' is normally called. (defalias 'eval-after-load #[(file form) "\305 \210\306 \"\204C B\306 \" \nA\235\204+\n C\244\210\306\f\"\203+\307 !\210) \207" [file after-load-alist elt form load-history load-symbol-file-load-history assoc eval] 3 (#$ . 23788)]) #@184 Read the following input sexp, and run it whenever FILE is loaded. This makes or adds to an entry on `after-load-alist'. FILE should be the name of a library, with no directory name. (defalias 'eval-next-after-load #[(file) "\301\302 \"\207" [file eval-after-load read] 3 (#$ . 24422)]) #@109 *Radix for \[quoted-insert] and other uses of `read-quoted-char'. Legitimate radix values are 8, 10 and 16. (defvar read-quoted-char-radix 8 (#$ . -24717)) (custom-declare-variable-early 'read-quoted-char-radix 8 "*Radix for \\[quoted-insert] and other uses of `read-quoted-char'.\nLegitimate radix values are 8, 10 and 16." :type '(choice (const 8) (const 10) (const 16)) :group 'editing-basics) #@464 Like `read-char', but do not allow quitting. Also, if the first character read is an octal digit, we read any number of octal digits and return the specified character code. Any nondigit terminates the sequence. If the terminator is RET, it is discarded; any other terminator is used itself as input. The optional argument PROMPT specifies a string to use to prompt the user. The variable `read-quoted-char-radix' controls which radix to use for numeric input. (defalias 'read-quoted-char #[(&optional prompt) "\306\211\307\310\306 \204\355\n\306\311\312\205!\313\314\"\307\"\203,\306 +\203G\315!\316!\"\"\317\"!\203F\"\310H)\203\350\250\204YC#\307\202\350\320\321\"\310U\204o\322\320\323\"\324\"\307\202\350\325X\203\231\326$^\325\\W\203\231 $_\325Z\\\203\350\327\330#\202\350\331\227X\203\310\227\332$^\333\\W\203\310 $_\227\331Z\326\\\\\203\350\327\330#\202\350\n\204\327\334=\203\327\307\202\350\n\204\344C#\307\202\350\307\306\202\n -\207" [char code first done message-log-max help-form nil t 0 "Type the special character you want to use,\nor the octal character code.\nRET terminates the character code and is discarded;\nany other non-digit terminates the character code and is then used as input." read-event format "%s-" lookup-key vector arrayp logand -134217728 logior 134217727 128 48 10 message "%s %c" 97 26 87 13 help-char inhibit-quit prompt quit-flag function-key-map translated unread-command-events read-quoted-char-radix] 5 (#$ . 25121)]) #@285 Read a password, prompting with PROMPT. Echo `.' for each character typed. End with RET, LFD, or ESC. DEL or C-h rubs out. C-u kills line. Optional argument CONFIRM, if non-nil, then read it twice to make sure. Optional DEFAULT is a default password to use instead of empty input. (defalias 'read-passwd #[(prompt &optional confirm default) "\203Q\306 \204N\307\n\306 #\307\310\306 #\211\f\232\203,\311\f!\203'\312\f\313\"\210 \202J\311 !\2037\312 \313\"\210\311\f!\203B\312\f\313\"\210\314\315!\210\316\317!\210*\202 )\207\306\313\211\320 !\"\314\321\n\322\"G\323\"#\210\324\306\320\"\211!\325U\204\374!\326U\204\374!\327U\204\374\330 \210!\331U\203\237\311\"!\203\231\312\"\313\"\210\332\"\202]!\333U\204\330!\334U\204\330\335!!#\"#P$\311\"!\203\307\312\"\313\"\210\312#\313\"\210\313!$\"*\202]\"G\313V\203]\"\313\336O$\311\"!\203\364\312\"\313\"\210$\")\202]\314\306!\210\"\206\n \206\n\332,\207" [confirm success prompt default second first nil read-passwd "Confirm password: " arrayp fillarray 0 message "Password not repeated accurately; please start over" sit-for 1 t "%s%s" make-string 46 read-char-exclusive 13 10 27 clear-this-command-keys 21 "" 8 127 char-to-string -1 cursor-in-echo-area echo-keystrokes c pass new-char new-pass] 7 (#$ . 26684)]) #@124 Force the mode-line of the current buffer to be redisplayed. With optional non-nil ALL, force redisplay of all mode-lines. (defalias 'force-mode-line-update #[(&optional all) "\203\n\212\301 q\210)\302\303 !\207" [all other-buffer set-buffer-modified-p buffer-modified-p] 2 (#$ . 28016)]) #@375 Momentarily display STRING in the buffer at POS. Display remains until next character is typed. If the char is EXIT-CHAR (optional third arg, default is SPC) it is swallowed; otherwise it is then available as input (as a command if nothing else). Display MESSAGE (optional fourth arg) in the echo area. If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there. (defalias 'momentary-string-display #[(string pos &optional exit-char message) "\204\306\307\211\310 \311\312\216\212b\210\311\313!\210`\314\311\307\"\nW\2032\315\316 \317\245!\210\320\321!\210`V\203Eb\210\315\321!\210)\322\206M\323\324!\"\210\325 \211=\206bC\211.\207" [exit-char buffer-file-name insert-end name modified buffer-undo-list 32 t buffer-modified-p nil ((byte-code "\203\n\212 |\210)\n\305\f!\207" [insert-end pos name buffer-file-name modified set-buffer-modified-p] 2)) insert-before-markers window-end recenter window-height 2 move-to-window-line 0 message "Type %s to continue editing." single-key-description read-event inhibit-read-only pos string char unread-command-events] 6 (#$ . 28314)]) (byte-code "\301B\302\301!\204\f\303\303\207" [current-load-list font-lock-defaults boundp nil] 2) #@56 Normal hook run by `suspend-emacs', before suspending. (defvar suspend-hook nil (#$ . 29550)) #@63 Normal hook run by `suspend-emacs', after Emacs is continued. (defvar suspend-resume-hook nil (#$ . 29650)) #@218 Non-nil if the visited file is a binary file. This variable is meaningful on MS-DOG and Windows NT. On those systems, it is automatically local in every buffer. On other systems, this variable is normally always nil. (defvar buffer-file-type nil (#$ . 29765)) #@118 Return windows currently displaying BUFFER, or nil if none. See `walk-windows' for the meaning of MINIBUF and FRAME. (defalias 'get-buffer-window-list #[(buffer &optional minibuf frame) "\304!\203\n\202 \305!\306\307\310\n #\210 *\207" [buffer windows minibuf frame bufferp get-buffer nil walk-windows #[(window) "\303! =\205 \nB\211\207" [window buffer windows window-buffer] 2]] 4 (#$ . 30032)]) #@93 Do nothing and return nil. This function accepts any number of arguments, but ignores them. (defalias 'ignore #[(&rest ignore) "\300\207" [nil] 1 (#$ . 30447) nil]) #@240 Signal an error, making error message by passing all args to `format'. In Emacs, the convention is that error messages start with a capital letter but *do not* end with a period. Please follow this convention for the sake of consistency. (defalias 'error #[(&rest args) "\301\302\303\304\"C\"\210\202" [args signal error apply format] 5 (#$ . 30619)]) (defalias 'user-original-login-name 'user-login-name) #@641 Start a program in a subprocess. Return the process object for it. Args are NAME BUFFER COMMAND &rest COMMAND-ARGS. NAME is name for process. It is modified if necessary to make it unique. BUFFER is the buffer or (buffer-name) to associate with the process. Process output goes at end of that buffer, unless you specify an output stream or filter function to handle the output. BUFFER may be also nil, meaning that this process is not associated with any buffer Third arg is command name, the name of a shell command. Remaining arguments are the arguments for the command. Wildcards and redirection are handled as usual in the shell. (defalias 'start-process-shell-command #[(name buffer &rest args) "\306=\203 \307\310 \n $\207\310 \n\f \311\312 \313#%\207" [system-type name buffer args shell-file-name shell-command-switch vax-vms apply start-process mapconcat identity " "] 9 (#$ . 31036)]) #@149 Execute the forms in BODY with BUFFER as the current buffer. The value returned is the value of the last form in BODY. See also `with-temp-buffer'. (defalias 'with-current-buffer '(macro . #[(buffer &rest body) "\302\303D BB\207" [buffer body save-current-buffer set-buffer] 3 (#$ . 31946)])) #@160 Create a new buffer, evaluate BODY there, and write the buffer to FILE. The value returned is the value of the last form in BODY. See also `with-temp-buffer'. (defalias 'with-temp-file '(macro . #[(file &rest body) "\304\305!\304\306!\307 \nD\310BD\311\312\313 BB\313\314\315\316\317 \320BBBBFE\321\322D\323DEEE*\207" [temp-buffer temp-file file body make-symbol "temp-file" "temp-buffer" let ((get-buffer-create (generate-new-buffer-name " *temp file*"))) unwind-protect prog1 with-current-buffer (widen) write-region (point-min) (point-max) (nil 0) and buffer-name kill-buffer] 13 (#$ . 32247)])) #@403 Display MESSAGE temporarily if non-nil while BODY is evaluated. The original message is restored to the echo area after BODY has finished. The value returned is the value of the last form in BODY. MESSAGE is written to the message log buffer if `message-log-max' is non-nil. If MESSAGE is nil, the echo area and message log buffer are unchanged. Use a MESSAGE of "" to temporarily clear the echo area. (defalias 'with-temp-message '(macro . #[(message &rest body) "\304\305!\304\306!\307\nD CD\310\311\312\313 \314BB\302\315EF BB\316 \302\315 EFEE*\207" [temp-message current-message message body make-symbol "current-message" "with-temp-message" let unwind-protect progn when setq ((current-message)) "%s" and] 10 (#$ . 32860)])) #@121 Create a temporary buffer, and evaluate BODY there like `progn'. See also `with-temp-file' and `with-output-to-string'. (defalias 'with-temp-buffer '(macro . #[(&rest body) "\302\303!\304\305BC\306\307 BB\310\311D\312DEEE)\207" [temp-buffer body make-symbol "temp-buffer" let ((get-buffer-create (generate-new-buffer-name " *temp*"))) unwind-protect with-current-buffer and buffer-name kill-buffer] 8 (#$ . 33604)])) #@74 Execute BODY, return the text it sent to `standard-output', as a string. (defalias 'with-output-to-string '(macro . #[(&rest body) "\301\302\301\303BB\304BBB\207" [body let ((standard-output (get-buffer-create (generate-new-buffer-name " *string-output*")))) ((standard-output standard-output)) ((with-current-buffer standard-output (prog1 (buffer-string) (kill-buffer nil))))] 5 (#$ . 34032)])) #@497 Execute BODY, but don't call the after-change functions till the end. If BODY makes changes in the buffer, they are recorded and the functions on `after-change-functions' are called several times when BODY is finished. The return value is the value of the last form in BODY. If `before-change-functions' is non-nil, then calls to the after-change functions can't be deferred, so in that case this macro has no effect. Do not alter `after-change-functions' or `before-change-functions' in BODY. (defalias 'combine-after-change-calls '(macro . #[(&rest body) "\301\302\303BB\304BB\207" [body unwind-protect let ((combine-after-change-calls t)) ((combine-after-change-execute))] 4 (#$ . 34436)])) #@238 Evaluate BODY with syntax table of current buffer set to a copy of TABLE. The syntax table of the current buffer is saved, BODY is evaluated, and the saved table is restored, even in case of an abnormal exit. Value is what BODY returns. (defalias 'with-syntax-table '(macro . #[(table &rest body) "\304\305!\304\306!\307 \310B\311BD\312\313\314\315\nDD BB\316\317D\314 DEEE*\207" [old-buffer old-table table body make-symbol "table" "buffer" let ((syntax-table)) ((current-buffer)) unwind-protect progn set-syntax-table copy-syntax-table save-current-buffer set-buffer] 8 (#$ . 35140)])) (byte-code "\301B\301\207" [current-load-list save-match-data-internal] 2) #@71 Execute the BODY forms, restoring the global value of the match data. (defalias 'save-match-data '(macro . #[(&rest body) "\301\302\303\304B\305EE\207" [body let ((save-match-data-internal (match-data))) unwind-protect progn (set-match-data save-match-data-internal)] 5 (#$ . 35815)])) #@336 Return string of text matched by last search. NUM specifies which parenthesized expression in the last regexp. Value is nil if NUMth pair didn't match, or there were less than NUM pairs. Zero means the entire text matched by the whole regexp or whole string. STRING should be given if the last search was by `string-match' on STRING. (defalias 'match-string #[(num &optional string) "\224\205 \203 \224\225O\207\224\225{\207" [num string] 3 (#$ . 36109)]) #@361 Return string of text matched by last search, without text properties. NUM specifies which parenthesized expression in the last regexp. Value is nil if NUMth pair didn't match, or there were less than NUM pairs. Zero means the entire text matched by the whole regexp or whole string. STRING should be given if the last search was by `string-match' on STRING. (defalias 'match-string-no-properties #[(num &optional string) "\224\205! \203 \224\225O\303\304\nG\305\n$\210\n)\207\306\224\225\"\207" [num string result set-text-properties 0 nil buffer-substring-no-properties] 5 (#$ . 36582)]) #@527 Splits STRING into substrings where there are matches for SEPARATORS. Each match for SEPARATORS is a splitting point. The substrings between the splitting points are made into a list which is returned. If SEPARATORS is absent, it defaults to "[ \f\t\n\r\v]+". If there is match for SEPARATORS at the beginning of STRING, we do not include a null substring for that. Likewise, if there is a match at the end of STRING, we don't include a null substring for that. Modifies the match data; use `save-match-data' if necessary. (defalias 'split-string #[(string &optional separators) "\206\306\307\310\211\311\f \n\203& \307\224U\203& GW\203& T\202' #\203Y\307\224 GW\203Y\312\307\224\307=\204S\307\224\307\225=\203K\307\224 =\204S \307\224O B\307\225\202\f G=\204g \310O B \237,\207" [separators list notfirst start rexp string "[ \f \n ]+" 0 nil string-match t] 5 (#$ . 37189)]) #@127 Replace FROMCHAR with TOCHAR in STRING each time it occurs. Unless optional argument INPLACE is non-nil, return a new string. (defalias 'subst-char-in-string #[(fromchar tochar string &optional inplace) "G \203\n\202 \306! \307V\203( S\n H\f=\203\n I\210\202\n*\207" [string inplace newstr i fromchar tochar copy-sequence 0] 3 (#$ . 38102)]) #@749 Replace all matches for REGEXP with REP in STRING. Return a new string containing the replacements. Optional arguments FIXEDCASE, LITERAL and SUBEXP are like the arguments with the same names of function `replace-match'. If START is non-nil, start replacements at that index in STRING. REP is either a string used as the NEWTEXT arg of `replace-match' or a function. If it is a function it is applied to each match to generate the replacement passed to `replace-match'; the match-data at this point are such that match 0 is the function's argument. To replace only the first match (if any), make REGEXP match up to \' and replace a sub-expression, e.g. (replace-regexp-in-string "\(foo\).*\'" "bar" " foo foo" nil nil 1) => " bar foo"  (defalias 'replace-regexp-in-string #[(regexp rep string &optional fixedcase literal subexp start) "G \206\306\307\211\211\211\310 \311\216 W\203n\312 #\203n\306\224\306\225\211 U\203: T^\312 \nO\211\"\210\313;\203Q\202X\314\306\f\"!\f% O BB\n\211\202 O B\315\316 \237\".\207" [string start me mb str matches 0 nil match-data ((set-match-data save-match-data-internal)) string-match replace-match match-string apply concat l save-match-data-internal regexp rep fixedcase literal subexp] 7 (#$ . 38465)]) #@65 Quote an argument for passing as argument to an inferior shell. (defalias 'shell-quote-argument #[(argument) "\305=\203C\306\307\310\311\312\f\"\203\307\225\fGW\2039\311\313\f\n#\2039\307\224 \f\n O\314\f \211TOR T\202\315 \f\n\310O\315R+\207\316=\203N\315\f\315Q\207\f\306\232\203V\317\207\306\307\310\311\320\f\n#\203z\307\224 \f\n O\314\f \211TOR T\202\\ \f\n\310OP+\207" [system-type end start result argument ms-dos "" 0 nil string-match "[^\"]" "[\"]" "\\" "\"" windows-nt "''" "[^-0-9a-zA-Z_./]"] 6 (#$ . 39777)]) #@242 Return a new syntax table. If OLDTABLE is non-nil, copy OLDTABLE. Otherwise, create a syntax table which inherits all letters and control characters from the standard syntax table; other characters are copied from the standard syntax table. (defalias 'make-syntax-table #[(&optional oldtable) "\203\303!\207\303 \304\305\305\306X\203!\n \304I\210 T\211\202\307\307\310X\2035\n \304I\210 T\211\202$\311\311\312X\203I\n \304I\210 T\211\2028\313\313\314X\203]\n \304I\210 T\211\202L\n*\207" [oldtable i table copy-syntax-table nil 0 31 65 90 97 122 128 255] 4 (#$ . 40330)]) #@138 Add elements to `buffer-invisibility-spec'. See documentation for `buffer-invisibility-spec' for the kind of elements that can be added. (defalias 'add-to-invisibility-spec #[(arg) "\203\n\302=\203 C\211\207 B\211\207" [buffer-invisibility-spec arg t] 2 (#$ . 40932)]) #@50 Remove elements from `buffer-invisibility-spec'. (defalias 'remove-from-invisibility-spec #[(arg) ":\205 \302 \"\211\207" [buffer-invisibility-spec arg delete] 3 (#$ . 41215)]) #@505 Give KEY a global binding as COMMAND. COMMAND is the command definition to use; usually it is a symbol naming an interactively-callable function. KEY is a key sequence; noninteractively, it is a string or vector of characters or event types, and non-ASCII characters with codes above 127 (such as ISO Latin-1) can be included if you use a vector. Note that if KEY has a local binding in the current buffer, that local binding will continue to shadow any global binding that you make with this function. (defalias 'global-set-key #[(key command) "\302!\204;\204\303\304\305D\"\210\306\307  #\207" [key command vectorp signal wrong-type-argument arrayp define-key current-global-map] 4 (#$ . 41403) "KSet key globally: \nCSet key %s to command: "]) #@477 Give KEY a local binding as COMMAND. COMMAND is the command definition to use; usually it is a symbol naming an interactively-callable function. KEY is a key sequence; noninteractively, it is a string or vector of characters or event types, and non-ASCII characters with codes above 127 (such as ISO Latin-1) can be included if you use a vector. The binding goes in the current buffer's local map, which in most cases is shared with all other buffers in the same major mode. (defalias 'local-set-key #[(key command) "\303 \211\204\304\305 \211!\210\306 !\204 ;\204 \307\310\311 D\"\210\312 \n#)\207" [map key command current-local-map use-local-map make-sparse-keymap vectorp signal wrong-type-argument arrayp define-key] 5 (#$ . 42166) "KSet key locally: \nCSet key %s locally to command: "]) #@86 Remove global binding of KEY. KEY is a string representing a sequence of keystrokes. (defalias 'global-unset-key #[(key) "\301\302\"\207" [key global-set-key nil] 3 (#$ . 42975) "kUnset key globally: "]) #@85 Remove local binding of KEY. KEY is a string representing a sequence of keystrokes. (defalias 'local-unset-key #[(key) "\301 \203\n\302\303\"\210\303\207" [key current-local-map local-set-key nil] 3 (#$ . 43186) "kUnset key locally: "]) #@145 Return non-nil if OBJECT seems to be a frame configuration. Any list whose car is `frame-configuration' is assumed to be a frame configuration. (defalias 'frame-configuration-p #[(object) ":\205 @\301=\207" [object frame-configuration] 2 (#$ . 43432)]) #@73 Non-nil if OBJECT is a type of object that can be called as a function. (defalias 'functionp #[(object) "\301!\206\302!\206\242\303=\2069\205\304!\207" [object subrp byte-code-function-p lambda fboundp] 2 (#$ . 43694)]) #@176 Return the interactive form of FUNCTION. If function is a command (see `commandp'), value is a list of the form (interactive SPEC). If function is not a command, return nil. (defalias 'interactive-form #[(function) "\304!\305!\205X\306!\203)G\307V\205X\307H\211\203%\310 D\202'\310C)\207\311!\2033\312!\207\242\313=\205X\211AA)\211@;\203JA@\211\242\310=\205W\314 !)\207" [function spec x form indirect-function commandp byte-code-function-p 5 interactive subrp subr-interactive-form lambda copy-sequence] 3 (#$ . 43934)]) #@77 Delete from ALIST all elements whose car is KEY. Return the modified alist. (defalias 'assq-delete-all #[(key alist) "\211\203 @@\n=\203\303 @\" A\211\204)\207" [alist tail key delq] 4 (#$ . 44489)]) #@371 Create a temporary file. The returned file name (created by appending some random characters at the end of PREFIX, and expanding against `temporary-file-directory' if necessary, is guaranteed to point to a newly created empty file. You can then use `write-region' to write new data into the file. If DIR-FLAG is non-nil, create a new empty directory instead of a file. (defalias 'make-temp-file #[(prefix &optional dir-flag) "\301\301\302\303\217\204)\207" [file nil (byte-code "\304\305 \"! \203\306\n!\210\202\307\310\311\n\311\312\311\313&\210\311\207" [prefix temporary-file-directory file dir-flag make-temp-name expand-file-name make-directory write-region "" nil silent excl] 8) ((file-already-exists t))] 3 (#$ . 44708)]) #@912 Register a new minor mode. This is an XEmacs-compatibility function. Use `define-minor-mode' instead. TOGGLE is a symbol which is the name of a buffer-local variable that is toggled on or off to say whether the minor mode is active or not. NAME specifies what will appear in the mode line when the minor mode is active. NAME should be either a string starting with a space, or a symbol whose value is such a string. Optional KEYMAP is the keymap for the minor mode that will be added to `minor-mode-map-alist'. Optional AFTER specifies that TOGGLE should be added after AFTER in `minor-mode-alist'. Optional TOGGLE-FUN is an interactive function to toggle the mode. It defaults to (and should by convention be) TOGGLE. If TOGGLE has a non-nil `:included' property, an entry for the mode is included in the mode-line minor mode menu. If TOGGLE has a `:menu-tag', that is used for the menu item's label. (defalias 'add-minor-mode #[(toggle name &optional keymap after toggle-fun) "\204  \306N\203-\307\n\310 !\311 \312N\206$ ;\203! \202$\313 !\314\315 B\257#\210 \203\253 \f\236 ;\203K\316\317\320 #\204K\321 \320\322\323% \203W C\241\210\202\252\f\324\203\205\204\205\211@@)=\203|\202]A\211\204b\203\243A\324\241\210 DC\244\244\210)\202\251 D\fB*)\205 \236\211\203\300 \241\202\324\203\357\204\357\211@@)=\203\346\202\307A\211\204\314\203 A\324\241\210 BC\244\244)\202 BB\211*)\207" [toggle-fun toggle mode-line-mode-menu name minor-mode-alist existing :included define-key vector menu-item :menu-tag symbol-name :button :toggle get-text-property 0 local-map propertize help-echo "mouse-3: minor mode menu" nil mode-line-minor-mode-keymap found tail after x rest keymap minor-mode-map-alist] 10 (#$ . 45457)]) (byte-code "\300\301!\203\n\302\303M\210\300\207" [fboundp play-sound play-sound-file #[(file &optional volume device) "\304D\n\203\305 \306\n#\210 \203\305 \307 #\210\301 B\310 !)\207" [file sound volume device :file plist-put :volume :device play-sound] 4 "Play sound stored in FILE.\nVOLUME and DEVICE correspond to the keywords of the sound\nspecification for `play-sound'." "fPlay sound file: "]] 2)