Function: semantic-run-mode-hooks

semantic-run-mode-hooks is a function alias for run-mode-hooks, defined in subr.el.gz.

This function is obsolete since 28.1; use run-mode-hooks instead.

Signature

(semantic-run-mode-hooks &rest HOOKS)

Documentation

Run mode hooks delayed-mode-hooks and HOOKS, or delay HOOKS.

Call hack-local-variables to set up file local and directory local variables.

If the variable delay-mode-hooks(var)/delay-mode-hooks(fun) is non-nil, does not do anything, just adds the HOOKS to the list delayed-mode-hooks. Otherwise, runs hooks in the sequence: change-major-mode-after-body-hook, delayed-mode-hooks (in reverse order), HOOKS, then runs hack-local-variables (if the buffer is visiting a file), runs the hook after-change-major-mode-hook, and finally evaluates the functions in delayed-after-hook-functions (see define-derived-mode).

Major mode functions should use this instead of run-hooks when running their FOO-mode-hook.

Aliases

semantic-run-mode-hooks (obsolete since 28.1)