diff options
| author | Jay Belanger | 2005-03-22 16:13:53 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-03-22 16:13:53 +0000 |
| commit | 1dddb589fabcd1310ee58522e5eed0250d55cd34 (patch) | |
| tree | a6dc366125387484e0dd745bb3539b497db3a0b5 | |
| parent | 9e74b3fb26f6db5ca9e74a0653045d95e862787f (diff) | |
| download | emacs-1dddb589fabcd1310ee58522e5eed0250d55cd34.tar.gz emacs-1dddb589fabcd1310ee58522e5eed0250d55cd34.zip | |
(Embedded Mode): Add new information on changing modes.
| -rw-r--r-- | man/calc.texi | 25 |
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 | |||
| 29881 | like most Calc commands, but rather in regular editing buffers that | 29881 | like most Calc commands, but rather in regular editing buffers that |
| 29882 | are visiting your own files. | 29882 | are visiting your own files. |
| 29883 | 29883 | ||
| 29884 | Calc will try to guess an appropriate language based on the major mode | ||
| 29885 | of the editing buffer. (@xref{Language Modes}.) If the current buffer is | ||
| 29886 | in @code{latex-mode}, for example, Calc will set its language to La@TeX{}. | ||
| 29887 | Similarly, 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}, | ||
| 29891 | and eqn for @code{nroff-mode}. These can be overridden with Calc's mode | ||
| 29892 | changing commands (@pxref{Mode Settings in Embedded Mode}). If no | ||
| 29893 | suitable language is available, Calc will continue with its current language. | ||
| 29894 | |||
| 29884 | Calc normally scans backward and forward in the buffer for the | 29895 | Calc normally scans backward and forward in the buffer for the |
| 29885 | nearest opening and closing @dfn{formula delimiters}. The simplest | 29896 | nearest opening and closing @dfn{formula delimiters}. The simplest |
| 29886 | delimiters are blank lines. Other delimiters that Embedded mode | 29897 | delimiters are blank lines. Other delimiters that Embedded mode |
| @@ -29922,8 +29933,7 @@ forward and backward to delimit the formula. @kbd{M-# w} | |||
| 29922 | 29933 | ||
| 29923 | When you enable Embedded mode for a formula, Calc reads the text | 29934 | When you enable Embedded mode for a formula, Calc reads the text |
| 29924 | between the delimiters and tries to interpret it as a Calc formula. | 29935 | between the delimiters and tries to interpret it as a Calc formula. |
| 29925 | It's best if the current Calc language mode is correct for the | 29936 | Calc can generally identify @TeX{} formulas and |
| 29926 | formula, but Calc can generally identify @TeX{} formulas and | ||
| 29927 | Big-style formulas even if the language mode is wrong. If Calc | 29937 | Big-style formulas even if the language mode is wrong. If Calc |
| 29928 | can't make sense of the formula, it beeps and refuses to enter | 29938 | can't make sense of the formula, it beeps and refuses to enter |
| 29929 | Embedded mode. But if the current language is wrong, Calc can | 29939 | Embedded 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, | |||
| 30034 | it is parsed according to the current language mode. | 30044 | it is parsed according to the current language mode. |
| 30035 | 30045 | ||
| 30036 | Note that Calc does not change the current language mode according | 30046 | Note that Calc does not change the current language mode according |
| 30037 | to what it finds. Even though it can read a La@TeX{} formula when | 30047 | the formula it reads in. Even though it can read a La@TeX{} formula when |
| 30038 | not in La@TeX{} mode, it will immediately rewrite this formula using | 30048 | not in La@TeX{} mode, it will immediately rewrite this formula using |
| 30039 | whatever language mode is in effect. You must then type @kbd{d L} | 30049 | whatever language mode is in effect. |
| 30040 | to switch Calc permanently into La@TeX{} mode if that is what you | ||
| 30041 | desire. | ||
| 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 |
| 30452 | The mode settings can be changed while Calc is in embedded mode, but | ||
| 30453 | will 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 | |||
| 30444 | Embedded mode has a rather complicated mechanism for handling mode | 30457 | Embedded mode has a rather complicated mechanism for handling mode |
| 30445 | settings in Embedded formulas. It is possible to put annotations | 30458 | settings in Embedded formulas. It is possible to put annotations |
| 30446 | in the file that specify mode settings either global to the entire | 30459 | in the file that specify mode settings either global to the entire |