emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 4ad214f: Condition em-cmpl's setting of pcomplete-s


From: Glenn Morris
Subject: [Emacs-diffs] master 4ad214f: Condition em-cmpl's setting of pcomplete-suffix-list
Date: Tue, 6 Mar 2018 15:11:12 -0500 (EST)

branch: master
commit 4ad214f36c2b1eab4446f9f698ce2588941a7356
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    Condition em-cmpl's setting of pcomplete-suffix-list
    
    * lisp/eshell/em-cmpl.el (eshell-cmpl-initialize):
    Only set pcomplete-suffix-list if it is defined.
---
 lisp/eshell/em-cmpl.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el
index 667bdeb..fe34d95 100644
--- a/lisp/eshell/em-cmpl.el
+++ b/lisp/eshell/em-cmpl.el
@@ -259,8 +259,9 @@ to writing a completion function."
        eshell-cmpl-ignore-case)
   (set (make-local-variable 'pcomplete-autolist)
        eshell-cmpl-autolist)
-  (set (make-local-variable 'pcomplete-suffix-list)
-       eshell-cmpl-suffix-list)
+  (if (boundp 'pcomplete-suffix-list)
+      (set (make-local-variable 'pcomplete-suffix-list)
+           eshell-cmpl-suffix-list))
   (set (make-local-variable 'pcomplete-recexact)
        eshell-cmpl-recexact)
   (set (make-local-variable 'pcomplete-man-function)



reply via email to

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