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

* Re: Adding HGPLAIN to tramp's default environment
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2014-10-29  1:00 UTC (permalink / raw)
  To: Jordi Gutiérrez Hermoso; +Cc: Emacs development discussions

> --- 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")

Thanks.  I think this should be handled in vc-hg.el, tho.


        Stefan



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

* Re: Adding HGPLAIN to tramp's default environment
  2014-10-29  1:00 ` Stefan Monnier
@ 2014-10-29 13:50   ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2014-10-29 13:50 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Jordi Gutiérrez Hermoso, Emacs development discussions

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> --- 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")
>
> Thanks.  I think this should be handled in vc-hg.el, tho.

That's also my belief. I'll check in a couple of days, when time
permits. But I won't object if somebody beats me :-)

>         Stefan

Best regards, Michael.



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

* Re: Adding HGPLAIN to tramp's default environment
  2014-10-28 18:21 Adding HGPLAIN to tramp's default environment Jordi Gutiérrez Hermoso
  2014-10-29  1:00 ` Stefan Monnier
@ 2014-11-04 10:30 ` Michael Albinus
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2014-11-04 10:30 UTC (permalink / raw)
  To: Jordi Gutiérrez Hermoso; +Cc: Emacs development discussions

Jordi Gutiérrez Hermoso <jordigh@octave.org> writes:

> 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,

For the records, there is now bug#18940 in debbugs about the same
problem. I propose to continue the discussion there.

> - Jordi G. H.

Best regards, Michael.



^ 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).