From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephan Bergmann Newsgroups: gmane.emacs.bugs Subject: bug#5456: vc-hg-state does not search hg in vc-path Date: Fri, 22 Jan 2010 23:05:58 +0100 Message-ID: <26BBB3D3-37BA-4E83-A9C3-16247D4D8241@sun.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1264221509 11251 80.91.229.12 (23 Jan 2010 04:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2010 04:38:29 +0000 (UTC) To: 5456@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 05:38:21 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NYXlI-0001QO-MK for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2010 05:38:21 +0100 Original-Received: from localhost ([127.0.0.1]:55173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYXlI-0006fi-0q for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Jan 2010 23:38:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYSAI-0004f6-Uw for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:39:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYSAE-0004dQ-Ey for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:39:42 -0500 Original-Received: from [199.232.76.173] (port=51935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYSAE-0004dG-35 for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:39:38 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47476) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYSAD-0004vF-FX for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:39:37 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NYRjV-00046Q-W2; Fri, 22 Jan 2010 17:12:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Stephan Bergmann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jan 2010 22:12:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5456 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126419829015746 (code B ref -1); Fri, 22 Jan 2010 22:12:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Jan 2010 22:11:30 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYRiy-00045t-La for submit@debbugs.gnu.org; Fri, 22 Jan 2010 17:11:29 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYReQ-00042Z-JC for submit@debbugs.gnu.org; Fri, 22 Jan 2010 17:06:47 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:54146 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NYReM-0006DA-Ir for submit@debbugs.gnu.org; Fri, 22 Jan 2010 17:06:42 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NYReL-0000DE-8t for submit@debbugs.gnu.org; Fri, 22 Jan 2010 17:06:42 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:59685) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NYReL-0000D8-2m for submit@debbugs.gnu.org; Fri, 22 Jan 2010 17:06:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NYReK-00022h-Qq for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:06:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NYReF-0001qn-VY for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:06:40 -0500 Original-Received: from [199.232.76.173] (port=60115 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NYReF-0001qX-Ra for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:06:35 -0500 Original-Received: from gmp-eb-inf-2.sun.com ([192.18.6.24]:47061) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1NYReF-0000CL-5Z for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 17:06:35 -0500 Original-Received: from fe-emea-09.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o0MM6XbE009632 for ; Fri, 22 Jan 2010 22:06:33 GMT Original-Received: from conversion-daemon.fe-emea-09.sun.com by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KWO0090053QK000@fe-emea-09.sun.com> for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 22:06:08 +0000 (GMT) Original-Received: from little.fritz.box ([unknown] [79.222.1.114]) by fe-emea-09.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KWO00DHC5DZ6R90@fe-emea-09.sun.com> for bug-gnu-emacs@gnu.org; Fri, 22 Jan 2010 22:06:08 +0000 (GMT) X-Mailer: Apple Mail (2.1077) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Fri, 22 Jan 2010 17:11:27 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -6.6 (------) Resent-Date: Fri, 22 Jan 2010 17:12:01 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 22 Jan 2010 23:37:17 -0500 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34652 Archived-At: At least in 23.1, vc-hg-state (and vc-hg-working-revision) in vc-hg.el call "hg" without making sure that it is being searched for in vc-path (as is done in vc-dispatcher.el by extending exec-path). What fixed it for me (on recent trunk) is ---8<--- === modified file 'lisp/vc-hg.el' --- lisp/vc-hg.el 2010-01-13 08:35:10 +0000 +++ lisp/vc-hg.el 2010-01-22 21:46:14 +0000 @@ -169,7 +169,8 @@ ;; Ignore all errors. (let ((process-environment ;; Avoid localization of messages so we can parse the output. - (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=") process-environment))) + (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=") process-environment)) + (exec-path (append vc-path exec-path))) (process-file "hg" nil t nil @@ -205,7 +206,8 @@ (let ((process-environment ;; Avoid localization of messages so we can parse the output. (append (list "TERM=dumb" "LANGUAGE=C" "HGRC=") - process-environment))) + process-environment)) + (exec-path (append vc-path exec-path))) ;; Ignore all errors. (process-file "hg" nil t nil ---8<--- -Stephan