diff options
| author | Glenn Morris | 2010-09-11 17:31:47 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-09-11 17:31:47 -0700 |
| commit | 63e1eaa187f191d3cc9d0d5dcc955660cc287117 (patch) | |
| tree | 0779b9c2681aec7ccd376825669831d39fa76461 | |
| parent | dba28758ab532268947bb9adbb01a22e025898db (diff) | |
| download | emacs-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/ChangeLog | 8 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 1 | ||||
| -rw-r--r-- | doc/emacs/trouble.texi | 191 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-09-04 Chong Yidong <cyd@stupidchicken.com> | 9 | 2010-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 | ||
| 1136 | Reporting Bugs | 1136 | Reporting 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 |
| 413 | promise we can or will fix the bug, and we might not even agree that it | 413 | cannot promise to fix it, or always to agree that it is a bug, but we |
| 414 | is a bug, we want to hear about problems you encounter. Often we agree | 414 | certainly want to hear about it. The same applies for new features |
| 415 | they are bugs and want to fix them. | 415 | you would like to see added. The following sections will help you to |
| 416 | 416 | construct an effective bug report. | |
| 417 | To make it possible for us to fix a bug, you must report it. In order | ||
| 418 | to 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 | ||
| 421 | known. 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 | ||
| 423 | it. Some additional user-level problems can be found in @ref{Bugs and | ||
| 424 | problems, , Bugs and problems, efaq, GNU Emacs FAQ}. Looking up your | ||
| 425 | problem in these two documents might provide you with a solution or a | ||
| 426 | work-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 | ||
| 430 | is already known about. Indeed, it may already have been fixed in a | ||
| 431 | later release of Emacs, or in the development version. Here is a list | ||
| 432 | of the main places you can read about known issues: | ||
| 433 | |||
| 434 | @itemize | ||
| 435 | @item | ||
| 436 | The @file{etc/PROBLEMS} file in the Emacs distribution; type @kbd{C-h | ||
| 437 | C-p} to read it. This file contains a list of particularly well-known | ||
| 438 | issues that have been encountered in compiling, installing and running | ||
| 439 | Emacs. Often, there are suggestions for workarounds and solutions. | ||
| 440 | |||
| 441 | @item | ||
| 442 | Some additional user-level problems can be found in @ref{Bugs and | ||
| 443 | problems, , Bugs and problems, efaq, GNU Emacs FAQ}. | ||
| 444 | |||
| 445 | @item | ||
| 446 | The @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 | ||
| 448 | reports. You can read the list archives at | ||
| 449 | @url{http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs}. If you | ||
| 450 | like, you can also subscribe to the list. Be aware that the sole | ||
| 451 | purpose of this list is to provide the Emacs maintainers with | ||
| 452 | information about bugs and feature requests. Reports may contain | ||
| 453 | fairly large amounts of data; spectators should not complain about | ||
| 454 | this. | ||
| 455 | |||
| 456 | @item | ||
| 457 | The bug tracker at @url{http://debbugs.gnu.org}. From early 2008, | ||
| 458 | reports from the @samp{bug-gnu-emacs} list have been sent here. The | ||
| 459 | tracker contains the same information as the mailing list, just in a | ||
| 460 | different format. You may prefer to browse and read reports using the | ||
| 461 | tracker. | ||
| 462 | |||
| 463 | @item | ||
| 464 | The @samp{emacs-pretest-bug} mailing list. This list is no longer | ||
| 465 | used, and is mainly of historical interest. At one time, it was used | ||
| 466 | for bug reports in development (i.e., not yet released) versions of | ||
| 467 | Emacs. You can read the archives for 2003 to mid 2007 at | ||
| 468 | @url{http://lists.gnu.org/archive/html/emacs-pretest-bug/}. From | ||
| 469 | late 2007 to mid 2008, the address was an alias for the | ||
| 470 | @samp{emacs-devel} mailing list. From mid 2008 onwards, it has been | ||
| 471 | an alias for @samp{bug-gnu-emacs}. | ||
| 472 | |||
| 473 | @item | ||
| 474 | The @samp{emacs-devel} mailing list. Sometimes people report bugs to | ||
| 475 | this mailing list. This is not the main purpose of the list, however, | ||
| 476 | and it is much better to send bug reports to the bug list. You should | ||
| 477 | not 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 | |
| 544 | Emacs 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 |
| 545 | suggest a change as an improvement, use the same address.) | 592 | been reported (@pxref{Known Problems}). |
| 546 | 593 | ||
| 547 | If you'd like to read the bug reports, you can find them on the | 594 | If you are able to, try the latest release of Emacs to see if the |
| 548 | newsgroup @samp{gnu.emacs.bug}; keep in mind, however, that as a | 595 | problem has already been fixed. Even better is to try the latest |
| 549 | spectator you should not criticize anything about what you see there. | 596 | development version. We recognize that this is not easy for some |
| 550 | The purpose of bug reports is to give information to the Emacs | 597 | people, so do not feel that you absolutely must do this before making |
| 551 | maintainers. Spectators are welcome only as long as they do not | 598 | a report. |
| 552 | interfere with this. In particular, some bug reports contain fairly | ||
| 553 | large amounts of data; spectators should not complain about this. | ||
| 554 | |||
| 555 | Please do not post bug reports using netnews; mail is more reliable | ||
| 556 | than netnews about reporting your correct address, which we may need | ||
| 557 | in order to ask you for more information. If your data is more than | ||
| 558 | 500,000 bytes, please don't include it directly in the bug report; | ||
| 559 | instead, offer to send it on request, or make it available by ftp and | ||
| 560 | say 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 |
| 565 | Mail}) and automatically inserts @emph{some} of the essential | 603 | (@pxref{Sending Mail}) and automatically inserts @emph{some} of the |
| 566 | information. However, it cannot supply all the necessary information; | 604 | essential information. However, it cannot supply all the necessary |
| 567 | you should still read and follow the guidelines below, so you can enter | 605 | information; you should still read and follow the guidelines below, so |
| 568 | the other crucial information by hand before you send the message. | 606 | you can enter the other crucial information by hand before you send |
| 607 | the 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 | ||
| 609 | absolutely sure it is best to leave it, so that the developers can | ||
| 610 | decide for themselves. | ||
| 611 | |||
| 612 | When you have finished writing your report, type @kbd{C-c C-c} and it | ||
| 613 | will 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 | ||
| 615 | address.) If you cannot send mail from inside Emacs, you can copy the | ||
| 616 | text of your report to your normal mail client and send it to that | ||
| 617 | address. Or you can simply send an email to that address describing | ||
| 618 | the problem. | ||
| 619 | |||
| 620 | Your report will be sent to the @samp{bug-gnu-emacs} mailing list, and | ||
| 621 | stored in the tracker at @url{http://debbugs.gnu.org}. Please try to | ||
| 622 | include a valid reply email address, in case we need to ask you for | ||
| 623 | more information about your report. Submissions are moderated, so | ||
| 624 | there may be a delay before your report appears. | ||
| 625 | |||
| 626 | You do not need to know how the @url{http://debbugs.gnu.org} bug | ||
| 627 | tracker works in order to report a bug, but if you want to, you can | ||
| 628 | read the tracker's online documentation to see the various features | ||
| 629 | you can use. | ||
| 630 | |||
| 631 | All mail sent to the @samp{bug-gnu-emacs} mailing list is also | ||
| 632 | gatewayed to the @samp{bug.gnu.emacs} newsgroup. The reverse is also | ||
| 633 | true, but we ask you not to post bug reports via the newsgroup. It | ||
| 634 | can make it much harder to contact you if we need to ask for more | ||
| 635 | information, and it does not integrate well with the bug tracker. | ||
| 636 | |||
| 637 | If your data is more than 500,000 bytes, please don't include it | ||
| 638 | directly in the bug report; instead, offer to send it on request, or | ||
| 639 | make 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 |
| 571 | should include all these things: | 642 | should include all these things: |
| 572 | 643 | ||
| 573 | @itemize @bullet | 644 | @itemize @bullet |
| 574 | @item | 645 | @item |
| 575 | The version number of Emacs. Without this, we won't know whether there | 646 | The version number of Emacs. Without this, we won't know whether there is any |
| 576 | is any point in looking for the bug in the current version of GNU | 647 | point in looking for the bug in the current version of GNU Emacs. |
| 577 | Emacs. | ||
| 578 | 648 | ||
| 579 | You 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 | 650 | but if you are not using that command for your report you can get the |
| 581 | other than GNU Emacs, so you will have to report the bug somewhere | 651 | version number by typing @kbd{M-x emacs-version @key{RET}}. If that |
| 582 | else. | 652 | command does not work, you probably have something other than GNU |
| 653 | Emacs, so you will have to report the bug somewhere else. | ||
| 583 | 654 | ||
| 584 | @item | 655 | @item |
| 585 | The type of machine you are using, and the operating system name and | 656 | The type of machine you are using, and the operating system name and |
| 586 | version number. @kbd{M-x emacs-version @key{RET}} provides this | 657 | version number (again, automatically included by @kbd{M-x |
| 587 | information too. Copy its output from the @samp{*Messages*} buffer, so | 658 | report-emacs-bug}). @kbd{M-x emacs-version @key{RET}} provides this |
| 588 | that you get it all and get it accurately. | 659 | information too. Copy its output from the @samp{*Messages*} buffer, |
| 660 | so that you get it all and get it accurately. | ||
| 589 | 661 | ||
| 590 | @item | 662 | @item |
| 591 | The operands given to the @code{configure} command when Emacs was | 663 | The operands given to the @code{configure} command when Emacs was |
| 592 | installed. | 664 | installed (automatically included by @kbd{M-x report-emacs-bug}). |
| 593 | 665 | ||
| 594 | @item | 666 | @item |
| 595 | A complete list of any modifications you have made to the Emacs source. | 667 | A 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 |
| 621 | The precise commands we need to type to reproduce the bug. | 693 | The precise commands we need to type to reproduce the bug. |
| 694 | If 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 |
| 626 | The easy way to record the input to Emacs precisely is to write a | 701 | One way to record the input to Emacs precisely is to write a dribble |
| 627 | dribble file. To start the file, execute the Lisp expression | 702 | file. 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, | |||
| 735 | including your @file{.emacs} file, set any variables that may affect the | 810 | including your @file{.emacs} file, set any variables that may affect the |
| 736 | functioning of Emacs. Also, see whether the problem happens in a | 811 | functioning of Emacs. Also, see whether the problem happens in a |
| 737 | freshly started Emacs without loading your @file{.emacs} file (start | 812 | freshly started Emacs without loading your @file{.emacs} file (start |
| 738 | Emacs with the @code{-q} switch to prevent loading the init file). If | 813 | Emacs with the @code{-Q} switch to prevent loading the init files). If |
| 739 | the problem does @emph{not} occur then, you must report the precise | 814 | the problem does @emph{not} occur then, you must report the precise |
| 740 | contents of any programs that you must load into the Lisp world in order | 815 | contents of any programs that you must load into the Lisp world in order |
| 741 | to cause the problem to occur. | 816 | to cause the problem to occur. |
| @@ -907,12 +982,10 @@ your best to help. | |||
| 907 | @itemize @bullet | 982 | @itemize @bullet |
| 908 | @item | 983 | @item |
| 909 | Send an explanation with your changes of what problem they fix or what | 984 | Send an explanation with your changes of what problem they fix or what |
| 910 | improvement they bring about. For a bug fix, just include a copy of the | 985 | improvement they bring about. For a fix for an existing bug, it is |
| 911 | bug report, and explain why the change fixes the bug. | 986 | best to reply to the relevant discussion on the @samp{bug-gnu-emacs} |
| 912 | 987 | list, 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 | 988 | why your change fixes the bug. |
| 914 | we will have to look it up, and we have probably already deleted it if | ||
| 915 | we've already fixed the bug.) | ||
| 916 | 989 | ||
| 917 | @item | 990 | @item |
| 918 | Always include a proper bug report for the problem you think you have | 991 | Always include a proper bug report for the problem you think you have |