From be0dd6570ea73286a7bfab096d05dd5e859ecf46 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Thu, 13 Apr 2000 19:04:33 +0000 Subject: [PATCH] (edebug-keywordp): Remove. Change callers to use keywordp. (edebug-spec): Enable keywordp. --- lisp/emacs-lisp/edebug.el | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 06579963ff3..fe5bd5d474e 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -306,13 +306,6 @@ except when debugging needs suggest otherwise." (setq newsymbol (make-symbol newname)))) newsymbol)) -;; Only used by CL-like code. -(defun edebug-keywordp (object) - "Return t if OBJECT is a keyword. -A keyword is a symbol that starts with `:'." - (and (symbolp object) - (= ?: (aref (symbol-name object) 0)))) - (defun edebug-lambda-list-keywordp (object) "Return t if OBJECT is a lambda list keyword. A lambda list keyword is a symbol that starts with `&'." @@ -1450,7 +1443,7 @@ expressions; a `progn' form will be returned enclosing these forms." (cond ;; Check for constant symbols that don't get wrapped. ((or (memq form '(t nil)) - (and (fboundp 'edebug-keywordp) (edebug-keywordp form))) + (keywordp form)) form) (t ;; just a variable @@ -1993,7 +1986,7 @@ expressions; a `progn' form will be returned enclosing these forms." edebug-spec-list stringp [edebug-lambda-list-keywordp &rest edebug-spec] - ;; [edebug-keywordp gate edebug-spec] ;; need edebug-keywordp for this. + [keywordp gate edebug-spec] edebug-spec-p ;; Including all the special ones e.g. form. symbolp;; a predicate )) @@ -2151,6 +2144,14 @@ expressions; a `progn' form will be returned enclosing these forms." [&optional ("interactive" interactive)] def-body)) +(def-edebug-spec easy-menu-define (symbolp body)) + +(def-edebug-spec with-custom-print body) + +(def-edebug-spec sregexq (&rest sexp)) + +(def-edebug-spec define-minor-mode (symbolp stringp body)) + ;;; The debugger itself (defvar edebug-active nil) ;; Non-nil when edebug is active -- 2.39.5