emacs-diffs
[Top][All Lists]
Advanced

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

master 75233e3 9/9: Remove some compat code from esh-io.el


From: Lars Ingebrigtsen
Subject: master 75233e3 9/9: Remove some compat code from esh-io.el
Date: Tue, 18 Aug 2020 06:12:39 -0400 (EDT)

branch: master
commit 75233e3ee088ba84d6935c559ee67a79ccf2477d
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Remove some compat code from esh-io.el
    
    * lisp/eshell/esh-io.el (eshell-set-output-handle): Remove check
    for null-device, which is always bound.
---
 lisp/eshell/esh-io.el | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el
index 0aa4ec4..b415486 100644
--- a/lisp/eshell/esh-io.el
+++ b/lisp/eshell/esh-io.el
@@ -382,12 +382,7 @@ it defaults to `insert'."
   "Set handle INDEX, using MODE, to point to TARGET."
   (when target
     (if (and (stringp target)
-            (or (cond
-                 ((boundp 'null-device)
-                  (string= target null-device))
-                 ((boundp 'grep-null-device)
-                  (string= target grep-null-device))
-                 (t nil))
+            (or (string= target null-device)
                 (string= target "/dev/null")))
        (aset eshell-current-handles index nil)
       (let ((where (eshell-get-target target mode))



reply via email to

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