]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve usage of AC_INIT
authorGlenn Morris <rgm@gnu.org>
Fri, 28 Mar 2014 23:11:39 +0000 (19:11 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 28 Mar 2014 23:11:39 +0000 (19:11 -0400)
* configure.ac (AC_INIT): Add "GNU" in package, add bug address.
(PACKAGE_BUGREPORT): Use it.

* src/emacs.c (emacs_version): Use PACKAGE_VERSION rather than VERSION.
(emacs_bugreport): New variable.
(usage_message): Use PACKAGE_BUGREPORT.
(syms_of_emacs) <report-emacs-bug-address>: New variable.

* lisp/cus-start.el (report-emacs-bug-address): Set custom properties.

* lisp/mail/emacsbug.el (report-emacs-bug-address):
Variable is now defined in emacs.c.

ChangeLog
configure.ac
lisp/ChangeLog
lisp/cus-start.el
lisp/mail/emacsbug.el
src/ChangeLog
src/emacs.c

index f8c4c599cd6d02156d967fde592bba70032839fd..639db918f1bf0df0c3c77887ff4d027e1b3a4103 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-03-28  Glenn Morris  <rgm@gnu.org>
 
+       * configure.ac (AC_INIT): Add "GNU" in package, add bug address.
+       (PACKAGE_BUGREPORT): Use it.
+
        * configure.ac (ACL_SUMMARY): Rename from acl_summary, for consistency.
        (EMACS_CONFIG_FEATURES): New define.
 
index 1b622c9de3c475a279983cc53a9838fbeb9b28e1..2ac1828562c908c6daae2c5fff4a726ecb62be64 100644 (file)
@@ -22,7 +22,7 @@ dnl  You should have received a copy of the GNU General Public License
 dnl  along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
 
 AC_PREREQ(2.65)
-AC_INIT(emacs, 24.4.50)
+AC_INIT(GNU Emacs, 24.4.50, bug-gnu-emacs@gnu.org)
 
 dnl We get MINGW64 with MSYS2
 if test "x$MSYSTEM" = "xMINGW32" -o "x$MSYSTEM" = "xMINGW64"
@@ -653,7 +653,7 @@ dnl quotation ends
 
 if test $unported = yes; then
   AC_MSG_ERROR([Emacs does not support `${canonical}' systems.
-If you think it should, please send a report to bug-gnu-emacs@gnu.org.
+If you think it should, please send a report to ${PACKAGE_BUGREPORT}.
 Check `etc/MACHINES' for recognized configuration names.])
 fi
 
index 24f17f004f57ce9f8e7bdd99a2f0fe819bc82822..8c008185424687b613a832ede18bd8bc14b8a75c 100644 (file)
@@ -1,5 +1,9 @@
 2014-03-28  Glenn Morris  <rgm@gnu.org>
 
+       * cus-start.el (report-emacs-bug-address): Set custom properties.
+       * mail/emacsbug.el (report-emacs-bug-address):
+       Variable is now defined in emacs.c.
+
        * mail/emacsbug.el (report-emacs-bug):
        Include system-configuration-features.
 
index 7fbddbe1c45051d1bb494e8fc84f40603eeb2c97..ee09c433f336637889fa2a730941d2fee84b50de 100644 (file)
@@ -198,6 +198,8 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
 
             ;; editfns.c
             (user-full-name mail string)
+            ;; emacs.c
+            (report-emacs-bug-address emacsbug string)
             ;; eval.c
             (max-specpdl-size limits integer)
             (max-lisp-eval-depth limits integer)
index 54f7b6a21ea5f2003c76d751deab22fce6af8921..91451504cab29fdc0f15a277c2c13df2ada60de3 100644 (file)
 (define-obsolete-variable-alias 'report-emacs-bug-pretest-address
   'report-emacs-bug-address "24.1")
 
-(defcustom report-emacs-bug-address "bug-gnu-emacs@gnu.org"
-  "Address of mailing list for GNU Emacs bugs."
-  :group 'emacsbug
-  :type 'string)
-
 (defcustom report-emacs-bug-no-confirmation nil
   "If non-nil, suppress the confirmations asked for the sake of novice users."
   :group 'emacsbug
index 1527c98f05287292d93f84609354b9c0f95aa855..3241d3953c9565e8e968eeb9aeffed41989c4648 100644 (file)
@@ -1,5 +1,10 @@
 2014-03-28  Glenn Morris  <rgm@gnu.org>
 
+       * emacs.c (emacs_version): Use PACKAGE_VERSION rather than VERSION.
+       (emacs_bugreport): New variable.
+       (usage_message): Use PACKAGE_BUGREPORT.
+       (syms_of_emacs) <report-emacs-bug-address>: New variable.
+
        * emacs.c (syms_of_emacs) <system-configuration-features>: New var.
 
 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
index 07deccd16ecc57ce01cd10382f96a36567776c46..56096016d416fe7737a6b06c35ddd8cb90c91e38 100644 (file)
@@ -105,8 +105,9 @@ extern void moncontrol (int mode);
 #include <sys/personality.h>
 #endif
 
-static const char emacs_version[] = VERSION;
+static const char emacs_version[] = PACKAGE_VERSION;
 static const char emacs_copyright[] = COPYRIGHT;
+static const char emacs_bugreport[] = PACKAGE_BUGREPORT;
 
 /* Empty lisp strings.  To avoid having to build any others.  */
 Lisp_Object empty_unibyte_string, empty_multibyte_string;
@@ -324,7 +325,7 @@ abbreviation for a --option.\n\
 Various environment variables and window system resources also affect\n\
 the operation of Emacs.  See the main documentation.\n\
 \n\
-Report bugs to bug-gnu-emacs@gnu.org.  First, please see the Bugs\n\
+Report bugs to " PACKAGE_BUGREPORT ".  First, please see the Bugs\n\
 section of the Emacs manual or the file BUGS.\n"
   };
 
@@ -2543,6 +2544,10 @@ This is nil during initialization.  */);
               doc: /* Version numbers of this version of Emacs.  */);
   Vemacs_version = build_string (emacs_version);
 
+  DEFVAR_LISP ("report-emacs-bug-address", Vreport_emacs_bug_address,
+              doc: /* Address of mailing list for GNU Emacs bugs.  */);
+  Vreport_emacs_bug_address = build_string (emacs_bugreport);
+
   DEFVAR_LISP ("dynamic-library-alist", Vdynamic_library_alist,
     doc: /* Alist of dynamic libraries vs external files implementing them.
 Each element is a list (LIBRARY FILE...), where the car is a symbol