Commit 74eee906 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Buffer Contents): Document current-word.

(Change Hooks): Not called for *Messages*.
parent a68defff
...@@ -224,6 +224,21 @@ This is the contents of buffer foo ...@@ -224,6 +224,21 @@ This is the contents of buffer foo
@end example @end example
@end defun @end defun
@tindex current-word
@defun current-word &optional strict really-word
This function returns the symbol (or word) at or near point, as a string.
The return value includes no text properties.
The optional argument @var{really-word} is non-@code{nil}, it finds a
word; otherwise, it finds a symbol (which includes word characters and
both symbol constituent characters).
If the optional argument @var{strict} is non-@code{nil}, then point
must be in or next to the symbol or word---if no symbol or word is
there, the function returns @code{nil}. Otherwise, a nearby symbol or
word on the same line is acceptable.
@end defun
@defun thing-at-point thing @defun thing-at-point thing
Return the @var{thing} around or next to point, as a string. Return the @var{thing} around or next to point, as a string.
...@@ -2322,7 +2337,7 @@ overlays. ...@@ -2322,7 +2337,7 @@ overlays.
This variable holds an alist which maps property names to a list of This variable holds an alist which maps property names to a list of
alternative property names. If a character does not specify a direct alternative property names. If a character does not specify a direct
value for a property, the alternative property names are consulted in value for a property, the alternative property names are consulted in
order; the first non-nil value is used. This variable takes order; the first non-@code{nil} value is used. This variable takes
precedence over @code{default-text-properties}, and @code{category} precedence over @code{default-text-properties}, and @code{category}
properties take precedence over this variable. properties take precedence over this variable.
@end defvar @end defvar
...@@ -3296,7 +3311,7 @@ name, then any field boundaries are ignored. ...@@ -3296,7 +3311,7 @@ name, then any field boundaries are ignored.
You can cause @code{constrain-to-field} to ignore all field boundaries You can cause @code{constrain-to-field} to ignore all field boundaries
(and so never constrain anything) by binding the variable (and so never constrain anything) by binding the variable
@code{inhibit-field-text-motion} to a non-nil value. @code{inhibit-field-text-motion} to a non-@code{nil} value.
@end defun @end defun
@node Not Intervals @node Not Intervals
...@@ -3715,6 +3730,9 @@ changed text, its length is simply the difference between the first two ...@@ -3715,6 +3730,9 @@ changed text, its length is simply the difference between the first two
arguments. arguments.
@end defvar @end defvar
Output of messges into the @samp{*Messages*} buffer does not
call these functions.
@defmac combine-after-change-calls body... @defmac combine-after-change-calls body...
The macro executes @var{body} normally, but arranges to call the The macro executes @var{body} normally, but arranges to call the
after-change functions just once for a series of several changes---if after-change functions just once for a series of several changes---if
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment