From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.bugs Subject: bug#18476: 24.3.93; ede-emacs-version: Searching for program: no such file or directory, egrep Date: Mon, 15 Sep 2014 22:16:10 +0200 Message-ID: <87sijsljw5.fsf@engster.org> References: <5415DA37.8050904@matholka.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1410812249 1474 80.91.229.3 (15 Sep 2014 20:17:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2014 20:17:29 +0000 (UTC) Cc: 18476@debbugs.gnu.org To: Lars Ljung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 15 22:17:23 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XTci9-0005Hh-9N for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 22:17:21 +0200 Original-Received: from localhost ([::1]:33900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTci8-0000t6-Rq for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Sep 2014 16:17:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTci0-0000rR-Ix for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2014 16:17:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTchu-0006KN-C2 for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2014 16:17:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTchu-0006Jp-0i for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2014 16:17:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XTchp-0006Cb-Ri for bug-gnu-emacs@gnu.org; Mon, 15 Sep 2014 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Engster Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Sep 2014 20:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18476 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18476-submit@debbugs.gnu.org id=B18476.141081217823782 (code B ref 18476); Mon, 15 Sep 2014 20:17:01 +0000 Original-Received: (at 18476) by debbugs.gnu.org; 15 Sep 2014 20:16:18 +0000 Original-Received: from localhost ([127.0.0.1]:41648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XTch7-0006BV-EA for submit@debbugs.gnu.org; Mon, 15 Sep 2014 16:16:17 -0400 Original-Received: from randomsample.de ([5.45.97.173]:32999) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XTch4-0006BM-TB for 18476@debbugs.gnu.org; Mon, 15 Sep 2014 16:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=randomsample.de; s=a; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From; bh=scApUV0RYmpdXUcICW06eBm8h2POl1fud6Svy07YXuk=; b=hnjb7Siz86jlZ2UUxUwLGCLLwC02+ItXtKA1hhD12m3RK2TyXWpSTwdqqXeKr9ubgGE9z3Qv3WCb1BKMXY0sVbeIWbq0BFz5j1V/FMnuiuldZe9PAYMBrv11mOry/86/; Original-Received: from dslc-082-083-061-139.pools.arcor-ip.net ([82.83.61.139] helo=spaten) by randomsample.de with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XTch2-0008Vk-77; Mon, 15 Sep 2014 22:16:12 +0200 In-Reply-To: <5415DA37.8050904@matholka.se> (Lars Ljung's message of "Sun, 14 Sep 2014 20:11:03 +0200") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.91 (gnu/linux) Mail-Copies-To: never X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:93389 Archived-At: --=-=-= Content-Type: text/plain Lars Ljung writes: > Every time I open a file in the Emacs source tree I see the message > "ede-emacs-version: Searching for program: no such file or directory, > egrep". Also, Emacs does not switch to the newly created buffer so I > have to switch to it manually. > > This only happens on Windows, where I don't have egrep installed. It is > caused by line 86 in lisp/cedet/ede/emacs.el: > > (call-process "egrep" nil buff nil "-n" "-e" "AC_INIT" configure_ac) > > I don't think this line is even necessary. The file content is inserted > and parsed further down. Indeed. That call to egrep seems to be some relict from the old days. Additionally, we should also make sure that configure.ac or configure.in exist. Stefan, would it be OK to install the attached patch to emacs-24, or should it go to trunk? -David --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ede-emacs-patch.diff === modified file 'lisp/cedet/ede/emacs.el' --- lisp/cedet/ede/emacs.el 2014-04-02 15:14:50 +0000 +++ lisp/cedet/ede/emacs.el 2014-09-15 20:10:45 +0000 @@ -82,10 +82,6 @@ (setq default-directory (file-name-as-directory dir)) (or (file-exists-p configure_ac) (setq configure_ac "configure.in")) - ;(call-process "egrep" nil buff nil "-n" "-e" "^version=" "Makefile") - (call-process "egrep" nil buff nil "-n" "-e" "AC_INIT" configure_ac) - (goto-char (point-min)) - ;(re-search-forward "version=\\([0-9.]+\\)") (cond ;; Maybe XEmacs? ((file-exists-p "version.sh") @@ -113,7 +109,8 @@ ;; Insert other Emacs here... ;; Vaguely recent version of GNU Emacs? - (t + ((or (file-exists-p configure_ac) + (file-exists-p (setq configure_ac "configure.in"))) (insert-file-contents configure_ac) (goto-char (point-min)) (re-search-forward "AC_INIT(\\(?:GNU \\)?[eE]macs,\\s-*\\([0-9.]+\\)\\s-*[,)]") --=-=-=--