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: Ben Abbott
Subject: Re: Can I protect specified variables from "clear all"
Date: Sun, 17 Jul 2016 07:53:51 -0400

> 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





reply via email to

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