Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
72654a3c
Commit
72654a3c
authored
Apr 10, 1994
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
2a6a3549
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
16 deletions
+35
-16
lispref/hooks.texi
lispref/hooks.texi
+3
-0
lispref/text.texi
lispref/text.texi
+32
-16
No files found.
lispref/hooks.texi
View file @
72654a3c
...
...
@@ -32,12 +32,14 @@ are passed arguments, or else their values are used).
@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 @@ are passed arguments, or else their values are used).
@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
...
...
lispref/text.texi
View file @
72654a3c
...
...
@@ -2192,6 +2192,12 @@ appear on the screen. This works much like selective display. Details
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 @@ data if they do anything that uses regular expressions; otherwise, they
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
hook
s 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
function
s 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment