[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/hook-helpers 7981caf 06/19: Removed docstring argument fr
From: |
Ian Dunn |
Subject: |
[elpa] scratch/hook-helpers 7981caf 06/19: Removed docstring argument from `hook-helpers'. |
Date: |
Sun, 23 Apr 2017 12:50:39 -0400 (EDT) |
branch: scratch/hook-helpers
commit 7981cafd2d450adb2a6d1d063a4aa6165677031d
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Removed docstring argument from `hook-helpers'.
* hook-helpers.el (define-hook-helper):
(define-mode-hook-helper): Removed docstring argument.
---
hook-helpers.el | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/hook-helpers.el b/hook-helpers.el
index 7c83545..1cbd268 100644
--- a/hook-helpers.el
+++ b/hook-helpers.el
@@ -43,7 +43,7 @@
(defconst hook-helper--helper-prefix "hook-helper")
;;;###autoload
-(cl-defmacro define-hook-helper (hook args &optional docstring &rest body &key
name append (suffix "hook") &allow-other-keys)
+(cl-defmacro define-hook-helper (hook args &rest body &key name append (suffix
"hook") &allow-other-keys)
"Define a hook helper for the variable HOOK-hook with ARGS as the argument
list.
This helper consists of all the code in BODY. HOOK should not be
@@ -61,7 +61,7 @@ quoted. The keywords are:
‘-function’. SUFFIX should be a string, and defaults to ‘hook’
if not specified. Note that SUFFIX is not assumed to start with
a hyphen."
- (declare (indent defun) (doc-string 3))
+ (declare (indent defun))
;; From package.el - remove the keys from BODY
(while (keywordp (car body))
(setq body (cddr body)))
@@ -75,7 +75,7 @@ quoted. The keywords are:
,append))))
;;;###autoload
-(defmacro define-mode-hook-helper (mode args &optional docstring &rest body)
+(defmacro define-mode-hook-helper (mode args &rest body)
"Define hook helper for MODE.
The suffix \"-mode\" is added to MODE before passing it to
@@ -83,8 +83,8 @@ The suffix \"-mode\" is added to MODE before passing it to
BODY is passed verbatim to ‘define-hook-helper’, so all allowed
keys for that macro are allowed here."
- (declare (indent defun) (doc-string 3))
- `(define-hook-helper ,(intern (format "%s-mode" mode)) ,@body))
+ (declare (indent defun))
+ `(define-hook-helper ,(intern (format "%s-mode" mode)) ,args ,@body))
;; Add font lock for both macros.
(font-lock-add-keywords
- [elpa] branch scratch/hook-helpers created (now 365d8de), Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 597fce1 03/19: Updated README to include savannah project link., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 7981caf 06/19: Removed docstring argument from `hook-helpers'.,
Ian Dunn <=
- [elpa] scratch/hook-helpers 17f7d5d 07/19: Restored docstring argument in `define-hook-helper'., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers b373c79 08/19: Removed define-mode-hook-helpers, since it only moves the word "mode" around., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers f1409ec 05/19: Updated README to include new usage., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 73d0cb5 13/19: Added gitignore file, Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers e253e03 11/19: Implemented new design for anonymous helpers, Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 5e4a3a8 02/19: Added remove-hook-helper to README., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 706af98 15/19: Clean up describe-hook-helpers, Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 3bb2282 09/19: Updated README, removing define-mode-hook-helper., Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 7f1eccf 16/19: Fixed bug in hkhlp-normalize-hook-spec, Ian Dunn, 2017/04/23
- [elpa] scratch/hook-helpers 0386e23 04/19: Modified define-hook-helper to more closely match defun., Ian Dunn, 2017/04/23