[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 81/287: Added version menu back
From: |
Matthew Fidler |
Subject: |
[elpa] 81/287: Added version menu back |
Date: |
Wed, 02 Jul 2014 14:44:48 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit a72ed600673cee0d59c627bb15ee9cfb8ae77ea0
Author: Matthew L. Fidler <address@hidden>
Date: Fri Jun 13 07:23:46 2014 -0500
Added version menu back
---
ergoemacs-theme-engine.el | 38 ++++++++------------------------------
1 files changed, 8 insertions(+), 30 deletions(-)
diff --git a/ergoemacs-theme-engine.el b/ergoemacs-theme-engine.el
index 43847ee..48124f1 100644
--- a/ergoemacs-theme-engine.el
+++ b/ergoemacs-theme-engine.el
@@ -1236,7 +1236,7 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
(read-kbd-macro (key-description key) t))))
(setq final-read-map (or (and (memq (elt vector-key 0) '(3 24)) ;;
Keep `C-c' and `C-x'.
(memq (lookup-key final-read-map
(vector (elt vector-key 0))) '(ergoemacs-ctl-x ergoemacs-ctl-c))
- final-read-map)
+ final-read-map)
(ergoemacs-rm-key final-read-map key))
final-shortcut-map (ergoemacs-rm-key final-shortcut-map key)
final-map (ergoemacs-rm-key final-map key)
@@ -1353,7 +1353,9 @@ The actual keymap changes are included in
`ergoemacs-emulation-mode-map-alist'."
(defmethod ergoemacs-get-fixed-map ((obj ergoemacs-theme-component-map-list)
&optional keymap layout)
(with-slots (map-list components) obj
- (let* ((key (append (list keymap (or layout ergoemacs-keyboard-layout))
components))
+ (let* ((key (append (list keymap
+ (or layout ergoemacs-keyboard-layout)
+ (ergoemacs-theme-get-version)) components))
(ret (gethash key ergoemacs-theme-component-map-list-fixed-hash)))
(unless ret
(let ((fixed-maps (mapcar (lambda(map) (and map
(ergoemacs-get-fixed-map map keymap layout))) map-list))
@@ -1874,7 +1876,7 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(defun ergoemacs-theme-install (&optional theme version)
"Gets the keymaps for THEME for VERSION."
- (ergoemacs-theme-obj-install (ergoemacs-theme-get-obj (or theme
ergoemacs-theme) version)))
+ (ergoemacs-theme-obj-install (ergoemacs-theme-get-obj (or theme
ergoemacs-theme) (or version (ergoemacs-theme-get-version)))))
(defun ergoemacs-theme-remove ()
"Remove the currently installed theme and reset to emacs keys."
@@ -1898,33 +1900,9 @@ DONT-COLLAPSE doesn't collapse empty keymaps"
(setq key (substring key 0 (- (length key) 1)))))))
-;; FIXME
-(defun ergoemacs-theme-versions (theme)
+(defun ergoemacs-theme-versions (&optional theme version)
"Get a list of versions for the current theme."
- (let ((theme-plist (gethash (if (stringp theme) theme
- (symbol-name theme))
- ergoemacs-theme-hash))
- versions)
- (mapc
- (lambda(component)
- (let ((true-component
- (replace-regexp-in-string
- ":\\(fixed\\|variable\\)" ""
- (or (and (stringp component) component)
- (symbol-name component))))
- vers)
- (when (string-match "::\\([0-9.]+\\)$" true-component)
- (setq true-component (replace-match "" nil nil true-component)))
- (mapc
- (lambda(ver)
- (add-to-list 'versions ver))
- (gethash (concat true-component ":version")
- ergoemacs-theme-component-hash))))
- (append (plist-get theme-plist ':optional-off)
- (plist-get theme-plist ':optional-on)
- (plist-get theme-plist ':components)))
- (setq versions (sort versions 'string<))
- versions))
+ (ergoemacs-get-versions (ergoemacs-theme-get-obj theme version)))
(defun ergoemacs-theme-set-version (version)
"Sets the current themes default VERSION"
@@ -2191,7 +2169,7 @@ If OFF is non-nil, turn off the options instead."
:button (:radio . (string= ergoemacs-theme ,theme))))
(sort (ergoemacs-get-themes) 'string<))))
,(ergoemacs-keymap-menu-theme-options theme)
- ;; ,(ergoemacs-keymap-menu-theme-version theme)
+ ,(ergoemacs-keymap-menu-theme-version theme)
(ergoemacs-c-x-sep "--")
(ergoemacs-c-x-c-c
menu-item "Ctrl+C and Ctrl+X behavior"
- [elpa] 68/287: Make the caching more robust, (continued)
- [elpa] 68/287: Make the caching more robust, Matthew Fidler, 2014/07/02
- [elpa] 72/287: Fix copy objects to allow keymap versions., Matthew Fidler, 2014/07/02
- [elpa] 79/287: Fix final map to be a composed keymap that works with ergoemacs-rm-key, Matthew Fidler, 2014/07/02
- [elpa] 76/287: Only Issue 86 still persists., Matthew Fidler, 2014/07/02
- [elpa] 77/287: Ensure ergoemacs-global-override-rm-keys is a list of vectors, Matthew Fidler, 2014/07/02
- [elpa] 80/287: Reverse order to allow <apps> h z processing., Matthew Fidler, 2014/07/02
- [elpa] 82/287: Ignored keys shouldn't be in the shortcut hash, Matthew Fidler, 2014/07/02
- [elpa] 83/287: Allow ergoemacs-rm-key to remove a list, Matthew Fidler, 2014/07/02
- [elpa] 84/287: Break-out sending unread-command events, Matthew Fidler, 2014/07/02
- [elpa] 85/287: Keep track of shortcut key prefixes, Matthew Fidler, 2014/07/02
- [elpa] 81/287: Added version menu back,
Matthew Fidler <=
- [elpa] 87/287: Remove "Z" in theme component, Matthew Fidler, 2014/07/02
- [elpa] 144/287: Generate image based on options, Matthew Fidler, 2014/07/02
- [elpa] 86/287: Always suppress shortcuts in read-key-lookup, Matthew Fidler, 2014/07/02
- [elpa] 88/287: Apply defered variables/modes. Fix Issue #216, Matthew Fidler, 2014/07/02
- [elpa] 147/287: Allow emacs23 to fail., Matthew Fidler, 2014/07/02
- [elpa] 78/287: Faster ignore globally defined key, Matthew Fidler, 2014/07/02
- [elpa] 149/287: Backport `make-composed-keymap'., Matthew Fidler, 2014/07/02
- [elpa] 148/287: Fix more compiler issues and typos, Matthew Fidler, 2014/07/02
- [elpa] 145/287: pushnew instead of add-to-list, Matthew Fidler, 2014/07/02
- [elpa] 152/287: Remove emacs23 testing, Matthew Fidler, 2014/07/02