From 992e2019d3c535a61df064de25f664c01b8c309f Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 19 Apr 2017 16:32:04 -0400 Subject: [PATCH] Remove some explicit runtime loads of pcase Pcase is macros, so these should have used eval-when-compile. Anyway, pcase entry points are autoloaded, so the compiler handles it. * lisp/profiler.el, lisp/emacs-lisp/eieio-core.el: * lisp/emacs-lisp/generator.el, lisp/emacs-lisp/subr-x.el: * lisp/progmodes/xref.el: No need to require pcase. --- lisp/emacs-lisp/eieio-core.el | 1 - lisp/emacs-lisp/generator.el | 1 - lisp/emacs-lisp/subr-x.el | 1 - lisp/profiler.el | 1 - lisp/progmodes/xref.el | 1 - 5 files changed, 5 deletions(-) diff --git a/lisp/emacs-lisp/eieio-core.el b/lisp/emacs-lisp/eieio-core.el index 7c149421d43..dfe1c06bfaf 100644 --- a/lisp/emacs-lisp/eieio-core.el +++ b/lisp/emacs-lisp/eieio-core.el @@ -32,7 +32,6 @@ ;;; Code: (require 'cl-lib) -(require 'pcase) (require 'eieio-loaddefs nil t) ;;; diff --git a/lisp/emacs-lisp/generator.el b/lisp/emacs-lisp/generator.el index 2ab01404bad..c96b400809b 100644 --- a/lisp/emacs-lisp/generator.el +++ b/lisp/emacs-lisp/generator.el @@ -77,7 +77,6 @@ ;;; Code: (require 'cl-lib) -(require 'pcase) (defvar cps--bindings nil) (defvar cps--states nil) diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index c0e5ae5984a..440213eb38a 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -35,7 +35,6 @@ ;;; Code: -(require 'pcase) (eval-when-compile (require 'cl-lib)) diff --git a/lisp/profiler.el b/lisp/profiler.el index 8af2c50a4d4..15ff9b68ab9 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el @@ -27,7 +27,6 @@ ;;; Code: (require 'cl-lib) -(require 'pcase) (defgroup profiler nil "Emacs profiler." diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index 1ca3e1d1539..d0636ba6355 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -69,7 +69,6 @@ (require 'cl-lib) (require 'eieio) (require 'ring) -(require 'pcase) (require 'project) (eval-when-compile