EmEditor (text editor) Forum Index
   EmEditor Core Bug Reports
     Persistent issues (bugs?)
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
jugaor
Posted on: 1/13/2009 2:30 am
Just popping in
Joined: 11/29/2007
From: Lima, Perú
Posts: 19
Persistent issues (bugs?)
Hola, amigo Yutaka.
EM is a great product, but at your request ("earlier rather than later") I want to report here several issues (all versions). I numbered'em to facilitate your answers
Sorry for my bad English, I'll try to be as clear as possible.

1. The OR operator with 'Search Only Word' got confused if an including word goes first at the expression (two or more):
(siempre|sintagma|si) OK, matches 'siempre'/'sintagma'/'si'
(si|siempre|sintagma) BAD, matches 'si' but not 'siempre'/'sintagma'
(If this is the expected behavior, please say it at "Regular Expression Syntax" section inside Help)

2. "Find and Replace in Files" operations treat the special chars ('ñ', 'ç', accented vowels) as word boundaries. For example: "aca" with 'Search Only Word' matches the first part of "acañar" or the last parts of "austríaca", "ilíaca" and so.........
BUT if "Use Regular Expressions" is enabled too, EM works well (!!!). (F&R at open files never have any problem).

3. Please stop the "Escape sequence" auto triggering in F&R dialog (I already said it in a previous post ). Besides the additional click to deactivate it, it always duplicates / and \ chars at Find Line. A nicer behavior could be remember the last user selection of switches.

4. The dialog "Treat the following characters as alphanumerics" (Customize) is working...? (i.e., it applies to what operations?)
If I add any alien char (for example @) EM still treats it as non-letter (using 'Search Only Word' or the \w operator).

5: (Helpfile) Please include two clarifications (for regexp newbies as I... was ):
a) The ordinals (º,ª) are always treated as alphanumeric, not word boundaries, so \l and \w includes'em.
b) The "(?" subexpressions allow several strings with I (OR operator), but the lookbehind ones must be lenght fixed.


Thank you very much for your time, attention and talent!
Saludos desde Perú,
jugaor


----------------
jugaor
The guy with a terrible English

Yutaka
Posted on: 1/13/2009 2:09 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Persistent issues (bugs?)
I will try to address these issue in the future major version. If v9 beta still has these issues, please let me know. Thank you!


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

Yutaka
Posted on: 1/15/2009 9:39 am
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Persistent issues (bugs?)
(4.) "Treat the following characters as alphanumeric" option applys only when editing. For instance, when you double-click a word, these characters are treated as a part of the word. However, this setting does not apply to the regular expression \w operator nor the Search Only Word option in the Find dialog box. I will clarify the Help description.

(5.) I will add a description the lookbehind patterns must be of fixed length .
.


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

Yutaka
Posted on: 5/18/2009 9:07 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Persistent issues (bugs?)
Quote:

jugaor wrote:
Hola, amigo Yutaka.
EM is a great product, but at your request ("earlier rather than later") I want to report here several issues (all versions). I numbered'em to facilitate your answers
Sorry for my bad English, I'll try to be as clear as possible.

1. The OR operator with 'Search Only Word' got confused if an including word goes first at the expression (two or more):
(siempre|sintagma|si) OK, matches 'siempre'/'sintagma'/'si'
(si|siempre|sintagma) BAD, matches 'si' but not 'siempre'/'sintagma'
(If this is the expected behavior, please say it at "Regular Expression Syntax" section inside Help)

2. "Find and Replace in Files" operations treat the special chars ('ñ', 'ç', accented vowels) as word boundaries. For example: "aca" with 'Search Only Word' matches the first part of "acañar" or the last parts of "austríaca", "ilíaca" and so.........
BUT if "Use Regular Expressions" is enabled too, EM works well (!!!). (F&R at open files never have any problem).

3. Please stop the "Escape sequence" auto triggering in F&R dialog (I already said it in a previous post ). Besides the additional click to deactivate it, it always duplicates / and \ chars at Find Line. A nicer behavior could be remember the last user selection of switches.

4. The dialog "Treat the following characters as alphanumerics" (Customize) is working...? (i.e., it applies to what operations?)
If I add any alien char (for example @) EM still treats it as non-letter (using 'Search Only Word' or the \w operator).

5: (Helpfile) Please include two clarifications (for regexp newbies as I... was ):
a) The ordinals (º,ª) are always treated as alphanumeric, not word boundaries, so \l and \w includes'em.
b) The "(?" subexpressions allow several strings with I (OR operator), but the lookbehind ones must be lenght fixed.


Thank you very much for your time, attention and talent!
Saludos desde Perú,
jugaor


"Search Only Word" will not work well with Regular Expressions. Instead, you should use Word Boundaries:

The following escape sequences match the boundaries of words:

\< Matches the start of a word.
\> Matches the end of a word.
\b Matches a word boundary (the start or end of a word).
\B Matches only when not at a word boundary.

I will add thse expressions to the Help.

"Treat the following characters as alphanumeric" did not work when searching. This will be fixed in the next alpha version (alpha 19).

In order to stop the "Escape sequence" auto trigerring in F&R dialog, you can now uncheck both "Use Selected Text in Find/Replace dialog box" and "Use Word at Cursor in Find/Replace dialog box" in the "Search" tab of the Customize dialog box.

Thanks so much for your input!


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

jugaor
Posted on: 5/19/2009 7:14 pm
Just popping in
Joined: 11/29/2007
From: Lima, Perú
Posts: 19
Re: Persistent issues (bugs?)
Thank you for your answers!

Quote:
"Search Only Word" will not work well with Regular Expressions. Instead, you should use Word Boundaries:


Please, clarify if this behavior is only at the current version or will be permanent... to begin editing my macros now...

Cheers,
jugaor


----------------
jugaor
The guy with a terrible English

Yutaka
Posted on: 5/19/2009 9:02 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2399
Re: Persistent issues (bugs?)
Quote:

jugaor wrote:
Thank you for your answers!

Quote:
"Search Only Word" will not work well with Regular Expressions. Instead, you should use Word Boundaries:


Please, clarify if this behavior is only at the current version or will be permanent... to begin editing my macros now...

Cheers,
jugaor


All versions. The word boundary regular expressions are available both on v8 and v9. So you shouldn't use "Search Only Word" checkbox with regular expressions.


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

jugaor
Posted on: 5/19/2009 11:20 pm
Just popping in
Joined: 11/29/2007
From: Lima, Perú
Posts: 19
Re: Persistent issues (bugs?)
OK, thank you!
If there are more "hidden" escape sequences (i.e, not included at the current Help), please, inform here.
The additions are always welcome to improve scripting proficiency.


Quote:
In order to stop the "Escape sequence" auto trigerring in F&R dialog, you can now uncheck both "Use Selected Text in Find/Replace dialog box" and "Use Word at Cursor in Find/Replace dialog box" in the "Search" tab of the Customize dialog box.


BTW, I didn't find the first option, only the latest... It changed of dialog box? (v8.05)

Un abrazo desde Perú!


----------------
jugaor
The guy with a terrible English

jugaor
Posted on: 5/20/2009 1:11 am
Just popping in
Joined: 11/29/2007
From: Lima, Perú
Posts: 19
Re: Persistent issues (bugs?)
UPDATE:
I began to change my scripts and I must say that the results now are more accurate!
But, there's a severe speed penalization, too
Not the biggest problem in Earth... but If you can optimize this issue, I'll thank you very much!

Thanks again for make this marvelous app better and better with each version!
Un abrazo!


----------------
jugaor
The guy with a terrible English

Threaded | Newest First Previous Topic | Next Topic | Top


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