bugGNU nano - Bugs: bug #45415, option -t does not work like in...

 
 

bug #45415: option -t does not work like in Pico

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Fri 26 Jun 2015 08:43:31 AM UTC  
 
Severity: 3 - NormalStatus: Wont Fix
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 07 Dec 2015 08:32:57 PM UTC, comment #3:

Patch was mostly reverted in 5489, because it makes it impossible to exit from nano when one wants to discard the changes one made.

Also, if the user wants a single-keystroke save, she can bind the function 'savefile', so there is no real need in nano for --tempfile to work also for ^O.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 29 Oct 2015 10:42:25 AM UTC, comment #2:

Patch applied to SVN, in r5378 (with just two minute tweaks). Thanks!

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Thu 17 Sep 2015 06:00:12 PM UTC, comment #1:

The attached patch against nano SVN r5372 makes ^O and -t work as they do under Pico.

However, Pico with the -t option and no file name will only display:

Cannot open file for writing: No such file or directory

on the statusbar when pressing ^O.

This behavior seems unintuitive to me, so the patch also makes nano with the -t option and no file name also produce the "No file name" warning and prompt for a filename.

(file #34912)

David Lawrence Ramsey <dolorous>
Project Administrator
Fri 26 Jun 2015 08:43:31 AM UTC, original submission:

When nano is started with the -t option, it will still prompt for a file name when typing ^O. Pico does not do this: on both ^O and ^X it will simply write out the file. Nano does this only for ^X.

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
file #34912:  nano5372tempfilefix.patch added by dolorous (3KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dolorous (Updated the item)
  • -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
    Wed 29 Jun 2016 01:40:01 PM UTCbensOpen/ClosedOpen=>Closed
    Mon 07 Dec 2015 08:32:57 PM UTCbensStatusFixed=>Wont Fix
    Thu 29 Oct 2015 10:42:25 AM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
    Thu 17 Sep 2015 06:00:12 PM UTCdolorousAttached File-=>Added nano5372tempfilefix.patch, #34912

    Back to the top


    Powered by Savane 3.1-cleanup1