aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2005-03-22 16:13:53 +0000
committerJay Belanger2005-03-22 16:13:53 +0000
commit1dddb589fabcd1310ee58522e5eed0250d55cd34 (patch)
treea6dc366125387484e0dd745bb3539b497db3a0b5
parent9e74b3fb26f6db5ca9e74a0653045d95e862787f (diff)
downloademacs-1dddb589fabcd1310ee58522e5eed0250d55cd34.tar.gz
emacs-1dddb589fabcd1310ee58522e5eed0250d55cd34.zip
(Embedded Mode): Add new information on changing modes.
-rw-r--r--man/calc.texi25
1 files changed, 19 insertions, 6 deletions
diff --git a/man/calc.texi b/man/calc.texi
index 72c243c3558..c45fd8cd227 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -29881,6 +29881,17 @@ Note that @kbd{M-# e} is not to be used in the Calc stack buffer
29881like most Calc commands, but rather in regular editing buffers that 29881like most Calc commands, but rather in regular editing buffers that
29882are visiting your own files. 29882are visiting your own files.
29883 29883
29884Calc will try to guess an appropriate language based on the major mode
29885of the editing buffer. (@xref{Language Modes}.) If the current buffer is
29886in @code{latex-mode}, for example, Calc will set its language to La@TeX{}.
29887Similarly, Calc will use @TeX{} language for @code{tex-mode},
29888@code{plain-tex-mode} and @code{context-mode}, C language for
29889@code{c-mode} and @code{c++-mode}, FORTRAN language for
29890@code{fortran-mode} and @code{f90-mode}, Pascal for @code{pascal-mode},
29891and eqn for @code{nroff-mode}. These can be overridden with Calc's mode
29892changing commands (@pxref{Mode Settings in Embedded Mode}). If no
29893suitable language is available, Calc will continue with its current language.
29894
29884Calc normally scans backward and forward in the buffer for the 29895Calc normally scans backward and forward in the buffer for the
29885nearest opening and closing @dfn{formula delimiters}. The simplest 29896nearest opening and closing @dfn{formula delimiters}. The simplest
29886delimiters are blank lines. Other delimiters that Embedded mode 29897delimiters are blank lines. Other delimiters that Embedded mode
@@ -29922,8 +29933,7 @@ forward and backward to delimit the formula. @kbd{M-# w}
29922 29933
29923When you enable Embedded mode for a formula, Calc reads the text 29934When you enable Embedded mode for a formula, Calc reads the text
29924between the delimiters and tries to interpret it as a Calc formula. 29935between the delimiters and tries to interpret it as a Calc formula.
29925It's best if the current Calc language mode is correct for the 29936Calc can generally identify @TeX{} formulas and
29926formula, but Calc can generally identify @TeX{} formulas and
29927Big-style formulas even if the language mode is wrong. If Calc 29937Big-style formulas even if the language mode is wrong. If Calc
29928can't make sense of the formula, it beeps and refuses to enter 29938can't make sense of the formula, it beeps and refuses to enter
29929Embedded mode. But if the current language is wrong, Calc can 29939Embedded mode. But if the current language is wrong, Calc can
@@ -30034,11 +30044,9 @@ be written in multi-line Big mode, it is parsed in Big mode. Otherwise,
30034it is parsed according to the current language mode. 30044it is parsed according to the current language mode.
30035 30045
30036Note that Calc does not change the current language mode according 30046Note that Calc does not change the current language mode according
30037to what it finds. Even though it can read a La@TeX{} formula when 30047the formula it reads in. Even though it can read a La@TeX{} formula when
30038not in La@TeX{} mode, it will immediately rewrite this formula using 30048not in La@TeX{} mode, it will immediately rewrite this formula using
30039whatever language mode is in effect. You must then type @kbd{d L} 30049whatever language mode is in effect.
30040to switch Calc permanently into La@TeX{} mode if that is what you
30041desire.
30042 30050
30043@tex 30051@tex
30044\bigskip 30052\bigskip
@@ -30441,6 +30449,11 @@ use @kbd{M-# u} to update the buffer by hand.
30441@section Mode Settings in Embedded Mode 30449@section Mode Settings in Embedded Mode
30442 30450
30443@noindent 30451@noindent
30452The mode settings can be changed while Calc is in embedded mode, but
30453will revert to their original values when embedded mode is ended
30454(except for the modes changed while the mode-setting mode was
30455@code{Save}).
30456
30444Embedded mode has a rather complicated mechanism for handling mode 30457Embedded mode has a rather complicated mechanism for handling mode
30445settings in Embedded formulas. It is possible to put annotations 30458settings in Embedded formulas. It is possible to put annotations
30446in the file that specify mode settings either global to the entire 30459in the file that specify mode settings either global to the entire