From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorgen Schaefer Newsgroups: gmane.emacs.devel Subject: Re: Compile Mode and "host" Emacs Date: Wed, 30 Oct 2013 08:23:57 +0100 Message-ID: <20131030082357.65b1819e@forcix.kollektiv-hamburg.de> References: <874n80l0b3.fsf@nbtrap.com> <874n80w7cl.fsf@nbtrap.com> <87wqkwurtb.fsf@nbtrap.com> <87sivkurai.fsf@nbtrap.com> <87a9hsuqjk.fsf@nbtrap.com> <87zjpstb6g.fsf@nbtrap.com> <87eh73tll8.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383117883 17575 80.91.229.3 (30 Oct 2013 07:24:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2013 07:24:43 +0000 (UTC) Cc: Sebastian Wiesner , Nathan Trapuzzano , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 30 08:24:43 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 1VbQ8x-00054w-3k for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2013 08:24:43 +0100 Original-Received: from localhost ([::1]:50795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbQ8w-0002Ow-Ki for ged-emacs-devel@m.gmane.org; Wed, 30 Oct 2013 03:24:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbQ8P-0001kX-5I for emacs-devel@gnu.org; Wed, 30 Oct 2013 03:24:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbQ8J-0007iU-9s for emacs-devel@gnu.org; Wed, 30 Oct 2013 03:24:09 -0400 Original-Received: from istinn.electusmatari.com ([83.169.37.145]:41404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbQ8J-0007iB-0w for emacs-devel@gnu.org; Wed, 30 Oct 2013 03:24:03 -0400 Original-Received: by istinn.electusmatari.com (Postfix, from userid 995) id 0BDE6D100030; Wed, 30 Oct 2013 08:24:01 +0100 (CET) Original-Received: from forcix.kollektiv-hamburg.de (x2f0d64f.dyn.telefonica.de [2.240.214.79]) by istinn.electusmatari.com (Postfix) with ESMTPSA id DDA19D10002D; Wed, 30 Oct 2013 08:23:58 +0100 (CET) In-Reply-To: <87eh73tll8.fsf@uwakimon.sk.tsukuba.ac.jp> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.21; i486-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 83.169.37.145 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:164678 Archived-At: On Wed, 30 Oct 2013 13:43:31 +0900 "Stephen J. Turnbull" wrote: > Sebastian Wiesner writes: >=20 > > > Sorry, I don't follow. If asking your users to temporarily add > > > something to their initialization files is an option, why not: > > > > > > (setenv "EMACS_EXE_PATH" > > > (file-truename (concat (file-name-as-directory > > > invocation-directory) > > > invocation-name))) > >=20 > > See, I can ask them, or better, "advise" them, but I can't actually > > rely upon them, can I? There is still a chance that the user lacks > > this setting, or (even worse) has it wrong, isn't there? >=20 > Yes. However, if your users all use an organizationally-supplied > Emacs as you imply, you can put it in site-start.el in your > distribution. Inhibiting site-start.el is rather uncommon, so this > should do the trick for you. One use case Sebastian has in mind is mine. One of my Emacs packages is being tested on 24.1, 24.2, 24.3 and trunk. I have all four Emacsen installed. I run all my unit tests in all of those. Thanks to cask, none of those share installed packages so I test an actual use environment, not my own environment. Not even cask is installed in those. When I find a bug, I start the respective Emacs and see what is causing it. "emacs" runs trunk, "emacs-24.1" runs that one, etc. =46rom within that Emacs, I then run programs such as ert-testrunner which use Emacs to run automated tests. It's impossible for these programs to tell which Emacs I am currently using, even though the information is trivially accessible to Emacs itself. This is not impossible to work around (I simply manually set EMACS, I also could manually set EMACS_EXE_PATH or whatever), but it would be nice if the information was more easily available. Regards, Jorgen