help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can we turn "Warnings" off?


From: Paul Kienzle
Subject: Re: Can we turn "Warnings" off?
Date: Mon, 28 Jan 2002 14:23:35 -0500

>From octave/src/error.c:


// Warning messages are never buffered.
// XXX FIXME XXX -- we should provide another way to turn them off...

So, no, there is no way to turn off all warning automatically.

You can however eliminate most of them if you start octave with
        octave --traditional
Or if you do "who -a" from within octave, the builtin variables
list is a set of flags for doing things to the octave interpreter,
such as 
        empty_list_elements_ok = 1
or
        implicit_str_to_num_ok = 1
Traditional sets a bunch of these variables to specific values:

        
        PS1                           = ">> "
        PS2                           = ""
        beep_on_error                 = 1
        default_save_format           = "mat-binary"
        define_all_return_values      = 1
        do_fortran_indexing           = 1
        crash_dumps_octave_core       = 0
        empty_list_elements_ok        = 1
        implicit_str_to_num_ok        = 1
        ok_to_lose_imaginary_part     = 1
        page_screen_output            = 0
        prefer_column_vectors         = 0
        print_empty_dimensions        = 0
        treat_neg_dim_as_zero         = 1
        warn_function_name_clash      = 0
        whitespace_in_literal_matrix  = "traditional"

Paul Kienzle
address@hidden

On Mon, Jan 28, 2002 at 12:12:46PM -0600, David Doolin wrote:
> 
> 
> 
> 
> Mike, 
> 
> I am pretty sure you can turn off most warnings.
> If you are on a unix box, try searching through the 
> info files for "warn" or "warning": help -i warn
> should get you started.
> 
> You will probably get massively flamed for your 
> question, just don't pay any attention it.  The 
> documentation is huge, hundreds of pages, too 
> big for busy users to master in a short period 
> of time.
> 
> 
> Generally in octave, if its something that a 
> power user would want, its probably implemented
> somehow, you just may have to dig.
> 
> help -i is your friend, if you can get to it.
> 
> Good luck,
> Dave D
> 
> 
> On Sun, 27 Jan 2002, Mike Weale wrote:
> 
> > 
> > Browsing through the past archives, I note others have also felt an =
> > occasional frustration with the eagerness with which Octave prints =
> > warnings about all sorts of things to the screen , cluttering up diary =
> > logs and the like (warnings about using empty matrices in matrix =
> > assignments is my particular bugbear).
> > 
> > MATLAB, dare I say it, is not nearly so motherly.  Mind you, probably a =
> > bad thing - better to have too many warnings than too few.  Still, it's =
> > a shame the Octave user doesn't have a choice - a handy setting in =
> > .octaverc for example.  Any chance of this in the future, or have I =
> > simply missed the post that infomed me of this feature?
> > 
> > Many thanks,
> > Mike
> > 
> > 
> > 
> > -------------------------------------------------------------
> > Octave is freely available under the terms of the GNU GPL.
> > 
> > Octave's home on the web:  http://www.octave.org
> > How to fund new projects:  http://www.octave.org/funding.html
> > Subscription information:  http://www.octave.org/archive.html
> > -------------------------------------------------------------
> > 
> > 
> 
> 
> 
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
> 
> Octave's home on the web:  http://www.octave.org
> How to fund new projects:  http://www.octave.org/funding.html
> Subscription information:  http://www.octave.org/archive.html
> -------------------------------------------------------------
> 



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]