Commit ad130229 authored by Alex Branham's avatar Alex Branham Committed by Jonas Bernoulli

Require subr-x only at compile-time

`if-let' et al. are macros and the byte-compiler can expand
these at compile-time.  No need to load `subr-x' at run-time.
parent 418a6af1
......@@ -30,6 +30,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit-core)
(require 'magit-diff)
(require 'magit-wip)
......
......@@ -28,6 +28,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Options
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(require 'bookmark)
......
......@@ -31,6 +31,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(require 'magit-collab)
(require 'magit-reset)
......
......@@ -34,6 +34,7 @@
(eval-when-compile (require 'epa)) ; for `epa-protocol'
(eval-when-compile (require 'epg))
(eval-when-compile (require 'subr-x))
;;; Options
......
......@@ -28,6 +28,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'git-commit)
(require 'magit-core)
......
......@@ -24,6 +24,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(declare-function dired-read-shell-command "dired-aux" (prompt arg files))
......
......@@ -30,6 +30,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Find Blob
......
......@@ -30,6 +30,9 @@
(require 'cl-lib)
(require 'dash)
(eval-when-compile
(require 'subr-x))
(require 'magit-utils)
(require 'magit-section)
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Commands
......
......@@ -33,7 +33,8 @@
;;; Code:
(eval-when-compile (require 'subr-x))
(eval-when-compile
(require 'subr-x))
(require 'magit)
(require 'git-rebase)
......
......@@ -52,6 +52,9 @@
(require 'crm)
(require 'which-func)
(eval-when-compile
(require 'subr-x))
(defvar bookmark-make-record-function)
;;; Options
......
......@@ -32,6 +32,9 @@
(require 'dash)
(eval-when-compile
(require 'subr-x))
(require 'magit-section)
(require 'magit-mode)
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(declare-function magit-git-push "magit-push" (branch target args))
......
......@@ -32,6 +32,9 @@
(require 'cl-lib)
(require 'dash)
(eval-when-compile
(require 'subr-x))
(require 'magit-section)
(require 'magit-git)
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Options
......
......@@ -35,6 +35,9 @@
(require 'cl-lib)
(require 'dash)
(eval-when-compile
(require 'subr-x))
(require 'with-editor)
(require 'magit-utils)
(require 'magit-section)
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Options
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(defvar bookmark-make-record-function)
......
......@@ -29,6 +29,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit-core)
(declare-function magit-status-internal "magit-status" (directory))
......
......@@ -33,6 +33,9 @@
(require 'dash)
(require 'eieio)
(eval-when-compile
(require 'subr-x))
(require 'magit-utils)
(declare-function magit-maybe-make-margin-overlay "magit-margin" ())
......
......@@ -29,6 +29,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
;;; Options
......
......@@ -27,6 +27,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(defvar bookmark-make-record-function)
......
......@@ -27,9 +27,10 @@
;;; Code:
(require 'magit)
(eval-when-compile
(require 'subr-x))
(eval-when-compile (require 'subr-x))
(require 'magit)
(defvar bookmark-make-record-function)
......
......@@ -23,6 +23,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit)
(defvar x-stretch-cursor)
......
......@@ -40,9 +40,9 @@
(require 'cl-lib)
(require 'dash)
(require 'subr-x)
(require 'magit-popup)
(eval-when-compile
(require 'subr-x))
(require 'crm)
......@@ -58,6 +58,8 @@
(defvar magit-wip-before-change-mode)
(require 'magit-popup)
;;; Options
(defcustom magit-completing-read-function 'magit-builtin-completing-read
......
......@@ -30,6 +30,9 @@
;;; Code:
(eval-when-compile
(require 'subr-x))
(require 'magit-core)
(require 'magit-log)
......
......@@ -50,6 +50,9 @@
(require 'cl-lib)
(require 'dash)
(eval-when-compile
(require 'subr-x))
(require 'with-editor)
(require 'git-commit)
(require 'magit-core)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment