[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 129/287: Fix compiler warnings for ergoemacs-unbind.el
From: |
Matthew Fidler |
Subject: |
[elpa] 129/287: Fix compiler warnings for ergoemacs-unbind.el |
Date: |
Wed, 02 Jul 2014 14:45:17 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 015858f30f6e7e90028eeddaee39fb01e16fc805
Author: Matthew L. Fidler <address@hidden>
Date: Wed Jun 18 08:08:47 2014 -0500
Fix compiler warnings for ergoemacs-unbind.el
---
ergoemacs-unbind.el | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/ergoemacs-unbind.el b/ergoemacs-unbind.el
index 85f5d7a..a6fe098 100644
--- a/ergoemacs-unbind.el
+++ b/ergoemacs-unbind.el
@@ -631,6 +631,13 @@
("RET" (newline)))
"Default Emacs Key Bindings")
+(defvar ergoemacs-single-command-keys)
+(defvar ergoemacs-shortcut-keymap)
+(defvar ergoemacs-keymap)
+(defvar keyfreq-mode)
+(defvar keyfreq-table)
+(defvar ergoemacs-describe-key)
+(declare-function ergoemacs-debug "ergoemacs-mode.el")
(defun ergoemacs-undefined (&optional arg)
"Ergoemacs Undefined key, tells where to perform the old action."
(interactive "P")
@@ -656,7 +663,6 @@
(setq local-fn (lookup-key ergoemacs-keymap key-kbd)))
(functionp local-fn))
(ergoemacs-debug "WARNING: The command %s is undefined when if shouldn't
be..." local-fn)
- (ergoemacs-vars-sync) ;; Try to fix issue.
(setq tmp (key-binding key-kbd))
(when (and tmp (not (equal tmp 'ergoemacs-undefined)))
(setq local-fn tmp))
@@ -803,6 +809,7 @@
(defvar ergoemacs-global-changed-cache '()
"Cache of global variables that have changed.")
+(defvar ergoemacs-dir)
(defun ergoemacs-global-fix-defualt-bindings (kbd-code function)
"Helper function to fix `ergoemacs-emacs-default-bindings' based on
currently running emacs."
(interactive)
@@ -814,6 +821,7 @@
(insert (format "%s " function)))
(write-file (expand-file-name "ergoemacs-unbind.el" ergoemacs-dir))))
+(declare-function ergoemacs-kbd "ergoemacs-translate.el")
(defun ergoemacs-global-changed-p (key &optional is-variable complain fix)
"Returns if a global key has been changed. If IS-VARIABLE is
true and KEY is a string, then lookup the keyboard equivalent
@@ -899,6 +907,8 @@ This should only be run when no global keys have been set.
(add-to-list 'ergoemacs-global-not-changed-cache key-kbd))
has-changed))))))
+(declare-function ergoemacs-get-fixed-layout "ergoemacs-translate.el")
+(declare-function ergoemacs-get-variable-layout "ergoemacs-translate.el")
(defun ergoemacs-warn-globally-changed-keys (&optional fix)
"Warns about globally changed keys. If FIX is true, fix the ergoemacs-unbind
file."
(interactive)
@@ -921,6 +931,8 @@ This should only be run when no global keys have been set.
;; Based on describe-key-briefly
+(declare-function ergoemacs-key-fn-lookup "ergoemacs-translate.el")
+(declare-function ergoemacs-pretty-key "ergoemacs-translate.el")
(defun ergoemacs-where-is-old-binding (&optional key only-new-key)
"Print the name of the function KEY invoked before to start ErgoEmacs minor
mode."
(interactive
- [elpa] 198/287: More flexible redo, Issue #239, (continued)
- [elpa] 198/287: More flexible redo, Issue #239, Matthew Fidler, 2014/07/02
- [elpa] 96/287: Fix shortcut keys again., Matthew Fidler, 2014/07/02
- [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 <=
- [elpa] 140/287: Fix Byte Compile Warnings, Matthew Fidler, 2014/07/02
- [elpa] 117/287: Take out compiler errors from ergoemacs-test, Matthew Fidler, 2014/07/02
- [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