From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Managing environments (Python venv, guix environment, etc.) Date: Sat, 23 Jul 2016 10:10:21 +0300 Message-ID: <83oa5ox21u.fsf@gnu.org> References: <87y453sy0n.fsf@earth.catern.com> <87r3arripr.fsf@earth.catern.com> <874m7jygot.fsf@earth.catern.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1469257832 11223 80.91.229.3 (23 Jul 2016 07:10:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jul 2016 07:10:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 23 09:10:27 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 1bQr4s-00077P-3j for ged-emacs-devel@m.gmane.org; Sat, 23 Jul 2016 09:10:26 +0200 Original-Received: from localhost ([::1]:50590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQr4r-0006MZ-7b for ged-emacs-devel@m.gmane.org; Sat, 23 Jul 2016 03:10:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQr4k-0006MT-Tx for emacs-devel@gnu.org; Sat, 23 Jul 2016 03:10:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQr4e-0006GU-VT for emacs-devel@gnu.org; Sat, 23 Jul 2016 03:10:17 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQr4e-0006Fn-Rh; Sat, 23 Jul 2016 03:10:12 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2329 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bQr4c-0006Oh-TS; Sat, 23 Jul 2016 03:10:11 -0400 In-reply-to: (message from Stefan Monnier on Fri, 22 Jul 2016 16:19:38 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:206058 Archived-At: > From: Stefan Monnier > Date: Fri, 22 Jul 2016 16:19:38 -0400 > > > The problem is that paths passed to find-file-name-handler, such as > > default-directory, are not necessarily canonical paths. > > Yes, that's indeed a problem. In practice it tends to work OK, tho, > because file and directory names to be constructed from each other, so > even if there are many different ways to name a particular directory, > there's typically only one that's used in a particular Emacs session. > > And in any case it'd be good to fix the cases where we end up using > different names for the same dir (because they end up bumping into > similar problems). Actually, I don't like to see any feature, let alone a core one, use file-name-handler-alist for local files. Lots of code in Emacs, including primitives, really handle such files as remote, so the results are likely to be incorrect and subtly broken. > > OK, I'll wait until John expresses his thoughts. (Possibly after the > > release?) > > You might also contact the authors of python's virtualenv support (and > anything else related) to get their opinions as supporting evidence for > the benefits of your suggestion. I always thought that features like this one should use and extent the infrastructure in project.el. And yet Dmitry is silent in this discussion. What am I missing?