diff options
| author | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:16:38 +0200 |
|---|---|---|
| committer | Frank Fischer <frank-fischer@shadow-soft.de> | 2014-10-25 22:16:38 +0200 |
| commit | 4f25d8b1d79b770363ace16a60a082b6598dc7b3 (patch) | |
| tree | 69ffedab14dd5daeb3ea4882840854a447c97995 | |
| parent | d0a41bd516b103df724540e4f08603515477a372 (diff) | |
fix some compilation warnings
| -rw-r--r-- | evil-commands.el | 7 | ||||
| -rw-r--r-- | evil-integration.el | 9 |
2 files changed, 10 insertions, 6 deletions
diff --git a/evil-commands.el b/evil-commands.el index 022d00b..f442443 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2748,9 +2748,10 @@ the previous shell command is executed instead." If ARG is nil this function calls `recompile', otherwise it calls `compile' passing ARG as build command." (interactive "<sh>") - (if arg - (compile arg) - (recompile))) + (if (and (fboundp 'recompile) + (not arg)) + (recompile) + (compile arg))) ;; TODO: escape special characters (currently only \n) ... perhaps ;; there is some Emacs function doing this? diff --git a/evil-integration.el b/evil-integration.el index 08a273b..3d17009 100644 --- a/evil-integration.el +++ b/evil-integration.el @@ -212,13 +212,15 @@ (global-undo-tree-mode 1)) (eval-after-load 'undo-tree - '(progn + '(with-no-warnings (defun evil-turn-on-undo-tree-mode () "Enable `undo-tree-mode' if evil is enabled. This function enables `undo-tree-mode' when Evil is activated in some buffer, but only if `global-undo-tree-mode' is also activated." - (when global-undo-tree-mode (undo-tree-mode 1))) + (when (and (boundp 'global-undo-tree-mode) + global-undo-tree-mode) + (undo-tree-mode 1))) (add-hook 'evil-local-mode-hook #'evil-turn-on-undo-tree-mode) @@ -443,7 +445,8 @@ the mark and entering `recursive-edit'." ;;; nXhtml/mumamo ;; ensure that mumamo does not toggle evil through its globalized mode (eval-after-load 'mumamo - '(push 'evil-mode-cmhh mumamo-change-major-mode-no-nos)) + '(with-no-warnings + (push 'evil-mode-cmhh mumamo-change-major-mode-no-nos))) (provide 'evil-integration) |
