1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-17 00:30:37 -08:00
emacs/lisp/cedet/srecode
Stefan Monnier 344b48f490 CEDET: Remove left-over uses of obsolete <class>-child-p predicates
Those predicates were still sometimes used in a few places, notably via
`:type ... <class>-child` which was never technically correct.

* lisp/cedet/ede/config.el (ede-extra-config, ede-project-with-config):
* lisp/cedet/ede/base.el (ede-project-placeholder): Avoid pseudo-type
`<class>-child`.

* lisp/cedet/semantic/complete.el (semantic-displayer-focus-abstract):
Move before use of `cl-typep` on it.
(semantic-complete-current-match):
* lisp/cedet/ede/speedbar.el (ede-speedbar-menu): Use `cl-typep`
instead of `<class>-child-p`.

* lisp/cedet/semantic/db.el (semanticdb-get-buffer):
Use `cl-defgeneric` for the main/default definition.
(semantic-tag-parent-buffer): Add method.

* lisp/cedet/semantic/tag-file.el (semantic-tag-parent-buffer):
New generic function extracted from `semantic-go-to-tag`.
This allows us to keep the semanticdb-table part in semantic/db and
thus break a cyclic dependency.
(semantic-go-to-tag): Use it.
Demote to a plain `defun` since it's not overloaded anywhere.

* lisp/cedet/semantic/util.el (semanticdb-abstract-table-child-p):
Remove unused declaration.

* lisp/cedet/srecode/compile.el (srecode-template-inserter-newline-child-p):
Remove unused declaration.
(srecord-compile-inserter-newline-p): New generic function, so we can
move the `srecode-template-inserter-newline` case to `srecode/insert.el`,
to avoid a cyclic dependency.

* lisp/cedet/srecode/insert.el (srecord-compile-inserter-newline-p):
New method.
2022-08-02 13:06:51 -04:00
..
args.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
compile.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
cpp.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ctxt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dictionary.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
document.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
el.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
expandproto.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
extract.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fields.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
filters.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
find.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
getset.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
insert.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
java.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
map.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
semantic.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
srt-mode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
srt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
table.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
template.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
texi.el Fix the final divergent single quote usages in doc strings 2022-05-24 18:48:50 +02:00