diff doc/interpreter/basics.txi @ 8015:30629059b72d

Update the manual to reflect the changes in error output
author sh@sh-laptop
date Wed, 06 Aug 2008 22:23:54 +0200
parents 120f3135952f
children fa78cb8d8a5c
line wrap: on
line diff
--- a/doc/interpreter/basics.txi
+++ b/doc/interpreter/basics.txi
@@ -737,8 +737,10 @@
 @example
 parse error:
 
-  functon y = f (x) y = x^2; endfunction
-          ^
+  syntax error
+
+>>> functon y = f (x) y = x^2; endfunction
+             ^
 @end example
 
 @noindent
@@ -767,9 +769,8 @@
 @smallexample
 @group
 error: `x' undefined near line 1 column 24
-error: evaluating expression near line 1, column 24
-error: evaluating assignment expression near line 1, column 22
-error: called from `f'
+error: called from:
+error:   f at line 1, column 22
 @end group
 @end smallexample
 
@@ -787,15 +788,13 @@
 indicates the input line number, which is usually displayed in the
 prompt string.
 
-The second and third lines in the example indicate that the error
-occurred within an assignment expression, and the last line of the error
-message indicates that the error occurred within the function @code{f}.
-If the function @code{f} had been called from another function, for
-example, @code{g}, the list of errors would have ended with one more
-line:
+The second and third lines in the error message indicates that the error occurred
+within the function @code{f}. If the function @code{f} had been called from
+another function, for example, @code{g}, the list of errors would have ended with
+one more line:
 
 @example
-error: called from `g'
+error:   g at line 1, column 17
 @end example
 
 These lists of function calls usually make it fairly easy to trace the