[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 59/287: Fix typo
From: |
Matthew Fidler |
Subject: |
[elpa] 59/287: Fix typo |
Date: |
Wed, 02 Jul 2014 14:44:36 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 285e70acfad6945aa56e700867426ca5b3c1090f
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 6 09:00:07 2014 -0500
Fix typo
---
ergoemacs-theme-engine.el | 39 ++++++++++++++++++---------------------
1 files changed, 18 insertions(+), 21 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index e8592be..29c7bd7 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -893,27 +893,24 @@ ergoemacs-get-keymaps-for-hook OBJ HOOK")
(defvar ergoemacs-applied-inits '())
(defmethod ergoemacs-apply-inits ((obj ergoemacs-theme-component-map-list))
- (dolist (init (ergoemacs-apply-inits obj))
- (let ((var (nth 0 init))
- (fun (nth 1 init))
- ret)
- (cond
- ((not (boundp var)) ;; Do nothing, not bound yet.
- )
- ((assq var ergoemacs-applied-inits)
- ;; Already applied, Do nothing for now.
- )
- ((and (string-match-p "-mode$" (symbol-name var))
- (ignore-errors (commandp var t)))
- (push (list var (if (symbol-value var) 1 -1))
- ergoemacs-applied-inits)
- ;; Minor mode toggle... (minor-mode deferred-arg)
- (funcall var (funcall fun)))
- (t
- ;; Variable state change
- (push (list var (symbol-value var))
- ergoemacs-applied-inits)
- (set var (funcall fun)))))))
+ (dolist (init (ergoemacs-get-inits obj))
+ (cond
+ ((not (boundp (nth 0 init))) ;; Do nothing, not bound yet.
+ )
+ ((assq (nth 0 init) ergoemacs-applied-inits)
+ ;; Already applied, Do nothing for now.
+ )
+ ((and (string-match-p "-mode$" (symbol-name (nth 0 init)))
+ (ignore-errors (commandp (nth 0 init) t)))
+ (push (list (nth 0 init) (if (symbol-value (nth 0 init)) 1 -1))
+ ergoemacs-applied-inits)
+ ;; Minor mode toggle... (minor-mode deferred-arg)
+ (funcall (nth 0 init) (funcall (nth 1 init))))
+ (t
+ ;; (Nth 0 Init)iable state change
+ (push (list (nth 0 init) (symbol-value (nth 0 init)))
+ ergoemacs-applied-inits)
+ (set (nth 0 init) (funcall (nth 1 init)))))))
(defun ergoemacs-remove-inits ()
"Remove the applied initilizations of modes and variables.
- [elpa] 57/287: Added basic variable/mode initialization routines., (continued)
- [elpa] 57/287: Added basic variable/mode initialization routines., Matthew Fidler, 2014/07/02
- [elpa] 54/287: Maps seem correct now, Matthew Fidler, 2014/07/02
- [elpa] 48/287: Unstage the incompatible, Matthew Fidler, 2014/07/02
- [elpa] 55/287: Nicer theme debugging display, Matthew Fidler, 2014/07/02
- [elpa] 56/287: Better key replacements., Matthew Fidler, 2014/07/02
- [elpa] 64/287: Replace either M-x or <execute> with M-x code., Matthew Fidler, 2014/07/02
- [elpa] 63/287: Fixed mapvar issues., Matthew Fidler, 2014/07/02
- [elpa] 47/287: Stage some components, Matthew Fidler, 2014/07/02
- [elpa] 62/287: Playing with object more., Matthew Fidler, 2014/07/02
- [elpa] 53/287: Better debug and modify keymaps fix bugs, Matthew Fidler, 2014/07/02
- [elpa] 59/287: Fix typo,
Matthew Fidler <=
- [elpa] 61/287: Ergoemacs-mode setup with object almost complete., Matthew Fidler, 2014/07/02
- [elpa] 66/287: Make ergoemacs-clean toggle debug on error, Matthew Fidler, 2014/07/02
- [elpa] 71/287: Fix isearch issues., Matthew Fidler, 2014/07/02
- [elpa] 60/287: Ensure the object-name is a string. EIEIO seems to prefer this., Matthew Fidler, 2014/07/02
- [elpa] 69/287: Install shortcut-layer appropriately for keymaps., Matthew Fidler, 2014/07/02
- [elpa] 73/287: use remove-duplicates instead, Matthew Fidler, 2014/07/02
- [elpa] 70/287: Fix most global-set-key after issues, Matthew Fidler, 2014/07/02
- [elpa] 65/287: Add more emulation alists. Less list manipulation, Matthew Fidler, 2014/07/02
- [elpa] 74/287: Fix <apps> e t bug with object interface., Matthew Fidler, 2014/07/02
- [elpa] 75/287: Only put in shortcut-hash if not removed from keymap., Matthew Fidler, 2014/07/02