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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  Benno Schulenberg <bens>
Submitted:  Fri 26 Jun 2015 08:43:31 AM UTC
   
 
Severity:  3 - Normal Status:  Wont Fix
Assigned to:  bens Open/Closed:  Closed

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>
Group administrator
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>
Group administrator
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>
Group Member
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>
Group administrator

 

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

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
  • -email is unavailable- added by dolorous (Updated the item)
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-06-29 bens Open/ClosedOpen Closed
    2015-12-07 bens StatusFixed Wont Fix
    2015-10-29 bens StatusNone Fixed
        Assigned toNone bens
    2015-09-17 dolorous Attached File- Added nano5372tempfilefix.patch, #34912

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code