After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 300977 - document that \ has to be escaped when searching for it
document that \ has to be escaped when searching for it
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: docs
unspecified
Other All
: Normal minor
: ---
Assigned To: Maintainers of Gnome user documentation
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2005-04-17 16:56 UTC by ilf
Modified: 2008-05-02 09:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Add backslash search documentation (653 bytes, patch)
2008-04-25 21:13 UTC, Claude Paroz
none Details | Review
Reworked patch (895 bytes, patch)
2008-04-26 20:00 UTC, Claude Paroz
committed Details | Review

Description ilf 2005-04-17 16:56:17 UTC
Please describe the problem:
searching for "\\" finds nothing, which is wrong.
replacing "\\" can be done by using "\\\"

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?
yes

Other information:
Comment 1 Paolo Borelli 2005-04-17 17:02:13 UTC
to clarify: select a string "foo\\bar" and search: no matches will be found
because of escaping. Escaping is a feature, but we should try to improve escape
code for these cases
Comment 2 Mike Robinson 2005-07-21 17:09:36 UTC
This is still present in 2.10.3.  Arguably normal behavior and only a
documentation bug (help file only specifies \n \t and \r escape codes), but
still potentially confusing, so I'm confirming this.
Comment 3 Antoine Cailliau 2006-04-30 10:08:26 UTC
This bug still present in 2.14.2. The replacement of \ doesn't affect the text.
Comment 4 Paolo Borelli 2007-08-25 08:25:20 UTC
Reassigning to docs: after discussing it, this is the expected behavior but the documentation should explain which characters need to be escaped.
Comment 5 Claude Paroz 2008-04-25 21:13:18 UTC
Created attachment 109933 [details] [review]
Add backslash search documentation

Here's a proposal to document this (in the Special Chars section).
Comment 6 Paolo Borelli 2008-04-26 16:43:10 UTC
I think the section should be expanded further: it should state that \n, \t etc are special characters, and if you want to literally match "\n" you have to escape the slash and search for "\\n"
Comment 7 Claude Paroz 2008-04-26 20:00:48 UTC
Created attachment 109962 [details] [review]
Reworked patch

Agreed. What about this version?
Comment 8 Paolo Borelli 2008-05-02 08:54:10 UTC
ops, I thought I already approved this one, sorry.

Looks good to me, please commit.
Comment 9 Claude Paroz 2008-05-02 09:51:27 UTC
Thanks, committed in trunk.