aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2005-05-30 21:04:46 +0000
committerJay Belanger2005-05-30 21:04:46 +0000
commit651e237bbe17d60590a5a2a4394e42e06780cf6c (patch)
tree14003c4695cee298ee65a9a889458a9b0feb4132
parented65ed86e10f9a9a4112e510d46400069d44de19 (diff)
downloademacs-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.texi84
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
33640the absolute values of the components. 33640the 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
33653The function @samp{(pi)} computes @samp{pi} to the current precision. 33655The function @samp{(pi)} computes @samp{pi} to the current precision.
33654Other related constant-generating functions are @code{two-pi}, 33656Other 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
33657returns a floating-point value in the current precision, and each uses 33659@code{gamma-const}. Each function returns a floating-point value in the
33658caching so that all calls after the first are essentially free. 33660current precision, and each uses caching so that all calls after the
33661first 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
34707If this hook exists, it is called to create the Calc window. 34710If this hook is non-@code{nil}, it is called to create the Calc window.
34708Upon return, this new Calc window should be the current window. 34711Upon 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
34710hook is called.) If the hook is not defined, Calc will 34713hook 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
34716If this hook exists, it is called to create the Calc Trail window. 34719If this hook is non-@code{nil}, it is called to create the Calc Trail
34717The variable @code{calc-trail-buffer} will contain the buffer 34720window. The variable @code{calc-trail-buffer} will contain the buffer
34718which the window should use. Unlike @code{calc-window-hook}, 34721which the window should use. Unlike @code{calc-window-hook}, this hook
34719this hook must @emph{not} switch into the new window. 34722must @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.
34820See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual} 34823See @ref{Regexp Search,, Regular Expression Search, emacs, The GNU Emacs Manual}
34821to see how regular expressions work. 34824to 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
34828The variable @code{calc-settings-file} holds the file name in 34827The variable @code{calc-settings-file} holds the file name in
34829which commands like @kbd{m m} and @kbd{Z P} store ``permanent'' 34828which commands like @kbd{m m} and @kbd{Z P} store ``permanent''
34830definitions. 34829definitions.
@@ -34834,9 +34833,9 @@ If @code{calc-settings-file} is not your user init file (typically
34834exists) the first time Calc is invoked. 34833exists) the first time Calc is invoked.
34835 34834
34836The default value for this variable is @code{"~/.calc.el"}. 34835The 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
34840See @ref{Graphics}.@* 34839See @ref{Graphics}.@*
34841The variable @code{calc-gnuplot-name} should be the name of the 34840The variable @code{calc-gnuplot-name} should be the name of the
34842GNUPLOT program (a string). If you have GNUPLOT installed on your 34841GNUPLOT program (a string). If you have GNUPLOT installed on your
@@ -34845,10 +34844,10 @@ variable. (@pxref{Customizable Variables})
34845You may also need to set some Lisp variables to show Calc how to run 34844You may also need to set some Lisp variables to show Calc how to run
34846GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value 34845GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value
34847of @code{calc-gnuplot-name} is @code{"gnuplot"}. 34846of @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
34852See @ref{Devices, ,Graphical Devices}.@* 34851See @ref{Devices, ,Graphical Devices}.@*
34853The variables @code{calc-gnuplot-plot-command} and 34852The 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.
34861The default value of @code{calc-gnuplot-plot-command} is @code{nil}, 34860The default value of @code{calc-gnuplot-plot-command} is @code{nil},
34862and the default value of @code{calc-gnuplot-print-command} is 34861and 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
34867See @ref{Basic Embedded Mode}.@* 34866See @ref{Basic Embedded Mode}.@*
34868The variable @code{calc-language-alist} controls the languages that 34867The variable @code{calc-language-alist} controls the languages that
34869Calc will associate with major modes. When Calc embedded mode is 34868Calc 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
34895See @ref{Customizing Embedded Mode}.@* 34894See @ref{Customizing Embedded Mode}.@*
34896The variable @code{calc-embedded-announce-formula} helps determine 34895The variable @code{calc-embedded-announce-formula} helps determine
34897what formulas @kbd{M-# a} will activate in a buffer. It is a 34896what 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
34903The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks 34902The default pattern is @code{"%Embed\n\\(% .*\n\\)*"}, which checks
34904for @samp{%Embed} followed by any number of lines beginning with 34903for @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
34910See @ref{Customizing Embedded Mode}.@* 34909See @ref{Customizing Embedded Mode}.@*
34911The variables @code{calc-embedded-open-formula} and 34910The 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
34932Lines containing a single @samp{%} or @samp{.\"} symbol and nothing else. 34931Lines 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
34938See @ref{Customizing Embedded Mode}.@* 34937See @ref{Customizing Embedded Mode}.@*
34939The variables @code{calc-embedded-open-word} and 34938The 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.
34944The default values of @code{calc-embedded-open-word} and 34943The 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
34951See @ref{Customizing Embedded Mode}.@* 34950See @ref{Customizing Embedded Mode}.@*
34952The variables @code{calc-embedded-open-plain} and 34951The 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
34961the trailing newline here, the first line of a Big mode formula 34960the trailing newline here, the first line of a Big mode formula
34962that followed might be shifted over with respect to the other lines. 34961that 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
34967See @ref{Customizing Embedded Mode}.@* 34966See @ref{Customizing Embedded Mode}.@*
34968The variables @code{calc-embedded-open-new-formula} and 34967The 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}}
34978if typed at the end of a line. (It follows that if @kbd{M-# f} is 34977if typed at the end of a line. (It follows that if @kbd{M-# f} is
34979typed on a blank line, both a leading opening newline and a trailing 34978typed on a blank line, both a leading opening newline and a trailing
34980closing newline are omitted.) 34979closing 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
34985See @ref{Customizing Embedded Mode}.@* 34984See @ref{Customizing Embedded Mode}.@*
34986The variables @code{calc-embedded-open-mode} and 34985The 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
34995If you change the value of @code{calc-embedded-close-mode}, it is a good 34994If you change the value of @code{calc-embedded-close-mode}, it is a good
34996idea still to end with a newline so that mode annotations will appear on 34995idea still to end with a newline so that mode annotations will appear on
34997lines by themselves. 34996lines 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