<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Samuel<br>
      <br>
      >I might have been unclear about clear(). I meant<br>
      <tt>>--> clear  // clears everything, even all user defined
        functions and libraries</tt><tt><br>
      </tt>>is deleterious.<br>
      >clear() is useful to delete an explicit set of given
      variables. There is no project about removing it.<br>
      <br>
      I think you're right. The clear statement (without specific
      reference to anything) seems to clear a bit too much, so I've
      removed it from the initialization part of my script. Not only
      does it clear too much, but I have to reboot the computer to get
      it to behave ... at least, this solved my problem once. As with my
      other messages tonight, things seems to be "messy" and I'm not
      comfortable speaking in general terms until I have re-tested this
      over some period of time.<br>
      <br>
      P.S. Sorry for the _many_ emails today ...<br>
      <br>
      Best regards,<br>
      Claus<br>
      <br>
      On 07-09-2017 22:53, Samuel Gougeon wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:726d6e58-ae8c-b6a6-40df-3b07cdbf87ce@free.fr">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">Claus,<br>
        <br>
        I might have been unclear about clear(). I meant<br>
        <tt>--> clear  // clears everything, even all user defined
          functions and libraries</tt><tt><br>
        </tt>is deleterious. I do not really understand how you could
        use prettify() if it is not in a protected autoloaded ATOMS
        library, since it will be deleted by your "clear" statement,
        with all other things?<br>
         <br>
        clear() is useful to delete an explicit set of given variables.
        There is no project about removing it.<br>
        <br>
        About your issue: may be it's time to use the new debug()
        debugger :)<br>
        It is hard to help without being able to see and test the code
        (i don't ask for it ;)<br>
        So, IMO your best way would be using debug().<br>
        <br>
        Cheers<br>
        Samuel<br>
        <br>
        Le 07/09/2017 à 21:51, Claus Futtrup a écrit :<br>
      </div>
      <blockquote
        cite="mid:ac6e00cf-ab4f-6cd5-e986-4f4a97f46b04@gmail.com"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <div class="moz-cite-prefix">Hi Samuel<br>
          <br>
          About "clear" I looked and it's still a documented feature in
          6.0:<br>
          <a moz-do-not-send="true" class="moz-txt-link-freetext"
            href="https://help.scilab.org/docs/6.0.0/en_US/clear.html">https://help.scilab.org/docs/6.0.0/en_US/clear.html</a><br>
          <br>
          I also revisited the 6.0 Release Notes (PDF) and it lists only
          these as obsolete:<br>
          Obsolete functions or features w maxfiles is now obsolete. <br>
          w isoview(xmin,xmax,ymin,ymax) is deprecated. Please use
          isoview("on"), replot(..) instead. <br>
          w eval3d will be removed from Scilab 6.1. Please use ndgrid
          instead. <br>
          w strcmpi is deprecated. Please use strcmp(..,"i")instead. <br>
          w square will be removed from Scilab 6.1. Please use
          gcf().axes_ size and replot instead.<br>
          <br>
          ... You might be right that clear is on its way out, but I
          don't know where to find the information.<br>
          <br>
          /Claus<br>
          <br>
          On 07-09-2017 21:25, Samuel Gougeon wrote:<br>
        </div>
        <blockquote type="cite"
          cite="mid:73a0d70e-b50b-9477-67a8-fb68d8632567@free.fr">
          <meta content="text/html; charset=windows-1252"
            http-equiv="Content-Type">
          <div class="moz-cite-prefix">Hello Claus,<br>
            In Scilab, <tt>clear</tt> is deleterious. As a first hint,
            i would try commenting it before rerunning  the script.<br>
            Best regards<br>
            Samuel<br>
            <br>
            Le 06/09/2017 à 21:33, Claus Futtrup a écrit :<br>
          </div>
          <blockquote
            cite="mid:3e8abc85-aa3b-dc79-62dc-b1822c663c4a@gmail.com"
            type="cite">
            <meta http-equiv="content-type" content="text/html;
              charset=windows-1252">
            <p>Hi there</p>
            <p>I've started to use the prettify functions by Pierre
              Vuillemin. So far so good in Scilab 5.5</p>
            <p>Now I've started to look into Scilab 6 (not least because
              graphics is much faster), but I get a weird error.</p>
            <p>If I start Scilab, first time I execute the code, I get
              an "Invalid buffer." message.</p>
            <p>Second time I execute the code then I get a bad message:</p>
            <p><br>
            </p>
            <p>-->
              exec('C:\Users\claus\Documents\Scilab54\z3mfit.sce', -1)<br>
              at line    93 of executed file
              C:\Users\claus\Documents\Scilab54\z3mfit.sce<br>
              <br>
                                          'labels_font_size'  ,  3,...<br>
                                          ^^<br>
              Error: syntax error, unexpected "'", expecting "," or )<br>
            </p>
            <p><br>
            </p>
            <p>When I run my script, the first thing my code does - it
              clears all variables, all graphics and clears console, so
              it's not "old" stuff from previous run that is the
              problem. Or ???</p>
            <p>The "line 93" is part of the default options in Prettify,
              where it says labels_font_size. It looks like this:</p>
            <pre style="font-family:Monospaced;font-style:normal;font-size:16.0;"><span style="color:rgb(0,0,0);">default_options</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">struct</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">title_font_size</span><span style="color:rgb(188,143,143);">'</span>   <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">4</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">labels_font_size</span><span style="color:rgb(188,143,143);">'</span>  <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">thicks_font_size</span><span style="color:rgb(188,143,143);">'</span>  <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">num_format</span><span style="color:rgb(188,143,143);">'</span>        <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">leg_font_size</span><span style="color:rgb(188,143,143);">'</span>     <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">line_thickness</span><span style="color:rgb(188,143,143);">'</span>    <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">xstring_font_size</span><span style="color:rgb(188,143,143);">'</span> <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span></pre>
            <p>Can anyone spot, what is the problem?<br>
            </p>
            <p>P.S. This part of the code is in a section that is
              controlled by an if-statement, and even if I make sure the
              condition is false (so that the Prettify code is not
              executed), Scilab still spits out this error. It's really
              weird - and even weirder it doesn't get the error the
              first time that the code is executed.<br>
            </p>
            <p>P.S. My entire code is ca. 915 lines long + requires
              input data, so I prefer not to attach it to a post here in
              the mailing list.</p>
            <p>Best regards,</p>
            <p>Claus<br>
            </p>
          </blockquote>
          <br>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
        </blockquote>
        <p><br>
        </p>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org" moz-do-not-send="true">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users" moz-do-not-send="true">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
      </blockquote>
      <p><br>
      </p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>