help-octave
[Top][All Lists]
Advanced

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

Re: Can I protect specified variables from "clear all"


From: address@hidden
Subject: Re: Can I protect specified variables from "clear all"
Date: Sun, 17 Jul 2016 20:57:58 +0900 (JST)

> > On Jul 17, 2016, at 7:35 AM, Ben Abbott <address@hidden> wrote:
> > 
> >> On Jul 16, 2016, at 9:16 PM, Tatsuro MATSUOKA <address@hidden> wrote:
> >> 
> >> Hello
> >> 
> >> Some scripts given from other people includes
> >> 
> >> clear all;
> >> 
> >> at the top.
> >> 
> >> However this clear unwanted variables e.g. gnuplot_binary.
> >> 
> >> Can I do this?
> >> 
> >> I have consulted "help clear" and I cannot get useful information.
> >> 
> >> Thanks in advance.
> >> 
> >> Tatsuro
> > 
> > If you are building octave and would like to permanently change the default 
> > name for gnuplot, you can set the name during configure.
> > 
> > Otherwise, “mlock ()” can be added to gnuplot_binary.m. This will prevent 
> > gnuplot_binary from being cleared and should also preserve the persistent 
> > variables “gp_binary” and “gp_args”. imo, “mlock ()” should be present. 
> > Perhaps this is a bug?
> > 
> > Ben
> 
> I’ve opened a bug and sumitted a patch.
> 
> https://savannah.gnu.org/bugs/index.php?48542
> 
> Tatsuro, can you test the patch?
> 
> Ben
> 
I appreciate for your help.  l will test tomorrow and report results in the bug 
tracker.

Tatsuro



reply via email to

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