]> git.eshelyaron.com Git - emacs.git/commitdiff
Backport: Fixes: debbugs:18940
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 13 Nov 2014 15:26:51 +0000 (16:26 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 15 Nov 2014 16:52:14 +0000 (17:52 +0100)
* vc/vc-hg.el (vc-hg-state): Disable pager.

Conflicts:
lisp/ChangeLog

lisp/ChangeLog
lisp/vc/vc-hg.el

index 6cb3e7f490c7bb14e0b864ab04acf1617265906d..e9b3731aae98da3901d7200ed597e26a32f8a7c9 100644 (file)
@@ -1,4 +1,9 @@
 2014-10-28  Peder O. Klingenberg  <peder@klingenberg.no>  (tiny change)
+2014-11-13  Michael Albinus  <michael.albinus@gmx.de>
+
+       * vc/vc-hg.el (vc-hg-state): Disable pager.  (Bug#18940)
+
+2014-11-10  Kenjiro NAKAYAMA  <nakayamakenjiro@gmail.com>
 
        * mail/emacsbug.el (report-emacs-bug): Make a better guess at
          envelope-from when reporting through sendmail (bug#19054).
index 372504eb8f3fe0674dafa232f6535d7031342b5a..a66fb9f46f914734037d518426225b7f5c7fe02b 100644 (file)
@@ -207,14 +207,22 @@ highlighting the Log View buffer."
                       ;; Ignore all errors.
                      (let ((process-environment
                             ;; Avoid localization of messages so we
-                            ;; can parse the output.
-                            (append (list "TERM=dumb" "LANGUAGE=C")
-                                    process-environment)))
-                       (process-file
-                        vc-hg-program nil t nil
-                        "--config" "alias.status=status"
-                        "--config" "defaults.status="
-                        "status" "-A" (file-relative-name file)))
+                            ;; can parse the output.  Disable pager.
+                            (append
+                             (list "TERM=dumb" "LANGUAGE=C" "HGPLAIN=1")
+                             process-environment)))
+                       (if (file-remote-p file)
+                           (process-file
+                            "env" nil t nil
+                            "HGPLAIN=1" vc-hg-program
+                            "--config" "alias.status=status"
+                            "--config" "defaults.status="
+                            "status" "-A" (file-relative-name file))
+                         (process-file
+                          vc-hg-program nil t nil
+                          "--config" "alias.status=status"
+                          "--config" "defaults.status="
+                          "status" "-A" (file-relative-name file))))
                     ;; Some problem happened.  E.g. We can't find an `hg'
                     ;; executable.
                     (error nil)))))))