all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
Cc: emacs-devel@gnu.org
Subject: Re: incomplete fix in EMACS_21_1_RC branch of progmodes/compile.el
Date: Tue, 1 Oct 2002 23:33:12 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.44L.0210012328330.2082-200000@arrakis.zephyrous> (raw)
In-Reply-To: <E17wGMr-0006o8-00@fencepost.gnu.org>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 400 bytes --]

	Hello!

On Tue, 1 Oct 2002, Richard Stallman wrote:

> Can you send me the requisite patch to put into RC?

Here it is: the eqivalent of the diff from revision 1.246 to 1.248 of
progmodes/compile.el for the RC branch. (It sets the environment
_before_ starting the process.)

Regards,

-- 
Ivan Zakharyaschev
ALT Linux Team member, Sisyphus developer
http://www.altlinux.ru, http://www.altlinux.com

[-- Attachment #2: equiv of diff 1.246 -> 1.248 --]
[-- Type: TEXT/PLAIN, Size: 1682 bytes --]

--- emacs/emacs/lisp/progmodes/compile.RC.el	Tue Oct  1 23:11:17 2002
+++ emacs/emacs/lisp/progmodes/compile.el	Tue Oct  1 23:20:49 2002
@@ -826,24 +826,23 @@
 	    (funcall compilation-process-setup-function))
 	;; Start the compilation.
 	(if (fboundp 'start-process)
-	    (let* ((process-environment process-environment)
+ 	    (let* ((process-environment
+		    (append
+		     (if (and (boundp 'system-uses-terminfo)
+			      system-uses-terminfo)
+			 (list "TERM=dumb" "TERMCAP="
+			       (format "COLUMNS=%d" (window-width)))
+		       (list "TERM=emacs"
+			     (format "TERMCAP=emacs:co#%d:tc=unknown:"
+				     (window-width))))
+		     ;; Set the EMACS variable, but
+		     ;; don't override users' setting of $EMACS.
+		     (if (getenv "EMACS")
+			 process-environment
+		       (cons "EMACS=t" process-environment))))
 		   (proc (start-process-shell-command (downcase mode-name)
 						      outbuf
 						      command)))
-	      ;; Set the terminal type
-	      (setq process-environment
-		    (if (and (boundp 'system-uses-terminfo)
-			     system-uses-terminfo)
-			(list "TERM=dumb" "TERMCAP="
-			      (format "COLUMNS=%d" (window-width)))
-		      (list "TERM=emacs"
-			    (format "TERMCAP=emacs:co#%d:tc=unknown:"
-				    (window-width)))))
-	      ;; Set the EMACS variable, but
-	      ;; don't override users' setting of $EMACS.
-	      (or (getenv "EMACS")
-		  (setq process-environment
-			(cons "EMACS=t" process-environment)))
 	      (set-process-sentinel proc 'compilation-sentinel)
 	      (set-process-filter proc 'compilation-filter)
 	      (set-marker (process-mark proc) (point) outbuf)

      reply	other threads:[~2002-10-01 19:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-30 18:11 incomplete fix in EMACS_21_1_RC branch of progmodes/compile.el Ivan Zakharyaschev
2002-10-01  6:18 ` Richard Stallman
2002-10-01 19:33   ` Ivan Zakharyaschev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44L.0210012328330.2082-200000@arrakis.zephyrous \
    --to=imz@altlinux.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.