[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 117/287: Take out compiler errors from ergoemacs-test
From: |
Matthew Fidler |
Subject: |
[elpa] 117/287: Take out compiler errors from ergoemacs-test |
Date: |
Wed, 02 Jul 2014 14:45:11 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit bff6a419b803cd7e4f02d67b3a65427d5c119a69
Author: Matthew L. Fidler <address@hidden>
Date: Tue Jun 17 15:08:18 2014 -0500
Take out compiler errors from ergoemacs-test
---
ergoemacs-test.el | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/ergoemacs-test.el b/ergoemacs-test.el
index 0de7dcb..6146eb5 100644
--- a/ergoemacs-test.el
+++ b/ergoemacs-test.el
@@ -28,10 +28,6 @@
;;; Code:
-(setq ergoemacs-dir (file-name-directory (or load-file-name
(buffer-file-name))))
-(when (not (featurep 'ergoemacs-mode))
- (load (expand-file-name "ergoemacs-mode" ergoemacs-dir)))
-
(require 'ert)
(require 'elp)
(defvar ergoemacs-test-lorem-ipsum
@@ -56,6 +52,9 @@ sunt in culpa qui officia deserunt mollit anim id est
laborum.")
(ert "^ergoemacs-test-")
(call-interactively 'elp-results)))
+(defvar ergoemacs-keyboard-layout)
+(defvar ergoemacs-theme)
+(declare-function ergoemacs-mode "ergoemacs-mode.el")
(ert-deftest ergoemacs-test-google-code-145 ()
"Backspace doesn't work in `isearch-mode'."
(let ((old-ergoemacs-theme ergoemacs-theme)
@@ -158,8 +157,9 @@ sunt in culpa qui officia deserunt mollit anim id est
laborum.")
(ergoemacs-mode 1)
(should (equal ret t))))
-
-
+(defvar ergoemacs-dir)
+(declare-function ergoemacs-emacs-exe "ergoemacs-functions.el")
+(declare-function ergoemacs-shortcut-remap-list "ergoemacs-shortcuts.el")
(defun ergoemacs-test-global-key-set-before (&optional after key ergoemacs
ignore-prev-global delete-def)
"Test the global key set before ergoemacs-mode is loaded."
(let* ((emacs-exe (ergoemacs-emacs-exe))
@@ -322,6 +322,7 @@ sunt in culpa qui officia deserunt mollit anim id est
laborum.")
(should (equal (ergoemacs-test-global-key-set-before
'after "C-e" 'ergoemacs-key))))
+(declare-function ergoemacs-pretty-key-rep "ergoemacs-tranlate.el")
(ert-deftest ergoemacs-test-ctl-c-ctl-c ()
"Issue #64. Should translate C-c C-c correctly."
(let (ergoemacs-use-unicode-char)
@@ -332,6 +333,7 @@ sunt in culpa qui officia deserunt mollit anim id est
laborum.")
(let (ergoemacs-use-unicode-char)
(should (string= (ergoemacs-pretty-key-rep "helm-M-x test") "helm-M-x
test"))))
+(declare-function ergoemacs-cut-line-or-region "ergoemacs-functions.el")
(ert-deftest ergoemacs-test-cut-line-or-region ()
"Issue #68.
kill-ring function name is used and such doesn't exist. It errs when
@@ -354,6 +356,7 @@ Test next and prior translation."
(should (string= (ergoemacs-pretty-key-rep "Test next and prior translation")
"Test next and prior translation")))
+(declare-function ergoemacs-pretty-key "ergoemacs-translate.el")
(ert-deftest ergoemacs-test-issue-77 ()
"Issue #77.
Test \"C-x \" translating to \"[Ctl+X][]\", should be \"[Ctl+X]\""
@@ -425,6 +428,8 @@ Hyper Key mapping no longer works."
(ergoemacs-mode 1)
(should ret)))
+(declare-function ergoemacs-unchorded-alt-modal "ergoemacs-translate.el"
+ nil t)
(ert-deftest ergoemacs-test-modal-preserve-mark ()
"Issue #101.
Test next and prior translation."
@@ -457,7 +462,7 @@ Test next and prior translation."
(ergoemacs-mode 1)
(should ret)))
-
+(defvar ergoemacs-ctl-c-or-ctl-x-delay)
(ert-deftest ergoemacs-test-issue-130-cut ()
"Attempts to test Issue #130 -- Cut"
(let ((ret t)
@@ -470,6 +475,7 @@ Test next and prior translation."
(setq ret (string= "" (buffer-string))))
(should ret)))
+(declare-function ergoemacs-paste "ergoemacs-functions.el")
(ert-deftest ergoemacs-test-issue-130-copy ()
"Attempts to test Issue #130 -- Copy"
(let ((ret t)
@@ -554,6 +560,7 @@ Issue #137."
(kill-buffer (current-buffer)))
(should ret)))
+(declare-function ergoemacs-read-key "ergoemacs-shortcuts.el")
(ert-deftest ergoemacs-test-translations ()
"Test that unicode translations work.
See Issue #138."
@@ -845,7 +852,7 @@ Issue #186."
(ergoemacs-mode 1)
(should ret)))
-
+(declare-function ergoemacs-copy-line-or-region "ergoemacs-functions.el")
(ert-deftest ergoemacs-test-issue-184-paste ()
"Issue #184; Not replace the \"selected all\" by paste."
(let ((ret t)
- [elpa] 199/287: Update ergoemacs-test-layout so it wont parse the function, (continued)
- [elpa] 199/287: Update ergoemacs-test-layout so it wont parse the function, Matthew Fidler, 2014/07/02
- [elpa] 135/287: Fix defcustom, Matthew Fidler, 2014/07/02
- [elpa] 104/287: Fix many compiler warnings with ergoemacs-advices.el, Matthew Fidler, 2014/07/02
- [elpa] 97/287: First attempt for Cask without Cask (I'm on windows), Matthew Fidler, 2014/07/02
- [elpa] 116/287: Take out compiler warnings from ergoemacs-shortcuts.el, Matthew Fidler, 2014/07/02
- [elpa] 89/287: Fix most keybinding issues, Matthew Fidler, 2014/07/02
- [elpa] 113/287: No more warnings for ergoemacs-modal.el; mapc->dolist, Matthew Fidler, 2014/07/02
- [elpa] 132/287: Be more careful when redefining maps., Matthew Fidler, 2014/07/02
- [elpa] 129/287: Fix compiler warnings for ergoemacs-unbind.el, Matthew Fidler, 2014/07/02
- [elpa] 140/287: Fix Byte Compile Warnings, Matthew Fidler, 2014/07/02
- [elpa] 117/287: Take out compiler errors from ergoemacs-test,
Matthew Fidler <=
- [elpa] 93/287: Add ergoemacs-shortcut-emulation-mode-map-alist, Matthew Fidler, 2014/07/02
- [elpa] 119/287: Fix byte-compile warnings for ergoemacs-macros.el, Matthew Fidler, 2014/07/02
- [elpa] 67/287: Completely use the object, Matthew Fidler, 2014/07/02
- [elpa] 134/287: Finalize tests; Passes on windows, Matthew Fidler, 2014/07/02
- [elpa] 101/287: Fix Cask setup?, Matthew Fidler, 2014/07/02
- [elpa] 133/287: Remove byte compiled load warning, Matthew Fidler, 2014/07/02
- [elpa] 202/287: Allow hooks in themes; save settings on exit (Issue #234), Matthew Fidler, 2014/07/02