1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/lisp/cedet/semantic
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
..
analyze ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bovine bovine/grammar.el: Prefer define-mode-local-override 2022-05-22 11:22:29 -04:00
decorate Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
symref ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
wisent mode-local: Revert the deprecation of buffer-local overrides 2022-05-22 16:13:17 -04:00
analyze.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
bovine.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
chart.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
complete.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
ctxt.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-debug.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-ebrowse.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-el.el Remove some dubious uses of interactive-form 2022-01-24 21:31:53 -05:00
db-file.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-find.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-global.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-javascript.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-mode.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-ref.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
db-typecache.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
db.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
debug.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
decorate.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
dep.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
doc.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ede-grammar.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
edit.el ; Fix typos. 2022-07-02 13:32:41 +02:00
find.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
format.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
fw.el * lisp/cedet/semantic/fw.el: Fix typo 2022-05-22 16:27:21 -04:00
grammar.el Remove many items obsolete since 24.1 2022-07-08 14:10:38 +02:00
grm-wy-boot.el mode-local: Revert the deprecation of buffer-local overrides 2022-05-22 16:13:17 -04:00
html.el cedet/html.el: Prefer define-mode-local-override 2022-05-22 12:10:47 -04:00
ia-sb.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
ia.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
idle.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
imenu.el ; Fix mistakes in 'declare function' forms 2022-05-14 16:19:12 +03:00
java.el Remove some useless eval-when-compile 2022-07-04 14:56:11 +02:00
lex-spp.el ; Fix typos. 2022-07-02 13:32:41 +02:00
lex.el Remove some useless eval-when-compile 2022-07-04 14:56:11 +02:00
mru-bookmark.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
sb.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
scope.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
senator.el Remove some ancient Emacs compat code 2022-05-18 00:27:52 +02:00
sort.el Fix the final divergent single quote usages in doc strings 2022-05-24 18:48:50 +02:00
symref.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
tag-file.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
tag-ls.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tag-write.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
tag.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
texi.el bovine/grammar.el: Prefer define-mode-local-override 2022-05-22 11:22:29 -04:00
util-modes.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
util.el CEDET: Remove left-over uses of obsolete <class>-child-p predicates 2022-08-02 13:06:51 -04:00
wisent.el mode-local: Revert the deprecation of buffer-local overrides 2022-05-22 16:13:17 -04:00