[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 38/117: Make ergoemacs-track use lexical scoping
From: |
Matthew Fidler |
Subject: |
[elpa] 38/117: Make ergoemacs-track use lexical scoping |
Date: |
Fri, 25 Jul 2014 13:24:05 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit bc627c38df31cb07a62764f5c62e5bc32f18195f
Author: Matthew L. Fidler <address@hidden>
Date: Wed Jul 16 12:57:11 2014 -0500
Make ergoemacs-track use lexical scoping
---
ergoemacs-track.el | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/ergoemacs-track.el b/ergoemacs-track.el
index 3330ee0..5ef3ac6 100644
--- a/ergoemacs-track.el
+++ b/ergoemacs-track.el
@@ -1,4 +1,4 @@
-;;; ergoemacs-track.el --- minor mode to track layout-based distances typed
+;;; ergoemacs-track.el --- minor mode to track layout-based typed -*-
lexical-binding: t -*-
;; Copyright (C) 2013, 2014 Free Software Foundation, Inc.
@@ -115,7 +115,7 @@
(last 0)
curr)
(mapcar
- (lambda(x)
+ (lambda(_x)
(setq i (+ i 1))
(setq curr (+ last (/ ergoemacs-tab-key-width 2)))
(cond
@@ -135,7 +135,7 @@
(last 0)
curr)
(mapcar
- (lambda(x)
+ (lambda(_x)
(setq i (+ i 1))
(setq curr (+ last (/ ergoemacs-tab-key-width 2)))
(cond
@@ -249,7 +249,7 @@ LAST-PLIST is the last property list returned by this
function or nil if nothing
(kp2 (gethash (cons layout key2) ergoemacs-key-hash))
kpl kpl1
(kp12 (gethash (cons layout (cons key1 key2))
ergoemacs-key-hash))
- dx dy d dh)
+ dx dy)
(when (and (not kp12) kp1 kp2
(eq (plist-get kp1 :finger-n) (plist-get kp2
:finger-n)))
@@ -429,17 +429,17 @@ LAST-PLIST is the last property list returned by this
function or nil if nothing
(defvar ergoemacs-last-key-press nil)
-(defun ergoemacs-track-post-command-hook ()
- "Tracks the key presses."
- (let ((keys (key-description (this-command-keys)))
- dist-p)
- ;; Note that sending something like QWERTY <apps> j
- ;; Adds a key binding of C-c or C-c * key binding.
- (when ergoemacs-last-key-press
- (setq dist-p (ergoemacs-key-distance ergoemacs-last-key-press keys)))
- (setq ergoemacs-last-key-press keys)))
-
-(add-hook 'post-command-hook 'ergoemacs-track-post-command-hook)
+;; (defun ergoemacs-track-post-command-hook ()
+;; "Tracks the key presses."
+;; (let ((keys (key-description (this-command-keys)))
+;; dist-p)
+;; ;; Note that sending something like QWERTY <apps> j
+;; ;; Adds a key binding of C-c or C-c * key binding.
+;; (when ergoemacs-last-key-press
+;; (setq dist-p (ergoemacs-key-distance ergoemacs-last-key-press keys)))
+;; (setq ergoemacs-last-key-press keys)))
+
+;; (add-hook 'post-command-hook 'ergoemacs-track-post-command-hook)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; ergoemacs-track.el ends here
- [elpa] 27/117: Fix recursive loading in ergoemacs-mode source, (continued)
- [elpa] 27/117: Fix recursive loading in ergoemacs-mode source, Matthew Fidler, 2014/07/25
- [elpa] 30/117: Declare w32-long-file-name, Matthew Fidler, 2014/07/25
- [elpa] 29/117: Cleanup byte compile, Matthew Fidler, 2014/07/25
- [elpa] 31/117: More emcompassing shell prompt regexp, Matthew Fidler, 2014/07/25
- [elpa] 26/117: Fix load dependence, See Issue #232, Matthew Fidler, 2014/07/25
- [elpa] 33/117: Added space as separtor for PS1 prompt, Matthew Fidler, 2014/07/25
- [elpa] 35/117: Remap shell to ergoemacs-shell-here, Matthew Fidler, 2014/07/25
- [elpa] 28/117: Add unix shell support, Matthew Fidler, 2014/07/25
- [elpa] 36/117: Add eshell here and powershell key, Matthew Fidler, 2014/07/25
- [elpa] 37/117: Make C-u show ergoemacs-keys when unspecified, Matthew Fidler, 2014/07/25
- [elpa] 38/117: Make ergoemacs-track use lexical scoping,
Matthew Fidler <=
- [elpa] 39/117: Make ergoemacs-unbind lexically scoped, Matthew Fidler, 2014/07/25
- [elpa] 34/117: Use abbreviated file name for shell here, Matthew Fidler, 2014/07/25
- [elpa] 32/117: Took out space requirement for dirtrack-list, Matthew Fidler, 2014/07/25
- [elpa] 41/117: Remove remnants of original local-set-key advice., Matthew Fidler, 2014/07/25
- [elpa] 42/117: Possibly address Issue #276, Matthew Fidler, 2014/07/25
- [elpa] 40/117: Make ergoemacs-shortcuts lexically scoped, Matthew Fidler, 2014/07/25
- [elpa] 45/117: Merge pull request #277 from pdg137/patch-1, Matthew Fidler, 2014/07/25
- [elpa] 44/117: Use M-h instead of M-H for comint-bol., Matthew Fidler, 2014/07/25
- [elpa] 48/117: Add support for dired+ prefixes, Matthew Fidler, 2014/07/25
- [elpa] 47/117: theme component support for if/dolist/mapc/mapcar/when, Matthew Fidler, 2014/07/25