From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [jidanni@jidanni.org: Re: find-grep makes raw terminal ANSI] Date: Sun, 18 Nov 2007 01:29:03 +0100 Message-ID: <853av4pfao.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1195345760 23088 80.91.229.12 (18 Nov 2007 00:29:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2007 00:29:20 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 18 01:29:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ItY2N-0008LV-LL for ged-emacs-devel@m.gmane.org; Sun, 18 Nov 2007 01:29:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItY2A-0006ze-90 for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2007 19:29:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ItY26-0006wj-NB for emacs-devel@gnu.org; Sat, 17 Nov 2007 19:29:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ItY25-0006vo-DU for emacs-devel@gnu.org; Sat, 17 Nov 2007 19:29:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ItY24-0006v8-Ud for emacs-devel@gnu.org; Sat, 17 Nov 2007 19:29:04 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItY24-0000Cu-Iu for emacs-devel@gnu.org; Sat, 17 Nov 2007 19:29:04 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ItY22-0002te-05; Sat, 17 Nov 2007 19:29:02 -0500 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 312681C5682B; Sun, 18 Nov 2007 01:29:02 +0100 (CET) In-Reply-To: (Eli Zaretskii's message of "Sun, 18 Nov 2007 00:50:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83500 Archived-At: Eli Zaretskii writes: >> From: "Drew Adams" >> Date: Sat, 17 Nov 2007 09:28:25 -0800 >> Cc: rms@gnu.org, emacs-devel@gnu.org >> >> > ! (setenv "TERM" "emacs") >> >> I apologize if this reply is not very meaningful, as I haven't followed >> this. >> >> But is it good to change a user's environment variable this way? > > setenv doesn't change user's environment, it changes the environment > passed to inferior processes. My first reaction to this was "Huh?". In UNIX, where the environment concept originated, it is _exclusively_ something which is passed to inferior processes, quite like command line arguments. It is only when coming from an MSDOS background (which tended to implement UNIX concepts badly or incompletely, and so had something like a global environment, and pipes implemented with intermediate files of arbitrary size and other things close, but not identical to the real thing) that something like a global "user's environment" concept does even exist. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum