]> git.eshelyaron.com Git - emacs.git/commitdiff
Condition em-cmpl's setting of pcomplete-suffix-list
authorGlenn Morris <rgm@gnu.org>
Tue, 6 Mar 2018 20:10:49 +0000 (15:10 -0500)
committerAndrew G Cohen <cohen@andy.bu.edu>
Tue, 11 Dec 2018 06:14:00 +0000 (14:14 +0800)
* lisp/eshell/em-cmpl.el (eshell-cmpl-initialize):
Only set pcomplete-suffix-list if it is defined.

lisp/eshell/em-cmpl.el

index 39f750ae92c362e4205516d5c178f615d6e68350..a9b29aef4c0db8518e90dd4c7ea149511fc35574 100644 (file)
@@ -262,8 +262,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)