emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99680: Remove obsolete code in emacs


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99680: Remove obsolete code in emacs.c that chooses a bug reporting address.
Date: Wed, 17 Mar 2010 23:27:55 -0700
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 99680
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Wed 2010-03-17 23:27:55 -0700
message:
  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.
modified:
  src/ChangeLog
  src/emacs.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2010-03-18 05:49:31 +0000
+++ b/src/ChangeLog     2010-03-18 06:27:55 +0000
@@ -1,5 +1,10 @@
 2010-03-18  Glenn Morris  <address@hidden>
 
+       * 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.
+
        * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
        (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
 

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2010-01-16 19:28:59 +0000
+++ b/src/emacs.c       2010-03-18 06:27:55 +0000
@@ -345,7 +345,7 @@
 Various environment variables and window system resources also affect\n\
 Emacs' operation.  See the main documentation.\n\
 \n\
-Report bugs to %s.  First, please see the Bugs\n\
+Report bugs to address@hidden  First, please see the Bugs\n\
 section of the Emacs manual or the file BUGS.\n"
 
 
@@ -746,41 +746,6 @@
 #endif /* DOUG_LEA_MALLOC */
 
 
-#define REPORT_EMACS_BUG_ADDRESS "address@hidden"
-#define REPORT_EMACS_BUG_PRETEST_ADDRESS "address@hidden"
-
-/* This function is used to determine an address to which bug report should
-   be sent.  */
-
-char *
-bug_reporting_address ()
-{
-  int count = 0;
-  Lisp_Object temp;
-  char *string;
-
-  temp = Fsymbol_value (intern ("emacs-version"));
-
-  /* When `emacs-version' is invalid, use normal address.  */
-  if (!STRINGP(temp))
-    return REPORT_EMACS_BUG_ADDRESS;
-
-  string = SDATA (temp);
-
-  /* Count dots in `emacs-version'.  */
-  while (*string)
-    {
-      if (*string == '.')
-       count++;
-      string++;
-    }
-
-  /* When `emacs-version' has at least three dots, it is development or
-     pretest version of Emacs.  */
-  return count >= 3 ? REPORT_EMACS_BUG_PRETEST_ADDRESS : 
REPORT_EMACS_BUG_ADDRESS;
-}
-
-
 /* ARGSUSED */
 int
 main (int argc, char **argv)
@@ -1082,7 +1047,7 @@
     {
       printf (USAGE1, argv[0], USAGE2);
       printf (USAGE3);
-      printf (USAGE4, bug_reporting_address ());
+      printf (USAGE4);
       exit (0);
     }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]