tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] disable paging with PAGER=cat


From: jeremy . compostella
Subject: [PATCH] disable paging with PAGER=cat
Date: Tue, 10 Feb 2015 13:49:43 +0100

"PAGER=\"\"" sets PAGER to the string "\"\"" which means the variable
is set and the program that use the PAGER environment variable tries
to run a command named "\"\"" and fail, like git for instance.
However, if we unset the variable ("PAGER=") then the pager is
undefined and most of the program will fallback to their default
behavior : the use of the less or more command.

To really disable paging we have to set PAGER to the cat command.

Signed-off-by: Jeremy Compostella <address@hidden>
---
 lisp/tramp-sh.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/tramp-sh.el b/lisp/tramp-sh.el
index efcf554..af4ac80 100644
--- a/lisp/tramp-sh.el
+++ b/lisp/tramp-sh.el
@@ -475,7 +475,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=" "PAGER=\"\""
+    "CDPATH=" "HISTORY=" "MAIL=" "MAILCHECK=" "MAILPATH=" "PAGER=cat"
     "autocorrect=" "correct=")
   "List of environment variables to be set on the remote host.
 
-- 
1.9.1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]