diff options
| author | Glenn Morris | 2014-03-28 19:11:39 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-03-28 19:11:39 -0400 |
| commit | 7b207d6d4f2de3ee07ffc8b02464c2b186372970 (patch) | |
| tree | 2959adcd53ac15407d309e96af64c124b1949083 /src | |
| parent | 32544aa4133c3446f0b83e5b58a5ad7213534c55 (diff) | |
| download | emacs-7b207d6d4f2de3ee07ffc8b02464c2b186372970.tar.gz emacs-7b207d6d4f2de3ee07ffc8b02464c2b186372970.zip | |
Improve usage of AC_INIT
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/emacs.c | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1527c98f052..3241d3953c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2014-03-28 Glenn Morris <rgm@gnu.org> | 1 | 2014-03-28 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * emacs.c (emacs_version): Use PACKAGE_VERSION rather than VERSION. | ||
| 4 | (emacs_bugreport): New variable. | ||
| 5 | (usage_message): Use PACKAGE_BUGREPORT. | ||
| 6 | (syms_of_emacs) <report-emacs-bug-address>: New variable. | ||
| 7 | |||
| 3 | * emacs.c (syms_of_emacs) <system-configuration-features>: New var. | 8 | * emacs.c (syms_of_emacs) <system-configuration-features>: New var. |
| 4 | 9 | ||
| 5 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2014-03-27 Paul Eggert <eggert@cs.ucla.edu> |
diff --git a/src/emacs.c b/src/emacs.c index 07deccd16ec..56096016d41 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -105,8 +105,9 @@ extern void moncontrol (int mode); | |||
| 105 | #include <sys/personality.h> | 105 | #include <sys/personality.h> |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | static const char emacs_version[] = VERSION; | 108 | static const char emacs_version[] = PACKAGE_VERSION; |
| 109 | static const char emacs_copyright[] = COPYRIGHT; | 109 | static const char emacs_copyright[] = COPYRIGHT; |
| 110 | static const char emacs_bugreport[] = PACKAGE_BUGREPORT; | ||
| 110 | 111 | ||
| 111 | /* Empty lisp strings. To avoid having to build any others. */ | 112 | /* Empty lisp strings. To avoid having to build any others. */ |
| 112 | Lisp_Object empty_unibyte_string, empty_multibyte_string; | 113 | Lisp_Object empty_unibyte_string, empty_multibyte_string; |
| @@ -324,7 +325,7 @@ abbreviation for a --option.\n\ | |||
| 324 | Various environment variables and window system resources also affect\n\ | 325 | Various environment variables and window system resources also affect\n\ |
| 325 | the operation of Emacs. See the main documentation.\n\ | 326 | the operation of Emacs. See the main documentation.\n\ |
| 326 | \n\ | 327 | \n\ |
| 327 | Report bugs to bug-gnu-emacs@gnu.org. First, please see the Bugs\n\ | 328 | Report bugs to " PACKAGE_BUGREPORT ". First, please see the Bugs\n\ |
| 328 | section of the Emacs manual or the file BUGS.\n" | 329 | section of the Emacs manual or the file BUGS.\n" |
| 329 | }; | 330 | }; |
| 330 | 331 | ||
| @@ -2543,6 +2544,10 @@ This is nil during initialization. */); | |||
| 2543 | doc: /* Version numbers of this version of Emacs. */); | 2544 | doc: /* Version numbers of this version of Emacs. */); |
| 2544 | Vemacs_version = build_string (emacs_version); | 2545 | Vemacs_version = build_string (emacs_version); |
| 2545 | 2546 | ||
| 2547 | DEFVAR_LISP ("report-emacs-bug-address", Vreport_emacs_bug_address, | ||
| 2548 | doc: /* Address of mailing list for GNU Emacs bugs. */); | ||
| 2549 | Vreport_emacs_bug_address = build_string (emacs_bugreport); | ||
| 2550 | |||
| 2546 | DEFVAR_LISP ("dynamic-library-alist", Vdynamic_library_alist, | 2551 | DEFVAR_LISP ("dynamic-library-alist", Vdynamic_library_alist, |
| 2547 | doc: /* Alist of dynamic libraries vs external files implementing them. | 2552 | doc: /* Alist of dynamic libraries vs external files implementing them. |
| 2548 | Each element is a list (LIBRARY FILE...), where the car is a symbol | 2553 | Each element is a list (LIBRARY FILE...), where the car is a symbol |