Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Martin Frb via Lazarus

On 15/07/2018 14:39, Vojtěch Čihák via Lazarus wrote:


Hi,

I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried 
also with -dDisableUTF8RTL


All works well with two exceptions:

1) folded block is copied folded only in implementation section. In 
interface section become unfolded (for example block TForm1 = 
class(TForm)...)




Just tested, seems to depend:

if I paste it (folded TForm) into the "type" section, then it works. 
Otherwise not. That is probably unrelated.
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Thanks,
 
column mode works well too.
 
V.
__

Od: Juha Manninen via Lazarus 
Komu: Lazarus mailing list 
Datum: 15.07.2018 15:26
Předmět: Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On Sun, Jul 15, 2018 at 3:39 PM Vojtěch Čihák via Lazarus
 wrote:
> 2) I don't know what is "Column Mode Selection"

Alt-Shift with arrow keys select a column.

Juha
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Juha Manninen via Lazarus
On Sun, Jul 15, 2018 at 3:39 PM Vojtěch Čihák via Lazarus
 wrote:
> 2) I don't know what is "Column Mode Selection"

Alt-Shift with arrow keys select a column.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Michael W. Vogel via Lazarus

Am 15.07.2018 um 12:27 schrieb Martin Frb via Lazarus:

Please try with rev 58530


Tested all your requests on 64bit Windows 7 with 32bit Lazarus and 
OpenOffice. No problems, work fine here!


Michl
--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Hi,
 
I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also 
with -dDisableUTF8RTL
All works well with two exceptions:
 
1) folded block is copied folded only in implementation section. In interface 
section become unfolded (for example block TForm1 = class(TForm)...)
 
2) I don't know what is "Column Mode Selection"
 
Vojtěch
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 15.07.2018 12:27
Předmět: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:
>
>
> It seems a fix is available but needs to be enabled using a define ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Vojtěch Čihák via Lazarus

Hi,
 
I tested with Lazarus 1.9.0 r58530M FPC 3.1.1 x86_64-linux-qt. I tried also 
with -dDisableUTF8RTL
All works well with two exceptions:
 
1) folded block is copied folded only in implementation section. In interface 
section become unfolded (for example block TForm1 = class(TForm)...)
 
2) I don't know what is "Column Mode Selection"
 
Vojtěch
__

Od: Martin Frb via Lazarus 
Komu: lazarus@lists.lazarus-ide.org
Datum: 15.07.2018 12:27
Předmět: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re:


On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:
>
>
> It seems a fix is available but needs to be enabled using a define ?


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus 


-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Juha Manninen via Lazarus
Amazing!
It is clear when looking at your commit but I did not understand the
clipboard issues enough when adding the workaround and
GTK_REMOVE_CLIPBOARD_NULL define.
I guess the define can be removed at some point. Martin, please do
that when all is proven to work.

Juha
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Michael Van Canneyt via Lazarus


Updated.

Tested copying word, line, multiline, and reversely selected to edit, memo, 
libreoffice.

All seems well. GTK2, linux, 64-bit.

Michael.



On Sun, 15 Jul 2018, Martin Frb via Lazarus wrote:


Those tests should be done WITHOUT
GTK_REMOVE_CLIPBOARD_NULL
defined.

On 15/07/2018 12:27, Martin Frb via Lazarus wrote:

On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:



It seems a fix is available but needs to be enabled using a define ?


Please try with rev 58530

To be tested:

- Copy one word from synedit  to  synedit
- Copy one word from synedit  to  TEdit or TMemo
- Copy one word from synedit  to  libre office (or other external app)


All of the above with multiline / full line
All of the above in reverse
All of the above with "column mode selection"

Fold a begin/end (or any other) block in synedit.
Copy a selection containing the entire folded block.
Paste it in SynEdit => the pasted text should have the block folded 
(assuming you did not disable this in options)


=
The old patch had a problem:

It removed the #0 from any clipboard data. Including Text, images, 
custom.

But the LCL only added the extra to text (and only if added via "AsText")

So any data added any other way, if it had a #0 (that was part of the 
data) would be mangled.

SynEdit adds custom data (to preserve folds).




--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Martin Frb via Lazarus

Those tests should be done WITHOUT
GTK_REMOVE_CLIPBOARD_NULL
defined.

On 15/07/2018 12:27, Martin Frb via Lazarus wrote:

On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:



It seems a fix is available but needs to be enabled using a define ?


Please try with rev 58530

To be tested:

- Copy one word from synedit  to  synedit
- Copy one word from synedit  to  TEdit or TMemo
- Copy one word from synedit  to  libre office (or other external app)


All of the above with multiline / full line
All of the above in reverse
All of the above with "column mode selection"

Fold a begin/end (or any other) block in synedit.
Copy a selection containing the entire folded block.
Paste it in SynEdit => the pasted text should have the block folded 
(assuming you did not disable this in options)


=
The old patch had a problem:

It removed the #0 from any clipboard data. Including Text, images, 
custom.

But the LCL only added the extra to text (and only if added via "AsText")

So any data added any other way, if it had a #0 (that was part of the 
data) would be mangled.

SynEdit adds custom data (to preserve folds).




--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] TESTERS NEEDED / ALL PLATFORMS / COPY AND PASTE / Re: Copy to clipboard from synedit

2018-07-15 Thread Martin Frb via Lazarus

On 15/07/2018 12:07, Michael Van Canneyt via Lazarus wrote:



It seems a fix is available but needs to be enabled using a define ?


Please try with rev 58530

To be tested:

- Copy one word from synedit  to  synedit
- Copy one word from synedit  to  TEdit or TMemo
- Copy one word from synedit  to  libre office (or other external app)


All of the above with multiline / full line
All of the above in reverse
All of the above with "column mode selection"

Fold a begin/end (or any other) block in synedit.
Copy a selection containing the entire folded block.
Paste it in SynEdit => the pasted text should have the block folded 
(assuming you did not disable this in options)


=
The old patch had a problem:

It removed the #0 from any clipboard data. Including Text, images, custom.
But the LCL only added the extra to text (and only if added via "AsText")

So any data added any other way, if it had a #0 (that was part of the 
data) would be mangled.

SynEdit adds custom data (to preserve folds).


--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus