Commit 4a65fb7a authored by Jay Belanger's avatar Jay Belanger
Browse files

(Embedded mode overview, Customizing Embedded Mode, Customizing Calc):

Change references to `calc-embedded-open/close-word' to
`calc-embedded-word-regexp'.
parent da78ead3
...@@ -953,9 +953,9 @@ To leave Embedded mode, type @kbd{C-x * e} again. The mode line ...@@ -953,9 +953,9 @@ To leave Embedded mode, type @kbd{C-x * e} again. The mode line
and keyboard will revert to the way they were before. and keyboard will revert to the way they were before.
   
The related command @kbd{C-x * w} operates on a single word, which The related command @kbd{C-x * w} operates on a single word, which
generally means a single number, inside text. It uses any generally means a single number, inside text. It searches for an
non-numeric characters rather than blank lines to delimit the expression which ``looks'' like a number containing the point.
formula it reads. Here's an example of its use: Here's an example of its use:
   
@smallexample @smallexample
A slope of one-third corresponds to an angle of 1 degrees. A 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 ...@@ -30748,11 +30748,10 @@ other one, except it now uses @samp{\'} (``end-of-buffer'') and
of describing a blank line that is more appropriate for this of describing a blank line that is more appropriate for this
case). case).
   
@vindex calc-embedded-open-word @vindex calc-embedded-word-regexp
@vindex calc-embedded-close-word The @code{calc-embedded-word-regexp} variable holds a regular expression
The @code{calc-embedded-open-word} and @code{calc-embedded-close-word} used to define an expression to look for (a ``word'') when you type
variables are similar expressions used when you type @kbd{C-x * w} @kbd{C-x * w} to enable Embedded mode.
instead of @kbd{C-x * e} to enable Embedded mode.
   
@vindex calc-embedded-open-plain @vindex calc-embedded-open-plain
The @code{calc-embedded-open-plain} variable is a string which The @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,26 +34882,21 @@ It consists of a list of lists of the form
@code{nil}. @code{nil}.
@end defvar @end defvar
   
@defvar calc-embedded-open-word @defvar calc-embedded-word-regexp
@defvarx calc-embedded-close-word @defvarx calc-embedded-word-regexp-alist
@defvarx calc-embedded-open-close-word-alist
See @ref{Customizing Embedded Mode}.@* See @ref{Customizing Embedded Mode}.@*
The variables @code{calc-embedded-open-word} and The variable @code{calc-embedded-word-regexp} determines the expression
@code{calc-embedded-close-word} control the region that Calc will that Calc will activate when Embedded mode is entered with @kbd{C-x *
activate when Embedded mode is entered with @kbd{C-x * w}. They are w}. It is a regular expressions.
regular expressions.
The default value of @code{calc-embedded-word-regexp} is
The default values of @code{calc-embedded-open-word} and @code{"[-+]?[0-9]+\\(\\.[0-9]+\\)?\\([eE][-+]?[0-9]+\\)?"}.
@code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and
@code{"$\\|[^-+0-9.eE]"} respectively. The variable @code{calc-embedded-word-regexp-alist} is used to
set @code{calc-embedded-word-regexp} to a different regular
The variable @code{calc-embedded-open-close-word-alist} is used to expression depending on the major mode of the editing buffer.
set @code{calc-embedded-open-word} and
@code{calc-embedded-close-word} to different regular
expressions depending on the major mode of the editing buffer.
It consists of a list of lists of the form It consists of a list of lists of the form
@code{(@var{MAJOR-MODE} @var{OPEN-WORD-REGEXP} @code{(@var{MAJOR-MODE} @var{WORD-REGEXP})}, and its default value is
@var{CLOSE-WORD-REGEXP})}, and its default value is
@code{nil}. @code{nil}.
@end defvar @end defvar
   
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