[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] bug #30749: [Request] allow suppressing the creatio
From: |
Rishabh Dave |
Subject: |
[Nano-devel] [PATCH] bug #30749: [Request] allow suppressing the creation of .save files |
Date: |
Wed, 21 Jun 2017 01:59:08 +0530 |
Hello,
I have attached a patch implementing the request of disabling creation
of ".save" files that was posted on the bug tracker (see
https://savannah.gnu.org/bugs/?30749). With some code and testing, the
patch fulfils the request.
The patch basically creates a new flag named NO_SAVEFILE which is set
if nano is invoked with --nosavefile or -Z option. When nano is about
to die, the creation of ".save" file is skipped if this flag is set.
If my current manner of implementation is okay, I will do some
finishing, test more extensively and resend the patch soon.
There are some questions, though, regarding implementation of this
option. What character is suitable for the short option? Can we have
a long option without having short option in nano? Will it be better
to only have long option? I haven't looked into how should it be
implemented to set NO_SAVEFILE from the rcfile. But the rcile must
have "set nosavefile", right? And any idea where should be NO_SAVEFILE
be initialized to a default value (which will be unset) ? Right now I
do it just before the code where options from the command-line will be
parsed. If this is too trivial to look into let this be my homework.
Unlike before, syntax colouring is on, so I hope no whitespace has
crept into the patch.
allow-suppressing-the-creation-of-dot-save-files.patch
Description: Text Data
- [Nano-devel] [PATCH] bug #30749: [Request] allow suppressing the creation of .save files,
Rishabh Dave <=