;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Tue May 2 20:10:40 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/abbrev.el ;;; emacs version 19.28.90.69. ;;; 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 "`/gd/gnu/emacs/19.0/lisp/abbrev.el' was compiled for Emacs 19")) #@128 *t means user plans to use global abbrevs only. Makes the commands to define mode-specific abbrevs define global ones instead. (defconst only-global-abbrevs nil (#$ . -482)) #@177 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. (defalias 'abbrev-mode #[(arg) "„ ?‚Â!ÃVÄ ‡" [arg abbrev-mode prefix-numeric-value 0 force-mode-line-update] 2 (#$ . 663) "P"]) #@30 Keymap used in edit-abbrevs. (defvar edit-abbrevs-map nil (#$ . 980)) (byte-code "„Á ÂÃÄ#ˆÂÅÄ#ˆÁ‡" [edit-abbrevs-map make-sparse-keymap define-key "" edit-abbrevs-redefine ""] 4) #@31 Undefine all defined abbrevs. (defalias 'kill-all-abbrevs #[nil "‰… @J!ˆ A‰„Ã)‡" [abbrev-table-name-list tables clear-abbrev-table nil] 3 (#$ . 1175) nil]) #@95 Insert after point a description of all defined abbrevs. Mark is set after the inserted text. (defalias 'insert-abbrevs #[nil "ÀŠ ‰ƒÃ\n@Ä\"ˆ\nA‰„)`)!‡" [push-mark abbrev-table-name-list tables insert-abbrev-table-description t] 5 (#$ . 1345) nil]) #@40 Display a list of all defined abbrevs. (defalias 'list-abbrevs #[nil "ÀÁ !‡" [display-buffer prepare-abbrev-list-buffer] 2 (#$ . 1605) nil]) (defalias 'prepare-abbrev-list-buffer #[nil "ŠÀÁ!qˆÂ ˆ ‰ƒÅ\f@Æ\"ˆ\fA‰„)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]) #@76 Major mode for editing the list of abbrev definitions. \{edit-abbrevs-map} (defalias 'edit-abbrevs-mode #[nil "ÀÂÄ !‡" [edit-abbrevs-mode major-mode "Edit-Abbrevs" mode-name use-local-map edit-abbrevs-map] 2 (#$ . 2003) nil]) #@568 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). (defalias 'edit-abbrevs #[nil "ÀÁ !‡" [switch-to-buffer prepare-abbrev-list-buffer] 2 (#$ . 2238) nil]) #@56 Redefine abbrevs according to current buffer contents. (defalias 'edit-abbrevs-redefine #[nil "ÀÁ!ˆÂÃ!‡" [define-abbrevs t set-buffer-modified-p nil] 2 (#$ . 2915) nil]) #@255 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. (defalias 'define-abbrevs #[(&optional arg) "ƒÁ ˆŠebˆm?…|ÂÃÄÅ#…|pÇ!Ä Ä\nÄ Ä\fÄ ÎyˆÎyˆl„pÇ!\nÇ! Ç!\fÏÄxˆl?…YÇ! ÏÄxˆ\n\f  F B ‚3Ð \"ˆ.‚ )‡" [arg kill-all-abbrevs re-search-forward "^(" nil t buf read table abbrevs name hook exp count 1 " \n\f" define-abbrev-table] 4 (#$ . 3092) "P"]) #@242 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. (defalias 'read-abbrev-file #[(&optional file quietly) "À ƒ GÂVƒ ‚ Ä #ˆÆĉ‡" [load file 0 abbrev-file-name nil quietly t save-abbrevs abbrevs-changed] 4 (#$ . 3679) "fRead abbrev file: "]) #@196 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 'quietly-read-abbrev-file #[(&optional file) "À Â\"‡" [read-abbrev-file file t] 3 (#$ . 4126)]) #@177 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. (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 (#$ . 4434) (list (read-file-name "Write abbrev file: " (file-name-directory (expand-file-name abbrev-file-name)) abbrev-file-name))]) #@338 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. (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 (#$ . 5013) "p"]) #@388 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. (defalias 'add-global-abbrev #[(arg) "À  #‡" [add-abbrev global-abbrev-table "Global" arg] 4 (#$ . 5553) "p"]) (defalias 'add-abbrev #[(table type arg) "ÁY…`ÁUƒ ‚Š[vˆ`){ÃÆÇ ƒ'È‚(É\n #!ËÁ\fGÃ\f$ˆ ƒPÌ\f \"ƒPÎÇÏ\fÌ\f \"#!…WÐ \f— #*‡" [arg 0 mark nil name exp read-string format "%s abbrev for \"%s\": " "Undefine %s abbrev: " type set-text-properties abbrev-expansion table y-or-n-p "%s expands to \"%s\"; redefine? " define-abbrev] 7]) #@217 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. (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 (#$ . 6404) "p"]) #@229 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. (defalias 'inverse-add-global-abbrev #[(arg) "À  #‡" [inverse-add-abbrev global-abbrev-table "Global" arg] 4 (#$ . 6839) "p"]) (defalias 'inverse-add-abbrev #[(table type arg) "À‰‰Š\f[vˆ`Åvˆ`‰{)ÆÇ GÀ $ˆÈÉÊ #!Ì  \"ƒ<ÎÉÏ Ì  \"#!…KÐ — #ˆŠ\nbˆÑ )+‡" [nil exp nameloc name arg 1 set-text-properties 0 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]) #@230 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. (defalias 'abbrev-prefix-mark #[(&optional arg) "„Á ˆÂ pÅc‡" [arg expand-abbrev point-marker abbrev-start-location abbrev-start-location-buffer "-"] 1 (#$ . 7537) "P"]) #@243 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. (defalias 'expand-region-abbrevs #[(start end &optional noquery) "Šbˆd Z‰m?…AÆvˆ`‰d ZX…AÇŠÈvˆ`)\f{‰!ƒ\f „;ÊËÌ \"!ƒ\fÍ ˆ‚\f,‡" [start end nil string pnt lim 1 abbrev-expansion -1 noquery y-or-n-p format "Expand `%s'? " expand-abbrev] 4 (#$ . 7947) "r\nP"])