xemacs.texi 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131
  1. \input texinfo @c -*-texinfo-*-
  2. @setfilename xemacs.info
  3. @comment node-name, next, previous, up
  4. @ifinfo
  5. @dircategory XEmacs Editor
  6. @direntry
  7. * XEmacs: (xemacs). XEmacs Editor.
  8. @end direntry
  9. This file documents the XEmacs editor.
  10. Copyright (C) 1985, 1986, 1988 Richard M. Stallman.
  11. Copyright @copyright{} 1991, 1992, 1993, 1994 Lucid, Inc.
  12. Copyright @copyright{} 1993, 1994 Sun Microsystems, Inc.
  13. Copyright @copyright{} 1995 Amdahl Corporation.
  14. Permission is granted to make and distribute verbatim copies of
  15. this manual provided the copyright notice and this permission notice
  16. are preserved on all copies.
  17. @ignore
  18. Permission is granted to process this file through Tex and print the
  19. results, provided the printed document carries copying permission
  20. notice identical to this one except for the removal of this paragraph
  21. (this paragraph not being relevant to the printed manual).
  22. @end ignore
  23. Permission is granted to copy and distribute modified versions of this
  24. manual under the conditions for verbatim copying, provided also that the
  25. sections entitled ``The GNU Manifesto'', ``Distribution'' and ``GNU
  26. General Public License'' are included exactly as in the original, and
  27. provided that the entire resulting derived work is distributed under the
  28. terms of a permission notice identical to this one.
  29. Permission is granted to copy and distribute translations of this manual
  30. into another language, under the above conditions for modified versions,
  31. except that the sections entitled ``The GNU Manifesto'',
  32. ``Distribution'' and ``GNU General Public License'' may be included in a
  33. translation approved by the author instead of in the original English.
  34. @end ifinfo
  35. @c
  36. @setchapternewpage odd
  37. @settitle XEmacs User's Manual
  38. @c
  39. @titlepage
  40. @sp 6
  41. @center @titlefont{XEmacs User's Manual}
  42. @sp 4
  43. @sp 1
  44. @sp 1
  45. @center July 1994
  46. @center (General Public License upgraded, January 1991)
  47. @sp 5
  48. @center Richard Stallman
  49. @sp 1
  50. @center Lucid, Inc.
  51. @sp 1
  52. @center and
  53. @sp 1
  54. @center Ben Wing
  55. @page
  56. @vskip 0pt plus 1filll
  57. Copyright @copyright{} 1985, 1986, 1988 Richard M. Stallman.
  58. Copyright @copyright{} 1991, 1992, 1993, 1994 Lucid, Inc.
  59. Copyright @copyright{} 1993, 1994 Sun Microsystems, Inc.
  60. Copyright @copyright{} 1995 Amdahl Corporation.
  61. Permission is granted to make and distribute verbatim copies of
  62. this manual provided the copyright notice and this permission notice
  63. are preserved on all copies.
  64. Permission is granted to copy and distribute modified versions of this
  65. manual under the conditions for verbatim copying, provided also that the
  66. sections entitled ``The GNU Manifesto'', ``Distribution'' and ``GNU
  67. General Public License'' are included exactly as in the original, and
  68. provided that the entire resulting derived work is distributed under the
  69. terms of a permission notice identical to this one.
  70. Permission is granted to copy and distribute translations of this manual
  71. into another language, under the above conditions for modified versions,
  72. except that the sections entitled ``The GNU Manifesto'',
  73. ``Distribution'' and ``GNU General Public License'' may be included in a
  74. translation approved by the author instead of in the original English.
  75. @end titlepage
  76. @page
  77. @ifinfo
  78. @node Top, License,, (dir)
  79. @top The XEmacs Editor
  80. XEmacs is the extensible, customizable, self-documenting real-time
  81. display editor. This Info file describes how to edit with Emacs
  82. and some of how to customize it, but not how to extend it. It
  83. corresponds to XEmacs version 21.0.
  84. This manual is intended as a detailed reference to XEmacs. If
  85. you are looking for an introductory manual, see the New User's
  86. Guide.
  87. @end ifinfo
  88. @menu
  89. * License:: The GNU General Public License gives you permission
  90. to redistribute XEmacs on certain terms; and also
  91. explains that there is no warranty.
  92. * Distrib:: How to get XEmacs.
  93. * Intro:: An introduction to XEmacs concepts.
  94. * Glossary:: The glossary.
  95. * Manifesto:: What's GNU? Gnu's Not Unix!
  96. Indices, nodes containing large menus
  97. * Key Index:: An item for each standard XEmacs key sequence.
  98. * Command Index:: An item for each command name.
  99. * Variable Index:: An item for each documented variable.
  100. * Concept Index:: An item for each concept.
  101. Important General Concepts
  102. * Frame:: How to interpret what you see on the screen.
  103. * Keystrokes:: Keyboard gestures XEmacs recognizes.
  104. * Pull-down Menus::
  105. The XEmacs Pull-down Menus available under X.
  106. * Entering Emacs::
  107. Starting Emacs from the shell.
  108. * Exiting:: Stopping or killing XEmacs.
  109. * Command Switches::
  110. Hairy startup options.
  111. * Startup Paths::
  112. How XEmacs finds Directories and Files.
  113. * Packages:: How XEmacs organizes its high-level functionality.
  114. Fundamental Editing Commands
  115. * Basic:: The most basic editing commands.
  116. * Undo:: Undoing recently made changes in the text.
  117. * Minibuffer:: Entering arguments that are prompted for.
  118. * M-x:: Invoking commands by their names.
  119. * Help:: Commands for asking XEmacs about its commands.
  120. Important Text-Changing Commands
  121. * Mark:: The mark: how to delimit a ``region'' of text.
  122. * Mouse Selection::
  123. Selecting text with the mouse.
  124. * Additional Mouse Operations::
  125. Other operations available from the mouse.
  126. * Killing:: Killing text.
  127. * Yanking:: Recovering killed text. Moving text.
  128. * Using X Selections::
  129. Using primary selection, cut buffers, and highlighted regions.
  130. * Accumulating Text::
  131. Other ways of copying text.
  132. * Rectangles:: Operating on the text inside a rectangle on the screen.
  133. * Registers:: Saving a text string or a location in the buffer.
  134. * Display:: Controlling what text is displayed.
  135. * Search:: Finding or replacing occurrences of a string.
  136. * Fixit:: Commands especially useful for fixing typos.
  137. Larger Units of Text
  138. * Files:: All about handling files.
  139. * Buffers:: Multiple buffers; editing several files at once.
  140. * Windows:: Viewing two pieces of text at once.
  141. * Mule:: Using world scripts.
  142. Advanced Features
  143. * Major Modes:: Text mode vs. Lisp mode vs. C mode ...
  144. * Indentation:: Editing the white space at the beginnings of lines.
  145. * Text:: Commands and modes for editing English.
  146. * Programs:: Commands and modes for editing programs.
  147. * Running:: Compiling, running and debugging programs.
  148. * Abbrevs:: How to define text abbreviations to reduce
  149. the number of characters you must type.
  150. * Picture:: Editing pictures made up of characters
  151. using the quarter-plane screen model.
  152. * Sending Mail:: Sending mail in XEmacs.
  153. * Reading Mail:: Reading mail in XEmacs.
  154. * Calendar/Diary:: A Calendar and diary facility in XEmacs.
  155. * Sorting:: Sorting lines, paragraphs or pages within XEmacs.
  156. * Shell:: Executing shell commands from XEmacs.
  157. * Narrowing:: Restricting display and editing to a portion
  158. of the buffer.
  159. * Hardcopy:: Printing buffers or regions.
  160. * Recursive Edit::
  161. A command can allow you to do editing
  162. "within the command". This is called a
  163. `recursive editing level'.
  164. * Dissociated Press:: Dissociating text for fun.
  165. * CONX:: A different kind of dissociation.
  166. * Amusements:: Various games and hacks.
  167. * Emulation:: Emulating some other editors with XEmacs.
  168. * Customization:: Modifying the behavior of XEmacs.
  169. Recovery from Problems.
  170. * Quitting:: Quitting and aborting.
  171. * Lossage:: What to do if XEmacs is hung or malfunctioning.
  172. * Bugs:: How and when to report a bug.
  173. Here are some other nodes which are really inferiors of the ones
  174. already listed, mentioned here so you can get to them in one step:
  175. --- The Detailed Node Listing ---
  176. The Organization of the Frame
  177. * Point:: The place in the text where editing commands operate.
  178. * Echo Area:: Short messages appear at the bottom of the frame.
  179. * Mode Line:: Interpreting the mode line.
  180. * XEmacs under X:: Some information on using XEmacs under the X
  181. Window System.
  182. Keystrokes
  183. * Intro to Keystrokes:: Keystrokes as building blocks of key sequences.
  184. * Representing Keystrokes:: Using lists of modifiers and keysyms to
  185. represent keystrokes.
  186. * Key Sequences:: Combine key strokes into key sequences you can
  187. bind to commands.
  188. * String Key Sequences:: Available for upward compatibility.
  189. * Meta Key:: Using @key{ESC} to represent @key{Meta}
  190. * Super and Hyper Keys:: Adding modifier keys on certain keyboards.
  191. * Character Representation:: How characters appear in XEmacs buffers.
  192. * Commands:: How commands are bound to key sequences.
  193. Pull-down Menus
  194. * File Menu:: Items on the File menu.
  195. * Edit Menu:: Items on the Edit menu.
  196. * Apps Menu:: Items on the Apps menu.
  197. * Options Menu:: Items on the Options menu.
  198. * Buffers Menu:: Information about the Buffers menu.
  199. * Tools Menu:: Items on the Tools menu.
  200. * Help Menu:: Items on the Help menu.
  201. * Menu Customization:: Adding and removing menu items and related
  202. operations.
  203. Packages
  204. * Packages:: Introduction to XEmacs Packages.
  205. * Package Terminology:: Understanding different kinds of packages.
  206. * Installing Packages:: How to install packages.
  207. * Building Packages:: Building packages from sources.
  208. * Local.rules File:: An important part of building packages.
  209. * Creating Packages:: The basics.
  210. * Available Packages:: A brief directory of packaged LISP.
  211. Basic Editing Commands
  212. * Blank Lines:: Commands to make or delete blank lines.
  213. * Continuation Lines:: Lines too wide for the frame.
  214. * Position Info:: What page, line, row, or column is point on?
  215. * Arguments:: Numeric arguments for repeating a command.
  216. The Minibuffer
  217. * File: Minibuffer File. Entering file names with the minibuffer.
  218. * Edit: Minibuffer Edit. How to edit in the minibuffer.
  219. * Completion:: An abbreviation facility for minibuffer input.
  220. * Repetition:: Re-executing commands that used the minibuffer.
  221. The Mark and the Region
  222. * Setting Mark:: Commands to set the mark.
  223. * Using Region:: Summary of ways to operate on contents of the region.
  224. * Marking Objects:: Commands to put region around textual units.
  225. * Mark Ring:: Previous mark positions saved so you can go back there.
  226. Yanking
  227. * Kill Ring:: Where killed text is stored. Basic yanking.
  228. * Appending Kills:: Several kills in a row all yank together.
  229. * Earlier Kills:: Yanking something killed some time ago.
  230. Using X Selections
  231. * X Clipboard Selection:: Pasting to the X clipboard.
  232. * X Selection Commands:: Other operations on the selection.
  233. * X Cut Buffers:: X cut buffers are available for compatibility.
  234. * Active Regions:: Using zmacs-style highlighting of the
  235. selected region.
  236. Registers
  237. * Position: RegPos. Saving positions in registers.
  238. * Text: RegText. Saving text in registers.
  239. * Rectangle: RegRect. Saving rectangles in registers.
  240. * Configurations: RegConfig. Saving window configurations in registers.
  241. * Files: RegFiles. File names in registers.
  242. * Numbers: RegNumbers. Numbers in registers.
  243. * Bookmarks:: Bookmarks are like registers, but persistent.
  244. Controlling the Display
  245. * Scrolling:: Moving text up and down in a window.
  246. * Horizontal Scrolling:: Moving text left and right in a window.
  247. * Selective Display:: Hiding lines with lots of indentation.
  248. * Display Vars:: Information on variables for customizing display.
  249. Searching and Replacement
  250. * Incremental Search:: Search happens as you type the string.
  251. * Non-Incremental Search:: Specify entire string and then search.
  252. * Word Search:: Search for sequence of words.
  253. * Regexp Search:: Search for match for a regexp.
  254. * Regexps:: Syntax of regular expressions.
  255. * Search Case:: To ignore case while searching, or not.
  256. * Replace:: Search, and replace some or all matches.
  257. * Other Repeating Search:: Operating on all matches for some regexp.
  258. Replacement Commands
  259. * Unconditional Replace:: Replacing all matches for a string.
  260. * Regexp Replace:: Replacing all matches for a regexp.
  261. * Replacement and Case:: How replacements preserve case of letters.
  262. * Query Replace:: How to use querying.
  263. Commands for Fixing Typos
  264. * Kill Errors:: Commands to kill a batch of recently entered text.
  265. * Transpose:: Exchanging two characters, words, lines, lists...
  266. * Fixing Case:: Correcting case of last word entered.
  267. * Spelling:: Apply spelling checker to a word, or a whole file.
  268. File Handling
  269. * File Names:: How to type and edit file name arguments.
  270. * Visiting:: Visiting a file prepares XEmacs to edit the file.
  271. * Saving:: Saving makes your changes permanent.
  272. * Reverting:: Reverting cancels all the changes not saved.
  273. * Auto Save:: Auto Save periodically protects against loss of data.
  274. * Version Control:: Version control systems (RCS and SCCS).
  275. * ListDir:: Listing the contents of a file directory.
  276. * Comparing Files:: Finding where two files differ.
  277. * Dired:: ``Editing'' a directory to delete, rename, etc.
  278. the files in it.
  279. * Misc File Ops:: Other things you can do on files.
  280. Saving Files
  281. * Backup:: How XEmacs saves the old version of your file.
  282. * Interlocking:: How XEmacs protects against simultaneous editing
  283. of one file by two users.
  284. Backup Files
  285. * Names: Backup Names. How backup files are named;
  286. Choosing single or numbered backup files.
  287. * Deletion: Backup Deletion. XEmacs deletes excess numbered backups.
  288. * Copying: Backup Copying. Backups can be made by copying or renaming.
  289. Auto-Saving: Protection Against Disasters
  290. * Files: Auto Save Files.
  291. * Control: Auto Save Control.
  292. * Recover:: Recovering text from auto-save files.
  293. Version Control
  294. * Concepts of VC:: Basic version control information;
  295. checking files in and out.
  296. * Editing with VC:: Commands for editing a file maintained
  297. with version control.
  298. * Variables for Check-in/out:: Variables that affect the commands used
  299. to check files in or out.
  300. * Log Entries:: Logging your changes.
  301. * Change Logs and VC:: Generating a change log file from log
  302. entries.
  303. * Old Versions:: Examining and comparing old versions.
  304. * VC Status:: Commands to view the VC status of files and
  305. look at log entries.
  306. * Renaming and VC:: A command to rename both the source and
  307. master file correctly.
  308. * Snapshots:: How to make and use snapshots, a set of
  309. file versions that can be treated as a unit.
  310. * Version Headers:: Inserting version control headers into
  311. working files.
  312. Snapshots
  313. * Making Snapshots:: The snapshot facilities.
  314. * Snapshot Caveats:: Things to be careful of when using snapshots.
  315. Dired, the Directory Editor
  316. * Enter: Dired Enter. How to invoke Dired.
  317. * Edit: Dired Edit. Editing the Dired buffer.
  318. * Deletion: Dired Deletion. Deleting files with Dired.
  319. * Immed: Dired Immed. Other file operations through Dired.
  320. Using Multiple Buffers
  321. * Select Buffer:: Creating a new buffer or reselecting an old one.
  322. * List Buffers:: Getting a list of buffers that exist.
  323. * Misc Buffer:: Renaming; changing read-onliness; copying text.
  324. * Kill Buffer:: Killing buffers you no longer need.
  325. * Several Buffers:: How to go through the list of all buffers
  326. and operate variously on several of them.
  327. Multiple Windows
  328. * Basic Window:: Introduction to XEmacs windows.
  329. * Split Window:: New windows are made by splitting existing windows.
  330. * Other Window:: Moving to another window or doing something to it.
  331. * Pop Up Window:: Finding a file or buffer in another window.
  332. * Change Window:: Deleting windows and changing their sizes.
  333. Major Modes
  334. * Choosing Modes:: How major modes are specified or chosen.
  335. Indentation
  336. * Indentation Commands:: Various commands and techniques for indentation.
  337. * Tab Stops:: You can set arbitrary "tab stops" and then
  338. indent to the next tab stop when you want to.
  339. * Just Spaces:: You can request indentation using just spaces.
  340. Commands for Human Languages
  341. * Text Mode:: The major modes for editing text files.
  342. * Nroff Mode:: The major mode for editing input to the formatter nroff.
  343. * TeX Mode:: The major modes for editing input to the formatter TeX.
  344. * Outline Mode:: The major mode for editing outlines.
  345. * Words:: Moving over and killing words.
  346. * Sentences:: Moving over and killing sentences.
  347. * Paragraphs:: Moving over paragraphs.
  348. * Pages:: Moving over pages.
  349. * Filling:: Filling or justifying text
  350. * Case:: Changing the case of text
  351. @TeX{} Mode
  352. * Editing: TeX Editing. Special commands for editing in TeX mode.
  353. * Printing: TeX Print. Commands for printing part of a file with TeX.
  354. Outline Mode
  355. * Format: Outline Format. What the text of an outline looks like.
  356. * Motion: Outline Motion. Special commands for moving through outlines.
  357. * Visibility: Outline Visibility. Commands to control what is visible.
  358. Filling Text
  359. * Auto Fill:: Auto Fill mode breaks long lines automatically.
  360. * Fill Commands:: Commands to refill paragraphs and center lines.
  361. * Fill Prefix:: Filling when every line is indented or in a comment, etc.
  362. Editing Programs
  363. * Program Modes:: Major modes for editing programs.
  364. * Lists:: Expressions with balanced parentheses.
  365. There are editing commands to operate on them.
  366. * Defuns:: Each program is made up of separate functions.
  367. There are editing commands to operate on them.
  368. * Grinding:: Adjusting indentation to show the nesting.
  369. * Matching:: Insertion of a close-delimiter flashes matching open.
  370. * Comments:: Inserting, filling and aligning comments.
  371. * Balanced Editing:: Inserting two matching parentheses at once, etc.
  372. * Lisp Completion:: Completion on symbol names in Lisp code.
  373. * Documentation:: Getting documentation of functions you plan to call.
  374. * Change Log:: Maintaining a change history for your program.
  375. * Tags:: Go directly to any function in your program in one
  376. command. Tags remembers which file it is in.
  377. * Fortran:: Fortran mode and its special features.
  378. * Asm Mode:: Asm mode and its special features.
  379. Indentation for Programs
  380. * Basic Indent::
  381. * Multi-line Indent:: Commands to reindent many lines at once.
  382. * Lisp Indent:: Specifying how each Lisp function should be indented.
  383. * C Indent:: Choosing an indentation style for C code.
  384. Tags Tables
  385. * Tag Syntax:: Tag syntax for various types of code and text files.
  386. * Create Tags Table:: Creating a tags table with @code{etags}.
  387. * Select Tags Table:: How to visit a tags table.
  388. * Find Tag:: Commands to find the definition of a specific tag.
  389. * Tags Search:: Using a tags table for searching and replacing.
  390. * List Tags:: Listing and finding tags defined in a file.
  391. Fortran Mode
  392. * Motion: Fortran Motion. Moving point by statements or subprograms.
  393. * Indent: Fortran Indent. Indentation commands for Fortran.
  394. * Comments: Fortran Comments. Inserting and aligning comments.
  395. * Columns: Fortran Columns. Measuring columns for valid Fortran.
  396. * Abbrev: Fortran Abbrev. Built-in abbrevs for Fortran keywords.
  397. Fortran Indentation
  398. * Commands: ForIndent Commands. Commands for indenting Fortran.
  399. * Numbers: ForIndent Num. How line numbers auto-indent.
  400. * Conv: ForIndent Conv. Conventions you must obey to avoid trouble.
  401. * Vars: ForIndent Vars. Variables controlling Fortran indent style.
  402. Compiling and Testing Programs
  403. * Compilation:: Compiling programs in languages other than Lisp
  404. (C, Pascal, etc.)
  405. * Modes: Lisp Modes. Various modes for editing Lisp programs, with
  406. different facilities for running the Lisp programs.
  407. * Libraries: Lisp Libraries. Creating Lisp programs to run in XEmacs.
  408. * Eval: Lisp Eval. Executing a single Lisp expression in XEmacs.
  409. * Debug: Lisp Debug. Debugging Lisp programs running in XEmacs.
  410. * Interaction: Lisp Interaction. Executing Lisp in an XEmacs buffer.
  411. * External Lisp:: Communicating through XEmacs with a separate Lisp.
  412. Lisp Libraries
  413. * Loading:: Loading libraries of Lisp code into XEmacs for use.
  414. * Compiling Libraries:: Compiling a library makes it load and run faster.
  415. * Mocklisp:: Converting Mocklisp to Lisp so XEmacs can run it.
  416. Abbrevs
  417. * Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
  418. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  419. * Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
  420. * Saving Abbrevs:: Saving the entire list of abbrevs for another session.
  421. * Dynamic Abbrevs:: Abbreviations for words already in the buffer.
  422. Editing Pictures
  423. * Basic Picture:: Basic concepts and simple commands of Picture Mode.
  424. * Insert in Picture:: Controlling direction of cursor motion
  425. after "self-inserting" characters.
  426. * Tabs in Picture:: Various features for tab stops and indentation.
  427. * Rectangles in Picture:: Clearing and superimposing rectangles.
  428. Sending Mail
  429. * Format: Mail Format. Format of the mail being composed.
  430. * Headers: Mail Headers. Details of allowed mail header fields.
  431. * Mode: Mail Mode. Special commands for editing mail being composed.
  432. Running Shell Commands from XEmacs
  433. * Single Shell:: How to run one shell command and return.
  434. * Interactive Shell:: Permanent shell taking input via XEmacs.
  435. * Shell Mode:: Special XEmacs commands used with permanent shell.
  436. Customization
  437. * Minor Modes:: Each minor mode is one feature you can turn on
  438. independently of any others.
  439. * Variables:: Many XEmacs commands examine XEmacs variables
  440. to decide what to do; by setting variables,
  441. you can control their functioning.
  442. * Keyboard Macros:: A keyboard macro records a sequence of keystrokes
  443. to be replayed with a single command.
  444. * Key Bindings:: The keymaps say what command each key runs.
  445. By changing them, you can "redefine keys".
  446. * Syntax:: The syntax table controls how words and expressions
  447. are parsed.
  448. * Init File:: How to write common customizations in the init file.
  449. * Audible Bell:: Changing how XEmacs sounds the bell.
  450. * Faces:: Changing the fonts and colors of a region of text.
  451. * X Resources:: X resources controlling various aspects of the
  452. behavior of XEmacs.
  453. Variables
  454. * Examining:: Examining or setting one variable's value.
  455. * Easy Customization:: Convenient and easy customization of variables.
  456. * Edit Options:: Examining or editing list of all variables' values.
  457. * Locals:: Per-buffer values of variables.
  458. * File Variables:: How files can specify variable values.
  459. Keyboard Macros
  460. * Basic Kbd Macro:: Defining and running keyboard macros.
  461. * Save Kbd Macro:: Giving keyboard macros names; saving them in files.
  462. * Kbd Macro Query:: Keyboard macros that do different things each use.
  463. Customizing Key Bindings
  464. * Keymaps:: Definition of the keymap data structure.
  465. Names of XEmacs's standard keymaps.
  466. * Rebinding:: How to redefine one key's meaning conveniently.
  467. * Disabling:: Disabling a command means confirmation is required
  468. before it can be executed. This is done to protect
  469. beginners from surprises.
  470. The Syntax Table
  471. * Entry: Syntax Entry. What the syntax table records for each character.
  472. * Change: Syntax Change. How to change the information.
  473. The Init File
  474. * Init Syntax:: Syntax of constants in Emacs Lisp.
  475. * Init Examples:: How to do some things with an init file.
  476. * Terminal Init:: Each terminal type can have an init file.
  477. Dealing with XEmacs Trouble
  478. * Stuck Recursive:: `[...]' in mode line around the parentheses.
  479. * Screen Garbled:: Garbage on the screen.
  480. * Text Garbled:: Garbage in the text.
  481. * Unasked-for Search:: Spontaneous entry to incremental search.
  482. * Emergency Escape:: Emergency escape---
  483. What to do if XEmacs stops responding.
  484. * Total Frustration:: When you are at your wits' end.
  485. @end menu
  486. @iftex
  487. @unnumbered Preface
  488. This manual documents the use and simple customization of the XEmacs
  489. editor. The reader is not expected to be a programmer to use this
  490. editor, and simple customizations do not require programming skills either.
  491. Users who are not interested in customizing XEmacs can ignore the scattered
  492. customization hints.
  493. This document is primarily a reference manual, but it can also be used as a
  494. primer. However, if you are new to XEmacs, consider using the on-line,
  495. learn-by-doing tutorial, which you get by running XEmacs and typing
  496. @kbd{C-h t}. With it, you learn XEmacs by using XEmacs on a specially
  497. designed file which describes commands, tells you when to try them,
  498. and then explains the results you see. Using the tutorial gives a more vivid
  499. introduction than the printed manual. Also consider reading the XEmacs
  500. New User's Guide, which is intended specifically as an introductory
  501. manual rather than as a reference guide.
  502. On first reading, just skim chapters one and two, which describe the
  503. notational conventions of the manual and the general appearance of the
  504. XEmacs display frame. Note which questions are answered in these chapters,
  505. so you can refer back later. After reading chapter four you should
  506. practice the commands there. The next few chapters describe fundamental
  507. techniques and concepts that are used constantly. You need to understand
  508. them thoroughly, experimenting with them if necessary.
  509. To find the documentation on a particular command, look in the index.
  510. Keys (character commands) and command names have separate indexes. There
  511. is also a glossary, with a cross reference for each term.
  512. @ignore
  513. If you know vaguely what the command
  514. does, look in the command summary. The command summary contains a line or
  515. two about each command, and a cross reference to the section of the
  516. manual that describes the command in more detail; related commands
  517. are grouped together.
  518. @end ignore
  519. This manual comes in two forms: the published form and the Info form.
  520. The Info form is for on-line perusal with the INFO program; it is
  521. distributed along with XEmacs. Both forms contain substantially the
  522. same text and are generated from a common source file, which is also
  523. distributed along with XEmacs.
  524. XEmacs is a member of the Emacs editor family. There are many Emacs
  525. editors, all sharing common principles of organization. For information on
  526. the underlying philosophy of Emacs and the lessons learned from its
  527. development, write for a copy of AI memo 519a, ``Emacs, the Extensible,
  528. Customizable Self-Documenting Display Editor'', to Publications Department,
  529. Artificial Intelligence Lab, 545 Tech Square, Cambridge, MA 02139, USA. At
  530. last report they charge $2.25 per copy. Another useful publication is LCS
  531. TM-165, ``A Cookbook for an Emacs'', by Craig Finseth, available from
  532. Publications Department, Laboratory for Computer Science, 545 Tech Square,
  533. Cambridge, MA 02139, USA. The price today is $3.
  534. This manual is for XEmacs installed on UNIX systems. XEmacs also
  535. exists on Microsoft Windows and Windows NT as Win-Emacs (which is
  536. actually based on Lucid Emacs 19.6, an older incarnation of XEmacs).
  537. @end iftex
  538. @comment node-name, next, previous, up
  539. @node License, Distrib, Top, Top
  540. @unnumbered GNU GENERAL PUBLIC LICENSE
  541. @center Version 1, February 1989
  542. @cindex license to copy XEmacs
  543. @cindex General Public License
  544. @display
  545. Copyright @copyright{} 1989 Free Software Foundation, Inc.
  546. 675 Mass Ave, Cambridge, MA 02139, USA
  547. Everyone is permitted to copy and distribute verbatim copies
  548. of this license document, but changing it is not allowed.
  549. @end display
  550. @unnumberedsec Preamble
  551. The license agreements of most software companies try to keep users
  552. at the mercy of those companies. By contrast, our General Public
  553. License is intended to guarantee your freedom to share and change free
  554. software---to make sure the software is free for all its users. The
  555. General Public License applies to the Free Software Foundation's
  556. software and to any other program whose authors commit to using it.
  557. You can use it for your programs, too.
  558. When we speak of free software, we are referring to freedom, not
  559. price. Specifically, the General Public License is designed to make
  560. sure that you have the freedom to give away or sell copies of free
  561. software, that you receive source code or can get it if you want it,
  562. that you can change the software or use pieces of it in new free
  563. programs; and that you know you can do these things.
  564. To protect your rights, we need to make restrictions that forbid
  565. anyone to deny you these rights or to ask you to surrender the rights.
  566. These restrictions translate to certain responsibilities for you if you
  567. distribute copies of the software, or if you modify it.
  568. For example, if you distribute copies of a such a program, whether
  569. gratis or for a fee, you must give the recipients all the rights that
  570. you have. You must make sure that they, too, receive or can get the
  571. source code. And you must tell them their rights.
  572. We protect your rights with two steps: (1) copyright the software, and
  573. (2) offer you this license which gives you legal permission to copy,
  574. distribute and/or modify the software.
  575. Also, for each author's protection and ours, we want to make certain
  576. that everyone understands that there is no warranty for this free
  577. software. If the software is modified by someone else and passed on, we
  578. want its recipients to know that what they have is not the original, so
  579. that any problems introduced by others will not reflect on the original
  580. authors' reputations.
  581. The precise terms and conditions for copying, distribution and
  582. modification follow.
  583. @iftex
  584. @unnumberedsec TERMS AND CONDITIONS
  585. @end iftex
  586. @ifinfo
  587. @center TERMS AND CONDITIONS
  588. @end ifinfo
  589. @enumerate
  590. @item
  591. This License Agreement applies to any program or other work which
  592. contains a notice placed by the copyright holder saying it may be
  593. distributed under the terms of this General Public License. The
  594. ``Program'', below, refers to any such program or work, and a ``work based
  595. on the Program'' means either the Program or any work containing the
  596. Program or a portion of it, either verbatim or with modifications. Each
  597. licensee is addressed as ``you''.
  598. @item
  599. @cindex Distribution
  600. You may copy and distribute verbatim copies of the Program's source
  601. code as you receive it, in any medium, provided that you conspicuously and
  602. appropriately publish on each copy an appropriate copyright notice and
  603. disclaimer of warranty; keep intact all the notices that refer to this
  604. General Public License and to the absence of any warranty; and give any
  605. other recipients of the Program a copy of this General Public License
  606. along with the Program. You may charge a fee for the physical act of
  607. transferring a copy.
  608. @item
  609. You may modify your copy or copies of the Program or any portion of
  610. it, and copy and distribute such modifications under the terms of Paragraph
  611. 1 above, provided that you also do the following:
  612. @itemize @bullet
  613. @item
  614. cause the modified files to carry prominent notices stating that
  615. you changed the files and the date of any change; and
  616. @item
  617. cause the whole of any work that you distribute or publish, that
  618. in whole or in part contains the Program or any part thereof, either
  619. with or without modifications, to be licensed at no charge to all
  620. third parties under the terms of this General Public License (except
  621. that you may choose to grant warranty protection to some or all
  622. third parties, at your option).
  623. @item
  624. If the modified program normally reads commands interactively when
  625. run, you must cause it, when started running for such interactive use
  626. in the simplest and most usual way, to print or display an
  627. announcement including an appropriate copyright notice and a notice
  628. that there is no warranty (or else, saying that you provide a
  629. warranty) and that users may redistribute the program under these
  630. conditions, and telling the user how to view a copy of this General
  631. Public License.
  632. @item
  633. You may charge a fee for the physical act of transferring a
  634. copy, and you may at your option offer warranty protection in
  635. exchange for a fee.
  636. @end itemize
  637. Mere aggregation of another independent work with the Program (or its
  638. derivative) on a volume of a storage or distribution medium does not bring
  639. the other work under the scope of these terms.
  640. @item
  641. You may copy and distribute the Program (or a portion or derivative of
  642. it, under Paragraph 2) in object code or executable form under the terms of
  643. Paragraphs 1 and 2 above provided that you also do one of the following:
  644. @itemize @bullet
  645. @item
  646. accompany it with the complete corresponding machine-readable
  647. source code, which must be distributed under the terms of
  648. Paragraphs 1 and 2 above; or,
  649. @item
  650. accompany it with a written offer, valid for at least three
  651. years, to give any third party free (except for a nominal charge
  652. for the cost of distribution) a complete machine-readable copy of the
  653. corresponding source code, to be distributed under the terms of
  654. Paragraphs 1 and 2 above; or,
  655. @item
  656. accompany it with the information you received as to where the
  657. corresponding source code may be obtained. (This alternative is
  658. allowed only for noncommercial distribution and only if you
  659. received the program in object code or executable form alone.)
  660. @end itemize
  661. Source code for a work means the preferred form of the work for making
  662. modifications to it. For an executable file, complete source code means
  663. all the source code for all modules it contains; but, as a special
  664. exception, it need not include source code for modules which are standard
  665. libraries that accompany the operating system on which the executable
  666. file runs, or for standard header files or definitions files that
  667. accompany that operating system.
  668. @item
  669. You may not copy, modify, sublicense, distribute or transfer the
  670. Program except as expressly provided under this General Public License.
  671. Any attempt otherwise to copy, modify, sublicense, distribute or transfer
  672. the Program is void, and will automatically terminate your rights to use
  673. the Program under this License. However, parties who have received
  674. copies, or rights to use copies, from you under this General Public
  675. License will not have their licenses terminated so long as such parties
  676. remain in full compliance.
  677. @item
  678. By copying, distributing or modifying the Program (or any work based
  679. on the Program) you indicate your acceptance of this license to do so,
  680. and all its terms and conditions.
  681. @item
  682. Each time you redistribute the Program (or any work based on the
  683. Program), the recipient automatically receives a license from the original
  684. licensor to copy, distribute or modify the Program subject to these
  685. terms and conditions. You may not impose any further restrictions on the
  686. recipients' exercise of the rights granted herein.
  687. @page
  688. @item
  689. The Free Software Foundation may publish revised and/or new versions
  690. of the General Public License from time to time. Such new versions will
  691. be similar in spirit to the present version, but may differ in detail to
  692. address new problems or concerns.
  693. Each version is given a distinguishing version number. If the Program
  694. specifies a version number of the license which applies to it and ``any
  695. later version'', you have the option of following the terms and conditions
  696. either of that version or of any later version published by the Free
  697. Software Foundation. If the Program does not specify a version number of
  698. the license, you may choose any version ever published by the Free Software
  699. Foundation.
  700. @item
  701. If you wish to incorporate parts of the Program into other free
  702. programs whose distribution conditions are different, write to the author
  703. to ask for permission. For software which is copyrighted by the Free
  704. Software Foundation, write to the Free Software Foundation; we sometimes
  705. make exceptions for this. Our decision will be guided by the two goals
  706. of preserving the free status of all derivatives of our free software and
  707. of promoting the sharing and reuse of software generally.
  708. @iftex
  709. @heading NO WARRANTY
  710. @end iftex
  711. @ifinfo
  712. @center NO WARRANTY
  713. @end ifinfo
  714. @item
  715. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  716. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  717. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  718. PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  719. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  720. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  721. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  722. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  723. REPAIR OR CORRECTION.
  724. @item
  725. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
  726. ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  727. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  728. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
  729. ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT
  730. LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES
  731. SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE
  732. WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  733. ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  734. @end enumerate
  735. @iftex
  736. @heading END OF TERMS AND CONDITIONS
  737. @end iftex
  738. @ifinfo
  739. @center END OF TERMS AND CONDITIONS
  740. @end ifinfo
  741. @page
  742. @unnumberedsec Appendix: How to Apply These Terms to Your New Programs
  743. If you develop a new program, and you want it to be of the greatest
  744. possible use to humanity, the best way to achieve this is to make it
  745. free software which everyone can redistribute and change under these
  746. terms.
  747. To do so, attach the following notices to the program. It is safest to
  748. attach them to the start of each source file to most effectively convey
  749. the exclusion of warranty; and each file should have at least the
  750. ``copyright'' line and a pointer to where the full notice is found.
  751. @smallexample
  752. @var{one line to give the program's name and a brief idea of what it does.}
  753. Copyright (C) 19@var{yy} @var{name of author}
  754. This program is free software; you can redistribute it and/or modify
  755. it under the terms of the GNU General Public License as published by
  756. the Free Software Foundation; either version 1, or (at your option)
  757. any later version.
  758. This program is distributed in the hope that it will be useful,
  759. but WITHOUT ANY WARRANTY; without even the implied warranty of
  760. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  761. GNU General Public License for more details.
  762. You should have received a copy of the GNU General Public License
  763. along with this program; if not, write to the Free Software
  764. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  765. @end smallexample
  766. Also add information on how to contact you by electronic and paper mail.
  767. If the program is interactive, make it output a short notice like this
  768. when it starts in an interactive mode:
  769. @smallexample
  770. Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
  771. Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  772. This is free software, and you are welcome to redistribute it
  773. under certain conditions; type `show c' for details.
  774. @end smallexample
  775. The hypothetical commands `show w' and `show c' should show the
  776. appropriate parts of the General Public License. Of course, the
  777. commands you use may be called something other than `show w' and `show
  778. c'; they could even be mouse-clicks or menu items---whatever suits your
  779. program.
  780. @page
  781. You should also get your employer (if you work as a programmer) or your
  782. school, if any, to sign a ``copyright disclaimer'' for the program, if
  783. necessary. Here a sample; alter the names:
  784. @example
  785. Yoyodyne, Inc., hereby disclaims all copyright interest in the
  786. program `Gnomovision' (a program to direct compilers to make passes
  787. at assemblers) written by James Hacker.
  788. @var{signature of Ty Coon}, 1 April 1989
  789. Ty Coon, President of Vice
  790. @end example
  791. That's all there is to it!
  792. @comment node-name, next, previous, up
  793. @node Distrib, Intro, License, Top
  794. @unnumbered Distribution
  795. XEmacs is @dfn{free}; this means that everyone is free to use it and
  796. free to redistribute it on a free basis. XEmacs is not in the public
  797. domain; it is copyrighted and there are restrictions on its
  798. distribution, but these restrictions are designed to permit everything
  799. that a good cooperating citizen would want to do. What is not allowed
  800. is to try to prevent others from further sharing any version of XEmacs
  801. that they might get from you. The precise conditions are found in
  802. the GNU General Public License that comes with XEmacs and also appears
  803. following this section.
  804. The easiest way to get a copy of XEmacs is from someone else who has it.
  805. You need not ask for permission to do so, or tell any one else; just copy
  806. it.
  807. If you have access to the Internet, you can get the latest version of
  808. XEmacs from the anonymous FTP server @file{ftp.xemacs.org} in the directory
  809. @file{/pub/xemacs}. It can also be found at numerous other archive
  810. sites around the world; check the file @file{etc/DISTRIB} in an XEmacs
  811. distribution for the latest known list.
  812. @unnumberedsec Getting Other Versions of Emacs
  813. The Free Software Foundation's version of Emacs (called @dfn{FSF Emacs}
  814. in this manual and often referred to as @dfn{GNU Emacs}) is available
  815. by anonymous FTP from @file{prep.ai.mit.edu}.
  816. Win-Emacs, an older version of XEmacs that runs on Microsoft Windows
  817. and Windows NT, is available by anonymous FTP from @file{ftp.netcom.com}
  818. in the directory @file{/pub/pe/pearl}, or from @file{ftp.cica.indiana.edu}
  819. as the files @file{wemdemo*.zip} in the directory @file{/pub/pc/win3/demo}.
  820. @node Intro, Glossary, Distrib, Top
  821. @unnumbered Introduction
  822. You are reading about XEmacs, an incarnation of the advanced,
  823. self-documenting, customizable, extensible real-time display editor
  824. Emacs. XEmacs provides many powerful display and user-interface
  825. capabilities not found in other Emacsen and is mostly upwardly
  826. compatible with GNU Emacs from the Free Software Foundation
  827. (referred to as @dfn{FSF Emacs} in this manual). XEmacs also
  828. comes standard with a great number of useful packages.
  829. We say that XEmacs is a @dfn{display} editor because normally the text
  830. being edited is visible on the screen and is updated automatically as you
  831. type. @xref{Frame,Display}.
  832. We call XEmacs a @dfn{real-time} editor because the display is updated very
  833. frequently, usually after each character or pair of characters you
  834. type. This minimizes the amount of information you must keep in your
  835. head as you edit. @xref{Basic,Real-time,Basic Editing}.
  836. We call XEmacs advanced because it provides facilities that go beyond
  837. simple insertion and deletion: filling of text; automatic indentation of
  838. programs; viewing two or more files at once; and dealing in terms of
  839. characters, words, lines, sentences, paragraphs, and pages, as well as
  840. expressions and comments in several different programming languages. It is
  841. much easier to type one command meaning ``go to the end of the paragraph''
  842. than to find that spot with simple cursor keys.
  843. @dfn{Self-documenting} means that at any time you can type a special
  844. character, @kbd{Control-h}, to find out what your options are. You can
  845. also use @kbd{C-h} to find out what a command does, or to find all the
  846. commands relevant to a topic. @xref{Help}.
  847. @dfn{Customizable} means you can change the definitions of XEmacs
  848. commands. For example, if you use a programming language in
  849. which comments start with @samp{<**} and end with @samp{**>}, you can tell
  850. the XEmacs comment manipulation commands to use those strings
  851. (@pxref{Comments}). Another sort of customization is rearrangement of the
  852. command set. For example, you can set up the four basic cursor motion
  853. commands (up, down, left and right) on keys in a diamond pattern on the
  854. keyboard if you prefer. @xref{Customization}.
  855. @dfn{Extensible} means you can go beyond simple customization and
  856. write entirely new commands, programs in the Lisp language to be run by
  857. XEmacs's own Lisp interpreter. XEmacs is an ``on-line extensible''
  858. system: it is divided into many functions that call each other. You can
  859. redefine any function in the middle of an editing session and replace
  860. any part of XEmacs without making a separate copy of all of XEmacs. Most
  861. of the editing commands of XEmacs are written in Lisp; the few
  862. exceptions could have been written in Lisp but are written in C for
  863. efficiency. Only a programmer can write an extension to XEmacs, but anybody
  864. can use it afterward.
  865. @include frame.texi
  866. @include keystrokes.texi
  867. @include menus.texi
  868. @include entering.texi
  869. @include cmdargs.texi
  870. @include startup.texi
  871. @include basic.texi
  872. @include undo.texi
  873. @include mini.texi
  874. @include m-x.texi
  875. @include help.texi
  876. @include mark.texi
  877. @include mouse.texi
  878. @include killing.texi
  879. @include regs.texi
  880. @include display.texi
  881. @include search.texi
  882. @include fixit.texi
  883. @include files.texi
  884. @include buffers.texi
  885. @include windows.texi
  886. @include mule.texi
  887. @include major.texi
  888. @include indent.texi
  889. @include text.texi
  890. @include programs.texi
  891. @include building.texi
  892. @include packages.texi
  893. @include abbrevs.texi
  894. @include picture.texi
  895. @include sending.texi
  896. @include reading.texi
  897. @include calendar.texi
  898. @include misc.texi
  899. @include custom.texi
  900. @include trouble.texi
  901. @include new.texi
  902. @include glossary.texi
  903. @include gnu.texi
  904. @node Key Index, Command Index, Manifesto, Top
  905. @unnumbered Key (Character) Index
  906. @printindex ky
  907. @node Command Index, Variable Index, Key Index, Top
  908. @unnumbered Command and Function Index
  909. @printindex fn
  910. @node Variable Index, Concept Index, Command Index, Top
  911. @unnumbered Variable Index
  912. @printindex vr
  913. @node Concept Index, Frame, Variable Index, Top
  914. @unnumbered Concept Index
  915. @printindex cp
  916. @summarycontents
  917. @contents
  918. @bye
  919. @c Remember to delete these lines before creating the info file.
  920. @iftex
  921. @lucidbook
  922. @bindingoffset = 0.5in
  923. @parindent = 0pt
  924. @end iftex