SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jorick on November 13, 2007, 09:41:41 PM

Title: Inserted or No Save lines
Post by: jorick on November 13, 2007, 09:41:41 PM
I'm working with a couple of text files.  I copied blocks of text from one file to another but when I inserted, the line is white text with a dark red background.  There are no line numbers for these lines.  When I try to save the file, these lines don't appear in the file.  According to the Color Settings dialog box, these are either Inserted Lines or No Save lines.  My guess is No Save lines since they aren't getting saved.

There's no documentation on these lines.  I don't want them there, and I need to remove the No Save attribute so I can save these lines with the rest of the file.  How do I do that and how do I disable these lines from occurring again?

TIA,

Ricky
Title: Re: Inserted or No Save lines
Post by: hs2 on November 13, 2007, 09:51:54 PM
This is an known bug (I was wondering that I'm the only one having this annoying problem..)
(see http://community.slickedit.com/index.php?topic=1881.msg7945#msg7945)
I'll quickly check if I can post my workaround here. Seems that it's working stable.
Stay tuned,
HS2
Title: Re: Inserted or No Save lines
Post by: hs2 on November 13, 2007, 10:19:47 PM
Here we go...
I've made an UNOFFICIAL hotfix for easy (un-)installation.
'Use Help>Product Updates>Load Hotfix' to install it.
Have fun,
HS2

Edit:  Updated attachment 'hotfix_se1203_clipbd.zip' (removed the commentwrap_Paste fix)
Edit2: Added 'hotfix_se1203_clipbd_comment_wrap_fix.zip' including the fixed 'commentformat.e'
Edit2: Updated 'hotfix_se1203_clipbd_comment_wrap_fix.zip' including latest fixes from David_O
Title: PASTE DOESN'T WORK!!!
Post by: jorick on November 14, 2007, 01:39:17 PM
 :o

I installed the hotfix and now paste doesn't work!  When I try to paste I get two dialog boxes up.  One is a Slick-C Error that states "Procedure commentwrap-Paste not found  file=clipbd.ex offset 4498".  The other box is Slick-C Stack that varies depending on which paste I use.  If I try a Brief paste, it contains:

 Stack trace written to file: C:\DOCUME~1\rbennet\LOCALS~1\Temp\vsstack
 Procedure commentwrap-Paste not found
clipbd.ex 4498 paste(,1)   p_window_id: 157   p_object: OI_FORM   p_name:
briefutl.ex 242 brief_paste()   p_window_id: 157   p_object: OI_FORM   p_name:

If I try a Shift-Ins paste, it contains:

 Stack trace written to file: C:\DOCUME~1\rbennet\LOCALS~1\Temp\vsstack
 Procedure commentwrap-Paste not found
clipbd.ex 4498 paste(,1)   p_window_id: 157   p_object: OI_FORM   p_name:
Title: Re: Inserted or No Save lines
Post by: hs2 on November 14, 2007, 01:53:26 PM
Oh sh$%&..., this one already contained another fix from David_O - http://community.slickedit.com/index.php?topic=2303.msg9675#msg9675
2 possibilties:
1. remove the 'commentwrap_Paste' stuff in the 'paste' command
-> easiest way: use 'fp paste' on SE cmdline

2. also load the attached 'commentformat.e' (only this file) from David_O

Sorry - HS2
Title: Re: Inserted or No Save lines
Post by: jorick on November 14, 2007, 01:57:11 PM
Too late.  I just reinstalled SlickEdit.

Your instructions wouldn't do me any good anyway.  As a newbie SE user, I have no idea what goes on inside SE.
Title: Re: Inserted or No Save lines
Post by: hs2 on November 14, 2007, 02:05:31 PM
Sorry jorick - that was not intended :(
However, I've updated the attachments for both 'versions' in the posting above in case you give it a 2nd try...
('hotfix_se1203_clipbd.zip' is the fix for the original version)
HS2
Title: Re: Inserted or No Save lines
Post by: jorick on November 14, 2007, 02:57:15 PM
I just installed the comment warp version (I assume that takes care of both problems).  It's working fine now.  Thanks!
Title: Re: Inserted or No Save lines
Post by: hs2 on November 14, 2007, 03:07:24 PM
Just to make it more save I've included the 'commentformat.e' from David_O in the 'hotfix_se1203_clipbd_comment_wrap_fix.zip' (should be 'wrap' not warp ;). So it's contains everything needed.
Attachment updated.

HS2
Title: Re: Inserted or No Save lines
Post by: jorick on November 14, 2007, 04:07:27 PM
All fixes applied but there still seems to be a bit of a problem.  Sometimes I'll copy a block but when I paste, nothing is there.  I can't get it to happen all the time and I can't seem to pin down exactly what to do to get it to fail.

I use copy-to-clipboard and brief-paste.

(Gee, I'm starting to find my way around this editor!   :) )
Title: Re: Inserted or No Save lines
Post by: Lee on November 14, 2007, 05:11:25 PM
Are the copy/paste problems all occurring when used with selective-display buffers?  I've reproduced some of the issues with CHAR and LINE selections, but I haven't been able to reproduce the issue with BLOCK selections.  Any info you can provide on clipboard issues for generating a reproducible case would be greatly appreciated.
Title: Re: Inserted or No Save lines
Post by: hs2 on November 14, 2007, 05:40:27 PM
Quote
Are the copy/paste problems all occurring when used with selective-display buffers?
Yes.

@jorick: I'm using the same setup. No problems until now with and I'm using BLOCK selections very often.
So I'll notice any problem with that soon. Maybe my workflow with copy'n paste is a bit different. But as Lee said a use case would showing the wrong behavoiur would be helpful.
I only ran into troubles with CHAR selections so the workaround only takes care about this type.

HS2
Title: Re: Inserted or No Save lines
Post by: jorick on November 14, 2007, 05:59:24 PM
The problem occurs when doing character blocks.  I don't see it when I select lines.  I do have selective display active on one of the windows but the problem occurs in other windows where selective display is off.

When the problem occurs, I go back to the selection I copied and right click on it to bring up the popup menu.  I select "Copy" and it works properly.  It also resets the problem so that the next time I copy using a keystroke, it works properly.

Title: Re: Inserted or No Save lines
Post by: jorick on November 14, 2007, 06:02:26 PM
After reading your question again, I wonder about the definition of "blocks".

I see the problem if I select some characters normally with the left mouse button.  I don't see it if I use columnar blocks (i.e. 4x7 block selected with the right mouse button).
Title: Re: Inserted or No Save lines
Post by: David_O on November 14, 2007, 06:10:25 PM
I made an update to the two files I posted on the following thread

   http://community.slickedit.com/index.php?topic=2303.0

hs2 incorporated these changes into the files he posted in this thread.  Therefore, his two files in hotfix_se1203_clipbd_comment_wrap_fix.zip need to be updated.  This is possibly what is causing your latest problem.

I have downloaded and repack hs2's file hotfix_se1203_clipbd_comment_wrap_fix.zip and attached it to this post.

Thanks,
Title: Re: Inserted or No Save lines
Post by: hs2 on November 14, 2007, 06:24:50 PM
 ;D I did the same but was interrupted before adding the announcement posting.
HS2
Title: Re: Inserted or No Save lines
Post by: donjoe on March 17, 2008, 02:15:58 PM
I just applied the hotfix from the latest attachment, but after a little editing I got bitten by the bug again. I selected a block beginning with the CRLF at the end of a comment line, I pasted it to replace the CRLF after another comment line and the CRLF on the empty line below it, and I got this second comment line marked as a "No Save Line". (See attachments. Note that those pictures are only demonstrative - I didn't get the error in that new file I used for screenshots. There must have been a further hidden factor causing this behaviour.)
Title: Re: Inserted or No Save lines
Post by: Lee on March 17, 2008, 02:36:53 PM
Did you download the latest cumulative hotfix from the SlickEdit main site?  There were some updates in the cumulative hotfix with the clipboard that should have corrected most of these problems with copy and paste with selective display buffers.  If you still have issues after that, you'll need to provide actual reproducible sample with details on how the selective display is setup.

The hotfix should should correct some of the issues, but there are still cases that are not handled correctly.  There are additional updates in the upcoming (and currently in beta) v13 release that should correct just about all issues with the clipboard and selective display.