octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54443] clear in a user script causes the work


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #54443] clear in a user script causes the workspace panel to be updated
Date: Fri, 3 Aug 2018 19:57:24 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0

URL:
  <http://savannah.gnu.org/bugs/?54443>

                 Summary: clear in a user script causes the workspace panel to
be updated
                 Project: GNU Octave
            Submitted by: mtmiller
            Submitted on: Fri 03 Aug 2018 04:57:23 PM PDT
                Category: GUI
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

If the following is saved as a script file, testscript.m,


x = 1;
y = 2;
for i = 1:25
  pause (0.2);
endfor


then the script runs for 5 seconds, during which the GUI workspace panel stays
blank. After the script finishes completely, the workspace panel shows i, x,
and y.

If the script is changed to the following,


x = 1;
y = 2;
for i = 1:25
  clear nosuchvariable
  pause (0.2);
endfor


the 'clear' command causes the GUI workspace panel to be updated while the
script is executing, showing the value of i iterating from 1 to 25.

I don't think using the 'clear' command in a user script should trigger the
workspace panel to update unexpectedly. Normally the workspace only updates
when control is returned to the user, when a script or function call returns
to the prompt, when the debugger is activated, or when an input function such
as  'input' or 'kbhit' is called.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54443>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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