mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Add ~44 edebug specs to CC Mode.
* lisp/progmodes/cc-cmds.el, lisp/progmodes/cc-defs.el lisp/progmodes/cc-engine.el, lisp/progmodes/cc-fonts.el lisp/progmodes/cc-langs.el: Add lots of edebug specs. * lisp/progmodes/cc-engine.el (c-state-maybe-marker): Tidy up so as to evaluate an argument only once at runtime.
This commit is contained in:
parent
8c68e4afa8
commit
aba7910e36
5 changed files with 52 additions and 4 deletions
|
|
@ -3879,9 +3879,10 @@ comment at the start of cc-engine.el for more info."
|
|||
(defmacro c-state-maybe-marker (place marker)
|
||||
;; If PLACE is non-nil, return a marker marking it, otherwise nil.
|
||||
;; We (re)use MARKER.
|
||||
`(and ,place
|
||||
(or ,marker (setq ,marker (make-marker)))
|
||||
(set-marker ,marker ,place)))
|
||||
`(let ((-place- ,place))
|
||||
(and -place-
|
||||
(or ,marker (setq ,marker (make-marker)))
|
||||
(set-marker ,marker -place-))))
|
||||
|
||||
(defun c-parse-state ()
|
||||
;; This is a wrapper over `c-parse-state-1'. See that function for a
|
||||
|
|
@ -13253,6 +13254,18 @@ Cannot combine absolute offsets %S and %S in `add' method"
|
|||
(current-column)))
|
||||
indent)))
|
||||
|
||||
|
||||
(def-edebug-spec c-bos-pop-state t)
|
||||
(def-edebug-spec c-bos-save-error-info t)
|
||||
(def-edebug-spec c-state-cache-top-lparen t)
|
||||
(def-edebug-spec c-state-cache-top-paren t)
|
||||
(def-edebug-spec c-state-cache-after-top-paren t)
|
||||
(def-edebug-spec c-state-maybe-marker (form symbolp))
|
||||
(def-edebug-spec c-record-type-id t)
|
||||
(def-edebug-spec c-record-ref-id t)
|
||||
(def-edebug-spec c-forward-keyword-prefixed-id t)
|
||||
(def-edebug-spec c-forward-id-comma-list t)
|
||||
(def-edebug-spec c-pull-open-brace (symbolp))
|
||||
|
||||
(cc-provide 'cc-engine)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue