[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed 52fa457512 20/22: subed-define-generic-function: ede
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed 52fa457512 20/22: subed-define-generic-function: edebug and indent like a defun |
Date: |
Tue, 1 Feb 2022 14:06:12 -0500 (EST) |
branch: elpa/subed
commit 52fa457512cda44ea24dfc3a218e830a1f89be3a
Author: Sacha Chua <sacha@sachachua.com>
Commit: Sacha Chua <sacha@sachachua.com>
subed-define-generic-function: edebug and indent like a defun
* subed/subed-common.el (subed-define-generic-function): edebug and
indent like a defun. Also, tweak how the quotes and functions are
done. Thanks to Phil Hudson for the suggestions!
---
subed/subed-common.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/subed/subed-common.el b/subed/subed-common.el
index 84804f7753..49177af10a 100644
--- a/subed/subed-common.el
+++ b/subed/subed-common.el
@@ -45,7 +45,9 @@ NAME is the part of the function name that will go after the
subed- prefix. ARGS are the arguments for the function. BODY is
the body of the function, and may include a docstring or an
interactive form."
- (declare (indent 2))
+ (declare
+ (indent defun)
+ (debug defun))
(let (is-interactive
doc)
(when (stringp (car body))
@@ -68,8 +70,8 @@ interactive form."
(unless (string-match "^&" (symbol-name
a))
a))
args))))
- `(defalias (quote ,(intern (concat "subed-" (symbol-name name))))
- (function ,(intern (concat "subed--" (symbol-name name))))
+ `(defalias ',(intern (concat "subed-" (symbol-name name)))
+ #',(intern (concat "subed--" (symbol-name name)))
,doc)))))
(subed-define-generic-function timestamp-to-msecs (time-string)
- [nongnu] elpa/subed 5c4ac92ddc 07/22: Add NEWS.org file, (continued)
- [nongnu] elpa/subed 5c4ac92ddc 07/22: Add NEWS.org file, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed f3b48e319e 16/22: Use function instead of quote in subed-define-generic-function, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 5e9518da77 18/22: Work around direct call of subed-mode by guessing format, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 5ed05ad398 02/22: Implement mode-specific functions with cl-defmethod, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 1f7e32e176 06/22: README.org: document branches, mention autoloads, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed a58b002fe9 15/22: Clean up undercover-init.el, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 3e99c6cb6f 22/22: Merge branch 'derived-mode' into main, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed b3a4ae08ab 10/22: Add missing tests for merging and subtitle ID at msecs, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 94c28993b7 21/22: Define obsolete function aliases, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 00d5525712 17/22: Add autoloads, ELPA Syncer, 2022/02/01
- [nongnu] elpa/subed 52fa457512 20/22: subed-define-generic-function: edebug and indent like a defun,
ELPA Syncer <=
- [nongnu] elpa/subed 3199cd60d8 19/22: Document subed-define-generic-function, ELPA Syncer, 2022/02/01