#ifdef'ed -k option for not NANO_SMALL b/c it requires the marker code

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@103 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2000-07-12 18:14:51 +00:00
parent ed0cb890fb
commit d19e9916cb
3 changed files with 69 additions and 60 deletions

View File

@ -1,6 +1,7 @@
Current CVS: Current CVS:
- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut), - Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
affects do_cut_text in cut.c. affects do_cut_text in cut.c. Not available with SMALL_NANO because it
depends on the marker code which is not available with that setting.
- move.c - move.c
page_down() page_down()
- Don't edit_refresh() if the bottom of the file is in the edit - Don't edit_refresh() if the bottom of the file is in the edit

8
nano.c
View File

@ -323,8 +323,10 @@ void usage(void)
(" -c --const Constantly show cursor position\n")); (" -c --const Constantly show cursor position\n"));
printf(_ printf(_
(" -h --help Show this message\n")); (" -h --help Show this message\n"));
#ifndef NANO_SMALL
printf(_ printf(_
(" -k --cut Let ^K cut from cursor to end of line\n")); (" -k --cut Let ^K cut from cursor to end of line\n"));
#endif
printf(_ printf(_
(" -i --autoindent Automatically indent new lines\n")); (" -i --autoindent Automatically indent new lines\n"));
printf(_ printf(_
@ -363,7 +365,9 @@ void usage(void)
printf(_(" -V Print version information and exit\n")); printf(_(" -V Print version information and exit\n"));
printf(_(" -c Constantly show cursor position\n")); printf(_(" -c Constantly show cursor position\n"));
printf(_(" -h Show this message\n")); printf(_(" -h Show this message\n"));
#ifndef NANO_SMALL
printf(_(" -k Let ^K cut from cursor to end of line\n")); printf(_(" -k Let ^K cut from cursor to end of line\n"));
#endif
printf(_(" -i Automatically indent new lines\n")); printf(_(" -i Automatically indent new lines\n"));
printf(_ printf(_
(" -l Don't follow symbolic links, overwrite.\n")); (" -l Don't follow symbolic links, overwrite.\n"));
@ -1545,7 +1549,9 @@ int main(int argc, char *argv[])
{"nowrap", 0, 0, 'w'}, {"nowrap", 0, 0, 'w'},
{"nohelp", 0, 0, 'x'}, {"nohelp", 0, 0, 'x'},
{"help", 0, 0, 'h'}, {"help", 0, 0, 'h'},
#ifndef NANO_SMALL
{"cut", 0, 0, 'k'}, {"cut", 0, 0, 'k'},
#endif
{"autoindent", 0, 0, 'i'}, {"autoindent", 0, 0, 'i'},
{"tempfile", 0, 0, 't'}, {"tempfile", 0, 0, 't'},
{"speller", 1, 0, 's'}, {"speller", 1, 0, 's'},
@ -1608,9 +1614,11 @@ int main(int argc, char *argv[])
case 'i': case 'i':
SET(AUTOINDENT); SET(AUTOINDENT);
break; break;
#ifndef NANO_SMALL
case 'k': case 'k':
SET(CUT_TO_END); SET(CUT_TO_END);
break; break;
#endif
case 'l': case 'l':
UNSET(FOLLOW_SYMLINKS); UNSET(FOLLOW_SYMLINKS);
break; break;

View File

@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-07-11 22:41-0400\n" "POT-Creation-Date: 2000-07-12 14:16-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -55,7 +55,7 @@ msgstr ""
msgid "File to insert [from ./] " msgid "File to insert [from ./] "
msgstr "" msgstr ""
#: files.c:271 files.c:295 files.c:462 nano.c:1138 #: files.c:271 files.c:295 files.c:462 nano.c:1142
msgid "Cancelled" msgid "Cancelled"
msgstr "" msgstr ""
@ -419,242 +419,242 @@ msgstr ""
msgid " -h \t\t--help\t\t\tShow this message\n" msgid " -h \t\t--help\t\t\tShow this message\n"
msgstr "" msgstr ""
#: nano.c:327 #: nano.c:328
msgid " -k \t\t--cut\t\t\tLet ^K cut from cursor to end of line\n" msgid " -k \t\t--cut\t\t\tLet ^K cut from cursor to end of line\n"
msgstr "" msgstr ""
#: nano.c:329 #: nano.c:331
msgid " -i \t\t--autoindent\t\tAutomatically indent new lines\n" msgid " -i \t\t--autoindent\t\tAutomatically indent new lines\n"
msgstr "" msgstr ""
#: nano.c:331 #: nano.c:333
msgid " -l \t\t--nofollow\t\tDon't follow symbolic links, overwrite.\n" msgid " -l \t\t--nofollow\t\tDon't follow symbolic links, overwrite.\n"
msgstr "" msgstr ""
#: nano.c:334 #: nano.c:336
msgid " -m \t\t--mouse\t\t\tEnable mouse\n" msgid " -m \t\t--mouse\t\t\tEnable mouse\n"
msgstr "" msgstr ""
#: nano.c:339 #: nano.c:341
msgid "" msgid ""
" -r [#cols] \t--fill=[#cols]\t\tSet fill cols to (wrap lines at) #cols\n" " -r [#cols] \t--fill=[#cols]\t\tSet fill cols to (wrap lines at) #cols\n"
msgstr "" msgstr ""
#: nano.c:341 #: nano.c:343
msgid " -p\t \t--pico\t\t\tMake bottom 2 lines more Pico-like\n" msgid " -p\t \t--pico\t\t\tMake bottom 2 lines more Pico-like\n"
msgstr "" msgstr ""
#: nano.c:343 #: nano.c:345
msgid " -s [prog] \t--speller=[prog]\tEnable alternate speller\n" msgid " -s [prog] \t--speller=[prog]\tEnable alternate speller\n"
msgstr "" msgstr ""
#: nano.c:345 #: nano.c:347
msgid " -t \t\t--tempfile\t\tAuto save on exit, don't prompt\n" msgid " -t \t\t--tempfile\t\tAuto save on exit, don't prompt\n"
msgstr "" msgstr ""
#: nano.c:347 #: nano.c:349
msgid " -v \t\t--view\t\t\tView (read only) mode\n" msgid " -v \t\t--view\t\t\tView (read only) mode\n"
msgstr "" msgstr ""
#: nano.c:349 #: nano.c:351
msgid " -w \t\t--nowrap\t\tDon't wrap long lines\n" msgid " -w \t\t--nowrap\t\tDon't wrap long lines\n"
msgstr "" msgstr ""
#: nano.c:351 #: nano.c:353
msgid " -x \t\t--nohelp\t\tDon't show help window\n" msgid " -x \t\t--nohelp\t\tDon't show help window\n"
msgstr "" msgstr ""
#: nano.c:353 #: nano.c:355
msgid " -z \t\t--suspend\t\tEnable suspend\n" msgid " -z \t\t--suspend\t\tEnable suspend\n"
msgstr "" msgstr ""
#: nano.c:355 #: nano.c:357
msgid " +LINE\t\t\t\t\tStart at line number LINE\n" msgid " +LINE\t\t\t\t\tStart at line number LINE\n"
msgstr "" msgstr ""
#: nano.c:357 #: nano.c:359
msgid "" msgid ""
"Usage: nano [option] +LINE <file>\n" "Usage: nano [option] +LINE <file>\n"
"\n" "\n"
msgstr "" msgstr ""
#: nano.c:358 #: nano.c:360
msgid "Option\t\tMeaning\n" msgid "Option\t\tMeaning\n"
msgstr "" msgstr ""
#: nano.c:360 #: nano.c:362
msgid " -T [num]\tSet width of a tab to num\n" msgid " -T [num]\tSet width of a tab to num\n"
msgstr "" msgstr ""
#: nano.c:362 #: nano.c:364
msgid " -R\t\tUse regular expressions for search\n" msgid " -R\t\tUse regular expressions for search\n"
msgstr "" msgstr ""
#: nano.c:363 #: nano.c:365
msgid " -V \t\tPrint version information and exit\n" msgid " -V \t\tPrint version information and exit\n"
msgstr "" msgstr ""
#: nano.c:364 #: nano.c:366
msgid " -c \t\tConstantly show cursor position\n" msgid " -c \t\tConstantly show cursor position\n"
msgstr "" msgstr ""
#: nano.c:365 #: nano.c:367
msgid " -h \t\tShow this message\n" msgid " -h \t\tShow this message\n"
msgstr "" msgstr ""
#: nano.c:366 #: nano.c:369
msgid " -k \t\tLet ^K cut from cursor to end of line\n" msgid " -k \t\tLet ^K cut from cursor to end of line\n"
msgstr "" msgstr ""
#: nano.c:367 #: nano.c:371
msgid " -i \t\tAutomatically indent new lines\n" msgid " -i \t\tAutomatically indent new lines\n"
msgstr "" msgstr ""
#: nano.c:369 #: nano.c:373
msgid " -l \t\tDon't follow symbolic links, overwrite.\n" msgid " -l \t\tDon't follow symbolic links, overwrite.\n"
msgstr "" msgstr ""
#: nano.c:372 #: nano.c:376
msgid " -m \t\tEnable mouse\n" msgid " -m \t\tEnable mouse\n"
msgstr "" msgstr ""
#: nano.c:376 #: nano.c:380
msgid " -r [#cols] \tSet fill cols to (wrap lines at) #cols\n" msgid " -r [#cols] \tSet fill cols to (wrap lines at) #cols\n"
msgstr "" msgstr ""
#: nano.c:377 #: nano.c:381
msgid " -s [prog] \tEnable alternate speller\n" msgid " -s [prog] \tEnable alternate speller\n"
msgstr "" msgstr ""
#: nano.c:378 #: nano.c:382
msgid " -p \t\tMake bottom 2 lines more Pico-like\n" msgid " -p \t\tMake bottom 2 lines more Pico-like\n"
msgstr "" msgstr ""
#: nano.c:379 #: nano.c:383
msgid " -t \t\tAuto save on exit, don't prompt\n" msgid " -t \t\tAuto save on exit, don't prompt\n"
msgstr "" msgstr ""
#: nano.c:380 #: nano.c:384
msgid " -v \t\tView (read only) mode\n" msgid " -v \t\tView (read only) mode\n"
msgstr "" msgstr ""
#: nano.c:381 #: nano.c:385
msgid " -w \t\tDon't wrap long lines\n" msgid " -w \t\tDon't wrap long lines\n"
msgstr "" msgstr ""
#: nano.c:382 #: nano.c:386
msgid " -x \t\tDon't show help window\n" msgid " -x \t\tDon't show help window\n"
msgstr "" msgstr ""
#: nano.c:383 #: nano.c:387
msgid " -z \t\tEnable suspend\n" msgid " -z \t\tEnable suspend\n"
msgstr "" msgstr ""
#: nano.c:384 #: nano.c:388
msgid " +LINE\t\tStart at line number LINE\n" msgid " +LINE\t\tStart at line number LINE\n"
msgstr "" msgstr ""
#: nano.c:391 #: nano.c:395
#, c-format #, c-format
msgid " nano version %s by Chris Allegretta (compiled %s, %s)\n" msgid " nano version %s by Chris Allegretta (compiled %s, %s)\n"
msgstr "" msgstr ""
#: nano.c:393 #: nano.c:397
msgid " Email: nano@asty.org\tWeb: http://www.asty.org/nano\n" msgid " Email: nano@asty.org\tWeb: http://www.asty.org/nano\n"
msgstr "" msgstr ""
#: nano.c:418 #: nano.c:422
msgid "Mark Set" msgid "Mark Set"
msgstr "" msgstr ""
#: nano.c:423 #: nano.c:427
msgid "Mark UNset" msgid "Mark UNset"
msgstr "" msgstr ""
#: nano.c:865 #: nano.c:869
#, c-format #, c-format
msgid "check_wrap called with inptr->data=\"%s\"\n" msgid "check_wrap called with inptr->data=\"%s\"\n"
msgstr "" msgstr ""
#: nano.c:925 #: nano.c:929
#, c-format #, c-format
msgid "current->data now = \"%s\"\n" msgid "current->data now = \"%s\"\n"
msgstr "" msgstr ""
#: nano.c:978 #: nano.c:982
#, c-format #, c-format
msgid "After, data = \"%s\"\n" msgid "After, data = \"%s\"\n"
msgstr "" msgstr ""
#: nano.c:1048 #: nano.c:1052
msgid "Error deleting tempfile, ack!" msgid "Error deleting tempfile, ack!"
msgstr "" msgstr ""
#: nano.c:1065 #: nano.c:1069
#, c-format #, c-format
msgid "Could not create a temporary filename: %s" msgid "Could not create a temporary filename: %s"
msgstr "" msgstr ""
#: nano.c:1089 #: nano.c:1093
#, c-format #, c-format
msgid "Could not invoke spell program \"%s\"" msgid "Could not invoke spell program \"%s\""
msgstr "" msgstr ""
#. Why 32512? I dont know! #. Why 32512? I dont know!
#: nano.c:1095 #: nano.c:1099
msgid "Could not invoke \"ispell\"" msgid "Could not invoke \"ispell\""
msgstr "" msgstr ""
#: nano.c:1107 #: nano.c:1111
msgid "Finished checking spelling" msgid "Finished checking spelling"
msgstr "" msgstr ""
#: nano.c:1125 #: nano.c:1129
msgid "Save modified buffer (ANSWERING \"No\" WILL DESTROY CHANGES) ? " msgid "Save modified buffer (ANSWERING \"No\" WILL DESTROY CHANGES) ? "
msgstr "" msgstr ""
#: nano.c:1248 #: nano.c:1252
msgid "Cannot resize top win" msgid "Cannot resize top win"
msgstr "" msgstr ""
#: nano.c:1250 #: nano.c:1254
msgid "Cannot move top win" msgid "Cannot move top win"
msgstr "" msgstr ""
#: nano.c:1252 #: nano.c:1256
msgid "Cannot resize edit win" msgid "Cannot resize edit win"
msgstr "" msgstr ""
#: nano.c:1254 #: nano.c:1258
msgid "Cannot move edit win" msgid "Cannot move edit win"
msgstr "" msgstr ""
#: nano.c:1256 #: nano.c:1260
msgid "Cannot resize bottom win" msgid "Cannot resize bottom win"
msgstr "" msgstr ""
#: nano.c:1258 #: nano.c:1262
msgid "Cannot move bottom win" msgid "Cannot move bottom win"
msgstr "" msgstr ""
#: nano.c:1725 #: nano.c:1733
msgid "Main: set up windows\n" msgid "Main: set up windows\n"
msgstr "" msgstr ""
#: nano.c:1747 #: nano.c:1755
msgid "Main: bottom win\n" msgid "Main: bottom win\n"
msgstr "" msgstr ""
#: nano.c:1753 #: nano.c:1761
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "" msgstr ""
#: nano.c:1826 #: nano.c:1834
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:1842 #: nano.c:1850
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "" msgstr ""