From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jordi =?ISO-8859-1?Q?Guti=E9rrez?= Hermoso Newsgroups: gmane.emacs.devel Subject: Adding HGPLAIN to tramp's default environment Date: Tue, 28 Oct 2014 14:21:42 -0400 Message-ID: <1414520502.5576.27.camel@Iris> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1414520544 17910 80.91.229.3 (28 Oct 2014 18:22:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2014 18:22:24 +0000 (UTC) To: Emacs development discussions Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 28 19:22:13 2014 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 1XjBPI-00041I-P5 for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 19:22:12 +0100 Original-Received: from localhost ([::1]:40811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjBPI-0006jK-9w for ged-emacs-devel@m.gmane.org; Tue, 28 Oct 2014 14:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjBOy-0006iy-FV for emacs-devel@gnu.org; Tue, 28 Oct 2014 14:22:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjBOp-0001p1-FB for emacs-devel@gnu.org; Tue, 28 Oct 2014 14:21:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjBOp-0001ox-Bb for emacs-devel@gnu.org; Tue, 28 Oct 2014 14:21:43 -0400 Original-Received: from beast.bic.mni.mcgill.ca ([132.206.178.199]:46641 helo=[IPv6:::1]) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1XjBOp-00041E-23 for emacs-devel@gnu.org; Tue, 28 Oct 2014 14:21:43 -0400 X-Mailer: Evolution 3.4.4-3 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:175938 Archived-At: Tramp was freezing for me when checking vc-registered on my remote hg repos. Turns out my remote hg config was the problem, probably the pager. As suggested by the hg docs, $ hg help env.hgplain HGPLAIN When set, this disables any configuration settings that might change Mercurial's default output. This includes encoding, defaults, verbose mode, debug mode, quiet mode, tracebacks, and localization. This can be useful when scripting against Mercurial in the face of existing user configuration. Equivalent options set via command line flags or environment variables are not overridden. Hence the following patch. - Jordi G. H. diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el @@ -458,7 +458,7 @@ as given in your `~/.profile'." "EMACS=t" ;; Deprecated. ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version) "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=\"\"" - "autocorrect=" "correct=") + "autocorrect=" "correct=" "HGPLAIN=1") "List of environment variables to be set on the remote host. Each element should be a string of the form ENVVARNAME=VALUE. An