]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/compile.el (compilation-environment): Make it a defcustom.
authorJuri Linkov <juri@jurta.org>
Thu, 8 Sep 2011 12:12:18 +0000 (15:12 +0300)
committerJuri Linkov <juri@jurta.org>
Thu, 8 Sep 2011 12:12:18 +0000 (15:12 +0300)
Fixes: debbugs:8340
lisp/ChangeLog
lisp/progmodes/compile.el

index c314cdf201d4f3b8663948872e06b93b031823c7..6d64950d64bd6110802c082a354efb341c769066 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-08  Juri Linkov  <juri@jurta.org>
+
+       * progmodes/compile.el (compilation-environment): Make it
+       a defcustom (bug#8340).
+
 2011-09-08  Martin Rudalics  <rudalics@gmx.at>
 
        * window.el (frame-auto-delete): Rename to window-auto-delete.
index 4871c980fb59231097fab9d36d748fdd343dd955..cd891a8df602afdf6c99bf8597c6d13dde130cce 100644 (file)
@@ -637,11 +637,15 @@ This should be a function of three arguments: process status, exit status,
 and exit message; it returns a cons (MESSAGE . MODELINE) of the strings to
 write into the compilation buffer, and to put in its mode line.")
 
-(defvar compilation-environment nil
-  "*List of environment variables for compilation to inherit.
+(defcustom compilation-environment nil
+  "List of environment variables for compilation to inherit.
 Each element should be a string of the form ENVVARNAME=VALUE.
 This list is temporarily prepended to `process-environment' prior to
-starting the compilation process.")
+starting the compilation process."
+  :type '(repeat (string :tag "ENVVARNAME=VALUE"))
+  :options '(("LANG=C"))
+  :group 'compilation
+  :version "24.1")
 
 ;; History of compile commands.
 (defvar compile-history nil)