diff options
| author | Jay Belanger | 2005-05-30 21:04:46 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-05-30 21:04:46 +0000 |
| commit | 651e237bbe17d60590a5a2a4394e42e06780cf6c (patch) | |
| tree | 14003c4695cee298ee65a9a889458a9b0feb4132 | |
| parent | ed65ed86e10f9a9a4112e510d46400069d44de19 (diff) | |
| download | emacs-651e237bbe17d60590a5a2a4394e42e06780cf6c.tar.gz emacs-651e237bbe17d60590a5a2a4394e42e06780cf6c.zip | |
(Hooks): Change description of calc-window-hook and
calc-trail-window-hook to match usage.
(Computational Functions): Add more constant-generating functions.
(Customizable Variables): Use defvar.
| -rw-r--r-- | man/calc.texi | 84 |
1 files changed, 41 insertions, 43 deletions
diff --git a/man/calc.texi b/man/calc.texi index 9b89282aa3d..3e8feaf1437 100644 --- a/man/calc.texi +++ b/man/calc.texi | |||
| @@ -33640,22 +33640,25 @@ example, for a rectangular complex number the result is the sum of | |||
| 33640 | the absolute values of the components. | 33640 | the absolute values of the components. |
| 33641 | @end defun | 33641 | @end defun |
| 33642 | 33642 | ||
| 33643 | @findex two-pi | 33643 | @findex e |
| 33644 | @findex gamma-const | ||
| 33645 | @findex ln-2 | ||
| 33646 | @findex ln-10 | ||
| 33647 | @findex phi | ||
| 33644 | @findex pi-over-2 | 33648 | @findex pi-over-2 |
| 33645 | @findex pi-over-4 | 33649 | @findex pi-over-4 |
| 33646 | @findex pi-over-180 | 33650 | @findex pi-over-180 |
| 33647 | @findex sqrt-two-pi | 33651 | @findex sqrt-two-pi |
| 33648 | @findex sqrt-e | 33652 | @findex sqrt-e |
| 33649 | @findex e | 33653 | @findex two-pi |
| 33650 | @findex ln-2 | ||
| 33651 | @findex ln-10 | ||
| 33652 | @defun pi | 33654 | @defun pi |
| 33653 | The function @samp{(pi)} computes @samp{pi} to the current precision. | 33655 | The function @samp{(pi)} computes @samp{pi} to the current precision. |
| 33654 | Other related constant-generating functions are @code{two-pi}, | 33656 | Other related constant-generating functions are @code{two-pi}, |
| 33655 | @code{pi-over-2}, @code{pi-over-4}, @code{pi-over-180}, @code{sqrt-two-pi}, | 33657 | @code{pi-over-2}, @code{pi-over-4}, @code{pi-over-180}, @code{sqrt-two-pi}, |
| 33656 | @code{e}, @code{sqrt-e}, @code{ln-2}, and @code{ln-10}. Each function | 33658 | @code{e}, @code{sqrt-e}, @code{ln-2}, @code{ln-10}, @code{phi} and |
| 33657 | returns a floating-point value in the current precision, and each uses | 33659 | @code{gamma-const}. Each function returns a floating-point value in the |
| 33658 | caching so that all calls after the first are essentially free. | 33660 | current precision, and each uses caching so that all calls after the |
| 33661 | first are essentially free. | ||
| 33659 | @end defun | 33662 | @end defun |
| 33660 | 33663 | ||
| 33661 | @defmac math-defcache @var{func} @var{initial} @var{form} | 33664 | @defmac math-defcache @var{func} @var{initial} @var{form} |
| @@ -34704,7 +34707,7 @@ step, before the Calc window is destroyed. | |||
| 34704 | @end defvar | 34707 | @end defvar |
| 34705 | 34708 | ||
| 34706 | @defvar calc-window-hook | 34709 | @defvar calc-window-hook |
| 34707 | If this hook exists, it is called to create the Calc window. | 34710 | If this hook is non-@code{nil}, it is called to create the Calc window. |
| 34708 | Upon return, this new Calc window should be the current window. | 34711 | Upon return, this new Calc window should be the current window. |
| 34709 | (The Calc buffer will already be the current buffer when the | 34712 | (The Calc buffer will already be the current buffer when the |
| 34710 | hook is called.) If the hook is not defined, Calc will | 34713 | hook is called.) If the hook is not defined, Calc will |
| @@ -34713,10 +34716,10 @@ and @code{select-window} to create the Calc window. | |||
| 34713 | @end defvar | 34716 | @end defvar |
| 34714 | 34717 | ||
| 34715 | @defvar calc-trail-window-hook | 34718 | @defvar calc-trail-window-hook |
| 34716 | If this hook exists, it is called to create the Calc Trail window. | 34719 | If this hook is non-@code{nil}, it is called to create the Calc Trail |
| 34717 | The variable @code{calc-trail-buffer} will contain the buffer | 34720 | window. The variable @code{calc-trail-buffer} will contain the buffer |
| 34718 | which the window should use. Unlike @code{calc-window-hook}, | 34721 | which the window should use. Unlike @code{calc-window-hook}, this hook |
| 34719 | this hook must @emph{not} switch into the new window. | 34722 | must @emph{not} switch into the new window. |
| 34720 | @end defvar | 34723 | @end defvar |
| 34721 | 34724 | ||
| 34722 | @defvar calc-edit-mode-hook | 34725 | @defvar calc-edit-mode-hook |
| @@ -34820,11 +34823,7 @@ expression is basically a pattern that Calc can search for. | |||
| 34820 | See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual} | 34823 | See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual} |
| 34821 | to see how regular expressions work. | 34824 | to see how regular expressions work. |
| 34822 | 34825 | ||
| 34823 | @table @code | 34826 | @defvar calc-settings-file |
| 34824 | |||
| 34825 | @item calc-settings-file | ||
| 34826 | |||
| 34827 | @vindex calc-settings-file | ||
| 34828 | The variable @code{calc-settings-file} holds the file name in | 34827 | The variable @code{calc-settings-file} holds the file name in |
| 34829 | which commands like @kbd{m m} and @kbd{Z P} store ``permanent'' | 34828 | which commands like @kbd{m m} and @kbd{Z P} store ``permanent'' |
| 34830 | definitions. | 34829 | definitions. |
| @@ -34834,9 +34833,9 @@ If @code{calc-settings-file} is not your user init file (typically | |||
| 34834 | exists) the first time Calc is invoked. | 34833 | exists) the first time Calc is invoked. |
| 34835 | 34834 | ||
| 34836 | The default value for this variable is @code{"~/.calc.el"}. | 34835 | The default value for this variable is @code{"~/.calc.el"}. |
| 34836 | @end defvar | ||
| 34837 | 34837 | ||
| 34838 | @item calc-gnuplot-name | 34838 | @defvar calc-gnuplot-name |
| 34839 | |||
| 34840 | See @ref{Graphics}.@* | 34839 | See @ref{Graphics}.@* |
| 34841 | The variable @code{calc-gnuplot-name} should be the name of the | 34840 | The variable @code{calc-gnuplot-name} should be the name of the |
| 34842 | GNUPLOT program (a string). If you have GNUPLOT installed on your | 34841 | GNUPLOT program (a string). If you have GNUPLOT installed on your |
| @@ -34845,10 +34844,10 @@ variable. (@pxref{Customizable Variables}) | |||
| 34845 | You may also need to set some Lisp variables to show Calc how to run | 34844 | You may also need to set some Lisp variables to show Calc how to run |
| 34846 | GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value | 34845 | GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value |
| 34847 | of @code{calc-gnuplot-name} is @code{"gnuplot"}. | 34846 | of @code{calc-gnuplot-name} is @code{"gnuplot"}. |
| 34847 | @end defvar | ||
| 34848 | 34848 | ||
| 34849 | @item calc-gnuplot-plot-command | 34849 | @defvar calc-gnuplot-plot-command |
| 34850 | @itemx calc-gnuplot-print-command | 34850 | @defvarx calc-gnuplot-print-command |
| 34851 | |||
| 34852 | See @ref{Devices, ,Graphical Devices}.@* | 34851 | See @ref{Devices, ,Graphical Devices}.@* |
| 34853 | The variables @code{calc-gnuplot-plot-command} and | 34852 | The variables @code{calc-gnuplot-plot-command} and |
| 34854 | @code{calc-gnuplot-print-command} represent system commands to | 34853 | @code{calc-gnuplot-print-command} represent system commands to |
| @@ -34861,9 +34860,9 @@ to display or print the output. | |||
| 34861 | The default value of @code{calc-gnuplot-plot-command} is @code{nil}, | 34860 | The default value of @code{calc-gnuplot-plot-command} is @code{nil}, |
| 34862 | and the default value of @code{calc-gnuplot-print-command} is | 34861 | and the default value of @code{calc-gnuplot-print-command} is |
| 34863 | @code{"lp %s"}. | 34862 | @code{"lp %s"}. |
| 34863 | @end defvar | ||
| 34864 | 34864 | ||
| 34865 | @item calc-language-alist | 34865 | @defvar calc-language-alist |
| 34866 | |||
| 34867 | See @ref{Basic Embedded Mode}.@* | 34866 | See @ref{Basic Embedded Mode}.@* |
| 34868 | The variable @code{calc-language-alist} controls the languages that | 34867 | The variable @code{calc-language-alist} controls the languages that |
| 34869 | Calc will associate with major modes. When Calc embedded mode is | 34868 | Calc will associate with major modes. When Calc embedded mode is |
| @@ -34889,9 +34888,9 @@ The default value of @code{calc-language-alist} is | |||
| 34889 | (fortran-mode . fortran) | 34888 | (fortran-mode . fortran) |
| 34890 | (f90-mode . fortran)) | 34889 | (f90-mode . fortran)) |
| 34891 | @end example | 34890 | @end example |
| 34891 | @end defvar | ||
| 34892 | 34892 | ||
| 34893 | @item calc-embedded-announce-formula | 34893 | @defvar calc-embedded-announce-formula |
| 34894 | |||
| 34895 | See @ref{Customizing Embedded Mode}.@* | 34894 | See @ref{Customizing Embedded Mode}.@* |
| 34896 | The variable @code{calc-embedded-announce-formula} helps determine | 34895 | The variable @code{calc-embedded-announce-formula} helps determine |
| 34897 | what formulas @kbd{M-# a} will activate in a buffer. It is a | 34896 | what formulas @kbd{M-# a} will activate in a buffer. It is a |
| @@ -34903,10 +34902,10 @@ activated. (Calc also uses other patterns to find formulas, such as | |||
| 34903 | The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks | 34902 | The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks |
| 34904 | for @samp{%Embed} followed by any number of lines beginning with | 34903 | for @samp{%Embed} followed by any number of lines beginning with |
| 34905 | @samp{%} and a space. | 34904 | @samp{%} and a space. |
| 34905 | @end defvar | ||
| 34906 | 34906 | ||
| 34907 | @item calc-embedded-open-formula | 34907 | @defvar calc-embedded-open-formula |
| 34908 | @itemx calc-embedded-close-formula | 34908 | @defvarx calc-embedded-close-formula |
| 34909 | |||
| 34910 | See @ref{Customizing Embedded Mode}.@* | 34909 | See @ref{Customizing Embedded Mode}.@* |
| 34911 | The variables @code{calc-embedded-open-formula} and | 34910 | The variables @code{calc-embedded-open-formula} and |
| 34912 | @code{calc-embedded-open-formula} control the region that Calc will | 34911 | @code{calc-embedded-open-formula} control the region that Calc will |
| @@ -34931,10 +34930,10 @@ Lines beginning with @samp{.EQ} and @samp{.EN} (@dfn{eqn} delimiters); | |||
| 34931 | @item | 34930 | @item |
| 34932 | Lines containing a single @samp{%} or @samp{.\"} symbol and nothing else. | 34931 | Lines containing a single @samp{%} or @samp{.\"} symbol and nothing else. |
| 34933 | @end enumerate | 34932 | @end enumerate |
| 34933 | @end defvar | ||
| 34934 | 34934 | ||
| 34935 | @item calc-embedded-open-word | 34935 | @defvar calc-embedded-open-word |
| 34936 | @itemx calc-embedded-close-word | 34936 | @defvarx calc-embedded-close-word |
| 34937 | |||
| 34938 | See @ref{Customizing Embedded Mode}.@* | 34937 | See @ref{Customizing Embedded Mode}.@* |
| 34939 | The variables @code{calc-embedded-open-word} and | 34938 | The variables @code{calc-embedded-open-word} and |
| 34940 | @code{calc-embedded-close-word} control the region that Calc will | 34939 | @code{calc-embedded-close-word} control the region that Calc will |
| @@ -34944,10 +34943,10 @@ regular expressions. | |||
| 34944 | The default values of @code{calc-embedded-open-word} and | 34943 | The default values of @code{calc-embedded-open-word} and |
| 34945 | @code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and | 34944 | @code{calc-embedded-close-word} are @code{"^\\|[^-+0-9.eE]"} and |
| 34946 | @code{"$\\|[^-+0-9.eE]"} respectively. | 34945 | @code{"$\\|[^-+0-9.eE]"} respectively. |
| 34946 | @end defvar | ||
| 34947 | 34947 | ||
| 34948 | @item calc-embedded-open-plain | 34948 | @defvar calc-embedded-open-plain |
| 34949 | @itemx calc-embedded-close-plain | 34949 | @defvarx calc-embedded-close-plain |
| 34950 | |||
| 34951 | See @ref{Customizing Embedded Mode}.@* | 34950 | See @ref{Customizing Embedded Mode}.@* |
| 34952 | The variables @code{calc-embedded-open-plain} and | 34951 | The variables @code{calc-embedded-open-plain} and |
| 34953 | @code{calc-embedded-open-plain} are used to delimit ``plain'' | 34952 | @code{calc-embedded-open-plain} are used to delimit ``plain'' |
| @@ -34960,10 +34959,10 @@ The default string for @code{calc-embedded-open-plain} is | |||
| 34960 | @code{calc-embedded-close-plain} is @code{" %%%\n"}, without | 34959 | @code{calc-embedded-close-plain} is @code{" %%%\n"}, without |
| 34961 | the trailing newline here, the first line of a Big mode formula | 34960 | the trailing newline here, the first line of a Big mode formula |
| 34962 | that followed might be shifted over with respect to the other lines. | 34961 | that followed might be shifted over with respect to the other lines. |
| 34962 | @end defvar | ||
| 34963 | 34963 | ||
| 34964 | @item calc-embedded-open-new-formula | 34964 | @defvar calc-embedded-open-new-formula |
| 34965 | @itemx calc-embedded-close-new-formula | 34965 | @defvarx calc-embedded-close-new-formula |
| 34966 | |||
| 34967 | See @ref{Customizing Embedded Mode}.@* | 34966 | See @ref{Customizing Embedded Mode}.@* |
| 34968 | The variables @code{calc-embedded-open-new-formula} and | 34967 | The variables @code{calc-embedded-open-new-formula} and |
| 34969 | @code{calc-embedded-close-new-formula} are strings which are | 34968 | @code{calc-embedded-close-new-formula} are strings which are |
| @@ -34978,10 +34977,10 @@ also @code{"\n\n"}. The final newline is omitted by @w{@kbd{M-# f}} | |||
| 34978 | if typed at the end of a line. (It follows that if @kbd{M-# f} is | 34977 | if typed at the end of a line. (It follows that if @kbd{M-# f} is |
| 34979 | typed on a blank line, both a leading opening newline and a trailing | 34978 | typed on a blank line, both a leading opening newline and a trailing |
| 34980 | closing newline are omitted.) | 34979 | closing newline are omitted.) |
| 34980 | @end defvar | ||
| 34981 | 34981 | ||
| 34982 | @item calc-embedded-open-mode | 34982 | @defvar calc-embedded-open-mode |
| 34983 | @itemx calc-embedded-close-mode | 34983 | @defvarx calc-embedded-close-mode |
| 34984 | |||
| 34985 | See @ref{Customizing Embedded Mode}.@* | 34984 | See @ref{Customizing Embedded Mode}.@* |
| 34986 | The variables @code{calc-embedded-open-mode} and | 34985 | The variables @code{calc-embedded-open-mode} and |
| 34987 | @code{calc-embedded-close-mode} are strings which Calc will place before | 34986 | @code{calc-embedded-close-mode} are strings which Calc will place before |
| @@ -34995,8 +34994,7 @@ and the default value of @code{calc-embedded-close-mode} is | |||
| 34995 | If you change the value of @code{calc-embedded-close-mode}, it is a good | 34994 | If you change the value of @code{calc-embedded-close-mode}, it is a good |
| 34996 | idea still to end with a newline so that mode annotations will appear on | 34995 | idea still to end with a newline so that mode annotations will appear on |
| 34997 | lines by themselves. | 34996 | lines by themselves. |
| 34998 | 34997 | @end defvar | |
| 34999 | @end table | ||
| 35000 | 34998 | ||
| 35001 | @node Reporting Bugs, Summary, Customizable Variables, Top | 34999 | @node Reporting Bugs, Summary, Customizable Variables, Top |
| 35002 | @appendix Reporting Bugs | 35000 | @appendix Reporting Bugs |