bugGNU nano - Bugs: bug #52282, a message "not found" is...

 
 

bug #52282: a message "not found" is spoken before "replaced xx occurrences"

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 25 Oct 2017 07:02:17 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 26 Oct 2017 07:13:57 PM UTC, comment #2:

Fixed in git, by commits d4945c67 and ded02d85.

When doing replacements, also the "Search Wrapped" message is superfluous, because it will be overwritten almost immediately by either the "not found" or the "replaced xx occurrences" message. Only in a huge file with very few occurrences might the "Search Wrapped" message be useful. But if the user wants to be sure the replacing does not wrap around, then she should mark a region first and then do the replacements there.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 25 Oct 2017 07:21:26 PM UTC, comment #1:

Attached is a first patch. Please test if you can and report your findings.

(file #42259)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 25 Oct 2017 07:02:17 PM UTC, original submission:

On help-nano Chime Hart reported the following:

"""However, lately whether I am useing a control+w for a search or a control+backslash, searches work but I hear a message saying "not found" or "search wrapped" -- whether logged in a unix shell or directly in Vinux, running Youbuntu with speech.

So as an example, if I search for
NANO
replace with
nano
it would say "nano not found" replaced 1 occurrence, but that error seems to scroll away."""

(http://lists.gnu.org/archive/html/help-nano/2017-10/msg00000.html)

Nano should suppress the "not found" message when more than zero replacements have been made.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Nov 2017 08:27:26 AM UTCbensOpen/ClosedOpen=>Closed
    Thu 26 Oct 2017 07:13:57 PM UTCbensStatusIn Progress=>Fixed
    Wed 25 Oct 2017 07:21:26 PM UTCbensAttached File-=>Added show-notfound-only-when-needed.patch, #42259
      StatusNone=>In Progress
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1