Mercurial > hg > octave-nkf
changeset 6501:68f3125f6e27
[project @ 2007-04-05 20:53:40 by jwe]
author | jwe |
---|---|
date | Thu, 05 Apr 2007 20:53:40 +0000 |
parents | 3ea308b4b37e |
children | 6ab0a8767780 |
files | doc/interpreter/basics.txi doc/interpreter/emacs.txi doc/interpreter/eos.txi doc/interpreter/expr.txi doc/interpreter/func.txi doc/interpreter/matrix.txi doc/interpreter/numbers.txi doc/interpreter/stmt.txi doc/interpreter/strings.txi doc/interpreter/var.txi |
diffstat | 10 files changed, 11 insertions(+), 155 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/basics.txi +++ b/doc/interpreter/basics.txi @@ -173,7 +173,6 @@ fixed_point_format = true page_screen_output = false print_empty_dimensions = false - warn_function_name_clash = false @end group @end example
--- a/doc/interpreter/emacs.txi +++ b/doc/interpreter/emacs.txi @@ -122,7 +122,7 @@ @item M-TAB Perform completion on Octave symbol preceding point, comparing that -symbol against Octave's reserved words and builtin variables +symbol against Octave's reserved words and built-in variables (@code{octave-complete-symbol}). @item M-C-a @@ -324,12 +324,9 @@ functions (such as @samp{cd} or @samp{who}) which are also reserved using @code{font-lock-keyword-face} @item -the builtin operators (@samp{&&}, @samp{<>}, @dots{}) using +the built-in operators (@samp{&&}, @samp{<>}, @dots{}) using @code{font-lock-reference-face} @item -the builtin variables (such as @samp{warn_fortran_indexing}, @samp{NaN} -or @samp{EDITOR}) in @code{font-lock-variable-name-face} -@item and the function names in function declarations in @code{font-lock-function-name-face}. @end itemize
--- a/doc/interpreter/eos.txi +++ b/doc/interpreter/eos.txi @@ -122,7 +122,7 @@ @item M-TAB Perform completion on Octave symbol preceding point, comparing that -symbol against Octave's reserved words and builtin variables +symbol against Octave's reserved words and built-in variables (@code{octave-complete-symbol}). @item M-C-a @@ -324,12 +324,9 @@ functions (such as @samp{cd} or @samp{who}) which are also reserved using @code{font-lock-keyword-face} @item -the builtin operators (@samp{&&}, @samp{<>}, @dots{}) using +the built-in operators (@samp{&&}, @samp{<>}, @dots{}) using @code{font-lock-reference-face} @item -the builtin variables (such as @samp{warn_fortran_indexing}, @samp{NaN} -or @samp{LOADPATH}) in @code{font-lock-variable-name-face} -@item and the function names in function declarations in @code{font-lock-function-name-face}. @end itemize
--- a/doc/interpreter/expr.txi +++ b/doc/interpreter/expr.txi @@ -58,12 +58,6 @@ a (:) # a column vector @end example -A warning is issued when using a single expression to index a matrix, -unless the value of the built-in variable @code{warn_fortran_indexing} -is zero. - -@DOCSTRING(warn_fortran_indexing) - Given the matrix @example @@ -118,8 +112,6 @@ size whose elements are all one, and then to scale it to produce the desired result. @xref{Special Utility Matrices}. -@DOCSTRING(warn_resize_on_range_error) - Note that it is quite inefficient to create a vector using a loop like the one shown in the example above. In this particular case, it would have been much more efficient to use the expression @@ -493,8 +485,6 @@ preferring the longest possible match at any given point, it is more useful in this case. -@DOCSTRING(warn_divide_by_zero) - @node Comparison Ops @section Comparison Operators @cindex comparison expressions
--- a/doc/interpreter/func.txi +++ b/doc/interpreter/func.txi @@ -225,8 +225,6 @@ @DOCSTRING(silent_functions) -@DOCSTRING(warn_missing_semicolon) - @node Multiple Return Values @section Multiple Return Values @@ -313,13 +311,10 @@ @end example @noindent -along with a warning if the value of the built-in variable -@code{warn_undefined_return_values} is nonzero. +along with a warning. @DOCSTRING(nargout) -@DOCSTRING(warn_undefined_return_values) - @DOCSTRING(nargchk) @node Variable-length Argument Lists @@ -445,10 +440,6 @@ @DOCSTRING(ignore_function_time_stamp) -@DOCSTRING(warn_function_name_clash) - -@DOCSTRING(warn_future_time_stamp) - @node Script Files @section Script Files @@ -736,8 +727,6 @@ a given @file{.oct} file are cleared, Octave will automatically unload the @file{.oct} file. -@DOCSTRING(warn_reload_forces_clear) - @c FIXME -- is there a better place for this? @DOCSTRING(variables_can_hide_functions)
--- a/doc/interpreter/matrix.txi +++ b/doc/interpreter/matrix.txi @@ -200,13 +200,6 @@ @DOCSTRING(diag) -@c FIXME -- is this really worth documenting? -@c -@c DOCSTRING(warn_imag_to_real) -@c -@c FIXME -- this is here because it is used by @code{ones}, -@c @code{zeros}, @code{rand}, etc. - The functions @code{linspace} and @code{logspace} make it very easy to create vectors with evenly or logarithmically spaced elements. @xref{Ranges}. @@ -215,10 +208,6 @@ @DOCSTRING(logspace) -@DOCSTRING(warn_neg_dim_as_zero) - -@DOCSTRING(warn_imag_to_real) - @node Famous Matrices @section Famous Matrices
--- a/doc/interpreter/numbers.txi +++ b/doc/interpreter/numbers.txi @@ -236,8 +236,6 @@ For clarity, it is probably best to always use commas and semicolons to separate matrix elements and rows. -@DOCSTRING(warn_separator_insert) - When you type a matrix or the name of a variable whose value is a matrix, Octave responds by printing the matrix in with neatly aligned rows and columns. If the rows of the matrix are too large to fit on the @@ -325,8 +323,6 @@ way to delete rows or columns of matrices. @xref{Assignment Ops, ,Assignment Expressions}. -@DOCSTRING(warn_empty_list_elements) - When Octave parses a matrix expression, it examines the elements of the list to determine whether they are all constants. If they are, it replaces the list with a single matrix constant.
--- a/doc/interpreter/stmt.txi +++ b/doc/interpreter/stmt.txi @@ -193,8 +193,6 @@ using the indentation to show how Octave groups the statements. @xref{Functions and Scripts}. -@DOCSTRING(warn_assign_as_truth_value) - @node The switch Statement @section The @code{switch} Statement @cindex @code{switch} statement @@ -292,8 +290,6 @@ using a jump table. @end itemize -@DOCSTRING(warn_variable_switch_label) - @node The while Statement @section The @code{while} Statement @cindex @code{while} statement @@ -363,9 +359,6 @@ body; but using one makes the program clearer unless the body is very simple. -@xref{The if Statement}, for a description of the variable -@code{warn_assign_as_truth_value}. - @node The do-until Statement @section The @code{do-until} Statement @cindex @code{do-until} statement @@ -413,9 +406,6 @@ body; but using one makes the program clearer unless the body is very simple. -@xref{The if Statement}, for a description of the variable -@code{warn_assign_as_truth_value}. - @node The for Statement @section The @code{for} Statement @cindex @code{for} statement @@ -667,22 +657,22 @@ This is useful to protect temporary changes to global variables from possible errors. For example, the following code will always restore -the original value of the built-in variable @code{warn_fortran_indexing} +the original value of the global variable @code{frobnositcate} even if an error occurs while performing the indexing operation. @example @group -save_warn_fortran_indexing = warn_fortran_indexing; +save_frobnosticate = frobnosticate; unwind_protect - warn_fortran_indexing = 1; - elt = a (idx) + frobnosticate = true; + @dots{} unwind_protect_cleanup - warn_fortran_indexing = save_warn_fortran_indexing; + frobnosticate = save_frobnosticate; end_unwind_protect @end group @end example -Without @code{unwind_protect}, the value of @var{warn_fortran_indexing} +Without @code{unwind_protect}, the value of @var{frobnosticate} would not be restored if an error occurs while performing the indexing operation because evaluation would stop at the point of the error and the statement to restore the value would not be executed.
--- a/doc/interpreter/strings.txi +++ b/doc/interpreter/strings.txi @@ -195,12 +195,6 @@ @DOCSTRING(undo_string_escapes) -@DOCSTRING(warn_num_to_str) - -@DOCSTRING(warn_str_to_num) - -@DOCSTRING(warn_single_quote_string) - @node Character Class Functions @section Character Class Functions
--- a/doc/interpreter/var.txi +++ b/doc/interpreter/var.txi @@ -382,91 +382,6 @@ @xref{Getting Help}. Default value: 1. - -@item warn_assign_as_truth_value -@xref{The if Statement}. - -Default value: 1. - -@item warn_comma_in_global_decl -@xref{Global Variables}. - -Default value: 1. - -@item warn_divide_by_zero -@xref{Arithmetic Ops}. - -Default value: 1. - -@item warn_empty_list_elements -@xref{Empty Matrices}. - -Default value: 0. - -@item warn_fortran_indexing -@xref{Index Expressions}. - -Default value: 0. - -@item warn_function_name_clash -@xref{Function Files}. - -Default value: 1. - -@item warn_imag_to_real -@xref{Special Utility Matrices}. - -Default value: 0. - -@item warn_missing_semicolon -@xref{Defining Functions}. - -Default value: 0. - -@item warn_neg_dim_as_zero -@xref{Special Utility Matrices}. - -Default value: 0. - -@item warn_num_to_str -@xref{String Conversions}. - -Default value: 1. - -@item warn_reload_forces_clear -@xref{Dynamically Linked Functions}. - -Default value: 1. - -@item warn_resize_on_range_error -@xref{Index Expressions}. - -Default value: 0. - -@item warn_separator_insert -@xref{Matrices}. - -Default value: 0. - -@item warn_single_quote_string -@xref{String Conversions}. - -Default value: 0. - -@item warn_str_to_num -@xref{String Conversions}. - -Default value: 0. - -@item warn_undefined_return_values -@xref{Multiple Return Values}. - -Default value: 0. - -@item warn_variable_switch_label -@xref{The switch Statement}. - -Default value: 0. @end vtable