From: Glenn Morris Date: Tue, 6 Mar 2018 20:10:49 +0000 (-0500) Subject: Condition em-cmpl's setting of pcomplete-suffix-list X-Git-Tag: emacs-27.0.90~5545 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4ad214f36c2b1eab4446f9f698ce2588941a7356;p=emacs.git 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. --- diff --git a/lisp/eshell/em-cmpl.el b/lisp/eshell/em-cmpl.el index 667bdeb43b4..fe34d9546a6 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)