From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Directory structure changes in Emacs installed on MS-Windows Date: Fri, 05 Apr 2013 11:19:21 -0400 Message-ID: References: <83r4iqfaw1.fsf@gnu.org> <85obdtlwz6.fsf@member.fsf.org> <83d2u9fr4a.fsf@gnu.org> <831uapf4de.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1365278719 30796 80.91.229.3 (6 Apr 2013 20:05:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:05:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 06 22:05:20 2013 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 1UOZJf-0001KY-3T for ged-emacs-devel@m.gmane.org; Sat, 06 Apr 2013 22:02:23 +0200 Original-Received: from localhost ([::1]:57479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO8Qb-00089a-0r for ged-emacs-devel@m.gmane.org; Fri, 05 Apr 2013 11:19:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO8QP-00088j-8G for emacs-devel@gnu.org; Fri, 05 Apr 2013 11:19:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO8QK-00041L-F4 for emacs-devel@gnu.org; Fri, 05 Apr 2013 11:19:33 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:26562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO8QE-0003wN-Hh; Fri, 05 Apr 2013 11:19:22 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFxLSu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFxLSu/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="6566840" Original-Received: from 69-196-180-174.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 Apr 2013 11:19:18 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A5AE767A24; Fri, 5 Apr 2013 11:19:21 -0400 (EDT) In-Reply-To: <831uapf4de.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 05 Apr 2013 17:18:05 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158730 Archived-At: > No one picked up that gauntlet. One piece of the puzzle that is still > missing (at least as far as I'm concerned) for its solution is how to > reliably determine on Posix platforms the directory where the invoked > Emacs executable lives. 100% reliable can't be done, I think. > I vaguely remember that the value of argv[0] is unreliable, and > therefore even searching for it on PATH won't do. Indeed. That's the best we can do, AFAIK. Stefan