From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Wiesner Newsgroups: gmane.emacs.devel Subject: Compile Mode and "host" Emacs Date: Tue, 29 Oct 2013 10:55:15 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1383040519 7134 80.91.229.3 (29 Oct 2013 09:55:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 09:55:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 29 10:55:24 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 1Vb61D-000451-QD for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2013 10:55:23 +0100 Original-Received: from localhost ([::1]:45599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb61D-0001gW-GU for ged-emacs-devel@m.gmane.org; Tue, 29 Oct 2013 05:55:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb619-0001e4-Ny for emacs-devel@gnu.org; Tue, 29 Oct 2013 05:55:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb617-0004pl-11 for emacs-devel@gnu.org; Tue, 29 Oct 2013 05:55:19 -0400 Original-Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:47577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb616-0004pd-Td for emacs-devel@gnu.org; Tue, 29 Oct 2013 05:55:16 -0400 Original-Received: by mail-qc0-f182.google.com with SMTP id n7so4581514qcx.13 for ; Tue, 29 Oct 2013 02:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=dMrfFFH8TEEzTH6gtYLKsDviodsIC19dhWJXlT/OZZ4=; b=UYeCLLssauCOf8VLY1sKas+cRAcwThglWQHiGhxcXnB0XeQng1PHlPmA26TDjuCk1k QzSgxIDpXV2cDeJYWQjm5snqs1UEWEWST9LneF266j15bekzbBjSq6qvAcoRW3Nnmryr sU6lVXWcPwLVi3g9aL4y4lI55ZbqcvUCNBFIT1xSf/WnN8wTRW2h69sA5hdodJmAVLM+ kGH+A9Opa6b89lLxRwqLnLxZiVGxjWobYOisogLKOKkPH3Drp49Xm+eiSIYHXELcKj5k fWwRV6RP3e0vG478czfGz+w8ieNNK7tfrELgBzLZvJLv/yPxnOmxwLLr/f3fGmEE8h2N bTnA== X-Received: by 10.224.67.66 with SMTP id q2mr723844qai.122.1383040515895; Tue, 29 Oct 2013 02:55:15 -0700 (PDT) Original-Received: by 10.224.78.11 with HTTP; Tue, 29 Oct 2013 02:55:15 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::236 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:164617 Archived-At: Hello, how can a compilation process obtain the path to the Emacs executable which started it? I know that Emacs sets $EMACS and $INSIDE_EMACS in the environment of compile processes, but the values of these variables aren't exactly helpful and I didn't see any other environment variables in the compile code. So apparently environment variables can't help me. Is there any way to find out the path to the "host" Emacs executable? Preferably with not too much trickery? Sincerely, Sebastian Wiesner