unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Adding HGPLAIN to tramp's default environment
@ 2014-10-28 18:21 Jordi Gutiérrez Hermoso
  2014-10-29  1:00 ` Stefan Monnier
  2014-11-04 10:30 ` Michael Albinus
  0 siblings, 2 replies; 4+ messages in thread
From: Jordi Gutiérrez Hermoso @ 2014-10-28 18:21 UTC (permalink / raw)
  To: Emacs development discussions

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-04 10:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-28 18:21 Adding HGPLAIN to tramp's default environment Jordi Gutiérrez Hermoso
2014-10-29  1:00 ` Stefan Monnier
2014-10-29 13:50   ` Michael Albinus
2014-11-04 10:30 ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).