From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Managing environments (Python venv, guix environment, etc.) Date: Thu, 28 Jul 2016 11:34:09 +0200 Message-ID: <8737muxg1a.fsf@gmx.de> References: <87y453sy0n.fsf@earth.catern.com> <87r3arripr.fsf@earth.catern.com> <874m7jygot.fsf@earth.catern.com> <83oa5ox21u.fsf@gnu.org> <123d2ae9-b523-5d5b-3bf8-c6e4462270b8@yandex.ru> <87a8h7wihs.fsf@earth.catern.com> <08e690b6-56a0-1182-2560-666e3bffb2ee@yandex.ru> <87lh0qry9j.fsf@gmx.de> <87eg6hswd2.fsf@gmx.de> <87popypr3s.fsf@earth.catern.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1469698487 4770 80.91.229.3 (28 Jul 2016 09:34:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 09:34:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: sbaugh@catern.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 28 11:34:39 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bShiA-00085g-Sk for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 11:34:39 +0200 Original-Received: from localhost ([::1]:51959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bShi6-0005TQ-QY for ged-emacs-devel@m.gmane.org; Thu, 28 Jul 2016 05:34:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bShhx-0005TL-RX for emacs-devel@gnu.org; Thu, 28 Jul 2016 05:34:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bShht-00085j-KM for emacs-devel@gnu.org; Thu, 28 Jul 2016 05:34:24 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:56249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bShht-00085V-AU for emacs-devel@gnu.org; Thu, 28 Jul 2016 05:34:21 -0400 Original-Received: from detlef.gmx.de ([87.146.50.94]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0Mh6lB-1bfXcY170z-00MLl0; Thu, 28 Jul 2016 11:34:11 +0200 In-Reply-To: <87popypr3s.fsf@earth.catern.com> (sbaugh's message of "Wed, 27 Jul 2016 20:02:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:xNh2ee2YPdLJxnj3Tbe5FDJ03e6QttmMh3INPEHq2rHlIU5muHr PdJ4xE30TvzfI9lr8LjZOx4RaBzzw6d5L+pqyfptyofeJgJeP+KZP7UELBQCISsM/mzOC3f cC6hynX7AcA7sMHhfDkKSxahrNL8qlSq1Q38eWUJzuYNRc8zfWAm9Rdda5pAqKIPMDhKioM E/rtMf6/+pS9xHFq1DduA== X-UI-Out-Filterresults: notjunk:1;V01:K0:wT+own6/DIg=:fIG9m8MuCK4tI6pHJ7ZaeR vA8KhZo4gujo5PAHytAKQ8EF/z2+3DC1lJTvwslaz/zijc4e1yjNLPRcfJDfYBijPBoKR9ZeK gAF7+29o10w9gXoh4VjGI1g16OTP4eH7Lr+Mnuqyxd+gQjv7ib/u+a6+byCPDxmDzh77PTOoC AApwS9AuevWro529Uz8KwfLTz1iQS4hD0CzHWfy7Zy3k1HtF2Uq9hZ1A/Ut9AWnMNQCHQql/C 0w56Mpp/Y1DhQdgCEHIQ8N33nVQE7JK4EwzZhPxVQmmOk4wJ7PXYwj7qsc7gKuFV0YqvR1iYX zB5qUPvZArcJeYrF4NYx4t3ldvxDMO96DmEpVFR0rfzzkBzxghhAuRqF6dyTampQcjwfxA2hy d2T9Z6Hd0f4cGdkHpyftc3pSMCReOmemvtT5DzhJJUc5+q3UftSU9yUIRL6Txv0Q13v41YIrq JhjiPwYJnKNm1hyCwXazQc33Rt0FXnVgdAsXnYRAYnoug3eIYN+nBCBA6+kL2mvQPXmNUn/1y mNIhB/gwCm5VO8FON9NgKjZa+meeo/Wd3LAQVQt92u1yfl+dnunNCixOH2MD7jaCu06OekqhP tBoSLApziTTMAy98VWpz8O+2epJz+0nMoTYPNy0FNV6Gr85OtpaUwW3fVckJtdzxeMuhwDKJI tk070QUru49vQB31UbxCr+rwVPqFBGEsEQW0vuOxD/IA0L6sQ9T15E/z4pc9THP+gY6X8/vr2 fWKpJis28UmsEumEu2Q/lq2KDY57P0sUNZshngX9bRfK5qB1v8i3XKqmpdlFxBEPRiXXUNXq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206202 Archived-At: sbaugh@catern.com writes: > Perhaps instead of inserting regular filenames into > file-name-handler-alist, environment.el should use filenames with a > custom prefix (like "/?" or something) and add a new handler for > filenames with that prefix. The prefix can be followed by the name of > the environment, then some separator character, then a real local > filename. (Much like TRAMP. Unlike TRAMP, file access will still be done > directly on the local filesystem.) > > Pros: > - Resolves the issue with canonical file names > - Allows a file to be accessed from multiple environments freely at the > same time > - Powerful and full-featured way to implement this - just as powerful as > TRAMP, which is certainly powerful enough. > - Maybe the easiest way to get this to actually work, since it reuses > all the work done on getting things to use process-file I doubt that you could reuse much of Tramp's `process-file' implementations. They use pretty much Tramp internal functions. Btw, this approach could still be applied to remote files. File name handler calls can be cascaded. "/?my-environment?~/.emacs" would work on a local file, and "/?my-environment?~/sudo::.emacs" would work on a remote file. Saying this does not mean that I agree with your proposal. Being undecided. Best regards, Michael.