EmEditor (text editor) Forum Index
   Plug-in Bug Reports
     macro in snippets bug
Register To Post

Threaded | Oldest First Previous Topic | Next Topic | Bottom
Poster Thread
orzy09
Posted on: 12/20/2009 9:35 am
Just popping in
Joined: 12/11/2009
From:
Posts: 2
Re: macro in snippets but
Hello Mr. Emura,

it works now. Thank you for the quick fix and for a marvellous editor!

All the best.
orzy09
Yutaka
Posted on: 12/11/2009 10:20 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2423
Re: macro in snippets but
Quote:

orzy09 wrote:
I want to create the following snippet that insert clipboard data (a filepath copied in the clipboard). I used the syntax provided in the help file. The line with the macro is this:

<FullPath>`# Interface.write( clipboardData.getData("") );`</FullPath>

I copied a path (c:\test\) in the clipboard and executed the snipped. It worked fine. Then I copied another path (d:\test) and now the text was appended so I got:

<FullPath>c:\test\d:\test\</FullPath>

executing the snippet again without another copy before added the clipboard data again:

<FullPath>c:\test\d:\test\d:\test\</FullPath>

after some testing I found out that the following line sents combined all what I had inserted with the above macro before.

<FullPath>`#`</FullPath>

So this line would also get the result:

<FullPath>c:\test\d:\test\d:\test\</FullPath>

I this a bug or do I something wrong?

Thanks and all the best


This is a bug. I will fix this in the next version. Thanks!


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

orzy09
Posted on: 12/11/2009 7:32 am
Just popping in
Joined: 12/11/2009
From:
Posts: 2
macro in snippets bug
I want to create the following snippet that insert clipboard data (a filepath copied in the clipboard). I used the syntax provided in the help file. The line with the macro is this:

<FullPath>`# Interface.write( clipboardData.getData("") );`</FullPath>

I copied a path (c:\test\) in the clipboard and executed the snipped. It worked fine. Then I copied another path (d:\test) and now the text was appended so I got:

<FullPath>c:\test\d:\test\</FullPath>

executing the snippet again without another copy before added the clipboard data again:

<FullPath>c:\test\d:\test\d:\test\</FullPath>

after some testing I found out that the following line sents combined all what I had inserted with the above macro before.

<FullPath>`#`</FullPath>

So this line would also get the result:

<FullPath>c:\test\d:\test\d:\test\</FullPath>

I this a bug or do I something wrong?

Thanks and all the best






Threaded | Oldest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文