Variable: inhibit-modification-hooks

inhibit-modification-hooks is a variable defined in insdel.c.

Value

nil

Documentation

Non-nil means don't run any of the hooks that respond to buffer changes.

This affects before-change-functions and after-change-functions, as well as hooks attached to text properties and overlays. Setting this variable non-nil also inhibits file locks and checks whether files are locked by another Emacs session, as well as handling of the active region per select-active-regions.

To delay change hooks during a series of changes, use combine-change-calls or combine-after-change-calls(var)/combine-after-change-calls(fun) instead of binding this variable.

See also the info node (elisp) Change Hooks.

View in manual

Probably introduced at or before Emacs version 21.1.

Source Code

// Defined in /usr/src/emacs/src/insdel.c
  DEFVAR_BOOL ("inhibit-modification-hooks", inhibit_modification_hooks,
	       doc: /* Non-nil means don't run any of the hooks that respond to buffer changes.
This affects `before-change-functions' and `after-change-functions',
as well as hooks attached to text properties and overlays.
Setting this variable non-nil also inhibits file locks and checks
whether files are locked by another Emacs session, as well as
handling of the active region per `select-active-regions'.

To delay change hooks during a series of changes, use
`combine-change-calls' or `combine-after-change-calls' instead of
binding this variable.

See also the info node `(elisp) Change Hooks'.  */);