;; Author: Artur Malabarba <bruce.connor.am@gmail.com>
;; Maintainer: Artur Malabarba <bruce.connor.am@gmail.com>
;; URL: http://github.com/Bruce-Connor/names
-;; Version: 20150114
+;; Version: 20150115.1
;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
;; Keywords: extensions lisp
;; Prefix: names
\f
;;; ---------------------------------------------------------------
;;; Variables
-(defconst names-version "20141119" "Version of the names.el package.")
+(defconst names-version "20150115.1" "Version of the names.el package.")
(defvar names--name nil
"Name of the current namespace inside the `define-namespace' macro.")
Used to define a constant and a command.")
(defconst names--keyword-list
- '((:group
- 1 (lambda (x)
- (if (or (symbolp x) (listp x))
- (setq names--group-parent x)
- (names--warn
- "Argument given to :group is not a symbol: %s" x)))
+ `((:group
+ 1 ,(lambda (x)
+ (if (or (symbolp x) (listp x))
+ (setq names--group-parent x)
+ (names--warn
+ "Argument given to :group is not a symbol: %s" x)))
"Indicate `define-namespace' should make a `defgroup' for you.
The name of the group is the package name (see :package keyword).
This keyword should be given one argument, the name of the PARENT
(:version
1
- (lambda (x)
- (if (stringp x)
- (setq names--version x)
- (names--warn
- "Argument given to :version is not a string: %s" x)))
+ ,(lambda (x)
+ (if (stringp x)
+ (setq names--version x)
+ (names--warn
+ "Argument given to :version is not a string: %s" x)))
"Indicate `define-namespace' should define the version number.
This keyword should be given one argument, a string describing
the package's version number.
(:package
1
- (lambda (x)
- (if (symbolp x)
- (setq names--package x)
- (names--warn
- "Argument given to :package is not a symbol: %s" x)))
+ ,(lambda (x)
+ (if (symbolp x)
+ (setq names--package x)
+ (names--warn
+ "Argument given to :package is not a symbol: %s" x)))
"Set the name of this package to the given symbol.
This keyword should be given one argument, a symbol corresponding
to the name of this package.
(:protection
1
- (lambda (x)
- (let ((val (symbol-name x)))
- (setq names--protection
- (format "\\`%s" (regexp-quote val)))))
+ ,(lambda (x)
+ (let ((val (symbol-name x)))
+ (setq names--protection
+ (format "\\`%s" (regexp-quote val)))))
"Change the value of the `names--protection' variable.")
(:no-let-vars
(nth 2 form)
(names-convert-form (nth 3 form))
(names-convert-form (nth 4 form))))
- (mapcar #'names-convert-form (cddr form)))))
+ (mapcar #'names-convert-form (cddr (cl-cdddr form))))))
(defun names--convert-define-minor-mode (form)
"Special treatment for `define-minor-mode' FORM."