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: Tatsuro MATSUOKA
Subject: Re: Can I protect specified variables from "clear all"
Date: Mon, 18 Jul 2016 07:46:27 +0900 (JST)

> From: "tmacchant 

> To: Ben Abbott ; Tatsuro MATSUOKA 
> Cc: Ben Abbott ; "help-octave
> Date: 2016/7/17, Sun 20:57
> Subject: Re: Can I protect specified variables from "clear all"
> 
>>  > On Jul 17, 2016, at 7:35 AM, Ben Abbott  
> wrote:
>>  > 
>>  >> On Jul 16, 2016, at 9:16 PM, Tatsuro MATSUOKA 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


As I wrote in bug tracker, the patch fixed my issue.

Thanks!

Tatsuro



reply via email to

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