Menu

#321 After Copy and Get with Prefix macros -- odd artifact

4.0
pending-fixed
5
2025-07-03
2025-07-02
No

I'm editing two files in a ring. Using prefix macros/commands I copy a line from one file and use a prefix macro to 'Get' it (insert) into a second file. The line is inserted with a strange/old artifact on the screen. See attached image.

1 Attachments

Discussion

  • Warren T. Van Wyck

    P.S. Not an issue with THE 3.3 RC 8. aka version THE 3.3 UNIX 27-Jun-2020 Linux

     
  • Mark Hessling

    Mark Hessling - 2025-07-02
    • assigned_to: Mark Hessling
     
  • Mark Hessling

    Mark Hessling - 2025-07-02

    Warren, please provide the code for the prefix macros that cause the error so I can reproduce the problem.

     
  • Warren T. Van Wyck

    For the record, I'm using AlmaLinux 9.6 and configured THE with
    ./configure --with-rexx=regina --with-curses=ncurses

    The prfget.the macro goes back over 30 years to CMS-Xedit days. See attached.
    Still compat XEDIT XEDIT XEDIT for me -- old dog.

     
  • Warren T. Van Wyck

    and

     
  • Warren T. Van Wyck

    steps after entering 'the file2.txt file1.txt '

     
  • Warren T. Van Wyck

    Lastly, trace with prfget.the and the temp file -- see attached.

     
  • Warren T. Van Wyck

    in execute.c I commented out:

    /*~~~
    
    
        * If there is no second argument, no filename supplied...
    */
    if ( target.spare == (-1) )
    {
    append = FALSE;
    filename = tempfilename;
    /* WVW  07/03/25
    fprintf(stderr, "1:%s\n",filename);
    */
    }
    else
    {
    

    ~~~

    The spurious artifact no longer appears.

     
  • Mark Hessling

    Mark Hessling - 2025-07-03
    • status: open --> pending-fixed
     
  • Mark Hessling

    Mark Hessling - 2025-07-03

    Thanks for finding and reporting the bug Warren.

     

Log in to post a comment.

Monday.com Logo