home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / info / emacs.i12 < prev    next >
Encoding:
GNU Info File  |  1993-06-14  |  42.7 KB  |  901 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.47 from the
  2. input file emacs.tex.
  3.  
  4.    This file documents the GNU Emacs editor.
  5.  
  6.    Copyright (C) 1985, 1986, 1988 Richard M. Stallman.
  7.  
  8.    Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12.    Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled "The GNU Manifesto", "Distribution" and "GNU
  15. General Public License" are included exactly as in the original, and
  16. provided that the entire resulting derived work is distributed under the
  17. terms of a permission notice identical to this one.
  18.  
  19.    Permission is granted to copy and distribute translations of this
  20. manual into another language, under the above conditions for modified
  21. versions, except that the sections entitled "The GNU Manifesto",
  22. "Distribution" and "GNU General Public License" may be included in a
  23. translation approved by the author instead of in the original English.
  24.  
  25. 
  26. File: emacs,  Node: Quitting,  Next: Lossage,  Prev: Customization,  Up: Top
  27.  
  28. Quitting and Aborting
  29. =====================
  30.  
  31. `C-g'
  32.      Quit.  Cancel running or partially typed command.
  33.  
  34. `C-]'
  35.      Abort innermost recursive editing level and cancel the command
  36.      which invoked it (`abort-recursive-edit').
  37.  
  38. `M-x top-level'
  39.      Abort all recursive editing levels that are currently executing.
  40.  
  41. `C-x u'
  42.      Cancel an already-executed command, usually (`undo').
  43.  
  44.    There are two ways of cancelling commands which are not finished
  45. executing: "quitting" with `C-g', and "aborting" with `C-]' or `M-x
  46. top-level'.  Quitting is cancelling a partially typed command or one
  47. which is already running.  Aborting is getting out of a recursive
  48. editing level and cancelling the command that invoked the recursive
  49. edit.
  50.  
  51.    Quitting with `C-g' is used for getting rid of a partially typed
  52. command, or a numeric argument that you don't want.  It also stops a
  53. running command in the middle in a relatively safe way, so you can use
  54. it if you accidentally give a command which takes a long time.  In
  55. particular, it is safe to quit out of killing; either your text will
  56. ALL still be there, or it will ALL be in the kill ring (or maybe both).
  57.  Quitting an incremental search does special things documented under
  58. searching; in general, it may take two successive `C-g' characters to
  59. get out of a search.  `C-g' works by setting the variable `quit-flag' to
  60. `t' the instant `C-g' is typed; Emacs Lisp checks this variable
  61. frequently and quits if it is non-`nil'.  `C-g' is only actually
  62. executed as a command if it is typed while Emacs is waiting for input.
  63.  
  64.    If you quit twice in a row before the first `C-g' is recognized, you
  65. activate the "emergency escape" feature and return to the shell. *Note
  66. Emergency Escape::.
  67.  
  68.    Aborting with `C-]' (`abort-recursive-edit') is used to get out of a
  69. recursive editing level and cancel the command which invoked it.
  70. Quitting with `C-g' does not do this, and could not do this, because it
  71. is used to cancel a partially typed command within the recursive
  72. editing level.  Both operations are useful.  For example, if you are in
  73. the Emacs debugger (*note Lisp Debug::.) and have typed `C-u 8' to
  74. enter a numeric argument, you can cancel that argument with `C-g' and
  75. remain in the debugger.
  76.  
  77.    The command `M-x top-level' is equivalent to "enough" `C-]' commands
  78. to get you out of all the levels of recursive edits that you are in. 
  79. `C-]' gets you out one level at a time, but `M-x top-level' goes out
  80. all levels at once.  Both `C-]' and `M-x top-level' are like all other
  81. commands, and unlike `C-g', in that they are effective only when Emacs
  82. is ready for a command.  `C-]' is an ordinary key and has its meaning
  83. only because of its binding in the keymap. *Note Recursive Edit::.
  84.  
  85.    `C-x u' (`undo') is not strictly speaking a way of cancelling a
  86. command, but you can think of it as cancelling a command already
  87. finished executing.  *Note Undo::.
  88.  
  89. 
  90. File: emacs,  Node: Lossage,  Next: Bugs,  Prev: Quitting,  Up: Top
  91.  
  92. Dealing with Emacs Trouble
  93. ==========================
  94.  
  95.    This section describes various conditions in which Emacs fails to
  96. work, and how to recognize them and correct them.
  97.  
  98. * Menu:
  99.  
  100. * Stuck Recursive::    `[...]' in mode line around the parentheses
  101. * Screen Garbled::     Garbage on the screen
  102. * Text Garbled::       Garbage in the text
  103. * Unasked-for Search:: Spontaneous entry to incremental search
  104. * Emergency Escape::   Emergency escape--
  105.                         What to do if Emacs stops responding
  106. * Total Frustration::  When you are at your wits' end.
  107.  
  108. 
  109. File: emacs,  Node: Stuck Recursive,  Next: Screen Garbled,  Prev: Lossage,  Up: Lossage
  110.  
  111. Recursive Editing Levels
  112. ------------------------
  113.  
  114.    Recursive editing levels are important and useful features of Emacs,
  115. but they can seem like malfunctions to the user who does not understand
  116. them.
  117.  
  118.    If the mode line has square brackets `[...]' around the parentheses
  119. that contain the names of the major and minor modes, you have entered a
  120. recursive editing level.  If you did not do this on purpose, or if you
  121. don't understand what that means, you should just get out of the
  122. recursive editing level.  To do so, type `M-x top-level'.  This is
  123. called getting back to top level.  *Note Recursive Edit::.
  124.  
  125. 
  126. File: emacs,  Node: Screen Garbled,  Next: Text Garbled,  Prev: Stuck Recursive,  Up: Lossage
  127.  
  128. Garbage on the Screen
  129. ---------------------
  130.  
  131.    If the data on the screen looks wrong, the first thing to do is see
  132. whether the text is really wrong.  Type `C-l', to redisplay the entire
  133. screen.  If it appears correct after this, the problem was entirely in
  134. the previous screen update.
  135.  
  136.    Display updating problems often result from an incorrect termcap
  137. entry for the terminal you are using.  The file `etc/TERMS' in the Emacs
  138. distribution gives the fixes for known problems of this sort. `INSTALL'
  139. contains general advice for these problems in one of its sections. 
  140. Very likely there is simply insufficient padding for certain display
  141. operations.  To investigate the possibility that you have this sort of
  142. problem, try Emacs on another terminal made by a different manufacturer.
  143. If problems happen frequently on one kind of terminal but not another
  144. kind, it is likely to be a bad termcap entry, though it could also be
  145. due to a bug in Emacs that appears for terminals that have or that lack
  146. specific features.
  147.  
  148. 
  149. File: emacs,  Node: Text Garbled,  Next: Unasked-for Search,  Prev: Screen Garbled,  Up: Lossage
  150.  
  151. Garbage in the Text
  152. -------------------
  153.  
  154.    If `C-l' shows that the text is wrong, try undoing the changes to it
  155. using `C-x u' until it gets back to a state you consider correct.  Also
  156. try `C-h l' to find out what command you typed to produce the observed
  157. results.
  158.  
  159.    If a large portion of text appears to be missing at the beginning or
  160. end of the buffer, check for the word `Narrow' in the mode line. If it
  161. appears, the text is still present, but marked off-limits. To make it
  162. visible again, type `C-x w'.  *Note Narrowing::.
  163.  
  164. 
  165. File: emacs,  Node: Unasked-for Search,  Next: Emergency Escape,  Prev: Text Garbled,  Up: Lossage
  166.  
  167. Spontaneous Entry to Incremental Search
  168. ---------------------------------------
  169.  
  170.    If Emacs spontaneously displays `I-search:' at the bottom of the
  171. screen, it means that the terminal is sending `C-s' and `C-q' according
  172. to the poorly designed xon/xoff "flow control" protocol.  You should
  173. try to prevent this by putting the terminal in a mode where it will not
  174. use flow control or giving it enough padding that it will never send a
  175. `C-s'.  If that cannot be done, you must tell Emacs to expect flow
  176. control to be used, until you can get a properly designed terminal.
  177.  
  178.    Information on how to do these things can be found in the file
  179. `INSTALL' in the Emacs distribution.
  180.  
  181. 
  182. File: emacs,  Node: Emergency Escape,  Next: Total Frustration,  Prev: Unasked-for Search,  Up: Lossage
  183.  
  184. Emergency Escape
  185. ----------------
  186.  
  187.    Because at times there have been bugs causing Emacs to loop without
  188. checking `quit-flag', a special feature causes Emacs to be suspended
  189. immediately if you type a second `C-g' while the flag is already set,
  190. so you can always get out of GNU Emacs.  Normally Emacs recognizes and
  191. clears `quit-flag' (and quits!) quickly enough to prevent this from
  192. happening.
  193.  
  194.    When you resume Emacs after a suspension caused by multiple `C-g', it
  195. asks two questions before going back to what it had been doing:
  196.  
  197.      Auto-save? (y or n)
  198.      Abort (and dump core)? (y or n)
  199.  
  200. Answer each one with `y' or `n' followed by RET.
  201.  
  202.    Saying `y' to `Auto-save?' causes immediate auto-saving of all
  203. modified buffers in which auto-saving is enabled.
  204.  
  205.    Saying `y' to `Abort (and dump core)?' causes an illegal instruction
  206. to be executed, dumping core.  This is to enable a wizard to figure out
  207. why Emacs was failing to quit in the first place.  Execution does not
  208. continue after a core dump.  If you answer `n', execution does
  209. continue.  With luck, GNU Emacs will ultimately check `quit-flag' and
  210. quit normally. If not, and you type another `C-g', it is suspended
  211. again.
  212.  
  213.    If Emacs is not really hung, just slow, you may invoke the double
  214. `C-g' feature without really meaning to.  Then just resume and answer
  215. `n' to both questions, and you will arrive at your former state.
  216. Presumably the quit you requested will happen soon.
  217.  
  218.    The double-`C-g' feature may be turned off when Emacs is running
  219. under a window system, since the window system always enables you to
  220. kill Emacs or to create another window and run another program.
  221.  
  222. 
  223. File: emacs,  Node: Total Frustration,  Prev: Emergency Escape,  Up: Lossage
  224.  
  225. Help for Total Frustration
  226. --------------------------
  227.  
  228.    If using Emacs (or something else) becomes terribly frustrating and
  229. none of the techniques described above solve the problem, Emacs can
  230. still help you.
  231.  
  232.    First, if the Emacs you are using is not responding to commands, type
  233. `C-g C-g' to get out of it and then start a new one.
  234.  
  235.    Second, type `M-x doctor RET'.
  236.  
  237.    The doctor will make you feel better.  Each time you say something to
  238. the doctor, you must end it by typing RET RET.  This lets the doctor
  239. know you are finished.
  240.  
  241. 
  242. File: emacs,  Node: Bugs,  Next: Manifesto,  Prev: Lossage,  Up: Top
  243.  
  244. Reporting Bugs
  245. ==============
  246.  
  247.    Sometimes you will encounter a bug in Emacs.  Although we cannot
  248. promise we can or will fix the bug, and we might not even agree that it
  249. is a bug, we want to hear about bugs you encounter in case we do want
  250. to fix them.
  251.  
  252.    To make it possible for us to fix a bug, you must report it.  In
  253. order to do so effectively, you must know when and how to do it.
  254.  
  255. When Is There a Bug
  256. -------------------
  257.  
  258.    If Emacs executes an illegal instruction, or dies with an operating
  259. system error message that indicates a problem in the program (as
  260. opposed to something like "disk full"), then it is certainly a bug.
  261.  
  262.    If Emacs updates the display in a way that does not correspond to
  263. what is in the buffer, then it is certainly a bug.  If a command seems
  264. to do the wrong thing but the problem corrects itself if you type
  265. `C-l', it is a case of incorrect display updating.
  266.  
  267.    Taking forever to complete a command can be a bug, but you must make
  268. certain that it was really Emacs's fault.  Some commands simply take a
  269. long time.  Type `C-g' and then `C-h l' to see whether the input Emacs
  270. received was what you intended to type; if the input was such that you
  271. KNOW it should have been processed quickly, report a bug.  If you don't
  272. know whether the command should take a long time, find out by looking
  273. in the manual or by asking for assistance.
  274.  
  275.    If a command you are familiar with causes an Emacs error message in a
  276. case where its usual definition ought to be reasonable, it is probably a
  277. bug.
  278.  
  279.    If a command does the wrong thing, that is a bug.  But be sure you
  280. know for certain what it ought to have done.  If you aren't familiar
  281. with the command, or don't know for certain how the command is supposed
  282. to work, then it might actually be working right.  Rather than jumping
  283. to conclusions, show the problem to someone who knows for certain.
  284.  
  285.    Finally, a command's intended definition may not be best for editing
  286. with.  This is a very important sort of problem, but it is also a
  287. matter of judgment.  Also, it is easy to come to such a conclusion out
  288. of ignorance of some of the existing features.  It is probably best not
  289. to complain about such a problem until you have checked the
  290. documentation in the usual ways, feel confident that you understand it,
  291. and know for certain that what you want is not available.  If you are
  292. not sure what the command is supposed to do after a careful reading of
  293. the manual, check the index and glossary for any terms that may be
  294. unclear.  If you still do not understand, this indicates a bug in the
  295. manual.  The manual's job is to make everything clear.  It is just as
  296. important to report documentation bugs as program bugs.
  297.  
  298.    If the on-line documentation string of a function or variable
  299. disagrees with the manual, one of them must be wrong, so report the bug.
  300.  
  301. How to Report a Bug
  302. -------------------
  303.  
  304.    When you decide that there is a bug, it is important to report it
  305. and to report it in a way which is useful.  What is most useful is an
  306. exact description of what commands you type, starting with the shell
  307. command to run Emacs, until the problem happens.  Always include the
  308. version number of Emacs that you are using; type `M-x emacs-version' to
  309. print this.
  310.  
  311.    The most important principle in reporting a bug is to report FACTS,
  312. not hypotheses or categorizations.  It is always easier to report the
  313. facts, but people seem to prefer to strain to posit explanations and
  314. report them instead.  If the explanations are based on guesses about
  315. how Emacs is implemented, they will be useless; we will have to try to
  316. figure out what the facts must have been to lead to such speculations. 
  317. Sometimes this is impossible.  But in any case, it is unnecessary work
  318. for us.
  319.  
  320.    For example, suppose that you type `C-x C-f /glorp/baz.ugh RET',
  321. visiting a file which (you know) happens to be rather large, and Emacs
  322. prints out `I feel pretty today'.  The best way to report the bug is
  323. with a sentence like the preceding one, because it gives all the facts
  324. and nothing but the facts.
  325.  
  326.    Do not assume that the problem is due to the size of the file and
  327. say, "When I visit a large file, Emacs prints out `I feel pretty
  328. today'." This is what we mean by "guessing explanations".  The problem
  329. is just as likely to be due to the fact that there is a `z' in the file
  330. name.  If this is so, then when we got your report, we would try out
  331. the problem with some "large file", probably with no `z' in its name,
  332. and not find anything wrong.  There is no way in the world that we
  333. could guess that we should try visiting a file with a `z' in its name.
  334.  
  335.    Alternatively, the problem might be due to the fact that the file
  336. starts with exactly 25 spaces.  For this reason, you should make sure
  337. that you inform us of the exact contents of any file that is needed to
  338. reproduce the bug.  What if the problem only occurs when you have typed
  339. the `C-x C-a' command previously?  This is why we ask you to give the
  340. exact sequence of characters you typed since starting to use Emacs.
  341.  
  342.    You should not even say "visit a file" instead of `C-x C-f' unless
  343. you know that it makes no difference which visiting command is used.
  344. Similarly, rather than saying "if I have three characters on the line,"
  345. say "after I type `RET A B C RET C-p'," if that is the way you entered
  346. the text.
  347.  
  348.    If you are not in Fundamental mode when the problem occurs, you
  349. should say what mode you are in.
  350.  
  351.    If the manifestation of the bug is an Emacs error message, it is
  352. important to report not just the text of the error message but a
  353. backtrace showing how the Lisp program in Emacs arrived at the error. 
  354. To make the backtrace, you must execute the Lisp expression `(setq
  355. debug-on-error t)' before the error happens (that is to say, you must
  356. execute that expression and then make the bug happen).  This causes the
  357. Lisp debugger to run (*note Lisp Debug::.).  The debugger's backtrace
  358. can be copied as text into the bug report.  This use of the debugger is
  359. possible only if you know how to make the bug happen again.  Do note
  360. the error message the first time the bug happens, so if you can't make
  361. it happen again, you can report at least that.
  362.  
  363.    Check whether any programs you have loaded into the Lisp world,
  364. including your `.emacs' file, set any variables that may affect the
  365. functioning of Emacs.  Also, see whether the problem happens in a
  366. freshly started Emacs without loading your `.emacs' file (start Emacs
  367. with the `-q' switch to prevent loading the init file.)  If the problem
  368. does NOT occur then, it is essential that we know the contents of any
  369. programs that you must load into the Lisp world in order to cause the
  370. problem to occur.
  371.  
  372.    If the problem does depend on an init file or other Lisp programs
  373. that are not part of the standard Emacs system, then you should make
  374. sure it is not a bug in those programs by complaining to their
  375. maintainers first. After they verify that they are using Emacs in a way
  376. that is supposed to work, they should report the bug.
  377.  
  378.    If you can tell us a way to cause the problem without visiting any
  379. files, please do so.  This makes it much easier to debug.  If you do
  380. need files, make sure you arrange for us to see their exact contents. 
  381. For example, it can often matter whether there are spaces at the ends
  382. of lines, or a newline after the last line in the buffer (nothing ought
  383. to care whether the last line is terminated, but tell that to the bugs).
  384.  
  385.    The easy way to record the input to Emacs precisely is to to write a
  386. dribble file; execute the Lisp expression
  387.  
  388.      (open-dribble-file "~/dribble")
  389.  
  390. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  391. Emacs.  From then on, all Emacs input will be written in the specified
  392. dribble file until the Emacs process is killed.
  393.  
  394.    For possible display bugs, it is important to report the terminal
  395. type (the value of environment variable `TERM'), the complete termcap
  396. entry for the terminal from `/etc/termcap' (since that file is not
  397. identical on all machines), and the output that Emacs actually sent to
  398. the terminal. The way to collect this output is to execute the Lisp
  399. expression
  400.  
  401.      (open-termscript "~/termscript")
  402.  
  403. using `Meta-ESC' or from the `*scratch*' buffer just after starting
  404. Emacs.  From then on, all output from Emacs to the terminal will be
  405. written in the specified termscript file as well, until the Emacs
  406. process is killed.  If the problem happens when Emacs starts up, put
  407. this expression into your `.emacs' file so that the termscript file will
  408. be open when Emacs displays the screen for the first time.  Be warned:
  409. it is often difficult, and sometimes impossible, to fix a
  410. terminal-dependent bug without access to a terminal of the type that
  411. stimulates the bug.
  412.  
  413.    The address for reporting bugs is
  414.  
  415. GNU Emacs Bugs
  416. 545 Tech Sq, rm 703
  417. Cambridge, MA 02139
  418.  
  419. or send email to `mit-eddie!bug-gnu-emacs' (Usenet) or
  420. `bug-gnu-emacs@prep.ai.mit.edu' (Internet).
  421.  
  422.    Once again, we do not promise to fix the bug; but if the bug is
  423. serious, or ugly, or easy to fix, chances are we will want to.
  424.  
  425. 
  426. File: emacs,  Node: Manifesto,  Prev: Bugs,  Up: Top
  427.  
  428. The GNU Manifesto
  429. *****************
  430.  
  431. What's GNU?  Gnu's Not Unix!
  432. ============================
  433.  
  434.    GNU, which stands for Gnu's Not Unix, is the name for the complete
  435. Unix-compatible software system which I am writing so that I can give it
  436. away free to everyone who can use it.  Several other volunteers are
  437. helping me.  Contributions of time, money, programs and equipment are
  438. greatly needed.
  439.  
  440.    So far we have an Emacs text editor with Lisp for writing editor
  441. commands, a source level debugger, a yacc-compatible parser generator,
  442. a linker, and around 35 utilities.  A shell (command interpreter) is
  443. nearly completed.  A new portable optimizing C compiler has compiled
  444. itself and may be released this year.  An initial kernel exists but
  445. many more features are needed to emulate Unix.  When the kernel and
  446. compiler are finished, it will be possible to distribute a GNU system
  447. suitable for program development.  We will use TeX as our text
  448. formatter, but an nroff is being worked on.  We will use the free,
  449. portable X window system as well.  After this we will add a portable
  450. Common Lisp, an Empire game, a spreadsheet, and hundreds of other
  451. things, plus on-line documentation.  We hope to supply, eventually,
  452. everything useful that normally comes with a Unix system, and more.
  453.  
  454.    GNU will be able to run Unix programs, but will not be identical to
  455. Unix. We will make all improvements that are convenient, based on our
  456. experience with other operating systems.  In particular, we plan to
  457. have longer filenames, file version numbers, a crashproof file system,
  458. filename completion perhaps, terminal-independent display support, and
  459. perhaps eventually a Lisp-based window system through which several
  460. Lisp programs and ordinary Unix programs can share a screen.  Both C
  461. and Lisp will be available as system programming languages.  We will
  462. try to support UUCP, MIT Chaosnet, and Internet protocols for
  463. communication.
  464.  
  465.    GNU is aimed initially at machines in the 68000/16000 class with
  466. virtual memory, because they are the easiest machines to make it run
  467. on.  The extra effort to make it run on smaller machines will be left
  468. to someone who wants to use it on them.
  469.  
  470.    To avoid horrible confusion, please pronounce the `G' in the word
  471. `GNU' when it is the name of this project.
  472.  
  473. Why I Must Write GNU
  474. ====================
  475.  
  476.    I consider that the golden rule requires that if I like a program I
  477. must share it with other people who like it.  Software sellers want to
  478. divide the users and conquer them, making each user agree not to share
  479. with others.  I refuse to break solidarity with other users in this
  480. way.  I cannot in good conscience sign a nondisclosure agreement or a
  481. software license agreement.  For years I worked within the Artificial
  482. Intelligence Lab to resist such tendencies and other inhospitalities,
  483. but eventually they had gone too far: I could not remain in an
  484. institution where such things are done for me against my will.
  485.  
  486.    So that I can continue to use computers without dishonor, I have
  487. decided to put together a sufficient body of free software so that I
  488. will be able to get along without any software that is not free.  I
  489. have resigned from the AI lab to deny MIT any legal excuse to prevent
  490. me from giving GNU away.
  491.  
  492. Why GNU Will Be Compatible with Unix
  493. ====================================
  494.  
  495.    Unix is not my ideal system, but it is not too bad.  The essential
  496. features of Unix seem to be good ones, and I think I can fill in what
  497. Unix lacks without spoiling them.  And a system compatible with Unix
  498. would be convenient for many other people to adopt.
  499.  
  500. How GNU Will Be Available
  501. =========================
  502.  
  503.    GNU is not in the public domain.  Everyone will be permitted to
  504. modify and redistribute GNU, but no distributor will be allowed to
  505. restrict its further redistribution.  That is to say, proprietary
  506. modifications will not be allowed.  I want to make sure that all
  507. versions of GNU remain free.
  508.  
  509. Why Many Other Programmers Want to Help
  510. =======================================
  511.  
  512.    I have found many other programmers who are excited about GNU and
  513. want to help.
  514.  
  515.    Many programmers are unhappy about the commercialization of system
  516. software.  It may enable them to make more money, but it requires them
  517. to feel in conflict with other programmers in general rather than feel
  518. as comrades.  The fundamental act of friendship among programmers is the
  519. sharing of programs; marketing arrangements now typically used
  520. essentially forbid programmers to treat others as friends.  The
  521. purchaser of software must choose between friendship and obeying the
  522. law.  Naturally, many decide that friendship is more important.  But
  523. those who believe in law often do not feel at ease with either choice. 
  524. They become cynical and think that programming is just a way of making
  525. money.
  526.  
  527.    By working on and using GNU rather than proprietary programs, we can
  528. be hospitable to everyone and obey the law.  In addition, GNU serves as
  529. an example to inspire and a banner to rally others to join us in
  530. sharing. This can give us a feeling of harmony which is impossible if
  531. we use software that is not free.  For about half the programmers I
  532. talk to, this is an important happiness that money cannot replace.
  533.  
  534. How You Can Contribute
  535. ======================
  536.  
  537.    I am asking computer manufacturers for donations of machines and
  538. money. I'm asking individuals for donations of programs and work.
  539.  
  540.    One consequence you can expect if you donate machines is that GNU
  541. will run on them at an early date.  The machines should be complete,
  542. ready to use systems, approved for use in a residential area, and not
  543. in need of sophisticated cooling or power.
  544.  
  545.    I have found very many programmers eager to contribute part-time
  546. work for GNU.  For most projects, such part-time distributed work would
  547. be very hard to coordinate; the independently-written parts would not
  548. work together. But for the particular task of replacing Unix, this
  549. problem is absent.  A complete Unix system contains hundreds of utility
  550. programs, each of which is documented separately.  Most interface
  551. specifications are fixed by Unix compatibility.  If each contributor
  552. can write a compatible replacement for a single Unix utility, and make
  553. it work properly in place of the original on a Unix system, then these
  554. utilities will work right when put together. Even allowing for Murphy
  555. to create a few unexpected problems, assembling these components will
  556. be a feasible task.  (The kernel will require closer communication and
  557. will be worked on by a small, tight group.)
  558.  
  559.    If I get donations of money, I may be able to hire a few people full
  560. or part time.  The salary won't be high by programmers' standards, but
  561. I'm looking for people for whom building community spirit is as
  562. important as making money.  I view this as a way of enabling dedicated
  563. people to devote their full energies to working on GNU by sparing them
  564. the need to make a living in another way.
  565.  
  566. Why All Computer Users Will Benefit
  567. ===================================
  568.  
  569.    Once GNU is written, everyone will be able to obtain good system
  570. software free, just like air.
  571.  
  572.    This means much more than just saving everyone the price of a Unix
  573. license. It means that much wasteful duplication of system programming
  574. effort will be avoided.  This effort can go instead into advancing the
  575. state of the art.
  576.  
  577.    Complete system sources will be available to everyone.  As a result,
  578. a user who needs changes in the system will always be free to make them
  579. himself, or hire any available programmer or company to make them for
  580. him.  Users will no longer be at the mercy of one programmer or company
  581. which owns the sources and is in sole position to make changes.
  582.  
  583.    Schools will be able to provide a much more educational environment
  584. by encouraging all students to study and improve the system code. 
  585. Harvard's computer lab used to have the policy that no program could be
  586. installed on the system if its sources were not on public display, and
  587. upheld it by actually refusing to install certain programs.  I was very
  588. much inspired by this.
  589.  
  590.    Finally, the overhead of considering who owns the system software
  591. and what one is or is not entitled to do with it will be lifted.
  592.  
  593.    Arrangements to make people pay for using a program, including
  594. licensing of copies, always incur a tremendous cost to society through
  595. the cumbersome mechanisms necessary to figure out how much (that is,
  596. which programs) a person must pay for.  And only a police state can
  597. force everyone to obey them.  Consider a space station where air must
  598. be manufactured at great cost: charging each breather per liter of air
  599. may be fair, but wearing the metered gas mask all day and all night is
  600. intolerable even if everyone can afford to pay the air bill.  And the
  601. TV cameras everywhere to see if you ever take the mask off are
  602. outrageous.  It's better to support the air plant with a head tax and
  603. chuck the masks.
  604.  
  605.    Copying all or parts of a program is as natural to a programmer as
  606. breathing, and as productive.  It ought to be as free.
  607.  
  608. Some Easily Rebutted Objections to GNU's Goals
  609. ==============================================
  610.  
  611.      "Nobody will use it if it is free, because that means they can't
  612.      rely on any support."
  613.  
  614.      "You have to charge for the program to pay for providing the
  615.      support."
  616.  
  617.    If people would rather pay for GNU plus service than get GNU free
  618. without service, a company to provide just service to people who have
  619. obtained GNU free ought to be profitable.
  620.  
  621.    We must distinguish between support in the form of real programming
  622. work and mere handholding.  The former is something one cannot rely on
  623. from a software vendor.  If your problem is not shared by enough
  624. people, the vendor will tell you to get lost.
  625.  
  626.    If your business needs to be able to rely on support, the only way
  627. is to have all the necessary sources and tools.  Then you can hire any
  628. available person to fix your problem; you are not at the mercy of any
  629. individual. With Unix, the price of sources puts this out of
  630. consideration for most businesses.  With GNU this will be easy.  It is
  631. still possible for there to be no available competent person, but this
  632. problem cannot be blamed on distibution arrangements.  GNU does not
  633. eliminate all the world's problems, only some of them.
  634.  
  635.    Meanwhile, the users who know nothing about computers need
  636. handholding: doing things for them which they could easily do
  637. themselves but don't know how.
  638.  
  639.    Such services could be provided by companies that sell just
  640. hand-holding and repair service.  If it is true that users would rather
  641. spend money and get a product with service, they will also be willing
  642. to buy the service having got the product free.  The service companies
  643. will compete in quality and price; users will not be tied to any
  644. particular one.  Meanwhile, those of us who don't need the service
  645. should be able to use the program without paying for the service.
  646.  
  647.      "You cannot reach many people without advertising, and you must
  648.      charge for the program to support that."
  649.  
  650.      "It's no use advertising a program people can get free."
  651.  
  652.    There are various forms of free or very cheap publicity that can be
  653. used to inform numbers of computer users about something like GNU.  But
  654. it may be true that one can reach more microcomputer users with
  655. advertising.  If this is really so, a business which advertises the
  656. service of copying and mailing GNU for a fee ought to be successful
  657. enough to pay for its advertising and more.  This way, only the users
  658. who benefit from the advertising pay for it.
  659.  
  660.    On the other hand, if many people get GNU from their friends, and
  661. such companies don't succeed, this will show that advertising was not
  662. really necessary to spread GNU.  Why is it that free market advocates
  663. don't want to let the free market decide this?
  664.  
  665.      "My company needs a proprietary operating system to get a
  666.      competitive edge."
  667.  
  668.    GNU will remove operating system software from the realm of
  669. competition. You will not be able to get an edge in this area, but
  670. neither will your competitors be able to get an edge over you.  You and
  671. they will compete in other areas, while benefitting mutually in this
  672. one.  If your business is selling an operating system, you will not
  673. like GNU, but that's tough on you.  If your business is something else,
  674. GNU can save you from being pushed into the expensive business of
  675. selling operating systems.
  676.  
  677.    I would like to see GNU development supported by gifts from many
  678. manufacturers and users, reducing the cost to each.
  679.  
  680.      "Don't programmers deserve a reward for their creativity?"
  681.  
  682.    If anything deserves a reward, it is social contribution. 
  683. Creativity can be a social contribution, but only in so far as society
  684. is free to use the results.  If programmers deserve to be rewarded for
  685. creating innovative programs, by the same token they deserve to be
  686. punished if they restrict the use of these programs.
  687.  
  688.      "Shouldn't a programmer be able to ask for a reward for his
  689.      creativity?"
  690.  
  691.    There is nothing wrong with wanting pay for work, or seeking to
  692. maximize one's income, as long as one does not use means that are
  693. destructive.  But the means customary in the field of software today
  694. are based on destruction.
  695.  
  696.    Extracting money from users of a program by restricting their use of
  697. it is destructive because the restrictions reduce the amount and the
  698. ways that the program can be used.  This reduces the amount of wealth
  699. that humanity derives from the program.  When there is a deliberate
  700. choice to restrict, the harmful consequences are deliberate destruction.
  701.  
  702.    The reason a good citizen does not use such destructive means to
  703. become wealthier is that, if everyone did so, we would all become
  704. poorer from the mutual destructiveness.  This is Kantian ethics; or,
  705. the Golden Rule. Since I do not like the consequences that result if
  706. everyone hoards information, I am required to consider it wrong for one
  707. to do so. Specifically, the desire to be rewarded for one's creativity
  708. does not justify depriving the world in general of all or part of that
  709. creativity.
  710.  
  711.      "Won't programmers starve?"
  712.  
  713.    I could answer that nobody is forced to be a programmer.  Most of us
  714. cannot manage to get any money for standing on the street and making
  715. faces.  But we are not, as a result, condemned to spend our lives
  716. standing on the street making faces, and starving.  We do something
  717. else.
  718.  
  719.    But that is the wrong answer because it accepts the questioner's
  720. implicit assumption: that without ownership of software, programmers
  721. cannot possibly be paid a cent.  Supposedly it is all or nothing.
  722.  
  723.    The real reason programmers will not starve is that it will still be
  724. possible for them to get paid for programming; just not paid as much as
  725. now.
  726.  
  727.    Restricting copying is not the only basis for business in software. 
  728. It is the most common basis because it brings in the most money.  If it
  729. were prohibited, or rejected by the customer, software business would
  730. move to other bases of organization which are now used less often. 
  731. There are always numerous ways to organize any kind of business.
  732.  
  733.    Probably programming will not be as lucrative on the new basis as it
  734. is now.  But that is not an argument against the change.  It is not
  735. considered an injustice that sales clerks make the salaries that they
  736. now do.  If programmers made the same, that would not be an injustice
  737. either.  (In practice they would still make considerably more than
  738. that.)
  739.  
  740.      "Don't people have a right to control how their creativity is
  741.      used?"
  742.  
  743.    "Control over the use of one's ideas" really constitutes control over
  744. other people's lives; and it is usually used to make their lives more
  745. difficult.
  746.  
  747.    People who have studied the issue of intellectual property rights
  748. carefully (such as lawyers) say that there is no intrinsic right to
  749. intellectual property.  The kinds of supposed intellectual property
  750. rights that the government recognizes were created by specific acts of
  751. legislation for specific purposes.
  752.  
  753.    For example, the patent system was established to encourage
  754. inventors to disclose the details of their inventions.  Its purpose was
  755. to help society rather than to help inventors.  At the time, the life
  756. span of 17 years for a patent was short compared with the rate of
  757. advance of the state of the art.  Since patents are an issue only among
  758. manufacturers, for whom the cost and effort of a license agreement are
  759. small compared with setting up production, the patents often do not do
  760. much harm.  They do not obstruct most individuals who use patented
  761. products.
  762.  
  763.    The idea of copyright did not exist in ancient times, when authors
  764. frequently copied other authors at length in works of non-fiction.  This
  765. practice was useful, and is the only way many authors' works have
  766. survived even in part.  The copyright system was created expressly for
  767. the purpose of encouraging authorship.  In the domain for which it was
  768. invented--books, which could be copied economically only on a printing
  769. press--it did little harm, and did not obstruct most of the individuals
  770. who read the books.
  771.  
  772.    All intellectual property rights are just licenses granted by society
  773. because it was thought, rightly or wrongly, that society as a whole
  774. would benefit by granting them.  But in any particular situation, we
  775. have to ask: are we really better off granting such license?  What kind
  776. of act are we licensing a person to do?
  777.  
  778.    The case of programs today is very different from that of books a
  779. hundred years ago.  The fact that the easiest way to copy a program is
  780. from one neighbor to another, the fact that a program has both source
  781. code and object code which are distinct, and the fact that a program is
  782. used rather than read and enjoyed, combine to create a situation in
  783. which a person who enforces a copyright is harming society as a whole
  784. both materially and spiritually; in which a person should not do so
  785. regardless of whether the law enables him to.
  786.  
  787.      "Competition makes things get done better."
  788.  
  789.    The paradigm of competition is a race: by rewarding the winner, we
  790. encourage everyone to run faster.  When capitalism really works this
  791. way, it does a good job; but its defenders are wrong in assuming it
  792. always works this way.  If the runners forget why the reward is offered
  793. and become intent on winning, no matter how, they may find other
  794. strategies--such as, attacking other runners.  If the runners get into
  795. a fist fight, they will all finish late.
  796.  
  797.    Proprietary and secret software is the moral equivalent of runners
  798. in a fist fight.  Sad to say, the only referee we've got does not seem
  799. to object to fights; he just regulates them ("For every ten yards you
  800. run, you can fire one shot").  He really ought to break them up, and
  801. penalize runners for even trying to fight.
  802.  
  803.      "Won't everyone stop programming without a monetary incentive?"
  804.  
  805.    Actually, many people will program with absolutely no monetary
  806. incentive. Programming has an irresistible fascination for some people,
  807. usually the people who are best at it.  There is no shortage of
  808. professional musicians who keep at it even though they have no hope of
  809. making a living that way.
  810.  
  811.    But really this question, though commonly asked, is not appropriate
  812. to the situation.  Pay for programmers will not disappear, only become
  813. less.  So the right question is, will anyone program with a reduced
  814. monetary incentive?  My experience shows that they will.
  815.  
  816.    For more than ten years, many of the world's best programmers worked
  817. at the Artificial Intelligence Lab for far less money than they could
  818. have had anywhere else.  They got many kinds of non-monetary rewards:
  819. fame and appreciation, for example.  And creativity is also fun, a
  820. reward in itself.
  821.  
  822.    Then most of them left when offered a chance to do the same
  823. interesting work for a lot of money.
  824.  
  825.    What the facts show is that people will program for reasons other
  826. than riches; but if given a chance to make a lot of money as well, they
  827. will come to expect and demand it.  Low-paying organizations do poorly
  828. in competition with high-paying ones, but they do not have to do badly
  829. if the high-paying ones are banned.
  830.  
  831.      "We need the programmers desperately.  If they demand that we stop
  832.      helping our neighbors, we have to obey."
  833.  
  834.    You're never so desperate that you have to obey this sort of demand.
  835. Remember: millions for defense, but not a cent for tribute!
  836.  
  837.      "Programmers need to make a living somehow."
  838.  
  839.    In the short run, this is true.  However, there are plenty of ways
  840. that programmers could make a living without selling the right to use a
  841. program. This way is customary now because it brings programmers and
  842. businessmen the most money, not because it is the only way to make a
  843. living.  It is easy to find other ways if you want to find them.  Here
  844. are a number of examples.
  845.  
  846.    A manufacturer introducing a new computer will pay for the porting of
  847. operating systems onto the new hardware.
  848.  
  849.    The sale of teaching, hand-holding and maintenance services could
  850. also employ programmers.
  851.  
  852.    People with new ideas could distribute programs as freeware, asking
  853. for donations from satisfied users, or selling hand-holding services. 
  854. I have met people who are already working this way successfully.
  855.  
  856.    Users with related needs can form users' groups, and pay dues.  A
  857. group would contract with programming companies to write programs that
  858. the group's members would like to use.
  859.  
  860.    All sorts of development can be funded with a Software Tax:
  861.  
  862.      Suppose everyone who buys a computer has to pay x percent of the
  863.      price as a software tax.  The government gives this to an agency
  864.      like the NSF to spend on software development.
  865.  
  866.      But if the computer buyer makes a donation to software development
  867.      himself, he can take a credit against the tax.  He can donate to
  868.      the project of his own choosing--often, chosen because he hopes to
  869.      use the results when it is done.  He can take a credit for any
  870.      amount of donation up to the total tax he had to pay.
  871.  
  872.      The total tax rate could be decided by a vote of the payers of the
  873.      tax, weighted according to the amount they will be taxed on.
  874.  
  875.      The consequences:
  876.  
  877.         * The computer-using community supports software development.
  878.  
  879.         * This community decides what level of support is needed.
  880.  
  881.         * Users who care which projects their share is spent on can
  882.           choose this for themselves.
  883.  
  884.    In the long run, making programs free is a step toward the
  885. post-scarcity world, where nobody will have to work very hard just to
  886. make a living. People will be free to devote themselves to activities
  887. that are fun, such as programming, after spending the necessary ten
  888. hours a week on required tasks such as legislation, family counseling,
  889. robot repair and asteroid prospecting.  There will be no need to be
  890. able to make a living from programming.
  891.  
  892.    We have already greatly reduced the amount of work that the whole
  893. society must do for its actual productivity, but only a little of this
  894. has translated itself into leisure for workers because much
  895. nonproductive activity is required to accompany productive activity. 
  896. The main causes of this are bureaucracy and isometric struggles against
  897. competition.  Free software will greatly reduce these drains in the
  898. area of software production.  We must do this, in order for technical
  899. gains in productivity to translate into less work for us.
  900.  
  901.