aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJay Belanger2008-10-10 14:54:11 +0000
committerJay Belanger2008-10-10 14:54:11 +0000
commit4a65fb7ad22f7a408cc54538e935c43cf0af601e (patch)
treef4d874324db0d7f2bc2c2c15eaaaddeee06173fd /doc
parentda78ead3b562a43753dc25ffe8440dcebf8c6146 (diff)
downloademacs-4a65fb7ad22f7a408cc54538e935c43cf0af601e.tar.gz
emacs-4a65fb7ad22f7a408cc54538e935c43cf0af601e.zip
(Embedded mode overview, Customizing Embedded Mode, Customizing Calc):
Change references to `calc-embedded-open/close-word' to `calc-embedded-word-regexp'.
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/calc.texi46
1 files changed, 20 insertions, 26 deletions
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi
index 504fe5ea729..7259f77617d 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -953,9 +953,9 @@ To leave Embedded mode, type @kbd{C-x * e} again. The mode line
953and keyboard will revert to the way they were before. 953and keyboard will revert to the way they were before.
954 954
955The related command @kbd{C-x * w} operates on a single word, which 955The related command @kbd{C-x * w} operates on a single word, which
956generally means a single number, inside text. It uses any 956generally means a single number, inside text. It searches for an
957non-numeric characters rather than blank lines to delimit the 957expression which ``looks'' like a number containing the point.
958formula it reads. Here's an example of its use: 958Here's an example of its use:
959 959
960@smallexample 960@smallexample
961A slope of one-third corresponds to an angle of 1 degrees. 961A slope of one-third corresponds to an angle of 1 degrees.
@@ -30748,11 +30748,10 @@ other one, except it now uses @samp{\'} (``end-of-buffer'') and
30748of describing a blank line that is more appropriate for this 30748of describing a blank line that is more appropriate for this
30749case). 30749case).
30750 30750
30751@vindex calc-embedded-open-word 30751@vindex calc-embedded-word-regexp
30752@vindex calc-embedded-close-word 30752The @code{calc-embedded-word-regexp} variable holds a regular expression
30753The @code{calc-embedded-open-word} and @code{calc-embedded-close-word} 30753used to define an expression to look for (a ``word'') when you type
30754variables are similar expressions used when you type @kbd{C-x * w} 30754@kbd{C-x * w} to enable Embedded mode.
30755instead of @kbd{C-x * e} to enable Embedded mode.
30756 30755
30757@vindex calc-embedded-open-plain 30756@vindex calc-embedded-open-plain
30758The @code{calc-embedded-open-plain} variable is a string which 30757The @code{calc-embedded-open-plain} variable is a string which
@@ -34883,26 +34882,21 @@ It consists of a list of lists of the form
34883@code{nil}. 34882@code{nil}.
34884@end defvar 34883@end defvar
34885 34884
34886@defvar calc-embedded-open-word 34885@defvar calc-embedded-word-regexp
34887@defvarx calc-embedded-close-word 34886@defvarx calc-embedded-word-regexp-alist
34888@defvarx calc-embedded-open-close-word-alist
34889See @ref{Customizing Embedded Mode}.@* 34887See @ref{Customizing Embedded Mode}.@*
34890The variables @code{calc-embedded-open-word} and 34888The variable @code{calc-embedded-word-regexp} determines the expression
34891@code{calc-embedded-close-word} control the region that Calc will 34889that Calc will activate when Embedded mode is entered with @kbd{C-x *
34892activate when Embedded mode is entered with @kbd{C-x * w}. They are 34890w}. It is a regular expressions.
34893regular expressions. 34891
34894 34892The default value of @code{calc-embedded-word-regexp} is
34895The default values of @code{calc-embedded-open-word} and 34893@code{"[-+]?[0-9]+\\(\\.[0-9]+\\)?\\([eE][-+]?[0-9]+\\)?"}.
34896@code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and 34894
34897@code{"$\\|[^-+0-9.eE]"} respectively. 34895The variable @code{calc-embedded-word-regexp-alist} is used to
34898 34896set @code{calc-embedded-word-regexp} to a different regular
34899The variable @code{calc-embedded-open-close-word-alist} is used to 34897expression depending on the major mode of the editing buffer.
34900set @code{calc-embedded-open-word} and
34901@code{calc-embedded-close-word} to different regular
34902expressions depending on the major mode of the editing buffer.
34903It consists of a list of lists of the form 34898It consists of a list of lists of the form
34904@code{(@var{MAJOR-MODE} @var{OPEN-WORD-REGEXP} 34899@code{(@var{MAJOR-MODE} @var{WORD-REGEXP})}, and its default value is
34905@var{CLOSE-WORD-REGEXP})}, and its default value is
34906@code{nil}. 34900@code{nil}.
34907@end defvar 34901@end defvar
34908 34902