Skip to content

Commit

Permalink
Fix the load issue by unwrapping requires
Browse files Browse the repository at this point in the history
  • Loading branch information
jxa committed Aug 9, 2021
1 parent 1415766 commit 9b160ec
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
9 changes: 2 additions & 7 deletions el/sclang-dev.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
;; USA


(eval-when-compile
(require 'sclang-util)
(require 'sclang-interp)
)


(require 'sclang-util)
(require 'sclang-interp)

(sclang-set-command-handler
'openDevSource
Expand Down
5 changes: 2 additions & 3 deletions el/sclang-interp.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
;; USA

(eval-when-compile
(require 'sclang-util)
(require 'compile))
(require 'sclang-util)
(require 'compile)

;; =====================================================================
;; post buffer access
Expand Down
7 changes: 2 additions & 5 deletions el/sclang-minor-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

(eval-when-compile
(require 'sclang-util)
(require 'sclang-mode)
)

(require 'sclang-util)
(require 'sclang-mode)

(easy-mmode-define-minor-mode sclang-minor-mode
"Toggle sclang-minor-mode.
Expand Down
6 changes: 2 additions & 4 deletions el/sclang-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
(declare-function company-mode "ext:company")
(defvar company-backends)

(eval-when-compile
(require 'font-lock)
(require 'sclang-util))

(require 'font-lock)
(require 'sclang-util)
(require 'sclang-interp)
(require 'sclang-language)
(require 'sclang-dev)
Expand Down
10 changes: 4 additions & 6 deletions el/sclang-server.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
;; USA

(require 'cl-lib)

(eval-when-compile
(require 'sclang-util)
(require 'sclang-interp)
(require 'sclang-language)
(require 'sclang-mode))
(require 'sclang-util)
(require 'sclang-interp)
(require 'sclang-language)
(require 'sclang-mode)

(defcustom sclang-server-panel "Server.default.makeWindow"
"Expression to execute when `sclang-show-server-panel' is invoked."
Expand Down
6 changes: 3 additions & 3 deletions el/sclang-widgets.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
;;; Code:

(require 'cl-lib)
(eval-when-compile (require 'sclang-util)
(require 'sclang-language))
(eval-and-compile (require 'sclang-interp))
(require 'sclang-util)
(require 'sclang-language)
(require 'sclang-interp)

(defvar sclang-widgets nil)
(make-variable-buffer-local 'sclang-widgets)
Expand Down

0 comments on commit 9b160ec

Please sign in to comment.