From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Re: no executable emacs binary in exec-directory Date: Sat, 29 Nov 2008 14:55:21 +0100 Message-ID: References: <87k5am3bu5.fsf@turtle.gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227966938 30360 80.91.229.12 (29 Nov 2008 13:55:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 13:55:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Sven Joachim" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 29 14:56:41 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6QJM-00076O-MF for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2008 14:56:40 +0100 Original-Received: from localhost ([127.0.0.1]:33095 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6QIC-0000aV-Tc for ged-emacs-devel@m.gmane.org; Sat, 29 Nov 2008 08:55:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6QI8-0000Z2-40 for emacs-devel@gnu.org; Sat, 29 Nov 2008 08:55:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6QI6-0000Xn-OI for emacs-devel@gnu.org; Sat, 29 Nov 2008 08:55:23 -0500 Original-Received: from [199.232.76.173] (port=42077 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6QI6-0000XY-Ez for emacs-devel@gnu.org; Sat, 29 Nov 2008 08:55:22 -0500 Original-Received: from mail-gx0-f18.google.com ([209.85.217.18]:53382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L6QI6-0001Tg-6M for emacs-devel@gnu.org; Sat, 29 Nov 2008 08:55:22 -0500 Original-Received: by gxk11 with SMTP id 11so247548gxk.18 for ; Sat, 29 Nov 2008 05:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=w7tNERqVvIVdO3Ez8vEVknqXvJKHeXcLT41RQ0OK7Z0=; b=ia7kqqbDakWY7KcGX0iH1Z14FJ530wP1Pd5VyfE4WlHMq6TlcD0ivCdFHblkFJfbob Xb3SFUyVjuPF0nh1otUm9ZX8Ba+C19ma5gNoCpS9ah7mpwAMav0097T+/kAt8Y2b/Zac Qkhr0CtPVHufYUutSLs3tAb3vPCHoexUX5T+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=e5tqpx1Xwkx0PGBJC6tqx7wLZ65PeYVe5KrRq7BDq5o766uBfGUvioX6VDCfjW6VjR 1kXbJOZeT18HvRFzhMZq5YAbhT4f2ybnzGDA4hLtUKQYYWqS7xujsvYrIVp8sAmidn8g k70rlrvGzNACEpsB1QUUP1JuybfxxF7fo+GRI= Original-Received: by 10.150.95.15 with SMTP id s15mr17704082ybb.162.1227966921234; Sat, 29 Nov 2008 05:55:21 -0800 (PST) Original-Received: by 10.151.116.1 with HTTP; Sat, 29 Nov 2008 05:55:21 -0800 (PST) In-Reply-To: Content-Disposition: inline X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:106303 Archived-At: On Sat, Nov 29, 2008 at 2:41 PM, Lennart Borgman wrote: > On Sat, Nov 29, 2008 at 2:23 PM, Sven Joachim wrote: >> On 2008-11-29 14:00 +0100, Lennart Borgman wrote: >> >>> I thought that the currently running emacs binary should be in >>> exec-directory. That does not seem to be the case always. >> >> Actually, on GNU/Linux this should never be the case. >> >>> How do you find it? >> >> It is in invocation-directory, and its name is invocation-name. > > Thanks. Is this then the way to find the executable? > > (defun ourcomments-find-emacs-executable () > (let ((exec-path (list invocation-directory))) > (executable-find invocation-name))) Hm, this looks better, but I wonder about the "1". (defun ourcomments-find-emacs () (locate-file invocation-name (list invocation-directory) exec-suffixes 1 ;; Depreceated, but used in executable-find ))