From: Glenn Morris Date: Mon, 5 Mar 2018 19:26:50 +0000 (-0500) Subject: Suppress some compiler warnings about pcomplete X-Git-Tag: emacs-27.0.90~5551 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bc85cdc16946ad2592450dd6b6ebc42be6421b05;p=emacs.git Suppress some compiler warnings about pcomplete * lisp/erc/erc-dcc.el, lisp/eshell/em-xtra.el: Load pcomplete at run-time too, to silence compiler. --- diff --git a/lisp/erc/erc-dcc.el b/lisp/erc/erc-dcc.el index 764c6cc6170..5bc8c2f38b2 100644 --- a/lisp/erc/erc-dcc.el +++ b/lisp/erc/erc-dcc.el @@ -54,7 +54,9 @@ ;;; Code: (require 'erc) -(eval-when-compile (require 'pcomplete)) +;; Strictly speaking, should only be needed at compile time. +;; Require at run-time too to silence compiler. +(require 'pcomplete) ;;;###autoload(autoload 'erc-dcc-mode "erc-dcc") (define-erc-module dcc nil diff --git a/lisp/eshell/em-xtra.el b/lisp/eshell/em-xtra.el index ce73474fb73..cc84d198544 100644 --- a/lisp/eshell/em-xtra.el +++ b/lisp/eshell/em-xtra.el @@ -25,8 +25,10 @@ (require 'esh-util) (eval-when-compile - (require 'eshell) - (require 'pcomplete)) + (require 'eshell)) +;; Strictly speaking, should only be needed at compile time. +;; Require at run-time too to silence compiler. +(require 'pcomplete) (require 'compile) ;; There are no items in this custom group, but eshell modules (ab)use