diff options
| author | Stefan Monnier | 2022-05-22 12:10:47 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-05-22 12:10:47 -0400 |
| commit | 2ca4925d2b9646493e90c660ce2b8a1bc4378e71 (patch) | |
| tree | 8f5618ae0881a38b8516a56dae09edd75b351a04 | |
| parent | 35afd1f246cf2c56dd88ea56c8960fcf49d3a7c7 (diff) | |
| download | emacs-2ca4925d2b9646493e90c660ce2b8a1bc4378e71.tar.gz emacs-2ca4925d2b9646493e90c660ce2b8a1bc4378e71.zip | |
cedet/html.el: Prefer `define-mode-local-override`
* lisp/cedet/semantic/html.el (semantic-tag-components): Override via
`define-mode-local-override`.
(semantic-default-html-setup): Don't override via
`semantic-install-function-overrides`.
| -rw-r--r-- | lisp/cedet/semantic/html.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/cedet/semantic/html.el b/lisp/cedet/semantic/html.el index 718ce3c4c74..00e19dbc892 100644 --- a/lisp/cedet/semantic/html.el +++ b/lisp/cedet/semantic/html.el | |||
| @@ -82,6 +82,11 @@ or | |||
| 82 | tag :members (mapcar #'semantic-html-expand-tag chil))) | 82 | tag :members (mapcar #'semantic-html-expand-tag chil))) |
| 83 | (car (semantic--tag-expand tag)))) | 83 | (car (semantic--tag-expand tag)))) |
| 84 | 84 | ||
| 85 | (define-mode-local-override semantic-tag-components html-mode (tag) | ||
| 86 | "Return components belonging to TAG." | ||
| 87 | ;; Keep this η-regexp because `semantic-html-components' is called | ||
| 88 | ;; from elsewhere. | ||
| 89 | (semantic-html-components tag)) | ||
| 85 | (defun semantic-html-components (tag) | 90 | (defun semantic-html-components (tag) |
| 86 | "Return components belonging to TAG." | 91 | "Return components belonging to TAG." |
| 87 | (semantic-tag-get-attribute tag :members)) | 92 | (semantic-tag-get-attribute tag :members)) |
| @@ -245,12 +250,7 @@ tag with greater section value than LEVEL is found." | |||
| 245 | senator-step-at-start-end-tag-classes '(section) | 250 | senator-step-at-start-end-tag-classes '(section) |
| 246 | senator-step-at-tag-classes '(section) | 251 | senator-step-at-tag-classes '(section) |
| 247 | semantic-stickyfunc-sticky-classes '(section) | 252 | semantic-stickyfunc-sticky-classes '(section) |
| 248 | ) | 253 | )) |
| 249 | (semantic-install-function-overrides | ||
| 250 | '((semantic-tag-components . semantic-html-components) | ||
| 251 | ) | ||
| 252 | t) | ||
| 253 | ) | ||
| 254 | 254 | ||
| 255 | ;; `html-helper-mode' hasn't been updated since 2004, so it's not very | 255 | ;; `html-helper-mode' hasn't been updated since 2004, so it's not very |
| 256 | ;; relevant nowadays. | 256 | ;; relevant nowadays. |