Commit Graph

1950 Commits

Author SHA1 Message Date
David Lawrence Ramsey 44abeea53c in nanorc.sample, remove unneeded foreground color for the Java source
regex used to highlight trailing whitespace, since we now support
background colors without foreground colors


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-21 17:27:04 +00:00
David Lawrence Ramsey f320d31ef0 in nanorc.sample, replace instances of "\w" with its equivalent
"[0-9A-Za-z_]", and instances of "\W" with its equivalent
"[^0-9A-Za-z_]", for greater readability


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3534 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-21 16:50:16 +00:00
David Lawrence Ramsey cd243f558a in break_line(), handle newlines consistently when searching for the
last blank in the first group of blanks in the range of (goal - 1)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-19 23:27:16 +00:00
David Lawrence Ramsey af7677ecb6 in help_init(), add various wording fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3529 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-19 23:07:02 +00:00
David Lawrence Ramsey d99b0e1cf3 in display_string(), properly display double-column characters if
they're past the first virtual page and their first column is covered by
the "$" displayed at the beginning of the line


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-19 17:50:01 +00:00
David Lawrence Ramsey c9d76207f3 in src/Makefile.am, if we're uninstalling, remove the "rnano" symlink
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3526 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-18 20:18:36 +00:00
David Lawrence Ramsey c074edfe36 wording fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3524 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-18 17:29:34 +00:00
David Lawrence Ramsey 2d3d1e9324 in break_line(), fix problem where tab widths in columns are always
calculated as tabsize


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3523 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-18 17:28:16 +00:00
David Lawrence Ramsey 139bae0826 update TODO and UPGRADE for nano 2.0, since we're now in a feature
freeze


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3522 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-17 13:38:07 +00:00
David Lawrence Ramsey 60edb0a989 improve NANO_REFRESH_KEY handling
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3520 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-15 15:17:50 +00:00
David Lawrence Ramsey e77ebfa3fa more documentation updates from Benno Schulenberg, with a few tweaks and
additions by me


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3513 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-14 15:19:38 +00:00
David Lawrence Ramsey 660e05be3d miscellaneous cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3506 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-12 19:30:28 +00:00
David Lawrence Ramsey 75850e501a in faq.html, make the link to the nano CVS page a bit more readable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3505 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-12 15:36:32 +00:00
David Lawrence Ramsey 797c9dd0f6 typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3504 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-12 14:04:08 +00:00
David Lawrence Ramsey f5d6d9985b drop the Meta-] and Meta-[ aliases for Meta-} and Meta-}, and change the
shortcut to find the matching bracket from Ctrl-] back to Meta-], since
Ctrl-] is used as the telnet escape key


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3503 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-12 12:37:53 +00:00
David Lawrence Ramsey 08f16e2fc7 in free_chararray(), assert that array isn't NULL, for consistency with
the other free_.*() functions; also fix potential memory corruption
problem when copying text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-11 01:53:33 +00:00
David Lawrence Ramsey bbabf9562a fix bracket matching breakage in do_statusbar_input() since its shortcut
was changed to Ctrl-]


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3499 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-11 00:58:26 +00:00
David Lawrence Ramsey fc0f8f8c57 allow unjustifying if we resize the window immediately after justifying,
as Pico does, and make input handling across resizes more consistent


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 13:41:53 +00:00
David Lawrence Ramsey d29e861376 in do_(statusbar_)?input(), remove redundant check for allow_funcs'
being TRUE when we get KEY_MOUSE


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 13:06:58 +00:00
David Lawrence Ramsey 02a7f84412 in browser_refresh(), make sure the highlighting of the currently
selected file or directory respects the -D/--boldtext option


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 12:37:15 +00:00
David Lawrence Ramsey 0df4de37c3 in browser_refresh(), change variable i from an int to a size_t in order
to match selected, which it's compared against


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:57:16 +00:00
David Lawrence Ramsey f2fe1fd263 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3489 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-10 03:44:49 +00:00
David Lawrence Ramsey 560e83f143 in usage(), fix inaccuracies in the usage example
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3486 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 19:55:18 +00:00
David Lawrence Ramsey a5f833de42 in edit_draw(), properly ignore zero-length regexes in multi-line
regexes as well as single-line ones; this avoids a segfault when trying
to color e.g. "start="$" end="$""


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3484 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 15:57:04 +00:00
David Lawrence Ramsey 27d5be5e36 per Benno Schulenberg's patch (with a few tweaks by me), add a new
section 4.5, and move all section 4 entries after it down one number, to
explain a problem that can occur when holding down keys to generate Meta
sequences; also add a few more capitalization and wording fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3482 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 14:12:36 +00:00
David Lawrence Ramsey f22fa1341e typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3481 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-08 13:18:01 +00:00
David Lawrence Ramsey 0ec909cb98 add the ability to move to the first and last file in the file browser
via Meta-\ (Meta-|) and Meta-/ (Meta-?)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3479 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 15:07:26 +00:00
David Lawrence Ramsey b22c80ad1d remove various redundant key checks
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3477 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 13:41:59 +00:00
David Lawrence Ramsey 6e7d24dcdc add the ability to move to the first and last line of the help text via
Meta-\ (Meta-|) and Meta-/ (Meta-?)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 02:26:18 +00:00
David Lawrence Ramsey 3f77c77f11 wording fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3473 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-06 02:25:32 +00:00
David Lawrence Ramsey aa4dc9596f typo fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-04 03:18:58 +00:00
David Lawrence Ramsey f0e3ca6e88 clarify error messages
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3466 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-03 13:11:00 +00:00
David Lawrence Ramsey c7d6f985c7 in faq.html, add a new section 4.4, and move all section 4 entries after
it down one number, to explain how to deal with problems typing Meta-[;
also add a few capitalization and wording fixes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3464 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-02 00:08:13 +00:00
David Lawrence Ramsey 7a9422b77d more various wording fixes for documentation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3461 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-01 13:43:02 +00:00
David Lawrence Ramsey e7f9813284 various wording fixes for documentation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-05-01 13:22:47 +00:00
David Lawrence Ramsey 12c1b5913a consistency fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3459 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-30 23:30:47 +00:00
David Lawrence Ramsey 5f274c4b49 handle NANO_CONTROL_8 even better by doing it in parse_kbinput()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 19:27:41 +00:00
David Lawrence Ramsey fbf46a5d88 in do_(statusbar_)?input(), if we get NANO_CONTROL_8, handle it instead
of ignoring it, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3451 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 18:59:34 +00:00
David Lawrence Ramsey 4d9ef69f8e various fixes for get_control_kbinput()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3450 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 18:26:07 +00:00
David Lawrence Ramsey 8bf39a38fe in configure.ac, remove the other old warning about color support
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 13:27:20 +00:00
David Lawrence Ramsey f85001a368 add the ability to indent and unindent all marked lines of text, via
Meta-[ (Meta-}) and Meta-] (Meta-}), per Chris' patch with some changes
by me


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3446 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-28 13:19:56 +00:00
David Lawrence Ramsey cf1879b706 tweak the shortcut list a bit more, and add Space and - as aliases for
PageDown and PageUp in the help browser, per Benno Schulenberg's
suggestions


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3445 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 23:39:49 +00:00
David Lawrence Ramsey 190fae0043 document wording fixes in nanorc.5
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3443 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 18:54:24 +00:00
David Lawrence Ramsey 0d0d636e72 in nano.texi, add a "Nanorc Files" section to explain the nanorc file
format in detail, using text from nanorc.5


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3442 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 18:52:50 +00:00
David Lawrence Ramsey 3bcca171ae in nanorc.5 and nanorc.sample, mention that the nanorc file should not
be in DOS or Mac format


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3441 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-27 17:29:19 +00:00
David Lawrence Ramsey bd5966061c in shortcut_init(), add Meta-} as an alias for Meta-]
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3436 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-26 17:24:46 +00:00
David Lawrence Ramsey c87e0c0965 add the ability to copy text into the cutbuffer without cutting it, via
Meta-^ (Meta-6); note that this is disabled when NANO_TINY is defined


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3429 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-25 02:23:28 +00:00
David Lawrence Ramsey bc80cb1ba7 readd the Cancel -> Exit aliases for the file browser and help browser,
per Benno Schulenberg's suggestion, and clean up a few other
miscellaneous things


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3428 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-24 23:03:21 +00:00
David Lawrence Ramsey 18dae628d2 reduce NO_RCFILE to a static bool in nano.c, since it's only used there
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3421 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-24 18:54:29 +00:00
David Lawrence Ramsey 891e0ec281 in get_prompt_string(), include the handling of the help key even when
help is disabled, so that we aren't erroneously kicked out of the
statusbar prompt under any circumstances


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3420 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:32:50 +00:00
David Lawrence Ramsey 40e0572100 in shortcut_init(), tweak the descriptions of some shortcut keys to make
them more uniform, per Benno Schulenberg's patch with minor tweaks by me


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3419 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:21:12 +00:00
David Lawrence Ramsey 2ca2356802 adjust the main shortcut list a bit more, per Benno Schulenberg's patch,
and better handle the insertion of blank lines after toggles when
certain features are disabled


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3418 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 19:15:15 +00:00
David Lawrence Ramsey 4fd74e0db4 in help_init(), if we have at least two entries' worth of blank space,
use it to display more of "^Space" and "M-Space"


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3414 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-23 01:10:55 +00:00
David Lawrence Ramsey 1df3e2d0bf reorganize the main shortcut list to make it easier for new users, per
Benno Schulenberg's suggestion


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3410 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-22 19:45:26 +00:00
David Lawrence Ramsey 3ea0b1d6d8 fix breakage and typos
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3408 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:30:53 +00:00
David Lawrence Ramsey 5f0a58b055 add missing alternate meta key sequences
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3407 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:24:34 +00:00
David Lawrence Ramsey df45365592 add shortcuts to go to the first or last line of the file from the main
list, make all the equivalent shortcuts elsewhere consistent, and
simplify input parsing in do_help()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-21 02:05:09 +00:00
David Lawrence Ramsey 6397b592fb cleanups: fix M-M/M-N toggle inversion, and reorder toggle #defines in
nano.h to match the new order in toggle_init()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3405 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 22:36:10 +00:00
David Lawrence Ramsey e313f5b2c8 reorganize the global toggle list to make it easier for new users, per
Benno Schulenberg's suggestion


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3404 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 22:29:02 +00:00
David Lawrence Ramsey 1f09769052 in nano.texi, add minor updates to put some text back in sync with
nano's current feature set


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 15:45:24 +00:00
David Lawrence Ramsey 728c85a119 in nano.texi, add minor updates to put some text back in sync with
nano's help text


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3400 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 14:33:36 +00:00
David Lawrence Ramsey 57f97538b1 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3397 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:03:57 +00:00
David Lawrence Ramsey e904888324 in renumber(), remove invalid assert
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-20 03:02:33 +00:00
David Lawrence Ramsey 8ff785cf40 in toggle_init(), in the global toggle list, move the "Constant cursor
position display" toggle up to after the "Use more space for editing"
toggle, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3395 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 23:13:44 +00:00
David Lawrence Ramsey b9eb2be295 in shortcut_init(), in the main shortcut list, move the "Refresh"
shortcut down to after the "Enter" shortcut, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3394 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 22:55:37 +00:00
David Lawrence Ramsey efb4b0a96c add several blank entries to the main shortcut list, in order to make
its help text easier to read


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3392 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-19 14:09:01 +00:00
David Lawrence Ramsey e806ab8473 adjust the shortcut list display and related mouse support to not waste
the last few characters of bottomwin when the screen width isn't a clean
multiple of the column width, per Benno Schulenberg's patch (with a few
tweaks by me)


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3390 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-18 16:13:35 +00:00
David Lawrence Ramsey e916d67389 in nano.texi, mention that backup files and spell checking are disabled
in restricted mode, as rnano.1 does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3388 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:39:15 +00:00
David Lawrence Ramsey 51b1b2f1aa change nano.texi's the license to GPL, in order to match the rest of the
documentation, and because the current license is incompatible with
everything else in any case


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-16 22:13:10 +00:00
David Lawrence Ramsey 39b7189a13 in parse_syntax(), don't generate an error if we find a duplicate syntax
name, since we might be trying to override a syntax in the global nanorc
with one in our local nanorc; instead, free any duplicate syntaxes we
find, so that we always use the last syntax with a given name


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-15 16:02:02 +00:00
David Lawrence Ramsey 8f6fb3c6b6 change translator-specific comments in search.c so that they show up in
nano.pot


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3381 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 22:22:00 +00:00
David Lawrence Ramsey f50bd4be88 clarify some help text and documentation
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3379 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 20:15:44 +00:00
David Lawrence Ramsey b43648aae2 in configure.ac, remove old warning about color support
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3378 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 18:44:02 +00:00
David Lawrence Ramsey a33ec1deff in parse_syntax(), properly generate an error if we've read in a
previous syntax without any associated color commands


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3377 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-14 17:20:53 +00:00
David Lawrence Ramsey 8e05c315b2 in nanorc.sample, simplify the "nanorc" regex for commands
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3373 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:50:36 +00:00
David Lawrence Ramsey cee20e50c6 at long last, add the ability to use self-contained color syntaxes from
separate files, accessible in the nanorc via the "include" command


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3372 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-13 02:43:54 +00:00
David Lawrence Ramsey 5fac171c8b in do_rcfile(), check for the rcfile's being a directory or device file
and reject it if it is, for consistency with file handling elsewhere;
also remove SYSCONFDIR #ifdef, as SYSCONFDIR should always be set


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3369 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 21:44:07 +00:00
David Lawrence Ramsey 4d72de73b1 add the ability to use bold text instead of reverse video text, via the
-D/--boldtext command line option and the "boldtext" rcfile option, and
reduce USE_UTF8 to a static bool in chars.c


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 15:27:40 +00:00
David Lawrence Ramsey af318aaa5c make all translator comments consistent
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3366 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-12 12:54:23 +00:00
David Lawrence Ramsey cde9039335 change translator-specific comments in global.c and prompt.c so that
they show up in nano.pot


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3365 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:27:42 +00:00
David Lawrence Ramsey 0c4e30be7c add updated French manpages
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3363 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-09 18:16:48 +00:00
David Lawrence Ramsey 125b2f0be5 in write_file(), simplify the routine for closing the file just before
we indicate success on the statusbar


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3362 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 05:33:05 +00:00
David Lawrence Ramsey adfecd24b4 simplify the previous fix; also, in write_file(), clarify the error
message when writing a temporary file for prepending fails


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3361 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-07 04:37:14 +00:00
David Lawrence Ramsey 8055f0935f in open_file(), remove redundant wording in the error message when we
try to open a device file


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3358 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 22:57:22 +00:00
David Lawrence Ramsey f6287eaf54 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3357 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:46:09 +00:00
David Lawrence Ramsey ac8dfca510 in safe_tempfile(), don't ignore $TMPDIR if it's set but blank, for
consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3356 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 21:41:48 +00:00
David Lawrence Ramsey e5af25baef in write_file(), if we can't save the backup file for some reason, at
least save the original file, if possible, since that's better than
saving nothing


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3355 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-06 05:18:23 +00:00
David Lawrence Ramsey 5cbd990bf5 in parse_argument(), rename variable ptr_bak to ptr_save, for
consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3353 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:28:52 +00:00
David Lawrence Ramsey 979de2309b open all files in binary mode for consistency and robustness
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3352 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 21:25:47 +00:00
David Lawrence Ramsey b0588ae45e more comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3351 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 16:58:45 +00:00
David Lawrence Ramsey 6d3485e040 various documentation updates
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3348 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 13:40:56 +00:00
David Lawrence Ramsey 22e15eb7ad in write_file(), don't free backupname before displaying it in a
statusbar error message


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3347 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-05 02:56:47 +00:00
David Lawrence Ramsey 71da75e92c in nanorc.sample, in the comment for the "whitespace" option, state
which character values work with which encodings


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3346 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-04-01 19:30:52 +00:00
David Lawrence Ramsey d9d29c6220 add sample Python regexes to nanorc.sample
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3345 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 19:39:55 +00:00
David Lawrence Ramsey 0320f5bbac in nanorc.sample, change the comment for the "whitespace" option so that
the hexadecimal character values are six digits long


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3343 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-31 14:37:55 +00:00
David Lawrence Ramsey 4e0984775a in nanorc.sample, nention in the comments that more than one start/end
regex can be included per line


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3342 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:43:44 +00:00
David Lawrence Ramsey f420bea2ca in nanorc.sample, simplify the "c-file" regex for characters
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3339 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 20:26:58 +00:00
David Lawrence Ramsey aa79925d6a in nanorc.sample, simplify the "shellscript" regex for command line
options


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3338 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:18:27 +00:00
David Lawrence Ramsey b8d92feb62 in nanorc.sample, replace instances of \" with ", since quotes inside
string parameters don't need to be escaped with backslashes


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3337 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:12:50 +00:00
David Lawrence Ramsey cdf3f22c23 in nanorc.sample, rweak the "c-file" regex for characters to accept '"'
again, as it's apparently valid


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3336 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2006-03-30 18:07:38 +00:00