bugGNU nano - Bugs: bug #41750, Cannot exit nano with --tempfile...

 
 

bug #41750: Cannot exit nano with --tempfile enabled

Submitted by:  None
Submitted on:  Sun 02 Mar 2014 09:49:41 AM 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.

 

Mon 16 Jun 2014 08:45:19 PM UTC, comment #4:

Okay. I made one little change: statusbar() already calls wnoutrefresh(bottomwin), so it is enough to call doupdate() to update the screen. Patch applied to SVN, r4974. Thanks.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon 16 Jun 2014 04:39:57 PM UTC, comment #3:

Sounds good to me. I wasn't sure how much to emulate Pico in this case, since nano hasn't done delayed statusbar messages in that way before.

The new attached patch against SVN trunk r4973 adds this, except that it doesn't blank bottombars (Pico doesn't do it, and it won't have any effect in expert mode either way) and it does shut off the cursor while displaying the delayed message (Pico leaves the cursor on at the end of the statusbar, but that looks ugly to me).

(file #31570)

David Lawrence Ramsey <dolorous>
Project Administrator
Mon 16 Jun 2014 03:42:16 PM UTC, comment #2:

Hmm... When -t is used I think it should behave different than when not. What Pico does is nice. Nano could do the same: display "No file name", maybe beep, maybe blank the bottom bars too to draw extra attention to the status bar, sleep for two seconds, and then ask for a file name or rezignation. What do you think?

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Wed 11 Jun 2014 08:49:44 PM UTC, comment #1:

I've looked into this.

Following these steps using Pico will make it display "[No file name]" on the statusbar for a few seconds, and then prompt for a name to save the file under, in spite of the "-t" option.

The attached patch makes nano SVN r4959 do mostly the same, and updates associated comments (it does prompt for a filename, but does not add the "[No file name]" statusbar message, since that could interact strangely with, say, nano's --quickblank option).

(file #31539)

David Lawrence Ramsey <dolorous>
Project Administrator
Sun 02 Mar 2014 09:49:41 AM UTC, original submission:

1. Run "nano -t".
2. Type something.
3. Try to exit.

The only way to exit nano without modifying the file system is to type /dev/null as the file name.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31570:  nano4973tempfile.patch added by dolorous (2KiB - text/x-patch)
file #31539:  nano4959tempfile.patch added by dolorous (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bens (Updated the item)
  • -unavailable- added by dolorous (Updated 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
    Mon 16 Jun 2014 08:45:19 PM UTCbensStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 16 Jun 2014 04:39:57 PM UTCdolorousAttached File-=>Added nano4973tempfile.patch, #31570
    Sun 15 Jun 2014 08:58:47 PM UTCbensAssigned toNone=>bens
    Wed 11 Jun 2014 08:49:44 PM UTCdolorousAttached File-=>Added nano4959tempfile.patch, #31539

    Back to the top


    Powered by Savane 3.1-cleanup1