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'.
* 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
,(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.
(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)))