[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] [emacs] 01/02: Backport: Fixes: debbugs:18940
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] [emacs] 01/02: Backport: Fixes: debbugs:18940 |
Date: |
Sat, 15 Nov 2014 16:54:29 +0000 |
albinus pushed a commit to branch emacs-24
in repository emacs.
commit 260cedec96d52993c3798c4e6d844fbf30b82a8b
Author: Michael Albinus <address@hidden>
Date: Thu Nov 13 16:26:51 2014 +0100
Backport: Fixes: debbugs:18940
* vc/vc-hg.el (vc-hg-state): Disable pager.
Conflicts:
lisp/ChangeLog
---
lisp/ChangeLog | 5 +++++
lisp/vc/vc-hg.el | 24 ++++++++++++++++--------
2 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6cb3e7f..e9b3731 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,4 +1,9 @@
2014-10-28 Peder O. Klingenberg <address@hidden> (tiny change)
+2014-11-13 Michael Albinus <address@hidden>
+
+ * vc/vc-hg.el (vc-hg-state): Disable pager. (Bug#18940)
+
+2014-11-10 Kenjiro NAKAYAMA <address@hidden>
* mail/emacsbug.el (report-emacs-bug): Make a better guess at
envelope-from when reporting through sendmail (bug#19054).
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 372504e..a66fb9f 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -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)))))))