diff options
| author | Richard M. Stallman | 2003-06-30 10:42:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-06-30 10:42:46 +0000 |
| commit | 74eee906cca8f02e46d7399c35b1051344d7d2d5 (patch) | |
| tree | 70feb49b037c62cff0adc09d6869c74a284bab55 /lispref | |
| parent | a68defffdafbe7e61b8db90d534c04e147b14f91 (diff) | |
| download | emacs-74eee906cca8f02e46d7399c35b1051344d7d2d5.tar.gz emacs-74eee906cca8f02e46d7399c35b1051344d7d2d5.zip | |
(Buffer Contents): Document current-word.
(Change Hooks): Not called for *Messages*.
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/text.texi | 22 |
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 | ||
| 229 | This function returns the symbol (or word) at or near point, as a string. | ||
| 230 | The return value includes no text properties. | ||
| 231 | |||
| 232 | The optional argument @var{really-word} is non-@code{nil}, it finds a | ||
| 233 | word; otherwise, it finds a symbol (which includes word characters and | ||
| 234 | both symbol constituent characters). | ||
| 235 | |||
| 236 | If the optional argument @var{strict} is non-@code{nil}, then point | ||
| 237 | must be in or next to the symbol or word---if no symbol or word is | ||
| 238 | there, the function returns @code{nil}. Otherwise, a nearby symbol or | ||
| 239 | word on the same line is acceptable. | ||
| 240 | @end defun | ||
| 241 | |||
| 227 | @defun thing-at-point thing | 242 | @defun thing-at-point thing |
| 228 | Return the @var{thing} around or next to point, as a string. | 243 | Return the @var{thing} around or next to point, as a string. |
| 229 | 244 | ||
| @@ -2322,7 +2337,7 @@ overlays. | |||
| 2322 | This variable holds an alist which maps property names to a list of | 2337 | This variable holds an alist which maps property names to a list of |
| 2323 | alternative property names. If a character does not specify a direct | 2338 | alternative property names. If a character does not specify a direct |
| 2324 | value for a property, the alternative property names are consulted in | 2339 | value for a property, the alternative property names are consulted in |
| 2325 | order; the first non-nil value is used. This variable takes | 2340 | order; the first non-@code{nil} value is used. This variable takes |
| 2326 | precedence over @code{default-text-properties}, and @code{category} | 2341 | precedence over @code{default-text-properties}, and @code{category} |
| 2327 | properties take precedence over this variable. | 2342 | properties take precedence over this variable. |
| 2328 | @end defvar | 2343 | @end defvar |
| @@ -3296,7 +3311,7 @@ name, then any field boundaries are ignored. | |||
| 3296 | 3311 | ||
| 3297 | You can cause @code{constrain-to-field} to ignore all field boundaries | 3312 | You 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 | |||
| 3715 | arguments. | 3730 | arguments. |
| 3716 | @end defvar | 3731 | @end defvar |
| 3717 | 3732 | ||
| 3733 | Output of messges into the @samp{*Messages*} buffer does not | ||
| 3734 | call these functions. | ||
| 3735 | |||
| 3718 | @defmac combine-after-change-calls body... | 3736 | @defmac combine-after-change-calls body... |
| 3719 | The macro executes @var{body} normally, but arranges to call the | 3737 | The macro executes @var{body} normally, but arranges to call the |
| 3720 | after-change functions just once for a series of several changes---if | 3738 | after-change functions just once for a series of several changes---if |