;ELC ;;; compiled by jimb@geech.gnu.ai.mit.edu on Mon Jul 5 22:04:51 1993 ;;; from file /gd/gnu/emacs/19.0/lisp/abbrev.el ;;; emacs version 19.15.16. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "This file was compiled for Emacs 19")) (defconst only-global-abbrevs nil "\ *t means user plans to use global abbrevs only. Makes the commands to define mode-specific abbrevs define global ones instead.") (defalias 'abbrev-mode #[(arg) "„ ?‚Â!ÃVÄÅ !‡" [arg abbrev-mode prefix-numeric-value 0 set-buffer-modified-p buffer-modified-p] 2 "\ Toggle abbrev mode. With argument ARG, turn abbrev mode on iff ARG is positive. In abbrev mode, inserting an abbreviation causes it to expand and be replaced by its expansion." "P"]) (defvar edit-abbrevs-map nil "\ Keymap used in edit-abbrevs.") (byte-code "„Á ÂÃÄ#ˆÂÅÄ#ˆÁ‡" [edit-abbrevs-map make-sparse-keymap define-key "" edit-abbrevs-redefine ""] 4) (defalias 'kill-all-abbrevs #[nil "‰… @J!ˆ A‰„Ã)‡" [abbrev-table-name-list tables clear-abbrev-table nil] 3 "\ Undefine all defined abbrevs." nil]) (defalias 'insert-abbrevs #[nil "ÀŠ ‰ƒÃ\n@Ä\"ˆ\nA‰„)`)!‡" [push-mark abbrev-table-name-list tables insert-abbrev-table-description t] 5 "\ Insert after point a description of all defined abbrevs. Mark is set after the inserted text." nil]) (defalias 'list-abbrevs #[nil "ÀÁ !‡" [display-buffer prepare-abbrev-list-buffer] 2 "\ Display a list of all defined abbrevs." nil]) (defalias (quote prepare-abbrev-list-buffer) #[nil "ŠÀÁ!qˆÂ ˆ ‰ƒÅ @Æ\"ˆ A‰„)ebˆÇÈ!ˆÉ ˆ)ÀÁ!‡" [get-buffer-create "*Abbrevs*" erase-buffer abbrev-table-name-list tables insert-abbrev-table-description t set-buffer-modified-p nil edit-abbrevs-mode] 4]) (defalias 'edit-abbrevs-mode #[nil "ÀÂÄ !‡" [edit-abbrevs-mode major-mode "Edit-Abbrevs" mode-name use-local-map edit-abbrevs-map] 2 "\ Major mode for editing the list of abbrev definitions. \\{edit-abbrevs-map}" nil]) (defalias 'edit-abbrevs #[nil "ÀÁ !‡" [switch-to-buffer prepare-abbrev-list-buffer] 2 "\ Alter abbrev definitions by editing a list of them. Selects a buffer containing a list of abbrev definitions. You can edit them and type \\\\[edit-abbrevs-redefine] to redefine abbrevs according to your editing. Buffer contains a header line for each abbrev table, which is the abbrev table name in parentheses. This is followed by one line per abbrev in that table: NAME USECOUNT EXPANSION HOOK where NAME and EXPANSION are strings with quotes, USECOUNT is an integer, and HOOK is any valid function or may be omitted (it is usually omitted)." nil]) (defalias 'edit-abbrevs-redefine #[nil "ÀÁ!ˆÂÃ!‡" [define-abbrevs t set-buffer-modified-p nil] 2 "\ Redefine abbrevs according to current buffer contents." nil]) (defalias 'define-abbrevs #[(&optional arg) "ƒÁ ˆŠebˆm?…|ÂÃÄÅ#…|pÇ!Ä Ä\nÄ Ä Ä ÎyˆÎyˆl„pÇ!\nÇ! Ç! ÏÄxˆl?…YÇ! ÏÄxˆ\n   F B ‚3Ð \"ˆ.‚ )‡" [arg kill-all-abbrevs re-search-forward "^(" nil t buf read table abbrevs name hook exp count 1 " \n " define-abbrev-table] 4 "\ Define abbrevs according to current visible buffer contents. See documentation of `edit-abbrevs' for info on the format of the text you must have in the buffer. With argument, eliminate all abbrev definitions except the ones defined from the buffer now." "P"]) (defalias 'read-abbrev-file #[(&optional file quietly) "À ƒ GÂVƒ ‚ Ä #ˆÆĉ‡" [load file 0 abbrev-file-name nil quietly t save-abbrevs abbrevs-changed] 4 "\ Read abbrev definitions from file written with `write-abbrev-file'. Optional argument FILE is the name of the file to read; it defaults to the value of `abbrev-file-name'. Optional second argument QUIETLY non-nil means don't print anything." "fRead abbrev file: "]) (defalias 'quietly-read-abbrev-file #[(&optional file) "À Â\"‡" [read-abbrev-file file t] 3 "\ Read abbrev definitions from file written with write-abbrev-file. Optional argument FILE is the name of the file to read; it defaults to the value of `abbrev-file-name'. Does not print anything."]) (defalias 'write-abbrev-file #[(file) "ƒ GÁV„ \nŠÃÄ!qˆÅ ˆ‰ƒ.È@É\"ˆA‰„)ÊËd#ˆÅ )‡" [file 0 abbrev-file-name get-buffer-create " write-abbrev-file" erase-buffer abbrev-table-name-list tables insert-abbrev-table-description nil write-region 1] 5 "\ Write all abbrev definitions to a file of Lisp code. The file written can be loaded in another session to define the same abbrevs. The argument FILE is the file name to write." (list (read-file-name "Write abbrev file: " (file-name-directory (expand-file-name abbrev-file-name)) abbrev-file-name))]) (defalias 'add-mode-abbrev #[(arg) "À ƒ \n‚ †ÄÅ!Æ#‡" [add-abbrev only-global-abbrevs global-abbrev-table local-abbrev-table error "No per-mode abbrev table" "Mode" arg] 4 "\ Define mode-specific abbrev for last word(s) before point. Argument is how many words before point form the expansion; or zero means the region is the expansion. A negative argument means to undefine the specified abbrev. Reads the abbreviation in the minibuffer. Don't use this function in a Lisp program; use `define-abbrev' instead." "p"]) (defalias 'add-global-abbrev #[(arg) "À  #‡" [add-abbrev global-abbrev-table "Global" arg] 4 "\ Define global (all modes) abbrev for last word(s) before point. The prefix argument specifies the number of words before point that form the expansion; or zero means the region is the expansion. A negative argument means to undefine the specified abbrev. This command uses the minibuffer to read the abbreviation. Don't use this function in a Lisp program; use `define-abbrev' instead." "p"]) (defalias (quote add-abbrev) #[(table type arg) "ÁY…`ÁUƒ ‚Š[vˆ`){ÃÆÇ ƒ'È‚(É\n #! ƒHË  \"ƒHÍÇÎ Ë  \"#!…OÏ — #*‡" [arg 0 mark nil name exp read-string format "%s abbrev for \"%s\": " "Undefine %s abbrev: " type abbrev-expansion table y-or-n-p "%s expands to \"%s\"; redefine? " define-abbrev] 7]) (defalias 'inverse-add-mode-abbrev #[(arg) "À ƒ \n‚ †ÄÅ!Æ#‡" [inverse-add-abbrev only-global-abbrevs global-abbrev-table local-abbrev-table error "No per-mode abbrev table" "Mode" arg] 4 "\ Define last word before point as a mode-specific abbrev. With prefix argument N, defines the Nth word before point. This command uses the minibuffer to read the expansion. Expands the abbreviation after defining it." "p"]) (defalias 'inverse-add-global-abbrev #[(arg) "À  #‡" [inverse-add-abbrev global-abbrev-table "Global" arg] 4 "\ Define last word before point as a global (mode-independent) abbrev. With prefix argument N, defines the Nth word before point. This command uses the minibuffer to read the expansion. Expands the abbreviation after defining it." "p"]) (defalias (quote inverse-add-abbrev) #[(table type arg) "À‰‰Š [vˆ`Åvˆ`‰{)ÆÇÈ #!Ê  \"ƒ4ÌÇÍ Ê  \"#!…CÎ — #ˆŠ\nbˆÏ )+‡" [nil exp nameloc name arg 1 read-string format "%s expansion for \"%s\": " type abbrev-expansion table y-or-n-p "%s expands to \"%s\"; redefine? " define-abbrev expand-abbrev] 7]) (defalias 'abbrev-prefix-mark #[(&optional arg) "„Á ˆÂ pÅc‡" [arg expand-abbrev point-marker abbrev-start-location abbrev-start-location-buffer "-"] 1 "\ Mark current point as the beginning of an abbrev. Abbrev to be expanded starts here rather than at beginning of word. This way, you can expand an abbrev with a prefix: insert the prefix, use this command, then insert the abbrev." "P"]) (defalias 'expand-region-abbrevs #[(start end &optional noquery) "Šbˆd Z‰m?…AÆvˆ`‰d ZX…AÇŠÈvˆ`) {‰!ƒ  „;ÊËÌ \"!ƒ Í ˆ‚ ,‡" [start end nil string pnt lim 1 abbrev-expansion -1 noquery y-or-n-p format "Expand `%s'? " expand-abbrev] 4 "\ For abbrev occurrence in the region, offer to expand it. The user is asked to type y or n for each occurrence. A prefix argument means don't query; expand all abbrevs. If called from a Lisp program, arguments are START END &optional NOQUERY." "r\nP"])