[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 12/117: Lexical binding for ergoemacs-macros
From: |
Matthew Fidler |
Subject: |
[elpa] 12/117: Lexical binding for ergoemacs-macros |
Date: |
Fri, 25 Jul 2014 13:23:52 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit eb0c99506433746835a92f357f1f82ecfaeaed4b
Author: Matthew L. Fidler <address@hidden>
Date: Mon Jul 14 09:36:52 2014 -0500
Lexical binding for ergoemacs-macros
---
ergoemacs-macros.el | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/ergoemacs-macros.el b/ergoemacs-macros.el
index 5efd7bb..11c114d 100644
--- a/ergoemacs-macros.el
+++ b/ergoemacs-macros.el
@@ -1,4 +1,4 @@
-;;; ergoemacs-macros.el --- Macros for ergoemacs-mode
+;;; ergoemacs-macros.el --- Macros for ergoemacs-mode -*- lexical-binding: t
-*-
;; Copyright © 2013, 2014 Free Software Foundation, Inc.
@@ -273,7 +273,6 @@ This has been stolen directly from ert by Christian Ohler
<address@hidden>
Afterward it was modified for use with `ergoemacs-mode' to use
additional parsing routines defined by PARSE-FUNCTION."
(let ((extracted-key-accu '())
- last-was-version
plist
(remaining keys-and-body))
;; Allow
@@ -282,12 +281,14 @@ additional parsing routines defined by PARSE-FUNCTION."
(if (condition-case nil
(stringp (first remaining))
(error nil))
- (push `(:name . ,(pop remaining)) extracted-key-accu)
- (push `(:name . ,(symbol-name (pop remaining)))
extracted-key-accu))
- (when (memq (type-of (first remaining)) '(symbol cons))
- (pop remaining))
- (when (stringp (first remaining))
- (push `(:description . ,(pop remaining)) extracted-key-accu)))
+ (push (cons ':name (pop remaining)) extracted-key-accu)
+ (push (cons ':name (symbol-name (pop remaining)))
extracted-key-accu))
+ ;; Useless logical construct to ignore byte-compile
+ ;; warning of (pop remaining).
+ (when (or (and (memq (type-of (first remaining)) '(symbol cons))
(pop remaining)) t)
+ (when (stringp (first remaining))
+ (push (cons ':description (pop remaining))
extracted-key-accu))
+ ))
(while (and (consp remaining) (keywordp (first remaining)))
(let ((keyword (pop remaining)))
(unless (consp remaining)
@@ -343,11 +344,11 @@ The rest of the body is an `ergoemacs-theme-component'
named THEME-NAME-theme
,@(nth 1 kb)))))
;;;###autoload
-(defmacro ergoemacs-deftheme (name desc based-on &rest differences)
+(defmacro ergoemacs-deftheme (name _desc based-on &rest differences)
"Creates a theme layout for Ergoemacs keybindings -- Compatability layer.
NAME is the theme name.
-DESC is the theme description
+_DESC is the theme description and is currently ignored.
BASED-ON is the base name theme that the new theme is based on.
DIFFERENCES are the differences from the layout based on the functions. These
are based on the following functions:
- [elpa] branch externals/ergoemacs-mode updated (7a30c03 -> 37cbf15), Matthew Fidler, 2014/07/25
- [elpa] 01/117: Lexical binding for ergoemacs-mode, Matthew Fidler, 2014/07/25
- [elpa] 02/117: Lexical binding for ergoemacs-modal, Matthew Fidler, 2014/07/25
- [elpa] 03/117: Lexical binding for ergoemacs-advices, Matthew Fidler, 2014/07/25
- [elpa] 05/117: Only turn on recentf-mode in interactive sessions., Matthew Fidler, 2014/07/25
- [elpa] 07/117: Lexical scoping for ergoemacs-menus, Matthew Fidler, 2014/07/25
- [elpa] 08/117: Lexical binding for ergoemacs-themes, Matthew Fidler, 2014/07/25
- [elpa] 04/117: Lexical Scoping for ergoemacs-functions, Matthew Fidler, 2014/07/25
- [elpa] 09/117: Fix copyright symbol, Matthew Fidler, 2014/07/25
- [elpa] 11/117: Fix Variable binding byte compile warnings, Matthew Fidler, 2014/07/25
- [elpa] 12/117: Lexical binding for ergoemacs-macros,
Matthew Fidler <=
- [elpa] 10/117: Lexical binding for ergoemacs-theme-engine, Matthew Fidler, 2014/07/25
- [elpa] 15/117: Don't exit if region is active., Matthew Fidler, 2014/07/25
- [elpa] 16/117: Advise describe-buffer-bindings, Matthew Fidler, 2014/07/25
- [elpa] 06/117: Lexical binding for ergoemacs-layouts., Matthew Fidler, 2014/07/25
- [elpa] 18/117: Use save-match-data with ergoemacs-pretty-key, Matthew Fidler, 2014/07/25
- [elpa] 13/117: Remove pop dependence, Matthew Fidler, 2014/07/25
- [elpa] 17/117: Add rudimentary guide-key support; F1/C-h activates guide-key, Matthew Fidler, 2014/07/25
- [elpa] 14/117: Attempt Lexical Scoping for ergoemacs-translate.el, Matthew Fidler, 2014/07/25
- [elpa] 20/117: Add left/right to pretty key descriptions, Matthew Fidler, 2014/07/25
- [elpa] 19/117: Pretty key cleanup, Matthew Fidler, 2014/07/25