1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-02 08:22:22 +00:00
emacs/lisp/cedet
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
..
ede CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
semantic CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
srecode CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
cedet-cscope.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cedet-files.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cedet-global.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cedet-idutils.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
cedet.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ChangeLog.1 ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
data-debug.el Remove many items obsolete since 24.1 2022-07-08 14:10:38 +02:00
ede.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
mode-local.el mode-local: Revert the deprecation of buffer-local overrides 2022-05-22 16:13:17 -04:00
pulse.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
semantic.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
srecode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00