Mercurial > emacs
changeset 6782:5b07647ec8f7
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 10 Apr 1994 00:23:58 +0000 |
parents | 1196b59772d3 |
children | 3122395ded44 |
files | lispref/hooks.texi lispref/text.texi |
diffstat | 2 files changed, 35 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/lispref/hooks.texi Sat Apr 09 22:27:46 1994 +0000 +++ b/lispref/hooks.texi Sun Apr 10 00:23:58 1994 +0000 @@ -32,12 +32,14 @@ @table @code @item activate-mark-hook @item after-change-function +@item after-change-functions @item after-init-hook @item after-insert-file-functions @item after-make-frame-hook @item auto-fill-function @item auto-save-hook @item before-change-function +@item before-change-functions @item before-init-hook @item before-make-frame-hook @item blink-paren-function @@ -82,6 +84,7 @@ @item mh-letter-mode-hook @item mim-mode-hook @item minibuffer-setup-hook +@item minibuffer-exit-hook @item news-mode-hook @item news-reply-mode-hook @item news-setup-hook
--- a/lispref/text.texi Sat Apr 09 22:27:46 1994 +0000 +++ b/lispref/text.texi Sun Apr 10 00:23:58 1994 +0000 @@ -2192,6 +2192,12 @@ of this feature are likely to change in future versions, so check the @file{etc/NEWS} file in the version you are using. +@item intangible +@kindex intangible @r{(text property)} +A non-@code{nil} @code{intangible} property on a character prevents +putting point before that character. If you try, point actually goes +after the character (and after all succeeding intangible characters). + @item modification-hooks @cindex change hooks for a character @cindex hooks for changing a character @@ -2624,29 +2630,39 @@ will interfere in bizarre ways with the editing operations that call them. +@defvar before-change-functions +This variable holds a list of a functions to call before any buffer +modification. Each function gets two arguments, the beginning and end +of the region that is about to change, represented as integers. The +buffer that is about to change is always the current buffer. +@end defvar + +@defvar after-change-functions +This variable holds a list of a functions to call after any buffer +modification. Each function receives three arguments: the beginning and +end of the region just changed, and the length of the text that existed +before the change. (To get the current length, subtract the region +beginning from the region end.) All three arguments are integers. The +buffer that's about to change is always the current buffer. +@end defvar + @defvar before-change-function -If this variable is non-@code{nil}, then it should be a function; the -function is called before any buffer modification. Its arguments are -the beginning and end of the region that is about to change, -represented as integers. The buffer that is about to change is always -the current buffer. +This variable holds one function to call before any buffer modification +(or @code{nil} for no function). It is called just like the functions +in @code{before-change-functions}. @end defvar @defvar after-change-function -If this variable is non-@code{nil}, then it should be a function; the -function is called after any buffer modification. It receives three -arguments: the beginning and end of the region just changed, and the -length of the text that existed before the change. (To get the -current length, subtract the region beginning from the region end.) -All three arguments are integers. The buffer that's about to change -is always the current buffer. +This variable holds one function to call after any buffer modification +(or @code{nil} for no function). It is called just like the functions in +@code{after-change-functions}. @end defvar -Both of these variables are temporarily bound to @code{nil} during the -time that either of these hooks is running. This means that if one of +The four variables above are temporarily bound to @code{nil} during the +time that any of these functions is running. This means that if one of these functions changes the buffer, that change won't run these -functions. If you do want the hook function to run recursively, -design your hook functions to bind these variables back to their usual +functions. If you do want a hook function to make changes that run +these functions, make it bind these variables back to their usual values. @defvar first-change-hook