aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2003-06-30 10:42:46 +0000
committerRichard M. Stallman2003-06-30 10:42:46 +0000
commit74eee906cca8f02e46d7399c35b1051344d7d2d5 (patch)
tree70feb49b037c62cff0adc09d6869c74a284bab55
parenta68defffdafbe7e61b8db90d534c04e147b14f91 (diff)
downloademacs-74eee906cca8f02e46d7399c35b1051344d7d2d5.tar.gz
emacs-74eee906cca8f02e46d7399c35b1051344d7d2d5.zip
(Buffer Contents): Document current-word.
(Change Hooks): Not called for *Messages*.
-rw-r--r--lispref/text.texi22
1 files changed, 20 insertions, 2 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index edb0185d009..0ac3d39887f 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -224,6 +224,21 @@ This is the contents of buffer foo
224@end example 224@end example
225@end defun 225@end defun
226 226
227@tindex current-word
228@defun current-word &optional strict really-word
229This function returns the symbol (or word) at or near point, as a string.
230The return value includes no text properties.
231
232The optional argument @var{really-word} is non-@code{nil}, it finds a
233word; otherwise, it finds a symbol (which includes word characters and
234both symbol constituent characters).
235
236If the optional argument @var{strict} is non-@code{nil}, then point
237must be in or next to the symbol or word---if no symbol or word is
238there, the function returns @code{nil}. Otherwise, a nearby symbol or
239word on the same line is acceptable.
240@end defun
241
227@defun thing-at-point thing 242@defun thing-at-point thing
228Return the @var{thing} around or next to point, as a string. 243Return the @var{thing} around or next to point, as a string.
229 244
@@ -2322,7 +2337,7 @@ overlays.
2322This variable holds an alist which maps property names to a list of 2337This variable holds an alist which maps property names to a list of
2323alternative property names. If a character does not specify a direct 2338alternative property names. If a character does not specify a direct
2324value for a property, the alternative property names are consulted in 2339value for a property, the alternative property names are consulted in
2325order; the first non-nil value is used. This variable takes 2340order; the first non-@code{nil} value is used. This variable takes
2326precedence over @code{default-text-properties}, and @code{category} 2341precedence over @code{default-text-properties}, and @code{category}
2327properties take precedence over this variable. 2342properties take precedence over this variable.
2328@end defvar 2343@end defvar
@@ -3296,7 +3311,7 @@ name, then any field boundaries are ignored.
3296 3311
3297You can cause @code{constrain-to-field} to ignore all field boundaries 3312You can cause @code{constrain-to-field} to ignore all field boundaries
3298(and so never constrain anything) by binding the variable 3313(and so never constrain anything) by binding the variable
3299@code{inhibit-field-text-motion} to a non-nil value. 3314@code{inhibit-field-text-motion} to a non-@code{nil} value.
3300@end defun 3315@end defun
3301 3316
3302@node Not Intervals 3317@node Not Intervals
@@ -3715,6 +3730,9 @@ changed text, its length is simply the difference between the first two
3715arguments. 3730arguments.
3716@end defvar 3731@end defvar
3717 3732
3733 Output of messges into the @samp{*Messages*} buffer does not
3734call these functions.
3735
3718@defmac combine-after-change-calls body... 3736@defmac combine-after-change-calls body...
3719The macro executes @var{body} normally, but arranges to call the 3737The macro executes @var{body} normally, but arranges to call the
3720after-change functions just once for a series of several changes---if 3738after-change functions just once for a series of several changes---if