diff options
| author | Michael Albinus | 2012-03-01 10:01:08 +0100 |
|---|---|---|
| committer | Michael Albinus | 2012-03-01 10:01:08 +0100 |
| commit | 99a54f2128e116ef58542fe745b3383f53dcf280 (patch) | |
| tree | 3b2b21308f2777b04f05333db83c45f4a9a36fff | |
| parent | a032a70212f82e2d7d1e8ca056508a16f4fd5c3e (diff) | |
| download | emacs-99a54f2128e116ef58542fe745b3383f53dcf280.tar.gz emacs-99a54f2128e116ef58542fe745b3383f53dcf280.zip | |
* net/tramp-sh.el (tramp-remote-process-environment): Add "PAGER=\"\"".
Reported by Robert Lupton the Good <rhl@astro.princeton.edu>.
* vc/vc-git.el (vc-git--call): Enable `inhibit-null-byte-detection'.
Add "PAGER=" to `process-environment'.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 2 | ||||
| -rw-r--r-- | lisp/vc/vc-git.el | 7 |
3 files changed, 12 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a320976a74f..08f6ac4d075 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,12 @@ | |||
| 3 | * files.el (file-equal-p): Fix docstring. Avoid unnecessary | 3 | * files.el (file-equal-p): Fix docstring. Avoid unnecessary |
| 4 | access of FILE2, if FILE1 does not exist. | 4 | access of FILE2, if FILE1 does not exist. |
| 5 | 5 | ||
| 6 | * net/tramp-sh.el (tramp-remote-process-environment): Add "PAGER=\"\"". | ||
| 7 | Reported by Robert Lupton the Good <rhl@astro.princeton.edu>. | ||
| 8 | |||
| 9 | * vc/vc-git.el (vc-git--call): Enable `inhibit-null-byte-detection'. | ||
| 10 | Add "PAGER=" to `process-environment'. | ||
| 11 | |||
| 6 | 2012-03-01 Michael R. Mauger <mmaug@yahoo.com> | 12 | 2012-03-01 Michael R. Mauger <mmaug@yahoo.com> |
| 7 | 13 | ||
| 8 | * progmodes/sql.el: Bug fix | 14 | * progmodes/sql.el: Bug fix |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 801ec5f5fc9..1c23a6f20f3 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -543,7 +543,7 @@ as given in your `~/.profile'." | |||
| 543 | ,(format "TERM=%s" tramp-terminal-type) | 543 | ,(format "TERM=%s" tramp-terminal-type) |
| 544 | "EMACS=t" ;; Deprecated. | 544 | "EMACS=t" ;; Deprecated. |
| 545 | ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version) | 545 | ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version) |
| 546 | "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" | 546 | "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=\"\"" |
| 547 | "autocorrect=" "correct=") | 547 | "autocorrect=" "correct=") |
| 548 | 548 | ||
| 549 | "*List of environment variables to be set on the remote host. | 549 | "*List of environment variables to be set on the remote host. |
diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el index dbe591a3ed8..3ec32243796 100644 --- a/lisp/vc/vc-git.el +++ b/lisp/vc/vc-git.el | |||
| @@ -1108,8 +1108,11 @@ The difference to vc-do-command is that this function always invokes | |||
| 1108 | (defun vc-git--call (buffer command &rest args) | 1108 | (defun vc-git--call (buffer command &rest args) |
| 1109 | ;; We don't need to care the arguments. If there is a file name, it | 1109 | ;; We don't need to care the arguments. If there is a file name, it |
| 1110 | ;; is always a relative one. This works also for remote | 1110 | ;; is always a relative one. This works also for remote |
| 1111 | ;; directories. | 1111 | ;; directories. We enable `inhibit-null-byte-detection', otherwise |
| 1112 | (apply 'process-file vc-git-program nil buffer nil command args)) | 1112 | ;; Tramp's eol conversion might be confused. |
| 1113 | (let ((inhibit-null-byte-detection t) | ||
| 1114 | (process-environment (cons "PAGER=" process-environment))) | ||
| 1115 | (apply 'process-file vc-git-program nil buffer nil command args))) | ||
| 1113 | 1116 | ||
| 1114 | (defun vc-git--out-ok (command &rest args) | 1117 | (defun vc-git--out-ok (command &rest args) |
| 1115 | (zerop (apply 'vc-git--call '(t nil) command args))) | 1118 | (zerop (apply 'vc-git--call '(t nil) command args))) |