]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/tramp-sh.el (tramp-remote-process-environment): Add "PAGER=\"\"".
authorMichael Albinus <michael.albinus@gmx.de>
Thu, 1 Mar 2012 09:01:08 +0000 (10:01 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Thu, 1 Mar 2012 09:01:08 +0000 (10:01 +0100)
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'.

lisp/ChangeLog
lisp/net/tramp-sh.el
lisp/vc/vc-git.el

index a320976a74fbdcc363571b5ec0243be241724e65..08f6ac4d075260f8b4ff498a2bab569978a360ee 100644 (file)
@@ -3,6 +3,12 @@
        * files.el (file-equal-p): Fix docstring.  Avoid unnecessary
        access of FILE2, if FILE1 does not exist.
 
+       * 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'.
+
 2012-03-01  Michael R. Mauger  <mmaug@yahoo.com>
 
        * progmodes/sql.el: Bug fix
index 801ec5f5fc9f3c5fe5f1bfc9eeb38cc3d5cd1a20..1c23a6f20f32f353368a92356494afd83a829491 100644 (file)
@@ -543,7 +543,7 @@ as given in your `~/.profile'."
     ,(format "TERM=%s" tramp-terminal-type)
     "EMACS=t" ;; Deprecated.
     ,(format "INSIDE_EMACS='%s,tramp:%s'" emacs-version tramp-version)
-    "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH="
+    "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=\"\""
     "autocorrect=" "correct=")
 
   "*List of environment variables to be set on the remote host.
index dbe591a3ed8a58c9ec8d41bbec0473a8916d9e94..3ec322437964f887679c2bcc5b830b568b67189e 100644 (file)
@@ -1108,8 +1108,11 @@ The difference to vc-do-command is that this function always invokes
 (defun vc-git--call (buffer command &rest args)
   ;; We don't need to care the arguments.  If there is a file name, it
   ;; is always a relative one.  This works also for remote
-  ;; directories.
-  (apply 'process-file vc-git-program nil buffer nil command args))
+  ;; directories.  We enable `inhibit-null-byte-detection', otherwise
+  ;; Tramp's eol conversion might be confused.
+  (let ((inhibit-null-byte-detection t)
+       (process-environment (cons "PAGER=" process-environment)))
+    (apply 'process-file vc-git-program nil buffer nil command args)))
 
 (defun vc-git--out-ok (command &rest args)
   (zerop (apply 'vc-git--call '(t nil) command args)))