aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2010-03-17 23:27:55 -0700
committerGlenn Morris2010-03-17 23:27:55 -0700
commit1728474534760876c186d5be643ba25dd92a15b6 (patch)
tree1bf8fef89ac67ecc3b01097529f69cdb2d6a942a /src
parente3a151619d8c1d9bcb228ba1a54a23fabcb0d264 (diff)
downloademacs-1728474534760876c186d5be643ba25dd92a15b6.tar.gz
emacs-1728474534760876c186d5be643ba25dd92a15b6.zip
Remove obsolete code in emacs.c that chooses a bug reporting address.
* emacs.c (USAGE4): Hard-code bug address. (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove. (bug_reporting_address): Remove. (main): Don't call bug_reporting_address.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/emacs.c39
2 files changed, 7 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e353c9e1147..f15d91cbf91 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12010-03-18 Glenn Morris <rgm@gnu.org> 12010-03-18 Glenn Morris <rgm@gnu.org>
2 2
3 * emacs.c (USAGE4): Hard-code bug address.
4 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5 (bug_reporting_address): Remove.
6 (main): Don't call bug_reporting_address.
7
3 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF) 8 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
4 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp. 9 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5 10
diff --git a/src/emacs.c b/src/emacs.c
index 71ffa998bfe..d7d01b8d3c1 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -345,7 +345,7 @@ abbreviation for a --option.\n\
345Various environment variables and window system resources also affect\n\ 345Various environment variables and window system resources also affect\n\
346Emacs' operation. See the main documentation.\n\ 346Emacs' operation. See the main documentation.\n\
347\n\ 347\n\
348Report bugs to %s. First, please see the Bugs\n\ 348Report bugs to bug-gnu-emacs@gnu.org. First, please see the Bugs\n\
349section of the Emacs manual or the file BUGS.\n" 349section of the Emacs manual or the file BUGS.\n"
350 350
351 351
@@ -746,41 +746,6 @@ void (*__malloc_initialize_hook) () = malloc_initialize_hook;
746#endif /* DOUG_LEA_MALLOC */ 746#endif /* DOUG_LEA_MALLOC */
747 747
748 748
749#define REPORT_EMACS_BUG_ADDRESS "bug-gnu-emacs@gnu.org"
750#define REPORT_EMACS_BUG_PRETEST_ADDRESS "bug-gnu-emacs@gnu.org"
751
752/* This function is used to determine an address to which bug report should
753 be sent. */
754
755char *
756bug_reporting_address ()
757{
758 int count = 0;
759 Lisp_Object temp;
760 char *string;
761
762 temp = Fsymbol_value (intern ("emacs-version"));
763
764 /* When `emacs-version' is invalid, use normal address. */
765 if (!STRINGP(temp))
766 return REPORT_EMACS_BUG_ADDRESS;
767
768 string = SDATA (temp);
769
770 /* Count dots in `emacs-version'. */
771 while (*string)
772 {
773 if (*string == '.')
774 count++;
775 string++;
776 }
777
778 /* When `emacs-version' has at least three dots, it is development or
779 pretest version of Emacs. */
780 return count >= 3 ? REPORT_EMACS_BUG_PRETEST_ADDRESS : REPORT_EMACS_BUG_ADDRESS;
781}
782
783
784/* ARGSUSED */ 749/* ARGSUSED */
785int 750int
786main (int argc, char **argv) 751main (int argc, char **argv)
@@ -1082,7 +1047,7 @@ main (int argc, char **argv)
1082 { 1047 {
1083 printf (USAGE1, argv[0], USAGE2); 1048 printf (USAGE1, argv[0], USAGE2);
1084 printf (USAGE3); 1049 printf (USAGE3);
1085 printf (USAGE4, bug_reporting_address ()); 1050 printf (USAGE4);
1086 exit (0); 1051 exit (0);
1087 } 1052 }
1088 1053