New feature: tag completion with C-c TAB.
[muse-el.git] / muse.texi
blob375671a0ed84426ed4af76c9acd48a4ced5a28cf
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename muse.info
4 @settitle Muse
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * Muse: (muse). Authoring and publishing environment for Emacs.
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for Muse version 3.01
17 Copyright (C) 2004, 2005 Free Software Foundation, Inc.
19 @quotation
20 Permission is granted to copy, distribute and/or modify this document
21 under the terms of the GNU General Public License.
22 @end quotation
23 @end copying
25 @titlepage
26 @title Muse manual
27 @subtitle an authoring and publishing environment
28 @subtitle for GNU Emacs and XEmacs
30 @c The following two commands
31 @c start the copyright page.
32 @page
33 @vskip 0pt plus 1filll
34 @insertcopying
35 @end titlepage
37 @c So the toc is printed at the start
38 @contents
40 @ifnottex
41 @node Top, Preface, (dir), (dir)
42 @comment  node-name,  next,  previous,  up
43 @top Muse
45 @insertcopying
46 @end ifnottex
48 @menu
49 * Preface::                     About the documentation
50 * Introduction::                What is Muse?
51 * Installation::                How to get the stable and development versions
52 * Getting Started::             
53 * Projects::                    Creating a Muse project
54 * Keystroke Summary::           
55 * Getting Help and Reporting Bugs::  
56 * History::                     
57 * Contributors::                Contributors to this documentation
58 * GNU General Public License::  
59 * Concept Index::               
61 @detailmenu
62  --- The Detailed Node Listing ---
64 Installation
66 * Releases::                    Released versions of Muse
67 * Development::                 Latest unreleased changes
69 @end detailmenu
70 @end menu
72 @node Preface, Introduction, Top, Top
73 @comment  node-name,  next,  previous,  up
74 @chapter Preface
76 This document describes Muse, which was written by John Wiegley
77 and is now maintained by Michael Olson.
79 This document is a work in progress, and your contribution will be
80 greatly appreciated.
82 @node Introduction, Installation, Preface, Top
83 @comment  node-name,  next,  previous,  up
84 @chapter Introduction
86 Emacs Muse is an authoring and publishing environment for Emacs.  It
87 simplifies the process of writings documents and publishing them to
88 various output formats.
90 Muse consists of two main parts: an enhanced text-mode for authoring
91 documents and navigating within Muse projects, and a set of publishing
92 styles for generating different kinds of output.
94 This idea is not in any way new. Numerous systems exist -- even one
95 other for Emacs itself (Bhl Mode). What Muse adds to the picture is a
96 more modular environment, with a rather simple core, in which "styles"
97 are derived from to create new styles. Much of Muse's overall
98 functionality is optional. For example, you can use the publisher
99 without the major-mode, or the mode without doing any publishing; or if
100 you don't load the Texinfo or LaTeX modules, those styles won't be
101 available.
103 The Muse codebase is a departure from emacs-wiki.el version 2.44. The
104 code has been restructured and rewritten, especially its publishing
105 functions. The focus in this revision is on the authoring and publishing
106 aspects, and the "wikiness" has been removed as a default behavior (to
107 be offered again as an optional module). CamelCase words are no longer
108 special by default.
110 @node Installation, Getting Started, Introduction, Top
111 @comment  node-name,  next,  previous,  up
112 @chapter Installation
114 @menu
115 * Releases::                    Released versions of Muse
116 * Development::                 Latest unreleased changes
117 @end menu
119 @node Releases, Development, Installation, Installation
120 @comment  node-name,  next,  previous,  up
121 @section Installing a release
123 Choose to install a release if you want to minimize risk.  Currently
124 Muse is in a pre-release stage, so no official releases have been made
125 yet.
127 Errors are corrected in development first.  Once fixes are confirmed, a
128 new release will be made.  User-visible changes will be announced on the
129 @email{emacs-wiki-discuss@@nongnu.org} mailing list.  @pxref{Getting
130 Help and Reporting Bugs}.
132 @cindex Debian package for Muse
134 Debian users can get Muse via apt-get.  @file{Muse} is available only at
135 Michael Olson's Debian repository.
137 @cindex releases, from source
139 You can also install the source distribution.
141 @enumerate
142 @item Download and unpack the latest version from @uref{http://www.mwolson.org/static/dist/muse/} .
143 @item Edit your @file{~/.emacs}.
145 @example
146 ;; Add the directories to your load path
147 (add-to-list 'load-path "/path/to/muse")
148 ;; Load Muse
149 (require 'muse)
150 @end example
152 @end enumerate
154 You can download the archive at the following locations:
156 @itemize
157 @item Current and past releases: @uref{http://www.mwolson.org/static/dist/muse/}
158 @end itemize
160 @node Development,  , Releases, Installation
161 @comment  node-name,  next,  previous,  up
162 @section Installing the development version
163 @cindex development
165 Choose the development version if you want to live on the bleeding
166 edge of Muse development or try out new features before release.
168 @cindex arch revision control system, downloading
169 The Arch revision control system allows you to retrieve previous
170 versions and select specific features and bug fixes.
172 Downloading the modules for the first time:
174 @enumerate
175 @item Install arch. Debian: @kbd{apt-get install tla} .  Other distros: see @uref{http://regexps.srparish.net/www/} .
176 @item Register the archive and download the modules.
178 @example
179 # Register the archive
180 tla register-archive http://www.mwolson.org/archives/2005
182 # Download Muse into the @file{muse/} subdirectory
183 tla get mwolson@@gnu.org--2005/muse--main--1.0 muse
184 @end example
186 @item Open your @file{~/.emacs} and add the @file{Muse/} directory to your load path.
188 @example
189 (add-to-list 'load-path "/path/to/muse")
190 @end example
192 @end enumerate
194 To list upstream changes not in local copy:
196 @example
197 # Change to the source directory you are interested in. Example:
198 cd muse/
200 # Display the summary of changes
201 tla missing --summary
202 @end example
204 @cindex updating Muse with Arch
206 To update to the latest version:
208 @example
209 cd muse
210 tla replay
211 @end example
213 You can also obtain the archive at the following locations on the web:
215 @itemize
216 @item Browse arch repository: @uref{http://www.mwolson.org/archives/}
217 @item Latest development snapshot: @uref{http://www.mwolson.org/static/dist/muse-latest.tar.gz}
218 @end itemize
220 The latest development snapshot will be kept up to date since it is
221 updated at the same time as the Arch repository.
224 @node Getting Started, Projects, Installation, Top
225 @comment  node-name,  next,  previous,  up
226 @chapter Getting Started
228 To use Muse, add the directory containing its files to your
229 @code{load-path} variable, in your @file{.emacs} file.  Then, load in
230 the authoring mode, and the styles you wish to publish to.  For
231 example:
233 @lisp
234 (add-to-list 'load-path "<path to Muse>")
236 (require 'muse-mode)     ; load authoring mode
238 (require 'muse-html)     ; load publishing styles I use
239 (require 'muse-latex)
240 (require 'muse-texinfo)
241 (require 'muse-docbook)
242 @end lisp
244 Once loaded, the command @kbd{M-x muse-publish-this-file} will publish
245 an input document to any available style.  If you enable
246 @file{muse-mode} within a buffer, by typing @kbd{M-x muse-mode}, this
247 command will be bound to @kbd{C-c C-t}.
249 You should also type @kbd{M-x customize-group}, and give the name
250 @samp{muse}.  Change it to suit your preferences.  Each of the
251 options has its own documentation.
254 @node Projects, Keystroke Summary, Getting Started, Top
255 @comment  node-name,  next,  previous,  up
256 @chapter Projects
257 @cindex projects
259 Often you will want to publish all the files within a directory to a
260 particular set of output styles automatically.  To support, Muse
261 allows for the creations of "projects".  Here is a sample project, to
262 be defined in your @file{.emacs} file:
264 @lisp
265 (require 'muse-project)
267 (setq muse-project-alist
268       '(("website"                      ; my various writings
269          ("~/Pages" :default "index")
270          (:base "html" :path "~/public_html")
271          (:base "pdf" :path "~/public_html/pdf"))))
272 @end lisp
274 The above defines a project named "website", whose files are located
275 in the directory @file{~/Pages}.  The default page to visit is
276 @file{index}.  When this project is published, each page will be
277 output as HTML to the directory @file{~/public_html}, and as PDF to
278 the directory @file{~/public_html/pdf}.  Within any project page, you
279 may create a link to other pages using the syntax @samp{[[pagename]]}.
281 @node Keystroke Summary, Getting Help and Reporting Bugs, Projects, Top
282 @comment  node-name,  next,  previous,  up
283 @chapter Keystroke Summary
284 @cindex keystrokes
286 Here is a summary of keystrokes available in every Muse buffer:
288 @table @kbd
290 @item C-c C-a (`muse-index')
291 Display an index of all known Muse pages.
293 @item C-c C-b (`muse-browse-result')
294 Show the published result of this page.
296 @item C-c C-e (`muse-edit-link-at-point')
297 Edit link at point.
299 @item C-c C-f (`muse-project-find-file'), also C-c C-v
300 Open another Muse page.  Prompt for the name.
302 @item C-c C-l (`font-lock-mode')
303 Highlight/refresh the current buffer.
305 @item C-c C-p (`muse-project-publish')
306 Publish any Muse pages that have changed.
308 @item C-c C-v (`muse-project-find-file'), also C-c C-f
309 Open another Muse page.  Prompt for the name.
311 @item C-c = (`muse-what-changed')
312 Diff this page against the last backup version.
314 @item TAB
315 Move to the next Wiki reference.
317 @item S-TAB
318 Move to the previous Wiki reference.
320 @end table
323 @node Getting Help and Reporting Bugs, History, Keystroke Summary, Top
324 @comment  node-name,  next,  previous,  up
325 @chapter Getting Help and Reporting Bugs
326 @cindex help, getting
327 @cindex bugs, reporting
329 After you have read this guide, if you still have questions about
330 Muse, or if you have bugs to report, there are several places you can
333 @uref{http://www.mwolson.org/projects/MuseMode.html} is the page that
334 Michael Olson made for Muse.  For the duration of his
335 maintainership, it may be considered the official Muse website.
337 You can join the mailing list at
338 @email{emacs-wiki-discuss@@nongnu.org} using the subscription form at
339 @uref{http://mail.nongnu.org/mailman/listinfo/
340 emacs-wiki-discuss}. This mailing list is also available via Gmane
341 (@uref{http://gmane.org/}). The group is called
342 @samp{gmane.emacs.wiki.general}.
344 @uref{http://www.emacswiki.org/cgi-bin/wiki/MuseMode} is the
345 emacswiki.org page, and anyone may add tips and hints to it.
347 You can visit the IRC Freenode channel @samp{#emacs}. Many of the
348 contributors are frequently around and willing to answer your
349 questions.  The @samp{#muse} channel is also available for
350 Muse-specific help, and its current maintainer hangs out there.
352 You can also contact the maintainer of MuseMode, Michael Olson,
353 at @email{mwolson@@gnu.org}.
355 @node History, Contributors, Getting Help and Reporting Bugs, Top
356 @comment  node-name,  next,  previous,  up
357 @chapter History
358 @cindex history, of Muse
360 @itemize
361 @item 2004
363 John Wiegley started Muse upon realizing that EmacsWiki had some serious
364 limitations. Around February 2004, he started making "emacs-wiki version
365 3.00 APLHA", which eventually became known as Muse.
367 Most of those who frequent the emacs-wiki mailing list continued to use
368 emacs-wiki, mainly because Planner hasn't been ported over to it.
370 As of 2004-12-01, Michael Olson became the maintainer of Muse, as per
371 John Wiegley's request.
373 @end itemize
375 @node Contributors, GNU General Public License, History, Top
376 @comment  node-name,  next,  previous,  up
377 @chapter Contributors
378 @cindex contributors
380 @example
381 Copyright @copyright{} 2001, 2002, 2003, 2004 Free Software Foundation
382 @end example
384 The first draft of this document was taken from the emacs-wiki texinfo
385 manual.  Michael Olson adapted it for Muse and began the process of
386 adding content to it.
388 John Sullivan, did a majority of the work on the emacs-wiki texinfo
389 manual.
391 While Sacha Chua maintained emacs-wiki, she worked quite a bit on the
392 emacs-wiki texinfo manual.
394 @node GNU General Public License, Concept Index, Contributors, Top
395 @comment  node-name,  next,  previous,  up
396 @appendix GNU GENERAL PUBLIC LICENSE
397 @center Version 2, June 1991
398 @cindex GPL
399 @cindex GNU General Public License
401 @c This file is intended to be included in another file.
403 @display
404 Copyright @copyright{} 1989, 1991 Free Software Foundation, Inc.
405 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
407 Everyone is permitted to copy and distribute verbatim copies
408 of this license document, but changing it is not allowed.
409 @end display
411 @appendixsec Preamble
413   The licenses for most software are designed to take away your
414 freedom to share and change it.  By contrast, the GNU General Public
415 License is intended to guarantee your freedom to share and change free
416 software---to make sure the software is free for all its users.  This
417 General Public License applies to most of the Free Software
418 Foundation's software and to any other program whose authors commit to
419 using it.  (Some other Free Software Foundation software is covered by
420 the GNU Library General Public License instead.)  You can apply it to
421 your programs, too.
423   When we speak of free software, we are referring to freedom, not
424 price.  Our General Public Licenses are designed to make sure that you
425 have the freedom to distribute copies of free software (and charge for
426 this service if you wish), that you receive source code or can get it
427 if you want it, that you can change the software or use pieces of it
428 in new free programs; and that you know you can do these things.
430   To protect your rights, we need to make restrictions that forbid
431 anyone to deny you these rights or to ask you to surrender the rights.
432 These restrictions translate to certain responsibilities for you if you
433 distribute copies of the software, or if you modify it.
435   For example, if you distribute copies of such a program, whether
436 gratis or for a fee, you must give the recipients all the rights that
437 you have.  You must make sure that they, too, receive or can get the
438 source code.  And you must show them these terms so they know their
439 rights.
441   We protect your rights with two steps: (1) copyright the software, and
442 (2) offer you this license which gives you legal permission to copy,
443 distribute and/or modify the software.
445   Also, for each author's protection and ours, we want to make certain
446 that everyone understands that there is no warranty for this free
447 software.  If the software is modified by someone else and passed on, we
448 want its recipients to know that what they have is not the original, so
449 that any problems introduced by others will not reflect on the original
450 authors' reputations.
452   Finally, any free program is threatened constantly by software
453 patents.  We wish to avoid the danger that redistributors of a free
454 program will individually obtain patent licenses, in effect making the
455 program proprietary.  To prevent this, we have made it clear that any
456 patent must be licensed for everyone's free use or not licensed at all.
458   The precise terms and conditions for copying, distribution and
459 modification follow.
461 @iftex
462 @appendixsec TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
463 @end iftex
464 @ifinfo
465 @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
466 @end ifinfo
468 @enumerate 0
469 @item
470 This License applies to any program or other work which contains
471 a notice placed by the copyright holder saying it may be distributed
472 under the terms of this General Public License.  The ``Program'', below,
473 refers to any such program or work, and a ``work based on the Program''
474 means either the Program or any derivative work under copyright law:
475 that is to say, a work containing the Program or a portion of it,
476 either verbatim or with modifications and/or translated into another
477 language.  (Hereinafter, translation is included without limitation in
478 the term ``modification''.)  Each licensee is addressed as ``you''.
480 Activities other than copying, distribution and modification are not
481 covered by this License; they are outside its scope.  The act of
482 running the Program is not restricted, and the output from the Program
483 is covered only if its contents constitute a work based on the
484 Program (independent of having been made by running the Program).
485 Whether that is true depends on what the Program does.
487 @item
488 You may copy and distribute verbatim copies of the Program's
489 source code as you receive it, in any medium, provided that you
490 conspicuously and appropriately publish on each copy an appropriate
491 copyright notice and disclaimer of warranty; keep intact all the
492 notices that refer to this License and to the absence of any warranty;
493 and give any other recipients of the Program a copy of this License
494 along with the Program.
496 You may charge a fee for the physical act of transferring a copy, and
497 you may at your option offer warranty protection in exchange for a fee.
499 @item
500 You may modify your copy or copies of the Program or any portion
501 of it, thus forming a work based on the Program, and copy and
502 distribute such modifications or work under the terms of Section 1
503 above, provided that you also meet all of these conditions:
505 @enumerate a
506 @item
507 You must cause the modified files to carry prominent notices
508 stating that you changed the files and the date of any change.
510 @item
511 You must cause any work that you distribute or publish, that in
512 whole or in part contains or is derived from the Program or any
513 part thereof, to be licensed as a whole at no charge to all third
514 parties under the terms of this License.
516 @item
517 If the modified program normally reads commands interactively
518 when run, you must cause it, when started running for such
519 interactive use in the most ordinary way, to print or display an
520 announcement including an appropriate copyright notice and a
521 notice that there is no warranty (or else, saying that you provide
522 a warranty) and that users may redistribute the program under
523 these conditions, and telling the user how to view a copy of this
524 License.  (Exception: if the Program itself is interactive but
525 does not normally print such an announcement, your work based on
526 the Program is not required to print an announcement.)
527 @end enumerate
529 These requirements apply to the modified work as a whole.  If
530 identifiable sections of that work are not derived from the Program,
531 and can be reasonably considered independent and separate works in
532 themselves, then this License, and its terms, do not apply to those
533 sections when you distribute them as separate works.  But when you
534 distribute the same sections as part of a whole which is a work based
535 on the Program, the distribution of the whole must be on the terms of
536 this License, whose permissions for other licensees extend to the
537 entire whole, and thus to each and every part regardless of who wrote it.
539 Thus, it is not the intent of this section to claim rights or contest
540 your rights to work written entirely by you; rather, the intent is to
541 exercise the right to control the distribution of derivative or
542 collective works based on the Program.
544 In addition, mere aggregation of another work not based on the Program
545 with the Program (or with a work based on the Program) on a volume of
546 a storage or distribution medium does not bring the other work under
547 the scope of this License.
549 @item
550 You may copy and distribute the Program (or a work based on it,
551 under Section 2) in object code or executable form under the terms of
552 Sections 1 and 2 above provided that you also do one of the following:
554 @enumerate a
555 @item
556 Accompany it with the complete corresponding machine-readable
557 source code, which must be distributed under the terms of Sections
558 1 and 2 above on a medium customarily used for software interchange; or,
560 @item
561 Accompany it with a written offer, valid for at least three
562 years, to give any third party, for a charge no more than your
563 cost of physically performing source distribution, a complete
564 machine-readable copy of the corresponding source code, to be
565 distributed under the terms of Sections 1 and 2 above on a medium
566 customarily used for software interchange; or,
568 @item
569 Accompany it with the information you received as to the offer
570 to distribute corresponding source code.  (This alternative is
571 allowed only for noncommercial distribution and only if you
572 received the program in object code or executable form with such
573 an offer, in accord with Subsection b above.)
574 @end enumerate
576 The source code for a work means the preferred form of the work for
577 making modifications to it.  For an executable work, complete source
578 code means all the source code for all modules it contains, plus any
579 associated interface definition files, plus the scripts used to
580 control compilation and installation of the executable.  However, as a
581 special exception, the source code distributed need not include
582 anything that is normally distributed (in either source or binary
583 form) with the major components (compiler, kernel, and so on) of the
584 operating system on which the executable runs, unless that component
585 itself accompanies the executable.
587 If distribution of executable or object code is made by offering
588 access to copy from a designated place, then offering equivalent
589 access to copy the source code from the same place counts as
590 distribution of the source code, even though third parties are not
591 compelled to copy the source along with the object code.
593 @item
594 You may not copy, modify, sublicense, or distribute the Program
595 except as expressly provided under this License.  Any attempt
596 otherwise to copy, modify, sublicense or distribute the Program is
597 void, and will automatically terminate your rights under this License.
598 However, parties who have received copies, or rights, from you under
599 this License will not have their licenses terminated so long as such
600 parties remain in full compliance.
602 @item
603 You are not required to accept this License, since you have not
604 signed it.  However, nothing else grants you permission to modify or
605 distribute the Program or its derivative works.  These actions are
606 prohibited by law if you do not accept this License.  Therefore, by
607 modifying or distributing the Program (or any work based on the
608 Program), you indicate your acceptance of this License to do so, and
609 all its terms and conditions for copying, distributing or modifying
610 the Program or works based on it.
612 @item
613 Each time you redistribute the Program (or any work based on the
614 Program), the recipient automatically receives a license from the
615 original licensor to copy, distribute or modify the Program subject to
616 these terms and conditions.  You may not impose any further
617 restrictions on the recipients' exercise of the rights granted herein.
618 You are not responsible for enforcing compliance by third parties to
619 this License.
621 @item
622 If, as a consequence of a court judgment or allegation of patent
623 infringement or for any other reason (not limited to patent issues),
624 conditions are imposed on you (whether by court order, agreement or
625 otherwise) that contradict the conditions of this License, they do not
626 excuse you from the conditions of this License.  If you cannot
627 distribute so as to satisfy simultaneously your obligations under this
628 License and any other pertinent obligations, then as a consequence you
629 may not distribute the Program at all.  For example, if a patent
630 license would not permit royalty-free redistribution of the Program by
631 all those who receive copies directly or indirectly through you, then
632 the only way you could satisfy both it and this License would be to
633 refrain entirely from distribution of the Program.
635 If any portion of this section is held invalid or unenforceable under
636 any particular circumstance, the balance of the section is intended to
637 apply and the section as a whole is intended to apply in other
638 circumstances.
640 It is not the purpose of this section to induce you to infringe any
641 patents or other property right claims or to contest validity of any
642 such claims; this section has the sole purpose of protecting the
643 integrity of the free software distribution system, which is
644 implemented by public license practices.  Many people have made
645 generous contributions to the wide range of software distributed
646 through that system in reliance on consistent application of that
647 system; it is up to the author/donor to decide if he or she is willing
648 to distribute software through any other system and a licensee cannot
649 impose that choice.
651 This section is intended to make thoroughly clear what is believed to
652 be a consequence of the rest of this License.
654 @item
655 If the distribution and/or use of the Program is restricted in
656 certain countries either by patents or by copyrighted interfaces, the
657 original copyright holder who places the Program under this License
658 may add an explicit geographical distribution limitation excluding
659 those countries, so that distribution is permitted only in or among
660 countries not thus excluded.  In such case, this License incorporates
661 the limitation as if written in the body of this License.
663 @item
664 The Free Software Foundation may publish revised and/or new versions
665 of the General Public License from time to time.  Such new versions will
666 be similar in spirit to the present version, but may differ in detail to
667 address new problems or concerns.
669 Each version is given a distinguishing version number.  If the Program
670 specifies a version number of this License which applies to it and ``any
671 later version'', you have the option of following the terms and conditions
672 either of that version or of any later version published by the Free
673 Software Foundation.  If the Program does not specify a version number of
674 this License, you may choose any version ever published by the Free Software
675 Foundation.
677 @item
678 If you wish to incorporate parts of the Program into other free
679 programs whose distribution conditions are different, write to the author
680 to ask for permission.  For software which is copyrighted by the Free
681 Software Foundation, write to the Free Software Foundation; we sometimes
682 make exceptions for this.  Our decision will be guided by the two goals
683 of preserving the free status of all derivatives of our free software and
684 of promoting the sharing and reuse of software generally.
686 @iftex
687 @heading NO WARRANTY
688 @end iftex
689 @ifinfo
690 @center NO WARRANTY
691 @end ifinfo
693 @item
694 BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
695 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
696 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
697 PROVIDE THE PROGRAM ``AS IS'' WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
698 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
699 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
700 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
701 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
702 REPAIR OR CORRECTION.
704 @item
705 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
706 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
707 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
708 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
709 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
710 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
711 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
712 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
713 POSSIBILITY OF SUCH DAMAGES.
714 @end enumerate
716 @iftex
717 @heading END OF TERMS AND CONDITIONS
718 @end iftex
719 @ifinfo
720 @center END OF TERMS AND CONDITIONS
721 @end ifinfo
723 @page
724 @appendixsec Appendix: How to Apply These Terms to Your New Programs
726   If you develop a new program, and you want it to be of the greatest
727 possible use to the public, the best way to achieve this is to make it
728 free software which everyone can redistribute and change under these terms.
730   To do so, attach the following notices to the program.  It is safest
731 to attach them to the start of each source file to most effectively
732 convey the exclusion of warranty; and each file should have at least
733 the ``copyright'' line and a pointer to where the full notice is found.
735 @smallexample
736 @var{one line to give the program's name and a brief idea of what it does.}
737 Copyright (C) @var{yyyy}  @var{name of author}
739 This program is free software; you can redistribute it and/or modify
740 it under the terms of the GNU General Public License as published by
741 the Free Software Foundation; either version 2 of the License, or
742 (at your option) any later version.
744 This program is distributed in the hope that it will be useful,
745 but WITHOUT ANY WARRANTY; without even the implied warranty of
746 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
747 GNU General Public License for more details.
749 You should have received a copy of the GNU General Public License
750 along with this program; if not, write to the Free Software
751 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
752 @end smallexample
754 Also add information on how to contact you by electronic and paper mail.
756 If the program is interactive, make it output a short notice like this
757 when it starts in an interactive mode:
759 @smallexample
760 Gnomovision version 69, Copyright (C) 19@var{yy} @var{name of author}
761 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
762 This is free software, and you are welcome to redistribute it
763 under certain conditions; type `show c' for details.
764 @end smallexample
766 The hypothetical commands @samp{show w} and @samp{show c} should show
767 the appropriate parts of the General Public License.  Of course, the
768 commands you use may be called something other than @samp{show w} and
769 @samp{show c}; they could even be mouse-clicks or menu items---whatever
770 suits your program.
772 You should also get your employer (if you work as a programmer) or your
773 school, if any, to sign a ``copyright disclaimer'' for the program, if
774 necessary.  Here is a sample; alter the names:
776 @example
777 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
778 `Gnomovision' (which makes passes at compilers) written by James Hacker.
780 @var{signature of Ty Coon}, 1 April 1989
781 Ty Coon, President of Vice
782 @end example
784 This General Public License does not permit incorporating your program into
785 proprietary programs.  If your program is a subroutine library, you may
786 consider it more useful to permit linking proprietary applications with the
787 library.  If this is what you want to do, use the GNU Library General
788 Public License instead of this License.
791 @node Concept Index,  , GNU General Public License, Top
792 @comment  node-name,  next,  previous,  up
793 @unnumbered Index
795 @printindex cp
797 @bye
799 @c Local Variables:
800 @c ispell-local-pdict: "ispell-dict"
801 @c End: