loaddefs.el 61 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702
  1. ;; Define standard autoloads and keys of other files, for Emacs.
  2. ;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc.
  3. ;; This file is part of GNU Emacs.
  4. ;; GNU Emacs is distributed in the hope that it will be useful,
  5. ;; but WITHOUT ANY WARRANTY. No author or distributor
  6. ;; accepts responsibility to anyone for the consequences of using it
  7. ;; or for whether it serves any particular purpose or works at all,
  8. ;; unless he says so in writing. Refer to the GNU Emacs General Public
  9. ;; License for full details.
  10. ;; Everyone is granted permission to copy, modify and redistribute
  11. ;; GNU Emacs, but only under the conditions described in the
  12. ;; GNU Emacs General Public License. A copy of this license is
  13. ;; supposed to have been given to you along with GNU Emacs so you
  14. ;; can know your rights and responsibilities. It should be in a
  15. ;; file named COPYING. Among other things, the copyright notice
  16. ;; and this notice must be preserved on all copies.
  17. ;;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  18. ;;; Special formatting conventions are used in this file!
  19. ;;;
  20. ;;; a backslash-newline is used at the beginning of a documentation string
  21. ;;; when that string should be stored in the file etc/DOCnnn, not in core.
  22. ;;;
  23. ;;; Such strings read into Lisp as numbers (during the pure-loading phase).
  24. ;;;
  25. ;;; But you must obey certain rules to make sure the string is understood
  26. ;;; and goes into etc/DOCnnn properly. Otherwise, the string will not go
  27. ;;; anywhere!
  28. ;;;
  29. ;;; The doc string must appear in the standard place in a call to
  30. ;;; defun, autoload, defvar or defconst. No Lisp macros are recognized.
  31. ;;; The open-paren starting the definition must appear in column 0.
  32. ;;;
  33. ;;; In defvar and defconst, there is an additional rule:
  34. ;;; The double-quote that starts the string must be on the same
  35. ;;; line as the defvar or defconst.
  36. ;;; !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  37. ;; Know which function the debugger is!
  38. (setq debugger 'debug)
  39. (defconst mode-line-buffer-identification (purecopy '("Emacs: %17b")) "\
  40. Mode-line control for identifying the buffer being displayed.
  41. Its default value is \"Emacs: %17b\". Major modes that edit things
  42. other than ordinary files may change this (e.g. Info, Dired,...)")
  43. (make-variable-buffer-local 'mode-line-buffer-identification)
  44. (defconst mode-line-process nil "\
  45. Mode-line control for displaying info on process status.
  46. Normally nil in most modes, since there is no process to display.")
  47. (make-variable-buffer-local 'mode-line-process)
  48. (defconst mode-line-modified (purecopy '("--%1*%1*-")) "\
  49. Mode-line control for displaying whether current buffer is modified.")
  50. (make-variable-buffer-local 'mode-line-modified)
  51. (setq-default mode-line-format
  52. (list (purecopy "")
  53. 'mode-line-modified
  54. 'mode-line-buffer-identification
  55. (purecopy " ")
  56. 'global-mode-string
  57. (purecopy " %[(")
  58. 'mode-name 'minor-mode-alist "%n" 'mode-line-process
  59. (purecopy ")%]----")
  60. (purecopy '(-3 . "%p"))
  61. (purecopy "-%-")))
  62. (defvar minor-mode-alist nil "\
  63. Alist saying how to show minor modes in the mode line.
  64. Each element looks like (VARIABLE STRING);
  65. STRING is included in the mode line iff VARIABLE's value is non-nil.")
  66. (setq minor-mode-alist (mapcar 'purecopy
  67. '((abbrev-mode " Abbrev")
  68. (overwrite-mode " Ovwrt")
  69. (auto-fill-hook " Fill")
  70. ;; not really a minor mode...
  71. (defining-kbd-macro " Def"))))
  72. (defconst function-keymap (make-sparse-keymap) "\
  73. Keymap containing definitions of keypad and function keys.")
  74. ;; These variables are used by autoloadable packages.
  75. ;; They are defined here so that they do not get overridden
  76. ;; by the loading of those packages.
  77. (defconst paragraph-start "^[ \t\n\f]" "\
  78. *Regexp for beginning of a line that starts OR separates paragraphs.")
  79. (defconst paragraph-separate "^[ \t\f]*$" "\
  80. *Regexp for beginning of a line that separates paragraphs.
  81. If you change this, you may have to change paragraph-start also.")
  82. (defconst sentence-end (purecopy "[.?!][]\"')]*\\($\\|\t\\| \\)[ \t\n]*") "\
  83. *Regexp describing the end of a sentence.
  84. All paragraph boundaries also end sentences, regardless.")
  85. (defconst page-delimiter "^\014" "\
  86. *Regexp describing line-beginnings that separate pages.")
  87. (defconst case-replace t "\
  88. *Non-nil means query-replace should preserve case in replacements.")
  89. ;; indent.el may not be autoloading, but it still loses
  90. ;; if lisp-mode is ever called before this defvar is done.
  91. (defvar indent-line-function 'indent-to-left-margin "\
  92. Function to indent current line.")
  93. (defconst only-global-abbrevs nil "\
  94. *t means user plans to use global abbrevs only.
  95. Makes the commands to define mode-specific abbrevs define global ones instead.")
  96. ;; Names in directory that end in one of these
  97. ;; are ignored in completion,
  98. ;; making it more likely you will get a unique match.
  99. (setq completion-ignored-extensions
  100. (if (eq system-type 'vax-vms)
  101. '(".obj" ".elc" ".exe" ".bin" ".lbin"
  102. ".dvi" ".toc" ".log" ".aux"
  103. ".lof" ".brn" ".rnt" ".mem" ".lni" ".lis"
  104. ".olb" ".tlb" ".mlb" ".hlb" ".glo" ".idx" ".lot")
  105. '(".o" ".elc" "~" ".bin" ".lbin"
  106. ".dvi" ".toc" ".log" ".aux"
  107. ".lof" ".blg" ".bbl" ".glo" ".idx" ".lot")))
  108. (defvar compile-command "make -k" "\
  109. *Last shell command used to do a compilation; default for next compilation.")
  110. (defvar dired-listing-switches "-al" "\
  111. *Switches passed to ls for Dired. MUST contain the `l' option.
  112. MUST NOT contain the `F, `s' or `i'' option.")
  113. (defconst lpr-switches nil "\
  114. *List of strings to pass as extra switch args to lpr when it is invoked.")
  115. (defvar tags-file-name nil "\
  116. *File name of tag table.
  117. To switch to a new tag table, setting this variable is sufficient.
  118. Use the `etags' program to make a tag table file.")
  119. (defconst shell-prompt-pattern "^[^#$%>]*[#$%>] *" "\
  120. *Regexp used by Newline command in shell mode to match subshell prompts.
  121. Anything from beginning of line up to the end of what this pattern matches
  122. is deemed to be prompt, and is not reexecuted.")
  123. (defconst ledit-save-files t "\
  124. *Non-nil means Ledit should save files before transferring to Lisp.")
  125. (defconst ledit-go-to-lisp-string "%?lisp" "\
  126. *Shell commands to execute to resume Lisp job.")
  127. (defconst ledit-go-to-liszt-string "%?liszt" "\
  128. *Shell commands to execute to resume Lisp compiler job.")
  129. (defconst display-time-day-and-date nil "\
  130. *Non-nil means M-x display-time should display day and date as well as time.")
  131. ;;; Determine mode according to filename
  132. (defvar auto-mode-alist nil "\
  133. Alist of filename patterns vs corresponding major mode functions.
  134. Each element looks like (REGEXP . FUNCTION).
  135. Visiting a file whose name matches REGEXP causes FUNCTION to be called.")
  136. (setq auto-mode-alist (mapcar 'purecopy
  137. '(("\\.text$" . text-mode)
  138. ("\\.c$" . c-mode)
  139. ("\\.h$" . c-mode)
  140. ("\\.tex$" . TeX-mode)
  141. ("\\.el$" . emacs-lisp-mode)
  142. ("\\.scm$" . scheme-mode)
  143. ("\\.l$" . lisp-mode)
  144. ("\\.lisp$" . lisp-mode)
  145. ("\\.f$" . fortran-mode)
  146. ("\\.mss$" . scribe-mode)
  147. ;;; Less common extensions come here
  148. ;;; so more common ones above are found faster.
  149. ("\\.TeX$" . TeX-mode)
  150. ("\\.sty$" . LaTeX-mode)
  151. ("\\.bbl$" . LaTeX-mode)
  152. ("\\.bib$" . text-mode)
  153. ("\\.article$" . text-mode)
  154. ("\\.letter$" . text-mode)
  155. ("\\.texinfo$" . texinfo-mode)
  156. ("\\.lsp$" . lisp-mode)
  157. ;; Mailer puts message to be edited in /tmp/Re.... or Message
  158. ("^/tmp/Re" . text-mode)
  159. ;; some news reader is reported to use this
  160. ("^/tmp/fol/" . text-mode)
  161. ("/Message[0-9]*$" . text-mode)
  162. ("\\.y$" . c-mode)
  163. ("\\.scm.[0-9]*$" . scheme-mode)
  164. ("/\\..*emacs" . emacs-lisp-mode)
  165. ("\\.ml$" . lisp-mode))))
  166. (make-variable-buffer-local 'indent-tabs-mode)
  167. (defvar ctl-x-4-map (make-keymap) "\
  168. Keymap for subcommands of C-x 4")
  169. ;; Reduce total amount of space we must allocate during this function
  170. ;; that we will not need to keep permanently.
  171. (garbage-collect)
  172. ;; Autoload random libraries.
  173. ;; Alphabetical order by library name.
  174. (autoload 'add-change-log-entry "add-log"
  175. "\
  176. Find change log file and add an entry for today.
  177. With ARG, prompt for name and site of person."
  178. t)
  179. (autoload '\` "backquote"
  180. "\
  181. \(` FORM) Expands to a form that will generate FORM.
  182. FORM is `almost quoted' -- see backquote.el for a description."
  183. nil t)
  184. (autoload 'byte-compile-file "bytecomp"
  185. "\
  186. Compile a file of Lisp code named FILENAME into a file of byte code.
  187. The output file's name is made by appending \"c\" to the end of FILENAME."
  188. t)
  189. (autoload 'byte-recompile-directory "bytecomp"
  190. "\
  191. Recompile every .el file in DIRECTORY that needs recompilation.
  192. This is if a .elc file exists but is older than the .el file.
  193. If the .elc file does not exist, offer to compile the .el file
  194. only if a prefix argument has been specified."
  195. t)
  196. (autoload 'batch-byte-compile "bytecomp"
  197. "\
  198. Runs byte-compile-file on the files remaining on the command line.
  199. Must be used only with -batch, and kills emacs on completion.
  200. Each file will be processed even if an error occurred previously.
  201. For example, invoke \"emacs -batch -f batch-byte-compile $emacs/ ~/*.el\""
  202. nil)
  203. (autoload 'list-command-history "chistory"
  204. "\
  205. List history of commands typed to minibuffer.
  206. The number of commands listed is controlled by list-command-history-max.
  207. Calls value of list-command-history-filter (if non-nil) on each history
  208. element to judge if that element should be excluded from the list.
  209. The buffer is left in Command History mode."
  210. t)
  211. (autoload 'command-history-mode "chistory"
  212. "\
  213. Major mode for examining commands from command-history.
  214. The number of commands listed is controlled by list-command-history-max.
  215. The command history is filtered by list-command-history-filter if non-nil.
  216. Like Emacs-Lisp Mode except that characters do not insert themselves and
  217. Digits provide prefix arguments. Tab does not indent. Instead these
  218. commands are provided:
  219. LF, CR Move to the next line in the history.
  220. Delete Move to the previous line in the history.
  221. Calls the value of command-history-hook if that is non-nil
  222. The Command History listing is recomputed each time this mode is
  223. invoked."
  224. t)
  225. (autoload 'repeat-matching-complex-command "chistory"
  226. "\
  227. Edit and re-evaluate complex command with name matching PATTERN.
  228. Matching occurrences are displayed, most recent first, until you
  229. select a form for evaluation. If PATTERN is empty (or nil), every form
  230. in the command history is offered. The form is placed in the minibuffer
  231. for editing and the result is evaluated. Prefix args don't count."
  232. t)
  233. (autoload 'compare-windows "compare-w"
  234. "\
  235. Compare text in current window with text in next window.
  236. Compares the text starting at point in each window,
  237. moving over text in each one as far as they match."
  238. t)
  239. (autoload 'compile "compile"
  240. "\
  241. Compile the program including the current buffer. Default: run `make'.
  242. Runs COMMAND, a shell command, in a separate process asynchronously
  243. with output going to the buffer *compilation*.
  244. You can then use the command \\[next-error] to find the next error message
  245. and move to the source code that caused it."
  246. t)
  247. (autoload 'grep "compile"
  248. "\
  249. Run grep, with user-specified args, and collect output in a buffer.
  250. While grep runs asynchronously, you can use the \\[next-error] command
  251. to find the text that grep hits refer to."
  252. t)
  253. (define-key ctl-x-map "`" 'next-error)
  254. (autoload 'next-error "compile"
  255. "\
  256. Visit next compilation error message and corresponding source code.
  257. This operates on the output from the \\[compile] command.
  258. If all preparsed error messages have been processed,
  259. the error message buffer is checked for new ones.
  260. A non-nil argument (prefix arg, if interactive)
  261. means reparse the error message buffer and start at the first error."
  262. t)
  263. (define-key esc-map "/" 'dabbrev-expand)
  264. (autoload 'dabbrev-expand "dabbrev"
  265. "\
  266. Expand previous word \"dynamically\".
  267. Expands to the most recent, preceding word for which this is a prefix.
  268. If no suitable preceding word is found, words following point are considered.
  269. A positive prefix argument, N, says to take the Nth backward DISTINCT
  270. possibility. A negative argument says search forward. The variable
  271. dabbrev-backward-only may be used to limit the direction of search to
  272. backward if set non-nil.
  273. If the cursor has not moved from the end of the previous expansion and
  274. no argument is given, replace the previously-made expansion
  275. with the next possible expansion not yet tried."
  276. t)
  277. (autoload 'debug "debug"
  278. "\
  279. Enter debugger. Returns if user says \"continue\".
  280. Arguments are mainly for use when this is called
  281. from the internals of the evaluator.
  282. You may call with no args, or you may
  283. pass nil as the first arg and any other args you like.
  284. In that case, the list of args after the first will
  285. be printed into the backtrace buffer.")
  286. (autoload 'cancel-debug-on-entry "debug"
  287. "\
  288. Undoes effect of debug-on-entry on FUNCTION."
  289. t)
  290. (autoload 'debug-on-entry "debug"
  291. "\
  292. Request FUNCTION to invoke debugger each time it is called.
  293. If the user continues, FUNCTION's execution proceeds.
  294. Works by modifying the definition of FUNCTION,
  295. which must be written in Lisp, not predefined."
  296. t)
  297. (define-key ctl-x-map "d" 'dired)
  298. (autoload 'dired "dired"
  299. "\
  300. \"Edit\" directory DIRNAME. Delete some files in it.
  301. Dired displays a list of files in DIRNAME.
  302. You can move around in it with the usual commands.
  303. You can flag files for deletion with C-d
  304. and then delete them by typing `x'.
  305. Type `h' after entering dired for more info."
  306. t)
  307. (define-key ctl-x-4-map "d" 'dired-other-window)
  308. (autoload 'dired-other-window "dired"
  309. "\
  310. \"Edit\" directory DIRNAME. Like \\[dired] but selects in another window."
  311. t)
  312. (autoload 'dired-noselect "dired"
  313. "\
  314. Find or create a dired buffer, return it, don't select it.
  315. Call like dired.")
  316. (autoload 'dissociated-press "dissociate"
  317. "\
  318. Dissociate the text of the current buffer.
  319. Output goes in buffer named *Dissociation*,
  320. which is redisplayed each time text is added to it.
  321. Every so often the user must say whether to continue.
  322. If ARG is positive, require ARG words of continuity.
  323. If ARG is negative, require -ARG chars of continuity.
  324. Default is 2." t)
  325. (autoload 'doctor "doctor"
  326. "\
  327. Switch to *doctor* buffer and start giving psychotherapy."
  328. t)
  329. (autoload 'disassemble "disass"
  330. "\
  331. Print disassembled code for OBJECT on (optional) STREAM.
  332. OBJECT can be a function name, lambda expression or any function object
  333. returned by SYMBOL-FUNCTION. If OBJECT is not already compiled, we will
  334. compile it (but not redefine it)."
  335. t)
  336. (autoload 'electric-buffer-list "ebuff-menu"
  337. "\
  338. Vaguely like ITS lunar select buffer;
  339. combining typeoutoid buffer listing with menuoid buffer selection.
  340. This pops up a buffer describing the set of emacs buffers.
  341. If the very next character typed is a space then the buffer list
  342. window disappears.
  343. Otherwise, one may move around in the buffer list window, marking
  344. buffers to be selected, saved or deleted.
  345. To exit and select a new buffer, type Space when the cursor is on the
  346. appropriate line of the buffer-list window.
  347. Other commands are much like those of buffer-menu-mode.
  348. Calls value of electric-buffer-menu-mode-hook on entry if non-nil.
  349. \\{electric-buffer-menu-mode-map}"
  350. t)
  351. (autoload 'electric-command-history "echistory"
  352. "\
  353. Major mode for examining and redoing commands from command-history.
  354. The number of command listed is controlled by list-command-history-max.
  355. The command history is filtered by list-command-history-filter if non-nil.
  356. Combines typeout Command History list window with menu like selection
  357. of an expression from the history for re-evaluation in the *original* buffer.
  358. The history displayed is filtered by list-command-history-filter if non-nil.
  359. This pops up a window with the Command History listing. If the very
  360. next character typed is Space, the listing is killed and the previous
  361. window configuration is restored. Otherwise, you can browse in the
  362. Command History with Return moving down and Delete moving up, possibly
  363. selecting an expression to be redone with Space or quitting with `Q'.
  364. Like Emacs-Lisp Mode except that characters do not insert themselves and
  365. Tab and linefeed do not indent. Instead these commands are provided:
  366. Space or ! edit then evaluate current line in history inside
  367. the ORIGINAL buffer which invoked this mode.
  368. The previous window configuration is restored
  369. unless the invoked command changes it.
  370. C-c C-c, C-], Q Quit and restore previous window configuration.
  371. LF, CR Move to the next line in the history.
  372. Delete Move to the previous line in the history.
  373. ? Provides a complete list of commands.
  374. Calls the value of electric-command-history-hook if that is non-nil
  375. The Command History listing is recomputed each time this mode is invoked."
  376. t)
  377. (autoload 'edt-emulation-on "edt"
  378. "\
  379. Begin emulating DEC's EDT editor.
  380. Certain keys are rebound; including nearly all keypad keys.
  381. Use \\[edt-emulation-off] to undo all rebindings except the keypad keys."
  382. t)
  383. (autoload 'fortran-mode "fortran"
  384. "\
  385. Major mode for editing fortran code.
  386. Tab indents the current fortran line correctly.
  387. `do' statements must not share a common `continue'.
  388. Type `;?' to display a list of built-in abbrevs for Fortran keywords.
  389. Variables controlling indentation style and extra features:
  390. comment-start
  391. Normally nil in Fortran mode. If you want to use comments
  392. starting with `!', set this to the string \"!\".
  393. fortran-do-indent
  394. Extra indentation within do blocks. (default 3)
  395. fortran-if-indent
  396. Extra indentation within if blocks. (default 3)
  397. fortran-continuation-indent
  398. Extra indentation appled to continuation statements. (default 5)
  399. fortran-comment-line-column
  400. Amount of indentation for text within full-line comments.
  401. fortran-comment-indent-style
  402. nil means don't change indentation of text in full-line comments,
  403. fixed means indent that text at column fortran-comment-line-column
  404. relative means indent at fortran-comment-line-column beyond the
  405. indentation for a line of code.
  406. Default value is fixed.
  407. fortran-comment-indent-char
  408. Single-character string to be inserted instead of space for
  409. full-line comment indentation. (default \" \")
  410. fortran-line-number-indent
  411. Maximum indentation for line numbers. A line number will get
  412. less than this much indentation if necessary to avoid reaching
  413. column 5. Default is 1.
  414. fortran-check-all-num-for-matching-do
  415. Non-nil causes all numbered lines to be treated as possible 'continue'
  416. statements. (default nil)
  417. fortran-continuation-char
  418. Single-character string to be inserted in column 5 of a continuation
  419. line. (default \"$\")
  420. fortran-comment-region
  421. String inserted by \\[fortran-comment-region] at start of each line in
  422. region. (default \"c$$$\")
  423. fortran-electric-line-number
  424. Non-nil causes line number digits to be moved to the correct column
  425. as typed. (default t)
  426. fortran-startup-message
  427. Set to nil to inhibit message first time fortran-mode is used.
  428. Turning on Fortran mode calls the value of the variable fortran-mode-hook
  429. with no args, if that value is non-nil.
  430. \\{fortran-mode-map}"
  431. t)
  432. (autoload 'ftp-find-file "ftp"
  433. "\
  434. FTP to HOST to get FILE, logging in as USER with password PASSWORD.
  435. Interactively, HOST and FILE are specified by reading a string with colon separating
  436. the host from the filename.
  437. USER and PASSWORD are defaulted from the values used when
  438. last ftping from HOST (unless password-remembering is disabled).
  439. Supply a password of the symbol `t' to override this default
  440. (interactively, this is done by giving a prefix arg)"
  441. t)
  442. (autoload 'ftp-write-file "ftp"
  443. "\
  444. FTP to HOST to write FILE, logging in as USER with password PASSWORD.
  445. Interactively, HOST and FILE are specified by reading a string with colon separating
  446. the host from the filename.
  447. USER and PASSWORD are defaulted from the values used when
  448. last ftping from HOST (unless password-remembering is disabled).
  449. Supply a password of the symbol `t' to override this default
  450. (interactively, this is done by giving a prefix arg)"
  451. t)
  452. (autoload 'set-gosmacs-bindings "gosmacs"
  453. "\
  454. Rebind some keys globally to make GNU Emacs resemble Gosling Emacs.
  455. Use \\[set-gnu-bindings] to restore previous global bindings."
  456. t)
  457. (autoload 'hanoi "hanoi"
  458. "\
  459. Towers of Hanoi diversion. Arg is number of rings."
  460. t)
  461. (autoload 'Helper-help "helper"
  462. "\
  463. Provide help for current mode."
  464. t)
  465. (autoload 'Helper-describe-bindings "helper"
  466. "\
  467. Describe local key bindings of current mode."
  468. t)
  469. (autoload 'info "info"
  470. "\
  471. Enter Info documentation browser."
  472. t)
  473. (autoload 'Info-tagify "informat"
  474. "\
  475. Create or update Info-file tag table in current buffer."
  476. t)
  477. (autoload 'Info-validate "informat"
  478. "\
  479. Check current buffer for validity as an Info file.
  480. Check that every node pointer points to an existing node."
  481. t)
  482. (autoload 'Info-split "informat"
  483. "\
  484. Split an info file into an indirect file plus bounded-size subfiles.
  485. Each subfile will be up 50000 characters plus one node.
  486. To use this command, first visit a large Info file that has a tag table.
  487. The buffer is modified into a (small) indirect info file
  488. which should be saved in place of the original visited file.
  489. The subfiles are written in the same directory the original file is in,
  490. with names generated by appending `-' and a number to the original file name.
  491. The indirect file still functions as an Info file, but it contains
  492. just the tag table and a directory of subfiles."
  493. t)
  494. (autoload 'batch-info-validate "informat"
  495. "\
  496. Runs Info-validate on the files remaining on the command line.
  497. Must be used only with -batch, and kills emacs on completion.
  498. Each file will be processed even if an error occurred previously.
  499. For example, invoke \"emacs -batch -f batch-info-validate $info/ ~/*.info\""
  500. nil)
  501. (autoload 'ledit-mode "ledit"
  502. "\
  503. Major mode for editing text and stuffing it to a Lisp job.
  504. Like Lisp mode, plus these special commands:
  505. M-C-d -- record defun at or after point
  506. for later transmission to Lisp job.
  507. M-C-r -- record region for later transmission to Lisp job.
  508. C-x z -- transfer to Lisp job and transmit saved text.
  509. M-C-c -- transfer to Liszt (Lisp compiler) job
  510. and transmit saved text.
  511. To make Lisp mode automatically change to Ledit mode,
  512. do (setq lisp-mode-hook 'ledit-from-lisp-mode)"
  513. t)
  514. (autoload 'ledit-from-lisp-mode "ledit")
  515. (autoload 'lpr-buffer "lpr"
  516. "\
  517. Print contents of buffer as with Unix command `lpr'.
  518. `lpr-switches' is a list of extra switches (strings) to pass to lpr."
  519. t)
  520. (autoload 'print-buffer "lpr"
  521. "\
  522. Print contents of buffer as with Unix command `lpr -p'.
  523. `lpr-switches' is a list of extra switches (strings) to pass to lpr."
  524. t)
  525. (autoload 'lpr-region "lpr"
  526. "\
  527. Print contents of region as with Unix command `lpr'.
  528. `lpr-switches' is a list of extra switches (strings) to pass to lpr."
  529. t)
  530. (autoload 'print-region "lpr"
  531. "\
  532. Print contents of region as with Unix command `lpr -p'.
  533. `lpr-switches' is a list of extra switches (strings) to pass to lpr."
  534. t)
  535. (autoload 'insert-kbd-macro "macros"
  536. "\
  537. Insert in buffer the definition of kbd macro NAME, as Lisp code.
  538. Second argument KEYS non-nil means also record the keys it is on.
  539. (This is the prefix argument, when calling interactively.)
  540. This Lisp code will, when executed, define the kbd macro with the
  541. same definition it has now. If you say to record the keys,
  542. the Lisp code will also rebind those keys to the macro.
  543. To save a kbd macro, visit a file of Lisp code such as your ~/.emacs,
  544. use this command, and then save the file."
  545. t)
  546. (define-key ctl-x-map "q" 'kbd-macro-query)
  547. (autoload 'kbd-macro-query "macros"
  548. "\
  549. Query user during kbd macro execution.
  550. With prefix argument, enters recursive edit,
  551. reading keyboard commands even within a kbd macro.
  552. You can give different commands each time the macro executes.
  553. Without prefix argument, reads a character. Your options are:
  554. Space -- execute the rest of the macro.
  555. DEL -- skip the rest of the macro; start next repetition.
  556. C-d -- skip rest of the macro and don't repeat it any more.
  557. C-r -- enter a recursive edit, then on exit ask again for a character
  558. C-l -- redisplay screen and ask again."
  559. t)
  560. (autoload 'name-last-kbd-macro "macros"
  561. "\
  562. Assign a name to the last keyboard macro defined.
  563. One arg, a symbol, which is the name to define.
  564. The symbol's function definition becomes the keyboard macro string.
  565. Such a \"function\" cannot be called from Lisp, but it is a valid command
  566. definition for the editor command loop."
  567. t)
  568. (autoload 'make-command-summary "makesum"
  569. "\
  570. Make a summary of current key bindings in the buffer *Summary*.
  571. Previous contents of that buffer are killed first."
  572. t)
  573. (autoload 'define-mail-alias "mailalias"
  574. "\
  575. Define NAME as a mail-alias that translates to DEFINITION."
  576. t)
  577. (autoload 'manual-entry "man"
  578. "\
  579. Display Unix manual entry for TOPIC."
  580. t)
  581. (autoload 'mh-rmail "mh-e"
  582. "\
  583. Read your mail with mh." t)
  584. (autoload 'mh-smail "mh-e"
  585. "\
  586. Compose and send mail with mh." t)
  587. (autoload 'convert-mocklisp-buffer "mlconvert"
  588. "\
  589. Convert buffer of Mocklisp code to real Lisp that GNU Emacs can run."
  590. t)
  591. (autoload 'modula-2-mode "modula2"
  592. "\
  593. This is a mode intended to support program development in Modula-2.
  594. All control constructs of Modula-2 can be reached by typing
  595. Control-C followed by the first character of the construct.
  596. \\{m2-mode-map}
  597. Control-c b begin Control-c c case
  598. Control-c d definition Control-c e else
  599. Control-c f for Control-c h header
  600. Control-c i if Control-c m module
  601. Control-c l loop Control-c o or
  602. Control-c p procedure Control-c Control-w with
  603. Control-c r record Control-c s stdio
  604. Control-c t type Control-c u until
  605. Control-c v var Control-c w while
  606. Control-c x export Control-c y import
  607. Control-c { begin-comment Control-c } end-comment
  608. Control-c Control-z suspend-emacs Control-c Control-t toggle
  609. Control-c Control-c compile Control-x ` next-error
  610. Control-c Control-l link
  611. m2-indent controls the number of spaces for each indentation."
  612. t)
  613. (setq disabled-command-hook 'disabled-command-hook)
  614. (autoload 'disabled-command-hook "novice")
  615. (autoload 'enable-command "novice"
  616. "\
  617. Allow COMMAND to be executed without special confirmation from now on.
  618. The user's .emacs file is altered so that this will apply
  619. to future sessions." t)
  620. (autoload 'disable-command "novice"
  621. "\
  622. Require special confirmation to execute COMMAND from now on.
  623. The user's .emacs file is altered so that this will apply
  624. to future sessions." t)
  625. (autoload 'nroff-mode "nroff-mode"
  626. "\
  627. Major mode for editing text intended for nroff to format.
  628. \\{nroff-mode-map}
  629. Turning on Nroff mode runs text-mode-hook, then nroff-mode-hook.
  630. Also, try nroff-electric-mode, for automatically inserting
  631. closing requests for requests that are used in matched pairs."
  632. t)
  633. (autoload 'list-options "options"
  634. "\
  635. Display a list of Emacs user options, with values and documentation."
  636. t)
  637. (autoload 'edit-options "options"
  638. "\
  639. Edit a list of Emacs user option values.
  640. Selects a buffer containing such a list,
  641. in which there are commands to set the option values.
  642. Type \\[describe-mode] in that buffer for a list of commands."
  643. t)
  644. (autoload 'outline-mode "outline"
  645. "\
  646. Set up Emacs for editing an outline, doing selective hiding of text."
  647. t)
  648. (autoload 'edit-picture "picture"
  649. "\
  650. Switch to Picture mode, in which a quarter-plane screen model is used.
  651. Printing characters replace instead of inserting themselves with motion
  652. afterwards settable by these commands:
  653. M-` Move left after insertion.
  654. M-' Move right after insertion.
  655. M-- Move up after insertion.
  656. M-= Move down after insertion.
  657. C-c ` Move northwest (nw) after insertion.
  658. C-c ' Move northeast (ne) after insertion.
  659. C-c / Move southwest (sw) after insertion.
  660. C-c \\ Move southeast (se) after insertion.
  661. The current direction is displayed in the mode line. The initial
  662. direction is right. Whitespace is inserted and tabs are changed to
  663. spaces when required by movement. You can move around in the buffer
  664. with these commands:
  665. C-p Move vertically to SAME column in previous line.
  666. C-n Move vertically to SAME column in next line.
  667. C-e Move to column following last non-whitespace character.
  668. C-f Move right inserting spaces if required.
  669. C-b Move left changing tabs to spaces if required.
  670. C-c C-f Move in direction of current picture motion.
  671. C-c C-b Move in opposite direction of current picture motion.
  672. Return Move to beginning of next line.
  673. You can edit tabular text with these commands:
  674. M-Tab Move to column beneath (or at) next interesting charecter.
  675. `Indents' relative to a previous line.
  676. Tab Move to next stop in local tab stop list.
  677. C-c Tab Set tab stops according to context of this line.
  678. With ARG resets tab stops to default (global) value.
  679. See also documentation of variable picture-tab-chars
  680. which defines \"interesting character\". You can manually
  681. change the tab stop list with command \\[edit-tab-stops].
  682. You can manipulate text with these commands:
  683. C-d Clear (replace) ARG columns after point without moving.
  684. C-c C-d Delete char at point - the command normally assigned to C-d.
  685. Delete Clear (replace) ARG columns before point, moving back over them.
  686. C-k Clear ARG lines, advancing over them. The cleared
  687. text is saved in the kill ring.
  688. C-o Open blank line(s) beneath current line.
  689. You can manipulate rectangles with these commands:
  690. C-c C-k Clear (or kill) a rectangle and save it.
  691. C-c k Like C-c C-k except rectangle is saved in named register.
  692. C-c C-y Overlay (or insert) currently saved rectangle at point.
  693. C-c y Like C-c C-y except rectangle is taken from named register.
  694. \\[copy-rectangle-to-register] Copies a rectangle to a register.
  695. \\[advertised-undo] Can undo effects of rectangle overlay commands
  696. commands if invoked soon enough.
  697. You can return to the previous mode with:
  698. C-c C-c Which also strips trailing whitespace from every line.
  699. Stripping is suppressed by supplying an argument.
  700. Entry to this mode calls the value of edit-picture-hook if non-nil.
  701. Note that Picture mode commands will work outside of Picture mode, but
  702. they are not defaultly assigned to keys."
  703. t)
  704. (fset 'picture-mode 'edit-picture)
  705. (autoload 'prolog-mode "prolog"
  706. "\
  707. Major mode for editing Prolog code for Prologs.
  708. Blank lines and `%%...' separate paragraphs. `%'s start comments.
  709. Commands:
  710. \\{prolog-mode-map}
  711. Entry to this mode calls the value of prolog-mode-hook
  712. if that value is non-nil."
  713. t)
  714. (autoload 'clear-rectangle "rect"
  715. "\
  716. Blank out rectangle with corners at point and mark.
  717. The text previously in the region is overwritten by the blanks."
  718. t)
  719. (autoload 'delete-rectangle "rect"
  720. "\
  721. Delete (don't save) text in rectangle with point and mark as corners.
  722. The same range of columns is deleted in each line
  723. starting with the line where the region begins
  724. and ending with the line where the region ends."
  725. t)
  726. (autoload 'delete-extract-rectangle "rect"
  727. "\
  728. Return and delete contents of rectangle with corners at START and END.
  729. Value is list of strings, one for each line of the rectangle.")
  730. (autoload 'extract-rectangle "rect"
  731. "\
  732. Return contents of rectangle with corners at START and END.
  733. Value is list of strings, one for each line of the rectangle.")
  734. (autoload 'insert-rectangle "rect"
  735. "\
  736. Insert text of RECTANGLE with upper left corner at point.
  737. RECTANGLE's first line is inserted at point,
  738. its second line is inserted at a point vertically under point, etc.
  739. RECTANGLE should be a list of strings.")
  740. (autoload 'kill-rectangle "rect"
  741. "\
  742. Delete rectangle with corners at point and mark; save as last killed one.
  743. Calling from program, supply two args START and END, buffer positions.
  744. But in programs you might prefer to use delete-extract-rectangle."
  745. t)
  746. (autoload 'open-rectangle "rect"
  747. "\
  748. Blank out rectangle with corners at point and mark, shifting text right.
  749. The text previously in the region is not overwritten by the blanks,
  750. but insted winds up to the right of the rectangle."
  751. t)
  752. (autoload 'yank-rectangle "rect"
  753. "\
  754. Yank the last killed rectangle with upper left corner at point."
  755. t)
  756. (autoload 'rnews "rnews"
  757. "\
  758. Read netnews for groups for which you are a member and add or delete groups.
  759. You can reply to articles posted and send articles to any group.
  760. Type \\[describe-mode] once reading news to get a list of rnews commands."
  761. t)
  762. (autoload 'rmail "rmail"
  763. "\
  764. Read and edit incoming mail.
  765. Moves messages into file named by rmail-file-name (a babyl format file)
  766. and edits that file in Rmail Mode.
  767. Type \\[describe-mode] once editing that file, for a list of Rmail commands.
  768. May be called with filename as argument;
  769. then performs rmail editing on that file,
  770. but does not copy any new mail into the file."
  771. t)
  772. (autoload 'rmail-input "rmail"
  773. "\
  774. Run Rmail on file FILENAME."
  775. t)
  776. (defconst rmail-dont-reply-to-names nil "\
  777. *A regular expression specifying names to prune in replying to messages.
  778. nil means don't reply to yourself.")
  779. (defconst rmail-ignored-headers "^via:\\|^mail-from:\\|^origin:\\|^status:\\|^received:\\|^[a-z-]*message-id:\\|^summary-line:\\|^errors-to:" "\
  780. *Gubbish header fields one would rather not see.")
  781. (defvar rmail-delete-after-output nil "\
  782. *Non-nil means automatically delete a message that is copied to a file.")
  783. ;;; Others are in paths.el.
  784. (autoload 'scheme-mode "scheme"
  785. "\
  786. Set up things for editing scheme code,
  787. or for running emacs as an inferior editor under scheme
  788. to edit and zap functions."
  789. t)
  790. (autoload 'scribe-mode "scribe"
  791. "\
  792. Major mode for editing files of Scribe (a text formatter) source.
  793. Scribe-mode is similar text-mode, with a few extra commands added.
  794. \\{scribe-mode-map}
  795. Interesting variables:
  796. scribe-fancy-paragraphs
  797. Non-nil makes Scribe mode use a different style of paragraph separation.
  798. scribe-electric-quote
  799. Non-nil makes insert of double quote use `` or '' depending on context.
  800. scribe-electric-parenthesis
  801. Non-nil makes an open-parenthesis char (one of `([<{')
  802. automatically insert its close if typed after an @Command form."
  803. t)
  804. ;; Useful to set in site-init.el
  805. (defconst send-mail-function 'sendmail-send-it "\
  806. Function to call to send the current buffer as mail.
  807. The headers are delimited by a string found in mail-header-separator.")
  808. (defconst mail-self-blind nil "\
  809. *Non-nil means insert BCC to self in messages to be sent.
  810. This is done when the message is initialized,
  811. so you can remove or alter the BCC field to override the default.")
  812. (defconst mail-interactive nil "\
  813. *Non-nil means when sending a message wait for and display errors.
  814. nil means let mailer mail back a message to report errors.")
  815. (defconst mail-yank-ignored-headers "^via:\\|^mail-from:\\|^origin:\\|^status:\\|^remailed\\|^received:\\|^[a-z-]*message-id:\\|^summary-line:\\|^to:\\|^cc:\\|^subject:\\|^in-reply-to:\\|^return-path:" "\
  816. Delete these headers from old message when it's inserted in a reply.")
  817. (defconst mail-header-separator "--text follows this line--" "\
  818. *Line used to separate headers from text in messages being composed.")
  819. (defconst mail-archive-file-name nil "\
  820. *Name of file to write all outgoing messages in, or nil for none.")
  821. (defvar mail-aliases t "\
  822. Alias of mail address aliases,
  823. or t meaning should be initialized from .mailrc.")
  824. (autoload 'mail-other-window "sendmail"
  825. "\
  826. Like mail command but displays in other window."
  827. t)
  828. (autoload 'mail "sendmail"
  829. "\
  830. Edit a message to be sent. Argument means resume editing (don't erase).
  831. Returns with message buffer selected; value t if message freshly initialized.
  832. While editing message, type C-c C-c to send the message and exit.
  833. Various special commands starting with C-c are available in sendmail mode
  834. to move to message header fields. Type C-c ? for a list of them.
  835. If mail-self-blind is non-nil, a bcc to yourself is inserted
  836. when the message is initialized.
  837. If mail-setup-hook is bound, its value is called with no arguments
  838. after the message is initialized. It can add more default fields.
  839. When calling from a program, the second through fifth arguments
  840. TO, SUBJECT, CC and IN-REPLY-TO specify if non-nil
  841. the initial contents of those header fields.
  842. These arguments should not have final newlines.
  843. The sixth argument REPLYBUFFER is a buffer whose contents
  844. should be yanked if the user types C-c y."
  845. t)
  846. (define-key ctl-x-4-map "m" 'mail-other-window)
  847. (define-key ctl-x-map "m" 'mail)
  848. ;; used in mail-utils
  849. (defvar mail-use-rfc822 nil "\
  850. *If non-nil, use a full, hairy RFC822 parser on mail addresses.
  851. Otherwise, (the default) use a smaller, somewhat faster and
  852. often-correct parser.")
  853. (autoload 'server-start "server"
  854. "\
  855. Allow this Emacs process to be a server for client processes.
  856. This starts a server communications subprocess through which
  857. client \"editors\" can send your editing commands to this Emacs job.
  858. To use the server, set up the program `etc/emacsclient' in the
  859. Emacs distribution as your standard \"editor\"."
  860. t)
  861. (autoload 'run-lisp "shell"
  862. "\
  863. Run an inferior Lisp process, input and output via buffer *lisp*."
  864. t)
  865. (autoload 'shell "shell"
  866. "\
  867. Run an inferior shell, with I/O through buffer *shell*.
  868. If buffer exists but shell process is not running, make new shell.
  869. The buffer is put in shell-mode, giving commands for sending input
  870. and controlling the subjobs of the shell. See shell-mode."
  871. t)
  872. (autoload 'sort-lines "sort"
  873. "\
  874. Sort lines in region alphabetically; argument means descending order.
  875. Called from a program, there are three arguments:
  876. REVERSE (non-nil means reverse order), BEG and END (region to sort)."
  877. t)
  878. (autoload 'sort-paragraphs "sort"
  879. "\
  880. Sort paragraphs in region alphabetically; argument means descending order.
  881. Called from a program, there are three arguments:
  882. REVERSE (non-nil means reverse order), BEG and END (region to sort)."
  883. t)
  884. (autoload 'sort-pages "sort"
  885. "\
  886. Sort pages in region alphabetically; argument means descending order.
  887. Called from a program, there are three arguments:
  888. REVERSE (non-nil means reverse order), BEG and END (region to sort)."
  889. t)
  890. (autoload 'sort-numeric-fields "sort"
  891. "\
  892. Sort lines in region numerically by the ARGth field of each line.
  893. Fields are separated by whitespace and numbered from 1 up.
  894. Specified field must contain a number in each line of the region.
  895. With a negative arg, sorts by the -ARG'th field, in reverse order.
  896. Called from a program, there are three arguments:
  897. FIELD, BEG and END. BEG and END specify region to sort."
  898. t)
  899. (autoload 'sort-fields "sort"
  900. "\
  901. Sort lines in region lexicographically by the ARGth field of each line.
  902. Fields are separated by whitespace and numbered from 1 up.
  903. With a negative arg, sorts by the -ARG'th field, in reverse order.
  904. Called from a program, there are three arguments:
  905. FIELD, BEG and END. BEG and END specify region to sort."
  906. t)
  907. (autoload 'sort-columns "sort"
  908. "\
  909. Sort lines in region alphabetically by a certain range of columns.
  910. For the purpose of this command, the region includes
  911. the entire line that point is in and the entire line the mark is in.
  912. The column positions of point and mark bound the range of columns to sort on."
  913. t)
  914. (autoload 'sort-regexp-fields "sort"
  915. "\
  916. Sort the region lexicographically as specifed by RECORD-REGEXP and KEY.
  917. RECORD-REGEXP specifies the textual units which should be sorted.
  918. For example, to sort lines RECORD-REGEXP would be \"^.*$\"
  919. KEY specifies the part of each record (ie each match for RECORD-REGEXP)
  920. is to be used for sorting.
  921. If it is \"\\digit\" then the digit'th \"\\(...\\)\" match field from
  922. RECORD-REGEXP is used.
  923. If it is \"\\&\" then the whole record is used.
  924. Otherwise, it is a regular-expression for which to search within the record.
  925. If a match for KEY is not found within a record then that record is ignored.
  926. With a negative prefix arg sorts in reverse order.
  927. For example: to sort lines in the region by the first word on each line
  928. starting with the letter \"f\",
  929. RECORD-REGEXP would be \"^.*$\" and KEY \"\<f\w*\>\""
  930. t)
  931. (autoload 'spell-buffer "spell"
  932. "\
  933. Check spelling of every word in the buffer.
  934. For each incorrect word, you are asked for the correct spelling
  935. and then put into a query-replace to fix some or all occurrences.
  936. If you do not want to change a word, just give the same word
  937. as its \"correct\" spelling; then the query replace is skipped."
  938. t)
  939. (autoload 'spell-region "spell"
  940. "\
  941. Like spell-buffer but applies only to region.
  942. From program, applies from START to END."
  943. t)
  944. (define-key esc-map "$" 'spell-word)
  945. (autoload 'spell-word "spell"
  946. "\
  947. Check spelling of word at or before point.
  948. If it is not correct, ask user for the correct spelling
  949. and query-replace the entire buffer to substitute it."
  950. t)
  951. (autoload 'spell-string "spell"
  952. "\
  953. Check spelling of string supplied as argument."
  954. t)
  955. (autoload 'untabify "tabify"
  956. "\
  957. Convert all tabs in region to multiple spaces, preserving columns.
  958. The variable tab-width controls the action."
  959. t)
  960. (autoload 'tabify "tabify"
  961. "\
  962. Convert multiple spaces in region to tabs when possible.
  963. A group of spaces is partially replaced by tabs
  964. when this can be done without changing the column they end at.
  965. The variable tab-width controls the action."
  966. t)
  967. (define-key esc-map "." 'find-tag)
  968. (autoload 'find-tag "tags"
  969. "\
  970. Find next tag (in current tag table) whose name contains TAGNAME.
  971. Selects the buffer that the tag is contained in
  972. and puts point at its definition.
  973. If TAGNAME is a null string, the expression in the buffer
  974. around or before point is used as the tag name.
  975. If second arg NEXT is non-nil (interactively, with prefix arg),
  976. searches for the next tag in the tag table
  977. that matches the tagname used in the previous find-tag.
  978. See documentation of variable tags-file-name."
  979. t)
  980. (define-key ctl-x-4-map "." 'find-tag-other-window)
  981. (autoload 'find-tag-other-window "tags"
  982. "\
  983. Find tag (in current tag table) whose name contains TAGNAME.
  984. Selects the buffer that the tag is contained in
  985. and puts point at its definition.
  986. If TAGNAME is a null string, the expression in the buffer
  987. around or before point is used as the tag name.
  988. If second arg NEXT is non-nil (interactively, with prefix arg),
  989. searches for the next tag in the tag table
  990. that matches the tagname used in the previous find-tag.
  991. See documentation of variable tags-file-name."
  992. t)
  993. (autoload 'list-tags "tags"
  994. "\
  995. Display list of tags in file FILE."
  996. t)
  997. (autoload 'next-file "tags"
  998. "\
  999. Select next file among files in current tag table.
  1000. Non-nil argument (prefix arg, if interactive)
  1001. initializes to the beginning of the list of files in the tag table."
  1002. t)
  1003. (autoload 'tags-apropos "tags"
  1004. "\
  1005. Display list of all tags in tag table that contain STRING."
  1006. t)
  1007. (define-key esc-map "," 'tags-loop-continue)
  1008. (autoload 'tags-loop-continue "tags"
  1009. "\
  1010. Continue last tags-search or tags-query-replace command.
  1011. Used noninteractively with non-nil argument
  1012. to begin such a command. See variable tags-loop-form."
  1013. t)
  1014. (autoload 'tag-table-files "tags"
  1015. "\
  1016. Return a list of files in the current tag table.")
  1017. (autoload 'tags-query-replace "tags"
  1018. "\
  1019. Query-replace FROM with TO through all files listed in tag table.
  1020. If you exit (C-G or ESC), you can resume the query-replace
  1021. with the command \\[tags-loop-continue].
  1022. See documentation of variable tags-file-name."
  1023. t)
  1024. (autoload 'tags-search "tags"
  1025. "\
  1026. Search through all files listed in tag table for match for REGEXP.
  1027. Stops when a match is found.
  1028. To continue searching for next match, use command \\[tags-loop-continue].
  1029. See documentation of variable tags-file-name."
  1030. t)
  1031. (autoload 'visit-tags-table "tags"
  1032. "\
  1033. Tell tags commands to use tag table file FILE.
  1034. FILE should be the name of a file created with the `etags' program.
  1035. A directory name is ok too; it means file TAGS in that directory."
  1036. t)
  1037. (autoload 'telnet "telnet"
  1038. "\
  1039. Open a network login connection to host named HOST (a string).
  1040. Communication with HOST is recorded in a buffer *HOST-telnet*.
  1041. Normally input is edited in Emacs and sent a line at a time."
  1042. t)
  1043. (autoload 'terminal-emulator "terminal"
  1044. "\
  1045. Under a display-terminal emulator in BUFFER, run PROGRAM on arguments ARGS.
  1046. BUFFER's contents are made an image of the display generated by that program,
  1047. and any input typed when BUFFER is the current Emacs buffer is sent to that
  1048. program an keyboard input.
  1049. Interactively, BUFFER defaults to \"*terminal*\" and PROGRAM and ARGS
  1050. are parsed from an input-string using `sh' (which means that the ~user
  1051. filename-naming convention doesn't work. Isn't un*x wonderful?)
  1052. The emulated display terminal will have height the same as that of the
  1053. the selected window, and width one less than that window's.
  1054. To switch buffers and leave the emulator, or to give commands
  1055. to the emulator itself (as opposed to the program running under it),
  1056. type Control-^. The following character is an emulator command.
  1057. Type Control-^ twice to send it to the subprogram.
  1058. This escape character may be changed using the variable `terminal-escape-char'.
  1059. Meta characters may not currently be sent through the terminal emulator.
  1060. Here is a list of some of the variables which control the behaviour
  1061. of the emulator -- see their documentation for more information:
  1062. terminal-escape-char, terminal-scrolling, terminal-more-processing,
  1063. terminal-redisplay-interval.
  1064. This function calls the value of terminal-mode-hook if that exists
  1065. and is non-nil after the terminal buffer has been set up and the
  1066. subprocess started.
  1067. Presently with `termcap' only; if somebody sends us code to make this
  1068. work with `terminfo' we will try to use it."
  1069. t)
  1070. (autoload 'latex-mode "tex-mode"
  1071. "\
  1072. Major mode for editing files of input for LaTeX.
  1073. Makes $ and } display the characters they match.
  1074. Makes \" insert `` or '' as appropriate.
  1075. Use \\[validate-TeX-buffer] to check buffer for paragraphs containing
  1076. mismatched $'s or braces.
  1077. Use \\[TeX-region] to run LaTeX on the current region, plus the preamble
  1078. copied from the top of the file (containing \\documentstyle, etc.),
  1079. running LaTeX under a special subshell. \\[TeX-buffer] does the whole buffer.
  1080. \\[TeX-print] prints the .dvi file made by either of those.
  1081. Special commands:
  1082. \\{TeX-mode-map}
  1083. Entering LaTeX mode calls the value of text-mode-hook,
  1084. then the value of TeX-mode-hook, and then the value
  1085. of LaTeX-mode-hook."
  1086. t)
  1087. (autoload 'plain-tex-mode "tex-mode"
  1088. "\
  1089. Major mode for editing files of input for plain TeX.
  1090. Makes $ and } display the characters they match.
  1091. Makes \" insert `` or '' as appropriate.
  1092. Use \\[validate-TeX-buffer] to check buffer for paragraphs containing
  1093. mismatched $'s or braces.
  1094. Use \\[TeX-region] to run TeX on the current region, plus a \"header\"
  1095. copied from the top of the file (containing macro definitions, etc.),
  1096. running TeX under a special subshell. \\[TeX-buffer] does the whole buffer.
  1097. \\[TeX-print] prints the .dvi file made by either of those.
  1098. Special commands:
  1099. \\{TeX-mode-map}
  1100. Entering plain-TeX mode calls the value of text-mode-hook,
  1101. then the value of TeX-mode-hook, and then the value
  1102. of plain-TeX-mode-hook."
  1103. t)
  1104. (autoload 'tex-mode "tex-mode"
  1105. "\
  1106. Major mode for editing files of input for TeX or LaTeX.
  1107. Trys to intuit whether this file is for plain TeX or LaTeX and
  1108. calls plain-tex-mode or latex-mode."
  1109. t)
  1110. (fset 'TeX-mode 'tex-mode)
  1111. (fset 'plain-TeX-mode 'plain-tex-mode)
  1112. (fset 'LaTeX-mode 'latex-mode)
  1113. (autoload 'texinfo-mode "texinfo"
  1114. "\
  1115. Major mode for editing texinfo files.
  1116. These are files that are input for TEX and also to be turned
  1117. into Info files by M-x texinfo-format-buffer.
  1118. These files must be written in a very restricted and
  1119. modified version of TEX input format.
  1120. As for editing commands, like text-mode except for syntax table,
  1121. which is set up so expression commands skip texinfo bracket groups."
  1122. t)
  1123. (autoload 'texinfo-format-buffer "texinfmt"
  1124. "\
  1125. Process the current buffer as texinfo code, into an Info file.
  1126. The Info file output is generated in a buffer
  1127. visiting the Info file name specified in the @setfilename command."
  1128. t)
  1129. (autoload 'batch-texinfo-format "texinfmt"
  1130. "\
  1131. Runs texinfo-format-buffer on the files remaining on the command line.
  1132. Must be used only with -batch, and kills emacs on completion.
  1133. Each file will be processed even if an error occurred previously.
  1134. For example, invoke \"emacs -batch -f batch-texinfo-format $docs/ ~/*.texinfo\""
  1135. nil)
  1136. (autoload 'display-time "time"
  1137. "\
  1138. Display current time and load level in mode line of each buffer.
  1139. Updates automatically every minute.
  1140. If display-time-day-and-date is non-nil, the current day and date
  1141. are displayed as well."
  1142. t)
  1143. (autoload 'underline-region "underline"
  1144. "\
  1145. Underline all nonblank characters in the region.
  1146. Works by overstriking underscores.
  1147. Called from program, takes two arguments START and END
  1148. which specify the range to operate on."
  1149. t)
  1150. (autoload 'ununderline-region "underline"
  1151. "\
  1152. Remove all underlining (overstruck underscores) in the region.
  1153. Called from program, takes two arguments START and END
  1154. which specify the range to operate on."
  1155. t)
  1156. (autoload 'ask-user-about-lock "userlock"
  1157. "\
  1158. Ask user what to do when he wants to edit FILE but it is locked by USER.
  1159. This function has a choice of three things to do:
  1160. do (signal 'buffer-file-locked (list FILE USER))
  1161. to refrain from editing the file
  1162. return t (grab the lock on the file)
  1163. return nil (edit the file even though it is locked).
  1164. You can rewrite it to use any criterion you like to choose which one to do."
  1165. nil)
  1166. (autoload 'ask-user-about-supersession-threat "userlock"
  1167. "\
  1168. Ask a user who is about to modify an obsolete buffer what to do.
  1169. This function has two choices: it can return, in which case the modification
  1170. of the buffer will proceed, or it can (signal 'file-supersession (file)),
  1171. in which case the proposed buffer modification will not be made.
  1172. You can rewrite this to use any criterion you like to choose which one to do."
  1173. nil)
  1174. (autoload 'vi-mode "vi"
  1175. "\
  1176. Major mode that acts like the `vi' editor.
  1177. The purpose of this mode is to provide you the combined power of vi (namely,
  1178. the \"cross product\" effect of commands and repeat last changes) and Emacs.
  1179. This command redefines nearly all keys to look like vi commands.
  1180. It records the previous major mode, and any vi command for input
  1181. \(`i', `a', `s', etc.) switches back to that mode.
  1182. Thus, ordinary Emacs (in whatever major mode you had been using)
  1183. is \"input\" mode as far as vi is concerned.
  1184. To get back into vi from \"input\" mode, you must issue this command again.
  1185. Therefore, it is recommended that you assign it to a key.
  1186. Major differences between this mode and real vi :
  1187. * Limitations and unsupported features
  1188. - Lines can be deleted/yanked with dd/yy etc., but to put back saved text as
  1189. lines you need to specify it explicitly (use 9p/P. Any numeric arg
  1190. greater than one will do.)
  1191. - Search patterns with line offset (e.g. /pat/+3 or /pat/z.)
  1192. are not supported.
  1193. - Ex commands are not implemented; try ':' to get some hints.
  1194. - No line undo (i.e. the 'U' command), but multi-undo is a standard feature.
  1195. - IMPORTANT: '1G' will go to the end of current buffer, NOT the first line
  1196. (due to a technical difficulty with using 'G' command as an argument to
  1197. the operators). Use 'g' command instead.
  1198. * Modifications
  1199. - The stopping positions for some point motion commands (word boundary,
  1200. pattern search) are slightly different from standard 'vi'.
  1201. Also, no automatic wrap around at end of buffer for pattern searching.
  1202. - Since changes are done in two steps (deletion then insertion), you need
  1203. to undo twice to completely undo a change command. But this is not needed
  1204. for undoing a repeated change command.
  1205. - No need to set/unset 'magic', to search for a string with regular expr
  1206. in it just put a prefix arg for the search commands. Replace cmds too.
  1207. - ^R is bound to incremental backward search, so use ^L to redraw screen.
  1208. * Extensions
  1209. - Some standard (or modified) Emacs commands were integrated, such as
  1210. incremental search, query replace, transpose objects, and keyboard macros.
  1211. - In command state, ^X links to the 'ctl-x-map', and ESC can be linked to
  1212. esc-map or set undefined. These can give you the full power of Emacs.
  1213. - See vi-com-map for those keys that are extensions to standard vi, e.g.
  1214. `vi-name-last-change-or-macro', `vi-verify-spelling', `vi-locate-def',
  1215. `vi-mark-region', and 'vi-quote-words'. Some of them are quite handy.
  1216. - Use \\[vi-switch-mode] to switch among different modes quickly.
  1217. Syntax table and abbrevs while in vi mode remain as they were in Emacs."
  1218. t)
  1219. (autoload 'view-file "view"
  1220. "\
  1221. View FILE in View mode, returning to previous buffer when done.
  1222. The usual Emacs commands are not available; instead,
  1223. a special set of commands (mostly letters and punctuation)
  1224. are defined for moving around in the buffer.
  1225. Space scrolls forward, Delete scrolls backward.
  1226. For list of all View commands, type ? or h while viewing.
  1227. Calls the value of view-hook if that is non-nil."
  1228. t)
  1229. (autoload 'view-buffer "view"
  1230. "\
  1231. View BUFFER in View mode, returning to previous buffer when done.
  1232. The usual Emacs commands are not available; instead,
  1233. a special set of commands (mostly letters and punctuation)
  1234. are defined for moving around in the buffer.
  1235. Space scrolls forward, Delete scrolls backward.
  1236. For list of all View commands, type ? or h while viewing.
  1237. Calls the value of view-hook if that is non-nil."
  1238. t)
  1239. (autoload 'view-mode "view"
  1240. "\
  1241. Major mode for viewing text but not editing it.")
  1242. (autoload 'vip-mode "vip"
  1243. "\
  1244. Begin emulating the vi editor. This is distinct from `vi-mode'.
  1245. This emulator has different capabilities from the `vi-mode' emulator.
  1246. See the text at the beginning of the source file .../lisp/vip.el
  1247. in the Emacs distribution."
  1248. t)
  1249. (autoload 'yow "yow"
  1250. "\
  1251. Return or display a Zippy quotation" t)
  1252. (autoload 'psychoanalyze-pinhead "yow"
  1253. "\
  1254. Zippy goes to the analyst" t)
  1255. (define-key esc-map "\C-f" 'forward-sexp)
  1256. (define-key esc-map "\C-b" 'backward-sexp)
  1257. (define-key esc-map "\C-u" 'backward-up-list)
  1258. (define-key esc-map "\C-@" 'mark-sexp)
  1259. (define-key esc-map "\C-d" 'down-list)
  1260. (define-key esc-map "\C-k" 'kill-sexp)
  1261. (define-key esc-map "\C-n" 'forward-list)
  1262. (define-key esc-map "\C-p" 'backward-list)
  1263. (define-key esc-map "\C-a" 'beginning-of-defun)
  1264. (define-key esc-map "\C-e" 'end-of-defun)
  1265. (define-key esc-map "\C-h" 'mark-defun)
  1266. (define-key esc-map "(" 'insert-parentheses)
  1267. (define-key esc-map ")" 'move-past-close-and-reindent)
  1268. (define-key esc-map "\t" 'lisp-complete-symbol)
  1269. (define-key ctl-x-map "\C-e" 'eval-last-sexp)
  1270. (define-key ctl-x-map "/" 'point-to-register)
  1271. (define-key ctl-x-map "j" 'register-to-point)
  1272. (define-key ctl-x-map "x" 'copy-to-register)
  1273. (define-key ctl-x-map "g" 'insert-register)
  1274. (define-key ctl-x-map "r" 'copy-rectangle-to-register)
  1275. (define-key esc-map "q" 'fill-paragraph)
  1276. (define-key esc-map "g" 'fill-region)
  1277. (define-key ctl-x-map "." 'set-fill-prefix)
  1278. (define-key esc-map "[" 'backward-paragraph)
  1279. (define-key esc-map "]" 'forward-paragraph)
  1280. (define-key esc-map "h" 'mark-paragraph)
  1281. (define-key esc-map "a" 'backward-sentence)
  1282. (define-key esc-map "e" 'forward-sentence)
  1283. (define-key esc-map "k" 'kill-sentence)
  1284. (define-key ctl-x-map "\177" 'backward-kill-sentence)
  1285. (define-key ctl-x-map "[" 'backward-page)
  1286. (define-key ctl-x-map "]" 'forward-page)
  1287. (define-key ctl-x-map "\C-p" 'mark-page)
  1288. (put 'narrow-to-region 'disabled t)
  1289. (define-key ctl-x-map "p" 'narrow-to-page)
  1290. (put 'narrow-to-page 'disabled t)
  1291. (define-key ctl-x-map "l" 'count-lines-page)
  1292. (defun isearch-forward ()
  1293. "\
  1294. Do incremental search forward.
  1295. As you type characters, they add to the search string and are found.
  1296. Type Delete to cancel characters from end of search string.
  1297. Type ESC to exit, leaving point at location found.
  1298. Type C-s to search again forward, C-r to search again backward.
  1299. Type C-w to yank word from buffer onto end of search string and search for it.
  1300. Type C-y to yank rest of line onto end of search string, etc.
  1301. Type C-q to quote control character to search for it.
  1302. Other control and meta characters terminate the search
  1303. and are then executed normally.
  1304. The above special characters are mostly controlled by parameters;
  1305. do M-x apropos on search-.*-char to find them.
  1306. C-g while searching or when search has failed
  1307. cancels input back to what has been found successfully.
  1308. C-g when search is successful aborts and moves point to starting point."
  1309. (interactive)
  1310. (isearch t))
  1311. (defun isearch-forward-regexp ()
  1312. "\
  1313. Do incremental search forward for regular expression.
  1314. Like ordinary incremental search except that your input
  1315. is treated as a regexp. See \\[isearch-forward] for more info."
  1316. (interactive)
  1317. (isearch t t))
  1318. (defun isearch-backward ()
  1319. "\
  1320. Do incremental search backward.
  1321. See \\[isearch-forward] for more information."
  1322. (interactive)
  1323. (isearch nil))
  1324. (defun isearch-backward-regexp ()
  1325. "\
  1326. Do incremental search backward for regular expression.
  1327. Like ordinary incremental search except that your input
  1328. is treated as a regexp. See \\[isearch-forward] for more info."
  1329. (interactive)
  1330. (isearch nil t))
  1331. (defvar search-last-string "" "\
  1332. Last string search for by a non-regexp search command.
  1333. This does not include direct calls to the primitive search functions,
  1334. and does not include searches that are aborted.")
  1335. (defvar search-last-regexp "" "\
  1336. Last string searched for by a regexp search command.
  1337. This does not include direct calls to the primitive search functions,
  1338. and does not include searches that are aborted.")
  1339. (defconst search-repeat-char ?\C-s "\
  1340. Character to repeat incremental search forwards.")
  1341. (defconst search-reverse-char ?\C-r "\
  1342. Character to repeat incremental search backwards.")
  1343. (defconst search-exit-char ?\e "\
  1344. Character to exit incremental search.")
  1345. (defconst search-delete-char ?\177 "\
  1346. Character to delete from incremental search string.")
  1347. (defconst search-quote-char ?\C-q "\
  1348. Character to quote special characters for incremental search.")
  1349. (defconst search-yank-word-char ?\C-w "\
  1350. Character to pull next word from buffer into search string.")
  1351. (defconst search-yank-line-char ?\C-y "\
  1352. Character to pull rest of line from buffer into search string.")
  1353. (defconst search-exit-option t "\
  1354. Non-nil means random control characters terminate incremental search.")
  1355. (defvar search-slow-window-lines 1 "\
  1356. *Number of lines in slow search display windows.
  1357. These are the short windows used during incremental search on slow terminals.
  1358. Negative means put the slow search window at the top (normally it's at bottom)
  1359. and the value is minus the number of lines.")
  1360. (defvar search-slow-speed 1200 "\
  1361. *Highest terminal speed at which to use \"slow\" style incremental search.
  1362. This is the style where a one-line window is created to show the line
  1363. that the search has reached.")
  1364. (autoload 'isearch "isearch")
  1365. (define-key global-map "\C-s" 'isearch-forward)
  1366. (define-key global-map "\C-r" 'isearch-backward)
  1367. (define-key esc-map "\C-s" 'isearch-forward-regexp)
  1368. (defun query-replace (from-string to-string &optional arg)
  1369. "\
  1370. Replace some occurrences of FROM-STRING with TO-STRING.
  1371. As each match is found, the user must type a character saying
  1372. what to do with it. For directions, type \\[help-command] at that time.
  1373. Preserves case in each replacement if case-replace and case-fold-search
  1374. are non-nil and FROM-STRING has no uppercase letters.
  1375. Third arg DELIMITED (prefix arg if interactive) non-nil means replace
  1376. only matches surrounded by word boundaries."
  1377. (interactive "sQuery replace: \nsQuery replace %s with: \nP")
  1378. (perform-replace from-string to-string t nil arg)
  1379. (message "Done"))
  1380. (defun query-replace-regexp (regexp to-string &optional arg)
  1381. "\
  1382. Replace some things after point matching REGEXP with TO-STRING.
  1383. As each match is found, the user must type a character saying
  1384. what to do with it. For directions, type \\[help-command] at that time.
  1385. Preserves case in each replacement if case-replace and case-fold-search
  1386. are non-nil and REGEXP has no uppercase letters.
  1387. Third arg DELIMITED (prefix arg if interactive) non-nil means replace
  1388. only matches surrounded by word boundaries.
  1389. In TO-STRING, \\& means insert what matched REGEXP,
  1390. and \\<n> means insert what matched <n>th \\(...\\) in REGEXP."
  1391. (interactive "sQuery replace regexp: \nsQuery replace regexp %s with: \nP")
  1392. (perform-replace regexp to-string t t arg)
  1393. (message "Done"))
  1394. (defun replace-string (from-string to-string &optional delimited)
  1395. "\
  1396. Replace occurrences of FROM-STRING with TO-STRING.
  1397. Preserve case in each match if case-replace and case-fold-search
  1398. are non-nil and FROM-STRING has no uppercase letters.
  1399. Third arg DELIMITED (prefix arg if interactive) non-nil means replace
  1400. only matches surrounded by word boundaries."
  1401. (interactive "sReplace string: \nsReplace string %s with: \nP")
  1402. (perform-replace from-string to-string nil nil delimited)
  1403. (message "Done"))
  1404. (defun replace-regexp (regexp to-string &optional delimited)
  1405. "\
  1406. Replace things after point matching REGEXP with TO-STRING.
  1407. Preserve case in each match if case-replace and case-fold-search
  1408. are non-nil and REGEXP has no uppercase letters.
  1409. Third arg DELIMITED (prefix arg if interactive) non-nil means replace
  1410. only matches surrounded by word boundaries.
  1411. In TO-STRING, \\& means insert what matched REGEXP,
  1412. and \\<n> means insert what matched <n>th \\(...\\) in REGEXP."
  1413. (interactive "sReplace regexp: \nsReplace regexp %s with: \nP")
  1414. (perform-replace regexp to-string nil t delimited)
  1415. (message "Done"))
  1416. (define-key esc-map "%" 'query-replace)
  1417. (autoload 'perform-replace "replace")
  1418. (define-key ctl-x-map "\C-a" 'add-mode-abbrev)
  1419. (define-key ctl-x-map "\+" 'add-global-abbrev)
  1420. (define-key ctl-x-map "\C-h" 'inverse-add-mode-abbrev)
  1421. (define-key ctl-x-map "\-" 'inverse-add-global-abbrev)
  1422. (define-key esc-map "'" 'abbrev-prefix-mark)
  1423. (define-key ctl-x-map "'" 'expand-abbrev)