home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / utility / misc / e1858src.lha / emacs-18.58 / info / emacs-12 < prev    next >
Encoding:
GNU Info File  |  1992-02-21  |  41.8 KB  |  913 lines

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