Menu

#95 resetreduce clears too much

None
closed
nobody
None
5
2019-03-01
2019-02-27
arpi
No

I tried to use the resetreduce command from the reset package. After that, trying to load a reduce file with the "in" comand gave the message:
Declare IN operator ? (Y or N)

also, the same happens with many other reduce internal commands, e.g. "operator", "df".

This is version 4859 on linux.

Related

Bugs: #95

Discussion

  • Francis Wright

    Francis Wright - 2019-02-27

    Are you using CSL REDUCE? If so, I suggest you try PSL REDUCE.

    On Windows, I see this problem in CSL REDUCE but not in PSL REDUCE. I also don't see it in REDUCE on SBCL, so I think it's something specific to CSL.

    Francis

    -----Original Message-----
    From: arpi lukacsarpad@users.sourceforge.net
    Sent: Wednesday, 27 February 2019 10:45 am
    To: Ticket #95: resetreduce clears too much 95@bugs.reduce- algebra.p.re.sourceforge.net
    Subject: [reduce-algebra:bugs] #95 resetreduce clears too much


    [bugs:#95] resetreduce clears too much

    Status: open
    Group:
    Created: Wed Feb 27, 2019 10:44 AM UTC by arpi Last Updated:
    Wed Feb 27, 2019 10:44 AM UTC
    Owner: nobody

    I tried to use the resetreduce command from the reset package. After that,
    trying to load a reduce file with the "in" comand gave the message:
    Declare IN operator ? (Y or N)

    also, the same happens with many other reduce internal commands, e.g.
    "operator", "df".

    This is version 4859 on linux.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/reduce-algebra/bugs/95/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #95

    • arpi

      arpi - 2019-02-27

      I am using CSL reduce. It would be quite convenient especially in the
      GUI version to use resetreduce, to make reduce forget calculations,
      but not the command line (e.g., load an edited version of the same
      file). PSL reduce at the moment does not have command line editing, so
      my use case is mostly pointless with that.
      Also, I tried resetreduce with PSL reduce. In that case, it did not
      clear variables I set (in a file loaded with the "in" command). So it
      seems, resetreduce removes too much in CSL, and not enough in PSL.

      On Wed, Feb 27, 2019 at 2:28 PM Francis Wright
      fjwright@users.sourceforge.net wrote:

      Are you using CSL REDUCE? If so, I suggest you try PSL REDUCE.

      On Windows, I see this problem in CSL REDUCE but not in PSL REDUCE. I also don't see it in REDUCE on SBCL, so I think it's something specific to CSL.

      Francis

      -----Original Message-----
      From: arpi lukacsarpad@users.sourceforge.net
      Sent: Wednesday, 27 February 2019 10:45 am
      To: Ticket #95: resetreduce clears too much 95@bugs.reduce- algebra.p.re.sourceforge.net
      Subject: [reduce-algebra:bugs] #95 resetreduce clears too much


      [bugs:#95] resetreduce clears too much

      Status: open
      Group:
      Created: Wed Feb 27, 2019 10:44 AM UTC by arpi Last Updated:
      Wed Feb 27, 2019 10:44 AM UTC
      Owner: nobody

      I tried to use the resetreduce command from the reset package. After that,
      trying to load a reduce file with the "in" comand gave the message:
      Declare IN operator ? (Y or N)

      also, the same happens with many other reduce internal commands, e.g.
      "operator", "df".

      This is version 4859 on linux.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/reduce-algebra/bugs/95/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/


      [bugs:#95] resetreduce clears too much

      Status: open
      Group:
      Created: Wed Feb 27, 2019 10:44 AM UTC by arpi
      Last Updated: Wed Feb 27, 2019 10:44 AM UTC
      Owner: nobody

      I tried to use the resetreduce command from the reset package. After that, trying to load a reduce file with the "in" comand gave the message:
      Declare IN operator ? (Y or N)

      also, the same happens with many other reduce internal commands, e.g. "operator", "df".

      This is version 4859 on linux.


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/reduce-algebra/bugs/95/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #95

      • Arthur Norman

        Arthur Norman - 2019-02-27

        I looked into this briefly. The "resetreduce" operation resets a load of
        flags back to what it thinks should be their default values. These
        defaults were selected quite a while ago, and one of them is that the
        !*raise flag is reset to T, as if "on raise;" was performed. In CSL this
        causes all input to be folded to UPPER CASE hence the word "IN" in capital
        latters in the original bug report. If one then says "!o!f!f !r!a!i!s!e;"
        it is possible to reset the sane state where lower case letters are left
        alone.

        In PSL the raise flag goes not cnvert things to upper case but instead it
        converts to whatever case most internal symbols are in. Many years ago
        that was upper case, these days it is lower case. CSL felt that that was
        an odd use of a name, and so CSL has a flag called !
        lower to fold case
        downwards.
        I suspect but have not checked that for Common Lisp much of the interbal
        world has to be spelt in UPPER CASE because at least early versions of
        Common Lisp insisted that the name was eg CAR and was not car, and it
        tended to case fold up on input and down on output in a way that
        seruiously compromises any idea of case sensitive usage.

        So I have put in a 1-line patch in packages/misc/reset.red that just
        comments out the line that leads to !*raise getting reset to something
        that is perhaps best described as historical.

        As to the rest of the behaviour, those interested csn look into the source
        file there and consider what they think should be reset and what preserved
        and perhaps propose updates.

        Arthur

        On Wed, 27 Feb 2019, arpi wrote:

        I am using CSL reduce. It would be quite convenient especially in the
        GUI version to use resetreduce, to make reduce forget calculations,
        but not the command line (e.g., load an edited version of the same
        file). PSL reduce at the moment does not have command line editing, so
        my use case is mostly pointless with that.
        Also, I tried resetreduce with PSL reduce. In that case, it did not
        clear variables I set (in a file loaded with the "in" command). So it
        seems, resetreduce removes too much in CSL, and not enough in PSL.

        On Wed, Feb 27, 2019 at 2:28 PM Francis Wright
        fjwright@users.sourceforge.net wrote:

        Are you using CSL REDUCE? If so, I suggest you try PSL REDUCE.

        On Windows, I see this problem in CSL REDUCE but not in PSL REDUCE. I also don't see it in REDUCE on SBCL, so I think it's something specific to CSL.

        Francis

        -----Original Message-----
        From: arpi lukacsarpad@users.sourceforge.net
        Sent: Wednesday, 27 February 2019 10:45 am
        To: Ticket #95: resetreduce clears too much 95@bugs.reduce- algebra.p.re.sourceforge.net
        Subject: [reduce-algebra:bugs] #95 resetreduce clears too much


        [bugs:#95] resetreduce clears too much

        Status: open
        Group:
        Created: Wed Feb 27, 2019 10:44 AM UTC by arpi Last Updated:
        Wed Feb 27, 2019 10:44 AM UTC
        Owner: nobody

        I tried to use the resetreduce command from the reset package. After that,
        trying to load a reduce file with the "in" comand gave the message:
        Declare IN operator ? (Y or N)

        also, the same happens with many other reduce internal commands, e.g.
        "operator", "df".

        This is version 4859 on linux.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/reduce-algebra/bugs/95/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        [bugs:#95] resetreduce clears too much

        Status: open
        Group:
        Created: Wed Feb 27, 2019 10:44 AM UTC by arpi
        Last Updated: Wed Feb 27, 2019 10:44 AM UTC
        Owner: nobody

        I tried to use the resetreduce command from the reset package. After that, trying to load a reduce file with the "in" comand gave the message:
        Declare IN operator ? (Y or N)

        also, the same happens with many other reduce internal commands, e.g. "operator", "df".

        This is version 4859 on linux.


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/reduce-algebra/bugs/95/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/


        [bugs:#95] resetreduce clears too much

        Status: open
        Group:
        Created: Wed Feb 27, 2019 10:44 AM UTC by arpi
        Last Updated: Wed Feb 27, 2019 10:44 AM UTC
        Owner: nobody

        I tried to use the resetreduce command from the reset package. After that, trying to load a reduce file with the "in" comand gave the message:
        Declare IN operator ? (Y or N)

        also, the same happens with many other reduce internal commands, e.g. "operator", "df".

        This is version 4859 on linux.


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/reduce-algebra/bugs/95/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #95

  • Thomas Sturm

    Thomas Sturm - 2019-02-27

    You might be interested in "redfront", which provides bash-like history, search, and editing. For instance, call rfpsl.

    Francis: Even prop() and quit are affected. The resetreduce code is probably way older than the CSL model with extensive compilation to C.

     

    Last edit: Thomas Sturm 2019-02-27
  • Rainer Schöpf

    Rainer Schöpf - 2019-03-01
    • status: open --> closed
    • Group: -->
     
  • Rainer Schöpf

    Rainer Schöpf - 2019-03-01

    Problem corrected.

     

Log in to post a comment.