aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-09-11 17:31:47 -0700
committerGlenn Morris2010-09-11 17:31:47 -0700
commit63e1eaa187f191d3cc9d0d5dcc955660cc287117 (patch)
tree0779b9c2681aec7ccd376825669831d39fa76461
parentdba28758ab532268947bb9adbb01a22e025898db (diff)
downloademacs-63e1eaa187f191d3cc9d0d5dcc955660cc287117.tar.gz
emacs-63e1eaa187f191d3cc9d0d5dcc955660cc287117.zip
Various updates for the Bugs section of the manual.
* doc/emacs/trouble.texi (Bugs): Update the section intro. (Known Problems): New section. (Checklist): Misc updates. Prefer M-x report-emacs-bug. (Sending Patches): Bug fixes are best as responses to existing bugs. * doc/emacs/emacs.texi (Known Problems): Add menu entry for new section.
-rw-r--r--doc/emacs/ChangeLog8
-rw-r--r--doc/emacs/emacs.texi1
-rw-r--r--doc/emacs/trouble.texi191
3 files changed, 141 insertions, 59 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index c569d2e966f..53afe3af996 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,11 @@
12010-09-12 Glenn Morris <rgm@gnu.org>
2
3 * trouble.texi (Bugs): Update the section intro.
4 (Known Problems): New section.
5 (Checklist): Misc updates. Prefer M-x report-emacs-bug.
6 (Sending Patches): Bug fixes are best as responses to existing bugs.
7 * emacs.texi (Known Problems): Add menu entry for new section.
8
12010-09-04 Chong Yidong <cyd@stupidchicken.com> 92010-09-04 Chong Yidong <cyd@stupidchicken.com>
2 10
3 * dired.texi (Dired Enter): Minor doc fix (Bug#6982). 11 * dired.texi (Dired Enter): Minor doc fix (Bug#6982).
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi
index 7000fbd5c84..50a7dcc1b5b 100644
--- a/doc/emacs/emacs.texi
+++ b/doc/emacs/emacs.texi
@@ -1135,6 +1135,7 @@ Dealing with Emacs Trouble
1135 1135
1136Reporting Bugs 1136Reporting Bugs
1137 1137
1138* Known Problems:: How to read about known problems and bugs.
1138* Bug Criteria:: Have you really found a bug? 1139* Bug Criteria:: Have you really found a bug?
1139* Understanding Bug Reporting:: How to report a bug effectively. 1140* Understanding Bug Reporting:: How to report a bug effectively.
1140* Checklist:: Steps to follow for a good bug report. 1141* Checklist:: Steps to follow for a good bug report.
diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi
index 0390b7da910..2f90b30bf83 100644
--- a/doc/emacs/trouble.texi
+++ b/doc/emacs/trouble.texi
@@ -409,29 +409,76 @@ say something to the psychotherapist, you must end it by typing
409@section Reporting Bugs 409@section Reporting Bugs
410 410
411@cindex bugs 411@cindex bugs
412 Sometimes you will encounter a bug in Emacs. Although we cannot 412 If you think you have found a bug in Emacs, please report it. We
413promise we can or will fix the bug, and we might not even agree that it 413cannot promise to fix it, or always to agree that it is a bug, but we
414is a bug, we want to hear about problems you encounter. Often we agree 414certainly want to hear about it. The same applies for new features
415they are bugs and want to fix them. 415you would like to see added. The following sections will help you to
416 416construct an effective bug report.
417 To make it possible for us to fix a bug, you must report it. In order
418to do so effectively, you must know when and how to do it.
419
420 Before reporting a bug, it is a good idea to see if it is already
421known. You can find the list of known problems in the file
422@file{etc/PROBLEMS} in the Emacs distribution; type @kbd{C-h C-p} to read
423it. Some additional user-level problems can be found in @ref{Bugs and
424problems, , Bugs and problems, efaq, GNU Emacs FAQ}. Looking up your
425problem in these two documents might provide you with a solution or a
426work-around, or give you additional information about related issues.
427 417
428@menu 418@menu
419* Known Problems:: How to read about known problems and bugs.
429* Criteria: Bug Criteria. Have you really found a bug? 420* Criteria: Bug Criteria. Have you really found a bug?
430* Understanding Bug Reporting:: How to report a bug effectively. 421* Understanding Bug Reporting:: How to report a bug effectively.
431* Checklist:: Steps to follow for a good bug report. 422* Checklist:: Steps to follow for a good bug report.
432* Sending Patches:: How to send a patch for GNU Emacs. 423* Sending Patches:: How to send a patch for GNU Emacs.
433@end menu 424@end menu
434 425
426@node Known Problems
427@subsection Reading Existing Bug Reports and Known Problems
428
429 Before reporting a bug, if at all possible please check to see if it
430is already known about. Indeed, it may already have been fixed in a
431later release of Emacs, or in the development version. Here is a list
432of the main places you can read about known issues:
433
434@itemize
435@item
436The @file{etc/PROBLEMS} file in the Emacs distribution; type @kbd{C-h
437C-p} to read it. This file contains a list of particularly well-known
438issues that have been encountered in compiling, installing and running
439Emacs. Often, there are suggestions for workarounds and solutions.
440
441@item
442Some additional user-level problems can be found in @ref{Bugs and
443problems, , Bugs and problems, efaq, GNU Emacs FAQ}.
444
445@item
446The @samp{bug-gnu-emacs} mailing list (also available as the newsgroup
447@samp{gnu.emacs.bug}). This is where you will find most Emacs bug
448reports. You can read the list archives at
449@url{http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs}. If you
450like, you can also subscribe to the list. Be aware that the sole
451purpose of this list is to provide the Emacs maintainers with
452information about bugs and feature requests. Reports may contain
453fairly large amounts of data; spectators should not complain about
454this.
455
456@item
457The bug tracker at @url{http://debbugs.gnu.org}. From early 2008,
458reports from the @samp{bug-gnu-emacs} list have been sent here. The
459tracker contains the same information as the mailing list, just in a
460different format. You may prefer to browse and read reports using the
461tracker.
462
463@item
464The @samp{emacs-pretest-bug} mailing list. This list is no longer
465used, and is mainly of historical interest. At one time, it was used
466for bug reports in development (i.e., not yet released) versions of
467Emacs. You can read the archives for 2003 to mid 2007 at
468@url{http://lists.gnu.org/archive/html/emacs-pretest-bug/}. From
469late 2007 to mid 2008, the address was an alias for the
470@samp{emacs-devel} mailing list. From mid 2008 onwards, it has been
471an alias for @samp{bug-gnu-emacs}.
472
473@item
474The @samp{emacs-devel} mailing list. Sometimes people report bugs to
475this mailing list. This is not the main purpose of the list, however,
476and it is much better to send bug reports to the bug list. You should
477not feel obliged to read this list before reporting a bug.
478
479@end itemize
480
481
435@node Bug Criteria 482@node Bug Criteria
436@subsection When Is There a Bug 483@subsection When Is There a Bug
437 484
@@ -540,56 +587,81 @@ well.
540@subsection Checklist for Bug Reports 587@subsection Checklist for Bug Reports
541 588
542@cindex reporting bugs 589@cindex reporting bugs
543 The best way to send a bug report is to mail it electronically to the 590
544Emacs maintainers at @email{bug-gnu-emacs@@gnu.org}. (If you want to 591 Before reporting a bug, first try to see if the problem has already
545suggest a change as an improvement, use the same address.) 592been reported (@pxref{Known Problems}).
546 593
547 If you'd like to read the bug reports, you can find them on the 594If you are able to, try the latest release of Emacs to see if the
548newsgroup @samp{gnu.emacs.bug}; keep in mind, however, that as a 595problem has already been fixed. Even better is to try the latest
549spectator you should not criticize anything about what you see there. 596development version. We recognize that this is not easy for some
550The purpose of bug reports is to give information to the Emacs 597people, so do not feel that you absolutely must do this before making
551maintainers. Spectators are welcome only as long as they do not 598a report.
552interfere with this. In particular, some bug reports contain fairly
553large amounts of data; spectators should not complain about this.
554
555 Please do not post bug reports using netnews; mail is more reliable
556than netnews about reporting your correct address, which we may need
557in order to ask you for more information. If your data is more than
558500,000 bytes, please don't include it directly in the bug report;
559instead, offer to send it on request, or make it available by ftp and
560say where.
561 599
562@findex report-emacs-bug 600@findex report-emacs-bug
563 A convenient way to send a bug report for Emacs is to use the command 601 The best way to write a bug report for Emacs is to use the command
564@kbd{M-x report-emacs-bug}. This sets up a mail buffer (@pxref{Sending 602@kbd{M-x report-emacs-bug}. This sets up a mail buffer
565Mail}) and automatically inserts @emph{some} of the essential 603(@pxref{Sending Mail}) and automatically inserts @emph{some} of the
566information. However, it cannot supply all the necessary information; 604essential information. However, it cannot supply all the necessary
567you should still read and follow the guidelines below, so you can enter 605information; you should still read and follow the guidelines below, so
568the other crucial information by hand before you send the message. 606you can enter the other crucial information by hand before you send
607the message. You may feel that some of the information inserted by
608@kbd{M-x report-emacs-bug} is not relevant, but unless you are
609absolutely sure it is best to leave it, so that the developers can
610decide for themselves.
611
612When you have finished writing your report, type @kbd{C-c C-c} and it
613will be sent to the Emacs maintainers at @email{bug-gnu-emacs@@gnu.org}.
614(If you want to suggest an improvement or new feature, use the same
615address.) If you cannot send mail from inside Emacs, you can copy the
616text of your report to your normal mail client and send it to that
617address. Or you can simply send an email to that address describing
618the problem.
619
620Your report will be sent to the @samp{bug-gnu-emacs} mailing list, and
621stored in the tracker at @url{http://debbugs.gnu.org}. Please try to
622include a valid reply email address, in case we need to ask you for
623more information about your report. Submissions are moderated, so
624there may be a delay before your report appears.
625
626You do not need to know how the @url{http://debbugs.gnu.org} bug
627tracker works in order to report a bug, but if you want to, you can
628read the tracker's online documentation to see the various features
629you can use.
630
631All mail sent to the @samp{bug-gnu-emacs} mailing list is also
632gatewayed to the @samp{bug.gnu.emacs} newsgroup. The reverse is also
633true, but we ask you not to post bug reports via the newsgroup. It
634can make it much harder to contact you if we need to ask for more
635information, and it does not integrate well with the bug tracker.
636
637If your data is more than 500,000 bytes, please don't include it
638directly in the bug report; instead, offer to send it on request, or
639make it available by ftp and say where.
569 640
570 To enable maintainers to investigate a bug, your report 641 To enable maintainers to investigate a bug, your report
571should include all these things: 642should include all these things:
572 643
573@itemize @bullet 644@itemize @bullet
574@item 645@item
575The version number of Emacs. Without this, we won't know whether there 646The version number of Emacs. Without this, we won't know whether there is any
576is any point in looking for the bug in the current version of GNU 647point in looking for the bug in the current version of GNU Emacs.
577Emacs.
578 648
579You can get the version number by typing @kbd{M-x emacs-version 649@kbd{M-x report-emacs-bug} includes this information automatically,
580@key{RET}}. If that command does not work, you probably have something 650but if you are not using that command for your report you can get the
581other than GNU Emacs, so you will have to report the bug somewhere 651version number by typing @kbd{M-x emacs-version @key{RET}}. If that
582else. 652command does not work, you probably have something other than GNU
653Emacs, so you will have to report the bug somewhere else.
583 654
584@item 655@item
585The type of machine you are using, and the operating system name and 656The type of machine you are using, and the operating system name and
586version number. @kbd{M-x emacs-version @key{RET}} provides this 657version number (again, automatically included by @kbd{M-x
587information too. Copy its output from the @samp{*Messages*} buffer, so 658report-emacs-bug}). @kbd{M-x emacs-version @key{RET}} provides this
588that you get it all and get it accurately. 659information too. Copy its output from the @samp{*Messages*} buffer,
660so that you get it all and get it accurately.
589 661
590@item 662@item
591The operands given to the @code{configure} command when Emacs was 663The operands given to the @code{configure} command when Emacs was
592installed. 664installed (automatically included by @kbd{M-x report-emacs-bug}).
593 665
594@item 666@item
595A complete list of any modifications you have made to the Emacs source. 667A complete list of any modifications you have made to the Emacs source.
@@ -619,12 +691,15 @@ the last line is terminated, but try telling the bugs that).
619 691
620@item 692@item
621The precise commands we need to type to reproduce the bug. 693The precise commands we need to type to reproduce the bug.
694If at all possible, give a full recipe for an Emacs started with the
695@samp{-Q} option (@pxref{Initial Options}). This bypasses your
696@file{.emacs} customizations.
622 697
623@findex open-dribble-file 698@findex open-dribble-file
624@cindex dribble file 699@cindex dribble file
625@cindex logging keystrokes 700@cindex logging keystrokes
626The easy way to record the input to Emacs precisely is to write a 701One way to record the input to Emacs precisely is to write a dribble
627dribble file. To start the file, execute the Lisp expression 702file. To start the file, execute the Lisp expression
628 703
629@example 704@example
630(open-dribble-file "~/dribble") 705(open-dribble-file "~/dribble")
@@ -735,7 +810,7 @@ Check whether any programs you have loaded into the Lisp world,
735including your @file{.emacs} file, set any variables that may affect the 810including your @file{.emacs} file, set any variables that may affect the
736functioning of Emacs. Also, see whether the problem happens in a 811functioning of Emacs. Also, see whether the problem happens in a
737freshly started Emacs without loading your @file{.emacs} file (start 812freshly started Emacs without loading your @file{.emacs} file (start
738Emacs with the @code{-q} switch to prevent loading the init file). If 813Emacs with the @code{-Q} switch to prevent loading the init files). If
739the problem does @emph{not} occur then, you must report the precise 814the problem does @emph{not} occur then, you must report the precise
740contents of any programs that you must load into the Lisp world in order 815contents of any programs that you must load into the Lisp world in order
741to cause the problem to occur. 816to cause the problem to occur.
@@ -907,12 +982,10 @@ your best to help.
907@itemize @bullet 982@itemize @bullet
908@item 983@item
909Send an explanation with your changes of what problem they fix or what 984Send an explanation with your changes of what problem they fix or what
910improvement they bring about. For a bug fix, just include a copy of the 985improvement they bring about. For a fix for an existing bug, it is
911bug report, and explain why the change fixes the bug. 986best to reply to the relevant discussion on the @samp{bug-gnu-emacs}
912 987list, or item in the @url{http://debbugs.gnu.org} tracker. Explain
913(Referring to a bug report is not as good as including it, because then 988why your change fixes the bug.
914we will have to look it up, and we have probably already deleted it if
915we've already fixed the bug.)
916 989
917@item 990@item
918Always include a proper bug report for the problem you think you have 991Always include a proper bug report for the problem you think you have