From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Ren=E9_Kyllingstad?= Newsgroups: gmane.emacs.devel Subject: Re: simple useful functions Date: Mon, 6 Dec 2010 15:08:30 +0100 Message-ID: References: <20101028.115615.04128253.Takaaki.Ota@am.sony.com> <20101203.153710.363898753.Takaaki.Ota@am.sony.com> <20101203.185802.425329138.Takaaki.Ota@am.sony.com> Reply-To: Rene@Kyllingstad.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291661432 1270 80.91.229.12 (6 Dec 2010 18:50:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Dec 2010 18:50:32 +0000 (UTC) Cc: Tak Ota , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 06 19:50:28 2010 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.69) (envelope-from ) id 1PPg8q-0004XI-1e for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 19:50:28 +0100 Original-Received: from localhost ([127.0.0.1]:43407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPg8p-0008UI-Cf for ged-emacs-devel@m.gmane.org; Mon, 06 Dec 2010 13:50:27 -0500 Original-Received: from [140.186.70.92] (port=56285 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPbkL-000208-Cc for emacs-devel@gnu.org; Mon, 06 Dec 2010 09:08:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPbkJ-0004vh-Qy for emacs-devel@gnu.org; Mon, 06 Dec 2010 09:08:53 -0500 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:37857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPbkJ-0004vb-LE for emacs-devel@gnu.org; Mon, 06 Dec 2010 09:08:51 -0500 Original-Received: by qyk10 with SMTP id 10so13845707qyk.0 for ; Mon, 06 Dec 2010 06:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=UK7W36/Jkq8fnUk21efvoPlPTvRkzY9BVRHMCOaDJAE=; b=OL1GMaL0/GcnGDHTavaJ0jeSLVvAfhZSs7ogbRqXqixrVe13i0M8bkkO5+yUt0V8Ha sDy9uujuRZAFlwy6SkkRgLx75D+TsJo+W3LWFYeCNqYdKaUWhmjxSxmRlc20MSNp7jdn FAIEzhgLQ7QLecdXGaycrnqf88JAHppL/D6OM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=SvUAbz+q2b5oCWFEz9QbE9vS3CS1a07AgNBCOlWjxaE2wB23qLQtx8bAv1HMwnvuOt gg48eVVNgLL8bsxIEUiznpT1ZqP+CGIJWVjUvX3vEMj2h+KisqUOHK2r7PL28sOT0oa8 f3qF8Rs31nGiQ/ufvYv2Odad224zXv+8RrNVA= Original-Received: by 10.224.47.130 with SMTP id n2mr4580077qaf.100.1291644531173; Mon, 06 Dec 2010 06:08:51 -0800 (PST) Original-Received: by 10.220.74.4 with HTTP; Mon, 6 Dec 2010 06:08:30 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: yNzyXnlZbIQScfZtFkgxXzfmjYE X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Mon, 06 Dec 2010 13:46:10 -0500 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:133461 Archived-At: On Sat, Dec 4, 2010 at 5:36 AM, Stefan Monnier w= rote: > I partly understand the context. =A0But right here I think your script > fails to serve you: it uses `setenv' which affects all inferior > processes, so if you're working on several projects at the same time > from the same Emacs session (likely if you're using it as a work > environment, which is also the intended use to a large extent), you get > pollution from one project to the other. =A0I think this issue is > important, and I suspect that figuring out how it should be solved is > necessary to figure out what is a good/generic way to provide this > "source" feature. As long as the login script sets up the environment needed you just need to run a source command when switching between the projects to override the environment. A cleaner solution would be to attach the environment to a project concept within Emacs, but when someone offers a shed it seems unfair to ask them to build the whole city around it. -- Ren=E9