home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / emacs-19.28-src.tgz / tar.out / fsf / emacs / info / emacs-1 (.txt) < prev    next >
GNU Info File  |  1996-09-28  |  48KB  |  841 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3. File: emacs,  Node: Top,  Next: Distrib,  Prev: (dir),  Up: (dir)
  4. The Emacs Editor
  5. ****************
  6.    Emacs is the extensible, customizable, self-documenting real-time
  7. display editor.  This Info file describes how to edit with Emacs and
  8. some of how to customize it, but not how to extend it.  It corresponds
  9. to GNU Emacs version 19.28.
  10. * Menu:
  11. * Distrib::          How to get the latest Emacs distribution.
  12. * Copying::          The GNU General Public License gives you permission
  13.             to redistribute GNU Emacs on certain terms;
  14.             it also explains that there is no warranty.
  15. * Intro::          An introduction to Emacs concepts.
  16. * Glossary::          The glossary.
  17. * Antinews::          Information about Emacs version 18.
  18. * MS-DOS::            Using Emacs on MS-DOS (otherwise known as "MS-DOG").
  19. * Manifesto::          What's GNU?  Gnu's Not Unix!
  20. Indexes, nodes containing large menus
  21. * Key Index::          An item for each standard Emacs key sequence.
  22. * Command Index::     An item for each command name.
  23. * Variable Index::    An item for each documented variable.
  24. * Concept Index::     An item for each concept.
  25. Important General Concepts
  26. * Screen::          How to interpret what you see on the screen.
  27. * User Input::          Kinds of input events (characters, buttons,
  28.                         function keys).
  29. * Keys::          Key sequences: what you type to request one
  30.                         editing action.
  31. * Commands::          Named functions run by key sequences to do editing.
  32. * Text Characters::   Character set for text (the contents of buffers
  33.             and strings).
  34. * Entering Emacs::    Starting Emacs from the shell.
  35. * Exiting::          Stopping or killing Emacs.
  36. * Command Arguments:: Hairy startup options.
  37. Fundamental Editing Commands
  38. * Basic::          The most basic editing commands.
  39. * Minibuffer::          Entering arguments that are prompted for.
  40. * M-x::              Invoking commands by their names.
  41. * Help::          Commands for asking Emacs about its commands.
  42. Important Text-Changing Commands
  43. * Mark::          The mark: how to delimit a "region" of text.
  44. * Killing::          Killing text.
  45. * Yanking::          Recovering killed text.  Moving text.
  46. * Accumulating Text:: Other ways of copying text.
  47. * Rectangles::          Operating on the text inside a rectangle on the screen.
  48. * Registers::          Saving a text string or a location in the buffer.
  49. * Display::          Controlling what text is displayed.
  50. * Search::          Finding or replacing occurrences of a string.
  51. * Fixit::          Commands especially useful for fixing typos.
  52. Larger Units of Text
  53. * Files::          All about handling files.
  54. * Buffers::          Multiple buffers; editing several files at once.
  55. * Windows::          Viewing two pieces of text at once.
  56. * Frames::          Running the same Emacs session in multiple X windows.
  57. Advanced Features
  58. * Major Modes::          Text mode vs. Lisp mode vs. C mode ...
  59. * Indentation::          Editing the white space at the beginnings of lines.
  60. * Text::          Commands and modes for editing English.
  61. * Programs::          Commands and modes for editing programs.
  62. * Building::          Compiling, running and debugging programs.
  63. * Abbrevs::          How to define text abbreviations to reduce
  64.             the number of characters you must type.
  65. * Picture::          Editing pictures made up of characters
  66.             using the quarter-plane screen model.
  67. * Sending Mail::      Sending mail in Emacs.
  68. * Rmail::          Reading mail in Emacs.
  69. * Dired::          You can "edit" a directory to manage files in it.
  70. * Calendar/Diary::    The calendar and diary facilities.
  71. * GNUS::          How to read netnews with Emacs.
  72. * Shell::          Executing shell commands from Emacs.
  73. * Emacs Server::      Using Emacs as an editing server for `mail', etc.
  74. * Hardcopy::          Printing buffers or regions.
  75. * Sorting::          Sorting lines, paragraphs or pages within Emacs.
  76. * Narrowing::          Restricting display and editing to a portion
  77.             of the buffer.
  78. * Two-Column::          Splitting apart columns to edit them
  79.              in side-by-side windows.
  80. * Editing Binary Files:: Using Hexl mode to edit binary files.
  81. * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
  82. * Recursive Edit::    A command can allow you to do editing
  83.             "within the command".  This is called a
  84.             `recursive editing level'.
  85. * Emulation::          Emulating some other editors with Emacs.
  86. * Dissociated Press:: Dissociating text for fun.
  87. * Amusements::          Various games and hacks.
  88. * Customization::     Modifying the behavior of Emacs.
  89. Recovery from Problems.
  90. * Quitting::          Quitting and aborting.
  91. * Lossage::          What to do if Emacs is hung or malfunctioning.
  92. * Bugs::          How and when to report a bug.
  93. * Service::          How to get help for your own Emacs needs.
  94. Here are some other nodes which are really inferiors of the ones
  95. already listed, mentioned here so you can get to them in one step:
  96.  -- The Detailed Node Listing --
  97. The Organization of the Screen
  98. * Point::    The place in the text where editing commands operate.
  99. * Echo Area::   Short messages appear at the bottom of the screen.
  100. * Mode Line::    Interpreting the mode line.
  101. Basic Editing Commands
  102. * Inserting Text::     Inserting text by simply typing it.
  103. * Moving Point::       How to move the cursor to the place where you want to
  104.              change something.
  105. * Erasing::           Deleting and killing text.
  106. * Undo::           Undoing recently made changes in the text.
  107. * Files: Basic Files.  Visiting, creating, and saving files.
  108. * Help: Basic Help.    Asking what a character does.
  109. * Blank Lines::           Commands to make or delete blank lines.
  110. * Continuation Lines:: Lines too wide for the screen.
  111. * Position Info::      What page, line, row, or column is point on?
  112. * Arguments::           Numeric arguments for repeating a command.
  113. The Minibuffer
  114. * Minibuffer File::       Entering file names with the minibuffer.
  115. * Minibuffer Edit::       How to edit in the minibuffer.
  116. * Completion::          An abbreviation facility for minibuffer input.
  117. * Minibuffer History::      Reusing recent minibuffer arguments.
  118. * Repetition::          Re-executing commands that used the minibuffer.
  119. * Help Summary::    Brief list of all Help commands.
  120. * Key Help::        Asking what a key does in Emacs.
  121. * Name Help::        Asking about a command, variable or function name.
  122. * Apropos::        Asking what pertains to a given topic.
  123. * Library Keywords::    Finding Lisp libraries by keywords (topics).
  124. * Misc Help::        Other help commands.
  125. The Mark and the Region
  126. * Setting Mark::    Commands to set the mark.
  127. * Transient Mark::    How to make Emacs highlight the region-
  128.               when there is one.
  129. * Using Region::    Summary of ways to operate on contents of the region.
  130. * Marking Objects::    Commands to put region around textual units.
  131. * Mark Ring::        Previous mark positions saved so you can go back there.
  132. * Global Mark Ring::    Previous mark positions in various buffers.
  133. Deletion and Killing
  134. * Deletion::        Commands for deleting small amounts of text and
  135.               blank areas.
  136. * Killing by Lines::    How to kill entire lines of text at one time.
  137. * Other Kill Commands:: Commands to kill large regions of text and
  138.               syntactic units such as words and sentences.
  139. Yanking
  140. * Kill Ring::        Where killed text is stored.  Basic yanking.
  141. * Appending Kills::    Several kills in a row all yank together.
  142. * Earlier Kills::    Yanking something killed some time ago.
  143. Registers
  144. * RegPos::             Saving positions in registers.
  145. * RegText::            Saving text in registers.
  146. * RegRect::            Saving rectangles in registers.
  147. * RegConfig::              Saving window configurations in registers.
  148. * RegFiles::           File names in registers.
  149. * Bookmarks::              Bookmarks are like registers, but persistent.
  150. Controlling the Display
  151. * Scrolling::           Moving text up and down in a window.
  152. * Horizontal Scrolling::   Moving text left and right in a window.
  153. * Selective Display::       Hiding lines with lots of indentation.
  154. * Optional Mode Line::       Optional mode line features.
  155. * European Display::       Displaying (and entering) European characters.
  156. * Display Vars::       Information on variables for customizing display.
  157. Searching and Replacement
  158. * Incremental Search::       Search happens as you type the string.
  159. * Nonincremental Search::  Specify entire string and then search.
  160. * Word Search::           Search for sequence of words.
  161. * Regexp Search::       Search for match for a regexp.
  162. * Regexps::           Syntax of regular expressions.
  163. * Search Case::           To ignore case while searching, or not.
  164. * Replace::           Search, and replace some or all matches.
  165. * Other Repeating Search:: Operating on all matches for some regexp.
  166. Replacement Commands
  167. * Unconditional Replace::  Replacing all matches for a string.
  168. * Regexp Replace::       Replacing all matches for a regexp.
  169. * Replacement and Case::   How replacements preserve case of letters.
  170. * Query Replace::       How to use querying.
  171. Commands for Fixing Typos
  172. * Kill Errors:: Commands to kill a batch of recently entered text.
  173. * Transpose::    Exchanging two characters, words, lines, lists...
  174. * Fixing Case:: Correcting case of last word entered.
  175. * Spelling::    Apply spelling checker to a word, or a whole file.
  176. File Handling
  177. * File Names::         How to type and edit file name arguments.
  178. * Visiting::         Visiting a file prepares Emacs to edit the file.
  179. * Saving::         Saving makes your changes permanent.
  180. * Reverting::         Reverting cancels all the changes not saved.
  181. * Auto Save::         Auto Save periodically protects against loss of data.
  182. * File Aliases::     Handling multiple names for one file.
  183. * Version Control::  Version control systems (RCS and SCCS).
  184. * ListDir::         Listing the contents of a file directory.
  185. * Comparing Files::  Finding where two files differ.
  186. * Misc File Ops::    Other things you can do on files.
  187. Saving Files
  188. * Backup::      How Emacs saves the old version of your file.
  189. * Interlocking::  How Emacs protects against simultaneous editing
  190.             of one file by two users.
  191. Version Control
  192. * Concepts of VC::        Basic version control information;
  193.                   checking files in and out.
  194. * Editing with VC::        Commands for editing a file maintained
  195.                   with version control.
  196. * Variables for Check-in/out::    Variables that affect the commands used
  197.                   to check files in or out.
  198. * Log Entries::            Logging your changes.
  199. * Change Logs and VC::        Generating a change log file from log
  200.                   entries.
  201. * Old Versions::        Examining and comparing old versions.
  202. * VC Status::            Commands to view the VC status of files and
  203.                   look at log entries.
  204. * Renaming and VC::        A command to rename both the source and
  205.                   master file correctly.
  206. * Snapshots::            How to make and use snapshots, a set of
  207.                   file versions that can be treated as a unit.
  208. * Version Headers::        Inserting version control headers into
  209.                   working files.
  210. Using Multiple Buffers
  211. * Select Buffer::      Creating a new buffer or reselecting an old one.
  212. * List Buffers::       Getting a list of buffers that exist.
  213. * Misc Buffer::           Renaming; changing read-onliness; copying text.
  214. * Kill Buffer::           Killing buffers you no longer need.
  215. * Several Buffers::    How to go through the list of all buffers
  216.              and operate variously on several of them.
  217. Multiple Windows
  218. * Basic Window::       Introduction to Emacs windows.
  219. * Split Window::       New windows are made by splitting existing windows.
  220. * Other Window::       Moving to another window or doing something to it.
  221. * Pop Up Window::      Finding a file or buffer in another window.
  222. * Change Window::      Deleting windows and changing their sizes.
  223. Frames and X Windows
  224. * Mouse Commands::     Moving, cutting, and pasting, with the mouse.
  225. * Secondary Selection::Cutting without altering point and mark.
  226. * Mouse References::   Using the mouse to select an item from a list.
  227. * Mode Line Mouse::    Mouse clicks on the mode line.
  228. * Creating Frames::    Creating additional Emacs frames with various contents.
  229. * Special Buffer Frames::  You can make certain buffers have their own frames.
  230. * Frame Parameters::   Changing the colors and other modes of frames.
  231. * Scroll Bars::           How to enable and disable scroll bars; how to use them.
  232. * Menu Bars::           Enabling and disabling the menu bar.
  233. * Faces::           How to change the display style using faces.
  234. * Modifying Faces::    How to change what a particular face looks like.
  235. * Misc X::           Iconifying and deleting frames.    Region highlighting.
  236. Major Modes
  237. * Choosing Modes::     How major modes are specified or chosen.
  238. Indentation
  239. * Indentation Commands::  Various commands and techniques for indentation.
  240. * Tab Stops::          You can set arbitrary "tab stops" and then
  241.                 indent to the next tab stop when you want to.
  242. * Just Spaces::          You can request indentation using just spaces.
  243. Commands for Human Languages
  244. * Words::      Moving over and killing words.
  245. * Sentences::      Moving over and killing sentences.
  246. * Paragraphs::      Moving over paragraphs.
  247. * Pages::      Moving over pages.
  248. * Filling::      Filling or justifying text.
  249. * Case::      Changing the case of text.
  250. * Text Mode::      The major modes for editing text files.
  251. * Outline Mode::  The major mode for editing outlines.
  252. * TeX Mode::      The major modes for editing input to the formatter TeX.
  253. * Nroff Mode::      The major mode for editing input to the formatter nroff.
  254. Filling Text
  255. * Auto Fill::      Auto Fill mode breaks long lines automatically.
  256. * Fill Commands:: Commands to refill paragraphs and center lines.
  257. * Fill Prefix::      Filling when every line is indented or in a comment, etc.
  258. Editing Programs
  259. * Program Modes::     Major modes for editing programs.
  260. * Lists::          Expressions with balanced parentheses.
  261. * List Commands::     The commands for working with list and sexps.
  262. * Defuns::          Each program is made up of separate functions.
  263.             There are editing commands to operate on them.
  264. * Program Indent::    Adjusting indentation to show the nesting.
  265. * Matching::          Insertion of a close-delimiter flashes matching open.
  266. * Comments::          Inserting, killing, and aligning comments.
  267. * Balanced Editing::  Inserting two matching parentheses at once, etc.
  268. * Symbol Completion:: Completion on symbol names of your program or language.
  269. * Documentation::     Getting documentation of functions you plan to call.
  270. * Change Log::          Maintaining a change history for your program.
  271. * Tags::          Go direct to any function in your program in one
  272.             command.  Tags remembers which file it is in.
  273. * Emerge::          A convenient way of merging two versions of a program.
  274. * C Mode::          Special commands of C mode (and C++ mode).
  275. * Fortran::          Fortran mode and its special features.
  276. * Asm Mode::          Asm mode and its special features.
  277. Indentation for Programs
  278. * Basic Indent::    Indenting a single line.
  279. * Multi-line Indent::    Commands to reindent many lines at once.
  280. * Lisp Indent::        Specifying how each Lisp function should be indented.
  281. * C Indent::        Choosing an indentation style for C code.
  282. Tags Tables
  283. * Tag Syntax::        Tag syntax for various types of code and text files.
  284. * Create Tags Table::    Creating a tags table with `etags'.
  285. * Select Tags Table::    How to visit a tags table.
  286. * Find Tag::        Commands to find the definition of a specific tag.
  287. * Tags Search::        Using a tags table for searching and replacing.
  288. * Tags Stepping::    Visiting files in a tags table, one by one.
  289. * List Tags::        Listing and finding tags defined in a file.
  290. Merging Files with Emerge
  291. * Overview of Emerge::        How to start Emerge.  Basic concepts.
  292. * Submodes of Emerge::        Fast mode vs. Edit mode.
  293.                   Skip Prefers mode and Auto Advance mode.
  294. * State of Difference::        You do the merge by specifying state A or B
  295.                   for each difference.
  296. * Merge Commands::        Commands for selecting a difference,
  297.                   changing states of differences, etc.
  298. * Exiting Emerge::        What to do when you've finished the merge.
  299. * Combining in Emerge::        How to keep both alternatives for a difference.
  300. * Fine Points of Emerge::   Misc.
  301. Compiling and Testing Programs
  302. * Compilation::              Compiling programs in languages other
  303.                     than Lisp (C, Pascal, etc.)
  304. * Debuggers::              Running symbolic debuggers for
  305.                     non-Lisp programs.
  306. * Executing Lisp::          Various modes for editing Lisp programs,
  307.                     with different facilities for running
  308.                     the Lisp programs.
  309. * Libraries: Lisp Libraries.      Creating Lisp programs to run in Emacs.
  310. * Interaction: Lisp Interaction.  Executing Lisp in an Emacs buffer.
  311. * Eval: Lisp Eval.          Executing a single Lisp expression in Emacs.
  312. * External Lisp::          Communicating through Emacs with a
  313.                     separate Lisp.
  314. Running Debuggers Under Emacs
  315. * Starting GUD::    How to start a debugger subprocess.
  316. * Debugger Operation::    Connection between the debugger and source buffers.
  317. * Commands of GUD::    Key bindings for common commands.
  318. * GUD Customization::    Defining your own commands for GUD.
  319. Abbrevs
  320. * Abbrev Concepts::   Fundamentals of defined abbrevs.
  321. * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
  322. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  323. * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
  324. * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
  325. * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
  326. Editing Pictures
  327. * Basic Picture::      Basic concepts and simple commands of Picture Mode.
  328. * Insert in Picture::      Controlling direction of cursor motion
  329.                 after "self-inserting" characters.
  330. * Tabs in Picture::      Various features for tab stops and indentation.
  331. * Rectangles in Picture:: Clearing and superimposing rectangles.
  332. Sending Mail
  333. * Mail Format::          Format of the mail being composed.
  334. * Mail Headers::             Details of permitted mail header fields.
  335. * Mail Aliases::             Abbreviating and grouping mail addresses.
  336. * Mail Mode::            Special commands for editing mail being composed.
  337. * Distracting NSA::          How to distract the NSA's attention.
  338. Reading Mail with Rmail
  339. * Rmail Basics.              Basic concepts of Rmail, and simple use.
  340. * Rmail Scrolling::          Scrolling through a message.
  341. * Rmail Motion::             Moving to another message.
  342. * Rmail Deletion::           Deleting and expunging messages.
  343. * Rmail Inbox::              How mail gets into the Rmail file.
  344. * Rmail Files::              Using multiple Rmail files.
  345. * Rmail Output::             Copying message out to files.
  346. * Rmail Labels::             Classifying messages by labeling them.
  347. * Rmail Reply::              Sending replies to messages you are viewing.
  348. * Rmail Summary::            Summaries show brief info on many messages.
  349. * Rmail Sorting::            Sorting messages in Rmail.
  350. * Rmail Display::            How Rmail displays a message; customization.
  351. * Rmail Editing::            Editing message text and headers in Rmail.
  352. * Rmail Digest::             Extracting the messages from a digest message.
  353. * Out of Rmail::         Converting an Rmail file to mailbox format.
  354. * Rmail Rot13::              Reading messages encoded in the rot13 code.
  355. Dired, the Directory Editor
  356. * Dired Enter::          How to invoke Dired.
  357. * Dired Commands::           Commands in the Dired buffer.
  358. * Dired Deletion::           Deleting files with Dired.
  359. * Flagging Many Files::      Flagging files based on their names.
  360. * Dired Visiting::           Other file operations through Dired.
  361. * Marks vs Flags::         Flagging for deletion vs marking.
  362. * Operating on Files::         How to copy, rename, print, compress, etc.
  363.                    either one file or several files.
  364. * Shell Commands in Dired::  Running a shell command on the marked files.
  365. * Transforming File Names::  Using patterns to rename multiple files.
  366. * Comparison in Dired::         Running `diff' by way of Dired.
  367. * Subdirectories in Dired::  Adding subdirectories to the Dired buffer.
  368. * Subdirectory Motion::         Moving across subdirectories, and up and down.
  369. * Hiding Subdirectories::    Making subdirectories visible or invisible.
  370. * Dired Updating::           Discarding lines for files of no interest.
  371. * Dired and Find::         Using `find' to choose the files for Dired.
  372. The Calendar and the Diary
  373. * Calendar Motion::      Moving through the calendar; selecting a date.
  374. * Scroll Calendar::      Bringing earlier or later months onto the screen.
  375. * Counting Days::      How many days are there between two dates?
  376. * General Calendar::      Exiting or recomputing the calendar.
  377. * Holidays::          Displaying dates of holidays.
  378. * Sunrise/Sunset::      Displaying local times of sunrise and sunset.
  379. * Lunar Phases::      Displaying phases of the moon.
  380. * Other Calendars::      Converting dates to other calendar systems.
  381. * Diary::          Displaying events from your diary.
  382. * Appointments::      Reminders when it's time to do something.
  383. * Daylight Savings::      How to specify when daylight savings time is active.
  384. Movement in the Calendar
  385. * Calendar Unit Motion::      Moving by days, weeks, months, and years.
  386. * Move to Beginning or End::  Moving to start/end of weeks, months, and years.
  387. * Specified Dates::          Moving to the current date or another
  388.                 specific date.
  389. Conversion To and From Other Calendars
  390. * Calendar Systems::       The calendars Emacs understands
  391.                  (aside from Gregorian).
  392. * To Other Calendar::       Converting the selected date to various calendars.
  393. * From Other Calendar::       Moving to a date specified in another calendar.
  394. * Mayan Calendar::       Moving to a date specified in a Mayan calendar.
  395. The Diary
  396. * Diary Commands::       Viewing diary entries and associated calendar dates.
  397. * Format of Diary File::   Entering events in your diary.
  398. * Date Formats::       Various ways you can specify dates.
  399. * Adding to Diary::       Commands to create diary entries.
  400. * Special Diary Entries::  Anniversaries, blocks of dates, cyclic entries, etc.
  401. * Buffers of GNUS::       The Newsgroups, Summary and Article buffers.
  402. * GNUS Startup::       What you should know about starting GNUS.
  403. * Summary of GNUS::       A short description of the basic GNUS commands.
  404. Running Shell Commands from Emacs
  405. * Single Shell::       How to run one shell command and return.
  406. * Interactive Shell::       Permanent shell taking input via Emacs.
  407. * Shell Mode::           Special Emacs commands used with permanent shell.
  408. * Shell History::          Repeating previous commands in a shell buffer.
  409. * Shell Options::          Options for customizing Shell mode.
  410. * Remote Host::           Connecting to another computer.
  411. Customization
  412. * Minor Modes::           Each minor mode is one feature you can turn on
  413.                  independently of any others.
  414. * Variables::           Many Emacs commands examine Emacs variables
  415.                  to decide what to do; by setting variables,
  416.                  you can control their functioning.
  417. * Keyboard Macros::       A keyboard macro records a sequence of
  418.                  keystrokes to be replayed with a single
  419.                  command.
  420. * Key Bindings::       The keymaps say what command each key runs.
  421.                  By changing them, you can "redefine keys".
  422. * Keyboard Translations::  If your keyboard passes an undesired code
  423.                  for a key, you can tell Emacs to
  424.                  substitute another code.
  425. * Syntax::           The syntax table controls how words and
  426.                   expressions are parsed.
  427. * Init File::           How to write common customizations in the
  428.                  `.emacs' file.
  429. Variables
  430. * Examining::         Examining or setting one variable's value.
  431. * Edit Options::     Examining or editing list of all variables' values.
  432. * Hooks::         Hook variables let you specify programs for parts
  433.                of Emacs to run on particular occasions.
  434. * Locals::         Per-buffer values of variables.
  435. * File Variables::   How files can specify variable values.
  436. Keyboard Macros
  437. * Basic Kbd Macro::  Defining and running keyboard macros.
  438. * Save Kbd Macro::   Giving keyboard macros names; saving them in files.
  439. * Kbd Macro Query::  Keyboard macros that do different things each use.
  440. Customizing Key Bindings
  441. * Keymaps::         Generalities.  The global keymap.
  442. * Prefix Keymaps::   Keymaps for prefix keys.
  443. * Local Keymaps::    Major and minor modes have their own keymaps.
  444. * Minibuffer Maps::  The minibuffer uses its own local keymaps.
  445. * Rebinding::         How to redefine one key's meaning conveniently.
  446. * Init Rebinding::   Rebinding keys with your init file, `.emacs'.
  447. * Function Keys::    Rebinding terminal function keys.
  448. * Named ASCII Chars::Distinguishing TAB from `C-i', and so on.
  449. * Mouse Buttons::    Rebinding mouse buttons in Emacs.
  450. * Disabling::         Disabling a command means confirmation is required
  451.                before it can be executed.  This is done to protect
  452.                beginners from surprises.
  453. The Init File, `~/.emacs'
  454. * Init Syntax::         Syntax of constants in Emacs Lisp.
  455. * Init Examples::    How to do some things with an init file.
  456. * Terminal Init::    Each terminal type can have an init file.
  457. * Find Init::         How Emacs finds the init file.
  458. Dealing with Emacs Trouble
  459. * DEL Gets Help::    What to do if DEL doesn't delete.
  460. * Stuck Recursive::    `[...]' in mode line around the parentheses.
  461. * Screen Garbled::    Garbage on the screen.
  462. * Text Garbled::    Garbage in the text.
  463. * Unasked-for Search::    Spontaneous entry to incremental search.
  464. * Emergency Escape::    Emergency escape--
  465.               What to do if Emacs stops responding.
  466. * Total Frustration::    When you are at your wits' end.
  467. Reporting Bugs
  468. * Criteria:  Bug Criteria.     Have you really found a bug?
  469. * Understanding Bug Reporting::     How to report a bug effectively.
  470. * Checklist::             Steps to follow for a good bug report.
  471. * Sending Patches::         How to send a patch for GNU Emacs.
  472. Command Line Options and Arguments
  473. * Ordinary Arguments::    Arguments to visit files, load libraries,
  474.               and call functions.
  475. * Initial Options::    Arguments that must come at the start of the command.
  476. * Command Example::    Examples of using command line arguments.
  477. * Resume Arguments::    Specifying arguments when you resume a running Emacs.
  478. * Environment::        Environment variables that Emacs uses.
  479. * Display X::        Changing the default display and using remote login.
  480. * Font X::        Choosing a font for text, under X.
  481. * Colors X::        Choosing colors, under X.
  482. * Window Size X::    Start-up window size, under X.
  483. * Borders X::        Internal and external borders, under X.
  484. * Icons X::        Choosing what sort of icon to use, under X.
  485. * Resources X::        Advanced use of classes and resources, under X.
  486. Environment Variables
  487. * General Variables::      Environment variables that all versions of Emacs use.
  488. * Misc Variables::      Certain system specific variables.
  489. File: emacs,  Node: Distrib,  Next: Copying,  Prev: Top,  Up: Top
  490. Distribution
  491. ************
  492.    GNU Emacs is "free software"; this means that everyone is free to
  493. use it and free to redistribute it on certain conditions.  GNU Emacs is
  494. not in the public domain; it is copyrighted and there are restrictions
  495. on its distribution, but these restrictions are designed to permit
  496. everything that a good cooperating citizen would want to do.  What is
  497. not allowed is to try to prevent others from further sharing any version
  498. of GNU Emacs that they might get from you.  The precise conditions are
  499. found in the GNU General Public License that comes with Emacs and also
  500. appears following this section.
  501.    The easiest way to get a copy of GNU Emacs is from someone else who
  502. has it.  You need not ask for our permission to do so, or tell any one
  503. else; just copy it.  If you have access to the Internet, you can get the
  504. latest distribution version of GNU Emacs from host `prep.ai.mit.edu'
  505. using anonymous login.  See the file `/pub/gnu/GETTING.GNU.SOFTWARE' on
  506. that host to find out about your options for copying and which files to
  507.    You may also receive GNU Emacs when you buy a computer.  Computer
  508. manufacturers are free to distribute copies on the same terms that
  509. apply to everyone else.  These terms require them to give you the full
  510. sources, including whatever changes they may have made, and to permit
  511. you to redistribute the GNU Emacs received from them under the usual
  512. terms of the General Public License.  In other words, the program must
  513. be free for you when you get it, not just free for the manufacturer.
  514.    You can also order copies of GNU Emacs from the Free Software
  515. Foundation, on various magnetic media or on CD-ROM.  This is a
  516. convenient and reliable way to get a copy; it is also a good way to help
  517. fund our work.  (The Foundation has always received most of its funds in
  518. this way.)  An order form is included at the end of manuals printed by
  519. the Foundation.  It is also included in the file `etc/ORDERS' in the
  520. Emacs distribution.  For further information, write to
  521.      Free Software Foundation
  522.      675 Mass Ave
  523.      Cambridge, MA 02139
  524.      USA
  525.    The income from distribution fees goes to support the foundation's
  526. purpose: the development of new free software, and improvements to our
  527. existing programs including GNU Emacs.
  528.    If you find GNU Emacs useful, please *send a donation* to the Free
  529. Software Foundation to support our work.  Donations to the Free
  530. Software Foundation are tax deductible.  If you use GNU Emacs at your
  531. workplace, suggest that the company make a donation.  If company policy
  532. is unsympathetic to the idea of donating to charity, you might instead
  533. suggest ordering a CD-ROM from the Foundation occasionally, or
  534. subscribing to periodic updates.
  535. File: emacs,  Node: Copying,  Next: Intro,  Prev: Distrib,  Up: Top
  536. GNU GENERAL PUBLIC LICENSE
  537. **************************
  538.                          Version 2, June 1991
  539.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  540.      675 Mass Ave, Cambridge, MA 02139, USA
  541.      
  542.      Everyone is permitted to copy and distribute verbatim copies
  543.      of this license document, but changing it is not allowed.
  544. Preamble
  545. ========
  546.    The licenses for most software are designed to take away your
  547. freedom to share and change it.  By contrast, the GNU General Public
  548. License is intended to guarantee your freedom to share and change free
  549. software--to make sure the software is free for all its users.  This
  550. General Public License applies to most of the Free Software
  551. Foundation's software and to any other program whose authors commit to
  552. using it.  (Some other Free Software Foundation software is covered by
  553. the GNU Library General Public License instead.)  You can apply it to
  554. your programs, too.
  555.    When we speak of free software, we are referring to freedom, not
  556. price.  Our General Public Licenses are designed to make sure that you
  557. have the freedom to distribute copies of free software (and charge for
  558. this service if you wish), that you receive source code or can get it
  559. if you want it, that you can change the software or use pieces of it in
  560. new free programs; and that you know you can do these things.
  561.    To protect your rights, we need to make restrictions that forbid
  562. anyone to deny you these rights or to ask you to surrender the rights.
  563. These restrictions translate to certain responsibilities for you if you
  564. distribute copies of the software, or if you modify it.
  565.    For example, if you distribute copies of such a program, whether
  566. gratis or for a fee, you must give the recipients all the rights that
  567. you have.  You must make sure that they, too, receive or can get the
  568. source code.  And you must show them these terms so they know their
  569. rights.
  570.    We protect your rights with two steps: (1) copyright the software,
  571. and (2) offer you this license which gives you legal permission to copy,
  572. distribute and/or modify the software.
  573.    Also, for each author's protection and ours, we want to make certain
  574. that everyone understands that there is no warranty for this free
  575. software.  If the software is modified by someone else and passed on, we
  576. want its recipients to know that what they have is not the original, so
  577. that any problems introduced by others will not reflect on the original
  578. authors' reputations.
  579.    Finally, any free program is threatened constantly by software
  580. patents.  We wish to avoid the danger that redistributors of a free
  581. program will individually obtain patent licenses, in effect making the
  582. program proprietary.  To prevent this, we have made it clear that any
  583. patent must be licensed for everyone's free use or not licensed at all.
  584.    The precise terms and conditions for copying, distribution and
  585. modification follow.
  586.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  587.   0. This License applies to any program or other work which contains a
  588.      notice placed by the copyright holder saying it may be distributed
  589.      under the terms of this General Public License.  The "Program",
  590.      below, refers to any such program or work, and a "work based on
  591.      the Program" means either the Program or any derivative work under
  592.      copyright law: that is to say, a work containing the Program or a
  593.      portion of it, either verbatim or with modifications and/or
  594.      translated into another language.  (Hereinafter, translation is
  595.      included without limitation in the term "modification".)  Each
  596.      licensee is addressed as "you".
  597.      Activities other than copying, distribution and modification are
  598.      not covered by this License; they are outside its scope.  The act
  599.      of running the Program is not restricted, and the output from the
  600.      Program is covered only if its contents constitute a work based on
  601.      the Program (independent of having been made by running the
  602.      Program).  Whether that is true depends on what the Program does.
  603.   1. You may copy and distribute verbatim copies of the Program's
  604.      source code as you receive it, in any medium, provided that you
  605.      conspicuously and appropriately publish on each copy an appropriate
  606.      copyright notice and disclaimer of warranty; keep intact all the
  607.      notices that refer to this License and to the absence of any
  608.      warranty; and give any other recipients of the Program a copy of
  609.      this License along with the Program.
  610.      You may charge a fee for the physical act of transferring a copy,
  611.      and you may at your option offer warranty protection in exchange
  612.      for a fee.
  613.   2. You may modify your copy or copies of the Program or any portion
  614.      of it, thus forming a work based on the Program, and copy and
  615.      distribute such modifications or work under the terms of Section 1
  616.      above, provided that you also meet all of these conditions:
  617.        a. You must cause the modified files to carry prominent notices
  618.           stating that you changed the files and the date of any change.
  619.        b. You must cause any work that you distribute or publish, that
  620.           in whole or in part contains or is derived from the Program
  621.           or any part thereof, to be licensed as a whole at no charge
  622.           to all third parties under the terms of this License.
  623.        c. If the modified program normally reads commands interactively
  624.           when run, you must cause it, when started running for such
  625.           interactive use in the most ordinary way, to print or display
  626.           an announcement including an appropriate copyright notice and
  627.           a notice that there is no warranty (or else, saying that you
  628.           provide a warranty) and that users may redistribute the
  629.           program under these conditions, and telling the user how to
  630.           view a copy of this License.  (Exception: if the Program
  631.           itself is interactive but does not normally print such an
  632.           announcement, your work based on the Program is not required
  633.           to print an announcement.)
  634.      These requirements apply to the modified work as a whole.  If
  635.      identifiable sections of that work are not derived from the
  636.      Program, and can be reasonably considered independent and separate
  637.      works in themselves, then this License, and its terms, do not
  638.      apply to those sections when you distribute them as separate
  639.      works.  But when you distribute the same sections as part of a
  640.      whole which is a work based on the Program, the distribution of
  641.      the whole must be on the terms of this License, whose permissions
  642.      for other licensees extend to the entire whole, and thus to each
  643.      and every part regardless of who wrote it.
  644.      Thus, it is not the intent of this section to claim rights or
  645.      contest your rights to work written entirely by you; rather, the
  646.      intent is to exercise the right to control the distribution of
  647.      derivative or collective works based on the Program.
  648.      In addition, mere aggregation of another work not based on the
  649.      Program with the Program (or with a work based on the Program) on
  650.      a volume of a storage or distribution medium does not bring the
  651.      other work under the scope of this License.
  652.   3. You may copy and distribute the Program (or a work based on it,
  653.      under Section 2) in object code or executable form under the terms
  654.      of Sections 1 and 2 above provided that you also do one of the
  655.      following:
  656.        a. Accompany it with the complete corresponding machine-readable
  657.           source code, which must be distributed under the terms of
  658.           Sections 1 and 2 above on a medium customarily used for
  659.           software interchange; or,
  660.        b. Accompany it with a written offer, valid for at least three
  661.           years, to give any third party, for a charge no more than your
  662.           cost of physically performing source distribution, a complete
  663.           machine-readable copy of the corresponding source code, to be
  664.           distributed under the terms of Sections 1 and 2 above on a
  665.           medium customarily used for software interchange; or,
  666.        c. Accompany it with the information you received as to the offer
  667.           to distribute corresponding source code.  (This alternative is
  668.           allowed only for noncommercial distribution and only if you
  669.           received the program in object code or executable form with
  670.           such an offer, in accord with Subsection b above.)
  671.      The source code for a work means the preferred form of the work for
  672.      making modifications to it.  For an executable work, complete
  673.      source code means all the source code for all modules it contains,
  674.      plus any associated interface definition files, plus the scripts
  675.      used to control compilation and installation of the executable.
  676.      However, as a special exception, the source code distributed need
  677.      not include anything that is normally distributed (in either
  678.      source or binary form) with the major components (compiler,
  679.      kernel, and so on) of the operating system on which the executable
  680.      runs, unless that component itself accompanies the executable.
  681.      If distribution of executable or object code is made by offering
  682.      access to copy from a designated place, then offering equivalent
  683.      access to copy the source code from the same place counts as
  684.      distribution of the source code, even though third parties are not
  685.      compelled to copy the source along with the object code.
  686.   4. You may not copy, modify, sublicense, or distribute the Program
  687.      except as expressly provided under this License.  Any attempt
  688.      otherwise to copy, modify, sublicense or distribute the Program is
  689.      void, and will automatically terminate your rights under this
  690.      License.  However, parties who have received copies, or rights,
  691.      from you under this License will not have their licenses
  692.      terminated so long as such parties remain in full compliance.
  693.   5. You are not required to accept this License, since you have not
  694.      signed it.  However, nothing else grants you permission to modify
  695.      or distribute the Program or its derivative works.  These actions
  696.      are prohibited by law if you do not accept this License.
  697.      Therefore, by modifying or distributing the Program (or any work
  698.      based on the Program), you indicate your acceptance of this
  699.      License to do so, and all its terms and conditions for copying,
  700.      distributing or modifying the Program or works based on it.
  701.   6. Each time you redistribute the Program (or any work based on the
  702.      Program), the recipient automatically receives a license from the
  703.      original licensor to copy, distribute or modify the Program
  704.      subject to these terms and conditions.  You may not impose any
  705.      further restrictions on the recipients' exercise of the rights
  706.      granted herein.  You are not responsible for enforcing compliance
  707.      by third parties to this License.
  708.   7. If, as a consequence of a court judgment or allegation of patent
  709.      infringement or for any other reason (not limited to patent
  710.      issues), conditions are imposed on you (whether by court order,
  711.      agreement or otherwise) that contradict the conditions of this
  712.      License, they do not excuse you from the conditions of this
  713.      License.  If you cannot distribute so as to satisfy simultaneously
  714.      your obligations under this License and any other pertinent
  715.      obligations, then as a consequence you may not distribute the
  716.      Program at all.  For example, if a patent license would not permit
  717.      royalty-free redistribution of the Program by all those who
  718.      receive copies directly or indirectly through you, then the only
  719.      way you could satisfy both it and this License would be to refrain
  720.      entirely from distribution of the Program.
  721.      If any portion of this section is held invalid or unenforceable
  722.      under any particular circumstance, the balance of the section is
  723.      intended to apply and the section as a whole is intended to apply
  724.      in other circumstances.
  725.      It is not the purpose of this section to induce you to infringe any
  726.      patents or other property right claims or to contest validity of
  727.      any such claims; this section has the sole purpose of protecting
  728.      the integrity of the free software distribution system, which is
  729.      implemented by public license practices.  Many people have made
  730.      generous contributions to the wide range of software distributed
  731.      through that system in reliance on consistent application of that
  732.      system; it is up to the author/donor to decide if he or she is
  733.      willing to distribute software through any other system and a
  734.      licensee cannot impose that choice.
  735.      This section is intended to make thoroughly clear what is believed
  736.      to be a consequence of the rest of this License.
  737.   8. If the distribution and/or use of the Program is restricted in
  738.      certain countries either by patents or by copyrighted interfaces,
  739.      the original copyright holder who places the Program under this
  740.      License may add an explicit geographical distribution limitation
  741.      excluding those countries, so that distribution is permitted only
  742.      in or among countries not thus excluded.  In such case, this
  743.      License incorporates the limitation as if written in the body of
  744.      this License.
  745.   9. The Free Software Foundation may publish revised and/or new
  746.      versions of the General Public License from time to time.  Such
  747.      new versions will be similar in spirit to the present version, but
  748.      may differ in detail to address new problems or concerns.
  749.      Each version is given a distinguishing version number.  If the
  750.      Program specifies a version number of this License which applies
  751.      to it and "any later version", you have the option of following
  752.      the terms and conditions either of that version or of any later
  753.      version published by the Free Software Foundation.  If the Program
  754.      does not specify a version number of this License, you may choose
  755.      any version ever published by the Free Software Foundation.
  756.  10. If you wish to incorporate parts of the Program into other free
  757.      programs whose distribution conditions are different, write to the
  758.      author to ask for permission.  For software which is copyrighted
  759.      by the Free Software Foundation, write to the Free Software
  760.      Foundation; we sometimes make exceptions for this.  Our decision
  761.      will be guided by the two goals of preserving the free status of
  762.      all derivatives of our free software and of promoting the sharing
  763.      and reuse of software generally.
  764.                                 NO WARRANTY
  765.  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  766.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  767.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  768.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  769.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  770.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  771.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  772.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  773.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  774.      SERVICING, REPAIR OR CORRECTION.
  775.  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  776.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  777.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  778.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  779.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  780.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  781.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  782.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  783.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  784.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  785.                       END OF TERMS AND CONDITIONS
  786. How to Apply These Terms to Your New Programs
  787. =============================================
  788.    If you develop a new program, and you want it to be of the greatest
  789. possible use to the public, the best way to achieve this is to make it
  790. free software which everyone can redistribute and change under these
  791. terms.
  792.    To do so, attach the following notices to the program.  It is safest
  793. to attach them to the start of each source file to most effectively
  794. convey the exclusion of warranty; and each file should have at least
  795. the "copyright" line and a pointer to where the full notice is found.
  796.      ONE LINE TO GIVE THE PROGRAM'S NAME AND AN IDEA OF WHAT IT DOES.
  797.      Copyright (C) 19YY  NAME OF AUTHOR
  798.      
  799.      This program is free software; you can redistribute it and/or
  800.      modify it under the terms of the GNU General Public License
  801.      as published by the Free Software Foundation; either version 2
  802.      of the License, or (at your option) any later version.
  803.      
  804.      This program is distributed in the hope that it will be useful,
  805.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  806.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  807.      GNU General Public License for more details.
  808.      
  809.      You should have received a copy of the GNU General Public License
  810.      along with this program; if not, write to the Free Software
  811.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  812.    Also add information on how to contact you by electronic and paper
  813. mail.
  814.    If the program is interactive, make it output a short notice like
  815. this when it starts in an interactive mode:
  816.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  817.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  818.      type `show w'.  This is free software, and you are welcome
  819.      to redistribute it under certain conditions; type `show c'
  820.      for details.
  821.    The hypothetical commands `show w' and `show c' should show the
  822. appropriate parts of the General Public License.  Of course, the
  823. commands you use may be called something other than `show w' and `show
  824. c'; they could even be mouse-clicks or menu items--whatever suits your
  825. program.
  826.    You should also get your employer (if you work as a programmer) or
  827. your school, if any, to sign a "copyright disclaimer" for the program,
  828. if necessary.  Here is a sample; alter the names:
  829.      Yoyodyne, Inc., hereby disclaims all copyright
  830.      interest in the program `Gnomovision'
  831.      (which makes passes at compilers) written
  832.      by James Hacker.
  833.      
  834.      SIGNATURE OF TY COON, 1 April 1989
  835.      Ty Coon, President of Vice
  836.    This General Public License does not permit incorporating your
  837. program into proprietary programs.  If your program is a subroutine
  838. library, you may consider it more useful to permit linking proprietary
  839. applications with the library.  If this is what you want to do, use the
  840. GNU Library General Public License instead of this License.
  841.