aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-04-13 19:04:33 +0000
committerDave Love2000-04-13 19:04:33 +0000
commitbe0dd6570ea73286a7bfab096d05dd5e859ecf46 (patch)
tree5b5734d60c3f8e8b105a96e0ae043792de28ac73
parent88d9af06cb96d67661ce930b97476b14b16a1308 (diff)
downloademacs-be0dd6570ea73286a7bfab096d05dd5e859ecf46.tar.gz
emacs-be0dd6570ea73286a7bfab096d05dd5e859ecf46.zip
(edebug-keywordp): Remove. Change callers
to use keywordp. (edebug-spec): Enable keywordp.
-rw-r--r--lisp/emacs-lisp/edebug.el19
1 files 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."
306 (setq newsymbol (make-symbol newname)))) 306 (setq newsymbol (make-symbol newname))))
307 newsymbol)) 307 newsymbol))
308 308
309;; Only used by CL-like code.
310(defun edebug-keywordp (object)
311 "Return t if OBJECT is a keyword.
312A keyword is a symbol that starts with `:'."
313 (and (symbolp object)
314 (= ?: (aref (symbol-name object) 0))))
315
316(defun edebug-lambda-list-keywordp (object) 309(defun edebug-lambda-list-keywordp (object)
317 "Return t if OBJECT is a lambda list keyword. 310 "Return t if OBJECT is a lambda list keyword.
318A lambda list keyword is a symbol that starts with `&'." 311A lambda list keyword is a symbol that starts with `&'."
@@ -1450,7 +1443,7 @@ expressions; a `progn' form will be returned enclosing these forms."
1450 (cond 1443 (cond
1451 ;; Check for constant symbols that don't get wrapped. 1444 ;; Check for constant symbols that don't get wrapped.
1452 ((or (memq form '(t nil)) 1445 ((or (memq form '(t nil))
1453 (and (fboundp 'edebug-keywordp) (edebug-keywordp form))) 1446 (keywordp form))
1454 form) 1447 form)
1455 1448
1456 (t ;; just a variable 1449 (t ;; just a variable
@@ -1993,7 +1986,7 @@ expressions; a `progn' form will be returned enclosing these forms."
1993 edebug-spec-list 1986 edebug-spec-list
1994 stringp 1987 stringp
1995 [edebug-lambda-list-keywordp &rest edebug-spec] 1988 [edebug-lambda-list-keywordp &rest edebug-spec]
1996 ;; [edebug-keywordp gate edebug-spec] ;; need edebug-keywordp for this. 1989 [keywordp gate edebug-spec]
1997 edebug-spec-p ;; Including all the special ones e.g. form. 1990 edebug-spec-p ;; Including all the special ones e.g. form.
1998 symbolp;; a predicate 1991 symbolp;; a predicate
1999 )) 1992 ))
@@ -2151,6 +2144,14 @@ expressions; a `progn' form will be returned enclosing these forms."
2151 [&optional ("interactive" interactive)] 2144 [&optional ("interactive" interactive)]
2152 def-body)) 2145 def-body))
2153 2146
2147(def-edebug-spec easy-menu-define (symbolp body))
2148
2149(def-edebug-spec with-custom-print body)
2150
2151(def-edebug-spec sregexq (&rest sexp))
2152
2153(def-edebug-spec define-minor-mode (symbolp stringp body))
2154
2154;;; The debugger itself 2155;;; The debugger itself
2155 2156
2156(defvar edebug-active nil) ;; Non-nil when edebug is active 2157(defvar edebug-active nil) ;; Non-nil when edebug is active