diff options
| author | Štěpán Němec | 2020-03-31 05:38:50 +0200 |
|---|---|---|
| committer | Štěpán Němec | 2020-04-13 12:15:13 +0200 |
| commit | f84aed5fd233d59196d942acfb67bb4051c69cf1 (patch) | |
| tree | 6a096f13faea8904b23e0e975d77d3cae754bfa4 /doc | |
| parent | 81d07da788e7caea266f4a520cd9922c990d04e9 (diff) | |
| download | emacs-f84aed5fd233d59196d942acfb67bb4051c69cf1.tar.gz emacs-f84aed5fd233d59196d942acfb67bb4051c69cf1.zip | |
Clarify documentation on inhibit-modification-hooks intended usage
Cf. bug#40332 and the discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00921.html
* doc/lispref/text.texi (Change Hooks):
* src/insdel.c (syms_of_insdel): Clarify the intended usage of
'inhibit-modification-hooks'.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/text.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index f027cdf8ede..ffdf952b081 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -5776,4 +5776,11 @@ code that is itself run from a modification hook, then rebind locally | |||
| 5776 | may cause recursive calls to the modification hooks, so be sure to | 5776 | may cause recursive calls to the modification hooks, so be sure to |
| 5777 | prepare for that (for example, by binding some variable which tells | 5777 | prepare for that (for example, by binding some variable which tells |
| 5778 | your hook to do nothing). | 5778 | your hook to do nothing). |
| 5779 | |||
| 5780 | We recommend that you only bind this variable for modifications that | ||
| 5781 | do not result in lasting changes to buffer text contents (for example | ||
| 5782 | face changes or temporary modifications). If you need to delay change | ||
| 5783 | hooks during a series of changes (typically for performance reasons), | ||
| 5784 | use @code{combine-change-calls} or @code{combine-after-change-calls} | ||
| 5785 | instead. | ||
| 5779 | @end defvar | 5786 | @end defvar |