emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/bash-completion 2d6ad3980a 062/313: fixes for emacs 22


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 2d6ad3980a 062/313: fixes for emacs 22
Date: Sat, 3 Dec 2022 10:59:17 -0500 (EST)

branch: elpa/bash-completion
commit 2d6ad3980a4bcb2e1227761577fc4b438a9d9e54
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    fixes for emacs 22
---
 bash-completion.el      | 4 +++-
 bash-completion_test.el | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 140f288c85..fe92ce7363 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -688,10 +688,11 @@ is set to t."
   (if (bash-completion-is-running)
       bash-completion-process
     ;; start process
-    (let ((process))
+    (let ((process) (oldterm (getenv "TERM")))
       (unwind-protect
          (progn
            (setenv "EMACS_BASH_COMPLETE" "t")
+           (setenv "TERM" "dumb")
            (setq process
                  (start-process
                   "*bash-completion*"
@@ -726,6 +727,7 @@ is set to t."
        ;; finally
        (progn
          (setenv "EMACS_BASH_COMPLETE" nil)
+         (setenv "TERM" oldterm)
          (when process
            (condition-case err
                (bash-completion-kill process)
diff --git a/bash-completion_test.el b/bash-completion_test.el
index 3dc19dd740..91f0a97ea8 100644
--- a/bash-completion_test.el
+++ b/bash-completion_test.el
@@ -1,7 +1,7 @@
 ;;; bash-completion_test.el --- Tests bash-completion.el
 
 
-;;; Commentary:
+:;;; Commentary:
 ;;
 ;; This file defines `bash-completion-regress' and run the
 ;; regression tests if and only if regress is already imported.



reply via email to

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