]> git.wh0rd.org Git - nano.git/log
nano.git
20 years agoin nano.1 and nano.texi, eliminate references to the now removed
David Lawrence Ramsey [Sun, 24 Oct 2004 16:47:54 +0000 (16:47 +0000)]
in nano.1 and nano.texi, eliminate references to the now removed
-D/--dos and -M/--mac command line options

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2022 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Sun, 24 Oct 2004 16:45:40 +0000 (16:45 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2021 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix for the ^^ help entry
David Lawrence Ramsey [Sun, 24 Oct 2004 16:18:17 +0000 (16:18 +0000)]
consistency fix for the ^^ help entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2020 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing parentheses
David Lawrence Ramsey [Sat, 23 Oct 2004 14:59:32 +0000 (14:59 +0000)]
add missing parentheses

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2019 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix for the ^I help entry
David Lawrence Ramsey [Sat, 23 Oct 2004 14:53:07 +0000 (14:53 +0000)]
consistency fix for the ^I help entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2018 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agosimplify the key-interpreting logic in get_shortcut()
David Lawrence Ramsey [Sat, 23 Oct 2004 13:50:57 +0000 (13:50 +0000)]
simplify the key-interpreting logic in get_shortcut()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2017 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix wrong word
David Lawrence Ramsey [Sat, 23 Oct 2004 02:48:13 +0000 (02:48 +0000)]
fix wrong word

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2016 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd UTF-8 support to unget_kbinput(), and fix a minor memory leak in the
David Lawrence Ramsey [Sat, 23 Oct 2004 02:47:39 +0000 (02:47 +0000)]
add UTF-8 support to unget_kbinput(), and fix a minor memory leak in the
UTF-8 support code in get_kbinput()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2015 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin main(), tweak the command line parsing routine so that multiple +LINE
David Lawrence Ramsey [Fri, 22 Oct 2004 20:25:56 +0000 (20:25 +0000)]
in main(), tweak the command line parsing routine so that multiple +LINE
flags are properly interpreted in multibuffer mode

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2014 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fix
David Lawrence Ramsey [Fri, 22 Oct 2004 16:11:55 +0000 (16:11 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2013 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoapply patch from DB: in write_file(), if we've tried to write to an
David Lawrence Ramsey [Fri, 22 Oct 2004 03:33:54 +0000 (03:33 +0000)]
apply patch from DB: in write_file(), if we've tried to write to an
unwritable file and we're not prepending, tempname is NULL when it's
passed to unlink(); this can cause problems if unlink() can't handle
NULL, so don't call it in that case

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2012 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoanother indentation fix
David Lawrence Ramsey [Fri, 22 Oct 2004 03:30:39 +0000 (03:30 +0000)]
another indentation fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2011 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove more unneeded casts, and add an indentation fix
David Lawrence Ramsey [Thu, 21 Oct 2004 22:49:51 +0000 (22:49 +0000)]
remove more unneeded casts, and add an indentation fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2010 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove unnecessary casts
David Lawrence Ramsey [Thu, 21 Oct 2004 22:06:40 +0000 (22:06 +0000)]
remove unnecessary casts

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2009 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin nanorc.sample, change the included speller value to "aspell -x -c";
David Lawrence Ramsey [Thu, 21 Oct 2004 17:11:40 +0000 (17:11 +0000)]
in nanorc.sample, change the included speller value to "aspell -x -c";
the -x option makes aspell not create backup files, and this is
consistent with the internal spell checker's behavior

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2008 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_replace_loop(), check for more than one wrap at the right place
David Lawrence Ramsey [Thu, 21 Oct 2004 16:51:45 +0000 (16:51 +0000)]
in do_replace_loop(), check for more than one wrap at the right place

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2007 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agowhen saving or changing file positions, be sure not to ignore
David Lawrence Ramsey [Thu, 21 Oct 2004 16:25:44 +0000 (16:25 +0000)]
when saving or changing file positions, be sure not to ignore
placewewant; also move a misplaced changelog entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2006 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodo the check for being outside the mark after the zero-length regexes
David Lawrence Ramsey [Thu, 21 Oct 2004 15:44:36 +0000 (15:44 +0000)]
do the check for being outside the mark after the zero-length regexes
check, so that zero-length regex replaces work properly again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2005 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix infinite loop when we're doing a replace of marked text and the only
David Lawrence Ramsey [Thu, 21 Oct 2004 15:32:11 +0000 (15:32 +0000)]
fix infinite loop when we're doing a replace of marked text and the only
matches found are outside the marked text

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2004 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoyet more search code cleanups
David Lawrence Ramsey [Tue, 19 Oct 2004 21:09:37 +0000 (21:09 +0000)]
yet more search code cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2003 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix findnextstr() so wholewords works properly with regular expressions
David Lawrence Ramsey [Mon, 18 Oct 2004 22:19:22 +0000 (22:19 +0000)]
fix findnextstr() so wholewords works properly with regular expressions
and in conjunction with no_sameline, and add a few other minor cosmetic
fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2002 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd glib-2.0.m4 from glib 2.4.7 to the m4 directory; this is needed to
David Lawrence Ramsey [Mon, 18 Oct 2004 19:28:10 +0000 (19:28 +0000)]
add glib-2.0.m4 from glib 2.4.7 to the m4 directory; this is needed to
detect glib 2.x on systems that may not have it installed

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2001 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorely on glib 2.x only if the system doesn't have v?snprintf(), and
David Lawrence Ramsey [Mon, 18 Oct 2004 14:13:28 +0000 (14:13 +0000)]
rely on glib 2.x only if the system doesn't have v?snprintf(), and
update README.CVS accordingly

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2000 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing line
David Lawrence Ramsey [Mon, 18 Oct 2004 02:17:18 +0000 (02:17 +0000)]
add missing line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1999 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodocument the last miscellaneous fix
David Lawrence Ramsey [Mon, 18 Oct 2004 02:11:46 +0000 (02:11 +0000)]
document the last miscellaneous fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1998 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorearrange the mark-handling code in do_replace_loop() a bit, and add one
David Lawrence Ramsey [Mon, 18 Oct 2004 02:06:53 +0000 (02:06 +0000)]
rearrange the mark-handling code in do_replace_loop() a bit, and add one
more miscellaneous fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1997 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agohelp text updates, and a few more miscellaneous fixes
David Lawrence Ramsey [Mon, 18 Oct 2004 01:51:43 +0000 (01:51 +0000)]
help text updates, and a few more miscellaneous fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1996 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomore minor cosmetic fixes
David Lawrence Ramsey [Sat, 16 Oct 2004 15:41:57 +0000 (15:41 +0000)]
more minor cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1995 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_alt_speller(), call terminal_init() unconditionally after running
David Lawrence Ramsey [Sat, 16 Oct 2004 04:56:34 +0000 (04:56 +0000)]
in do_alt_speller(), call terminal_init() unconditionally after running
the alternate spell checker, so that the terminal state is properly
restored in all cases

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1994 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoanother minor cleanup
David Lawrence Ramsey [Fri, 15 Oct 2004 16:35:34 +0000 (16:35 +0000)]
another minor cleanup

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1993 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agominor cleanups
David Lawrence Ramsey [Fri, 15 Oct 2004 16:25:56 +0000 (16:25 +0000)]
minor cleanups

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1992 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake the UTF-8 character reading support work in more instances
David Lawrence Ramsey [Fri, 15 Oct 2004 01:51:36 +0000 (01:51 +0000)]
make the UTF-8 character reading support work in more instances

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1991 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix spurious warning message in do_gotoline() that was introduced when
David Lawrence Ramsey [Fri, 15 Oct 2004 01:39:46 +0000 (01:39 +0000)]
fix spurious warning message in do_gotoline() that was introduced when
it was overhauled, and also fix some indentation in statusq()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1990 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd support for reading in UTF-8 sequences to some of the low-level
David Lawrence Ramsey [Thu, 14 Oct 2004 21:59:45 +0000 (21:59 +0000)]
add support for reading in UTF-8 sequences to some of the low-level
input functions

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1989 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agosimplify the curses library tests in configure.ac by checking for
David Lawrence Ramsey [Thu, 14 Oct 2004 21:59:00 +0000 (21:59 +0000)]
simplify the curses library tests in configure.ac by checking for
initscr() instead of tgetent() where possible

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1988 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake get_escape_seq_kbinput()'s escape_seq parameter a const int*, since
David Lawrence Ramsey [Thu, 14 Oct 2004 20:48:38 +0000 (20:48 +0000)]
make get_escape_seq_kbinput()'s escape_seq parameter a const int*, since
it's never modified

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1987 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove resetstatuspos prototype left over from when it was global
David Lawrence Ramsey [Thu, 14 Oct 2004 20:36:47 +0000 (20:36 +0000)]
remove resetstatuspos prototype left over from when it was global

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1986 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing word
David Lawrence Ramsey [Mon, 11 Oct 2004 14:00:46 +0000 (14:00 +0000)]
add missing word

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1985 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agominor fixes involving case insensitive searches and NANO_SMALL
David Lawrence Ramsey [Mon, 11 Oct 2004 13:55:33 +0000 (13:55 +0000)]
minor fixes involving case insensitive searches and NANO_SMALL

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1984 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agooops, Pico doesn't preserve placewewant when inserting a file; we do it
David Lawrence Ramsey [Sat, 9 Oct 2004 20:16:17 +0000 (20:16 +0000)]
oops, Pico doesn't preserve placewewant when inserting a file; we do it
for consistency

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1983 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_insertfile(), when inserting a file in non-multibuffer mode,
David Lawrence Ramsey [Sat, 9 Oct 2004 20:12:04 +0000 (20:12 +0000)]
in do_insertfile(), when inserting a file in non-multibuffer mode,
preserve placewewant as well as current_x, for compatibility with Pico

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1982 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fixes
David Lawrence Ramsey [Sat, 9 Oct 2004 20:10:55 +0000 (20:10 +0000)]
cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1981 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix backwards #ifdefs
David Lawrence Ramsey [Sat, 9 Oct 2004 17:15:46 +0000 (17:15 +0000)]
fix backwards #ifdefs

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1980 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_int_spell_fix(), move the REVERSE_SEARCH flag toggling into the
David Lawrence Ramsey [Sat, 9 Oct 2004 16:59:43 +0000 (16:59 +0000)]
in do_int_spell_fix(), move the REVERSE_SEARCH flag toggling into the
NANO_SMALL #ifdef, since the tiny version of nano doesn't support
reverse searching; also, turn the USE_REGEXP flag off during spell
checking in order to avoid a potential segfault

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1979 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_replace_loop(), if the mark is on when we start, skip over all
David Lawrence Ramsey [Sat, 9 Oct 2004 16:26:32 +0000 (16:26 +0000)]
in do_replace_loop(), if the mark is on when we start, skip over all
matches not found inside the marked text; this makes marked spell
checking when using the internal spell checker work as expected, and
also allows replacing only marked text when the mark is on

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1978 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomiscellaneous cleanups in do_replace_loop(): set current to real_current
David Lawrence Ramsey [Fri, 8 Oct 2004 23:06:01 +0000 (23:06 +0000)]
miscellaneous cleanups in do_replace_loop(): set current to real_current
and current_x to current_x_save, only turn the mark off and call
edit_refresh() if the mark was originally on, and make length_change a
ssize_t

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1977 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoanother comment fix
David Lawrence Ramsey [Fri, 8 Oct 2004 20:37:44 +0000 (20:37 +0000)]
another comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1976 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fix
David Lawrence Ramsey [Fri, 8 Oct 2004 20:34:53 +0000 (20:34 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1975 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin mark_order(), add check for MARK_ISSET's not being set; also make one
David Lawrence Ramsey [Fri, 8 Oct 2004 15:35:33 +0000 (15:35 +0000)]
in mark_order(), add check for MARK_ISSET's not being set; also make one
more int -> bool conversion and cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1974 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove the -D/--dos and -M/--mac command line options, as they aren't
David Lawrence Ramsey [Thu, 7 Oct 2004 20:54:52 +0000 (20:54 +0000)]
remove the -D/--dos and -M/--mac command line options, as they aren't
much use with the new file format autodetection

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1973 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdate Basque translation by Mikel Olasagasti.
Jordi Mallach [Thu, 7 Oct 2004 17:36:56 +0000 (17:36 +0000)]
Update Basque translation by Mikel Olasagasti.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1972 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove DOS line endings, and fix a typo in a comment
David Lawrence Ramsey [Wed, 6 Oct 2004 21:11:21 +0000 (21:11 +0000)]
remove DOS line endings, and fix a typo in a comment

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1971 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_insertfile(), add missing #ifdefs around the wrap_reset() call so
David Lawrence Ramsey [Tue, 5 Oct 2004 20:24:48 +0000 (20:24 +0000)]
in do_insertfile(), add missing #ifdefs around the wrap_reset() call so
that nano compiles with wrapping disabled again

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1970 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoreally fix the resetstatus problems this time, and add a few other
David Lawrence Ramsey [Tue, 5 Oct 2004 20:11:31 +0000 (20:11 +0000)]
really fix the resetstatus problems this time, and add a few other
miscellaneous fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1969 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoanother int -> bool conversion
David Lawrence Ramsey [Tue, 5 Oct 2004 16:14:19 +0000 (16:14 +0000)]
another int -> bool conversion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1968 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin do_insertfile(), if file browsing succeeds, copy the filename we
David Lawrence Ramsey [Tue, 5 Oct 2004 02:46:24 +0000 (02:46 +0000)]
in do_insertfile(), if file browsing succeeds, copy the filename we
browsed to into ans, put back Enter, and show the prompt one last time
so that it's exited properly and the cursor position at the statusbar is
reset

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1967 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake resetstatuspos static to just statusq()
David Lawrence Ramsey [Tue, 5 Oct 2004 02:29:52 +0000 (02:29 +0000)]
make resetstatuspos static to just statusq()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1966 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd parameter use_answer to search_init(); when it's TRUE, only set
David Lawrence Ramsey [Mon, 4 Oct 2004 22:37:56 +0000 (22:37 +0000)]
add parameter use_answer to search_init(); when it's TRUE, only set
backupstring to answer, so that we can preserve the text of the
statusbar when switching to the search prompt from the "Go To Line"
prompt; also, set backupstring before doing anything else, add one minor
efficiency tweak, and preserve the text of the statusbar no matter what
when switching from the search prompt to the "Go To Line" prompt, since
the toggling works both ways now and non-numeric text shouldn't be lost
when going only one of those ways

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1965 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocomment fix
David Lawrence Ramsey [Mon, 4 Oct 2004 22:35:43 +0000 (22:35 +0000)]
comment fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1964 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove redundancy erroneously introduced when adding the ^T toggle to
David Lawrence Ramsey [Mon, 4 Oct 2004 16:01:37 +0000 (16:01 +0000)]
remove redundancy erroneously introduced when adding the ^T toggle to
the "Go To Line" prompt

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1963 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd another cosmetic fix
David Lawrence Ramsey [Mon, 4 Oct 2004 15:53:40 +0000 (15:53 +0000)]
add another cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1962 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd minor cosmetic fixes, and do another int -> bool conversion
David Lawrence Ramsey [Mon, 4 Oct 2004 15:23:47 +0000 (15:23 +0000)]
add minor cosmetic fixes, and do another int -> bool conversion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1961 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove stray dash
David Lawrence Ramsey [Sun, 3 Oct 2004 19:26:13 +0000 (19:26 +0000)]
remove stray dash

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1960 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin open_(prev|next)_file(), translate the "New Buffer" string when
David Lawrence Ramsey [Sun, 3 Oct 2004 19:18:48 +0000 (19:18 +0000)]
in open_(prev|next)_file(), translate the "New Buffer" string when
displaying "Switched to" messages on the statusbar; also do a few more
int -> bool conversions

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1959 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoafter reading in a file and detecting the format it's in, set the file
David Lawrence Ramsey [Sun, 3 Oct 2004 13:47:26 +0000 (13:47 +0000)]
after reading in a file and detecting the format it's in, set the file
format flags (DOS_FILE and MAC_FILE) to match, and preserve them across
multiple file buffers

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1958 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix
David Lawrence Ramsey [Fri, 1 Oct 2004 21:37:36 +0000 (21:37 +0000)]
consistency fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1957 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing blank line
David Lawrence Ramsey [Fri, 1 Oct 2004 18:47:17 +0000 (18:47 +0000)]
add missing blank line

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1956 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofor consistency, make do_insertfile() take a parameter to indicate
David Lawrence Ramsey [Fri, 1 Oct 2004 18:34:30 +0000 (18:34 +0000)]
for consistency, make do_insertfile() take a parameter to indicate
whether it's in "Execute Command" mode; also add continue and goto to
the "c-file" regexes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1955 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd a bunch of key-related fixes: put Meta-( (Meta-9), Meta-) (Meta-0),
David Lawrence Ramsey [Thu, 30 Sep 2004 22:07:21 +0000 (22:07 +0000)]
add a bunch of key-related fixes: put Meta-( (Meta-9), Meta-) (Meta-0),
and Meta-J back in the shortcut list since Meta-G is used in the file
browser and not as a toggle, tweak nanogetstr() and statusq() so that
resetstatuspos can be reduced to a static bool, change the names of some
keys to be more consistent, and add the ^R^X^X and ^W^T^T shortcuts
(note that the latter doesn't preserve the contents of the statusbar yet
when ^T is pressed at the "Go To Line" prompt), and add a few other
miscellaneous tweaks

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1954 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofix #ifdef breakage
David Lawrence Ramsey [Tue, 28 Sep 2004 22:21:46 +0000 (22:21 +0000)]
fix #ifdef breakage

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1953 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd a multibuffer mode toggle to the "Execute Command" prompt, for
David Lawrence Ramsey [Tue, 28 Sep 2004 22:14:58 +0000 (22:14 +0000)]
add a multibuffer mode toggle to the "Execute Command" prompt, for
consistency with the "Read File" prompt

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1952 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agosimplify do_insertfile() by reusing variables where possible
David Lawrence Ramsey [Tue, 28 Sep 2004 20:50:50 +0000 (20:50 +0000)]
simplify do_insertfile() by reusing variables where possible

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1951 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomore int -> bool conversions
David Lawrence Ramsey [Tue, 28 Sep 2004 20:37:03 +0000 (20:37 +0000)]
more int -> bool conversions

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1950 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoconsistency fix: the convention for shortcuts lists other than the main
David Lawrence Ramsey [Tue, 28 Sep 2004 16:51:08 +0000 (16:51 +0000)]
consistency fix: the convention for shortcuts lists other than the main
list is apparently to only allow meta shortcuts as toggles, so only
allow the meta shortcuts for searching for the beginning and end of the
paragraph and justifying the entire file to go in the main list

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1949 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic fix
David Lawrence Ramsey [Tue, 28 Sep 2004 16:03:03 +0000 (16:03 +0000)]
cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1948 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoresetstatuspos should be a bool, not an int
David Lawrence Ramsey [Tue, 28 Sep 2004 15:58:56 +0000 (15:58 +0000)]
resetstatuspos should be a bool, not an int

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1947 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoin shortcut_init(), change an erroneous _() around the "New Buffer"
David Lawrence Ramsey [Tue, 28 Sep 2004 15:17:47 +0000 (15:17 +0000)]
in shortcut_init(), change an erroneous _() around the "New Buffer"
string to N_()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1946 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofor consistency, at the "Go To Line" prompt, display "Cancelled" instead
David Lawrence Ramsey [Tue, 28 Sep 2004 15:06:15 +0000 (15:06 +0000)]
for consistency, at the "Go To Line" prompt, display "Cancelled" instead
of "Aborted" if we cancel

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1945 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd missing func_key reference
David Lawrence Ramsey [Mon, 27 Sep 2004 01:10:48 +0000 (01:10 +0000)]
add missing func_key reference

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1944 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd a func_key flag to the low-level input functions and the currently
David Lawrence Ramsey [Mon, 27 Sep 2004 01:04:50 +0000 (01:04 +0000)]
add a func_key flag to the low-level input functions and the currently
existing high-level input functions, to indicate extended keypad values

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1943 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorefresh the screen when Ctrl-L is pressed at the statusbar prompt, as
David Lawrence Ramsey [Sat, 25 Sep 2004 00:45:07 +0000 (00:45 +0000)]
refresh the screen when Ctrl-L is pressed at the statusbar prompt, as
Pico does

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1942 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agocosmetic comment fixes
David Lawrence Ramsey [Fri, 24 Sep 2004 21:48:40 +0000 (21:48 +0000)]
cosmetic comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1941 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove redundant include of limits.h from nano.c
David Lawrence Ramsey [Thu, 23 Sep 2004 21:52:58 +0000 (21:52 +0000)]
remove redundant include of limits.h from nano.c

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1940 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoturn off extended input processing (the IEXTEN termios flag) as nano
David Lawrence Ramsey [Wed, 22 Sep 2004 22:45:08 +0000 (22:45 +0000)]
turn off extended input processing (the IEXTEN termios flag) as nano
1.2.x does

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1939 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake some ints that use the value of fill and can be greater than COLS
David Lawrence Ramsey [Sat, 18 Sep 2004 22:02:21 +0000 (22:02 +0000)]
make some ints that use the value of fill and can be greater than COLS
ssize_t's for consistency, and add a few minor cosmetic fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1938 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agorevert the blocking of meta sequences in main(), as it doesn't solve the
David Lawrence Ramsey [Sun, 12 Sep 2004 22:01:38 +0000 (22:01 +0000)]
revert the blocking of meta sequences in main(), as it doesn't solve the
problem of meta sequences' sometimes being interpreted as printable
characters when they shouldn't be

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1937 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodocument keeping meta sequences from getting through to do_char() in the
David Lawrence Ramsey [Sun, 12 Sep 2004 21:40:04 +0000 (21:40 +0000)]
document keeping meta sequences from getting through to do_char() in the
changelog, and update a related comment

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1936 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agodon't let meta sequences get through to do_char()
David Lawrence Ramsey [Sun, 12 Sep 2004 21:30:36 +0000 (21:30 +0000)]
don't let meta sequences get through to do_char()

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1935 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake the help menu shortcut display more flexible, add more intuitive
David Lawrence Ramsey [Sat, 11 Sep 2004 21:41:13 +0000 (21:41 +0000)]
make the help menu shortcut display more flexible, add more intuitive
aliases for moving to the beginning and end of a paragraph and
justifying the entire file, and make those aliases available in the main
shortcut list too, since Pico's practice of putting them in the search
menu is rather odd

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1934 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agofor more compatibility with Pico, remove extra space after a character
David Lawrence Ramsey [Sat, 11 Sep 2004 21:28:36 +0000 (21:28 +0000)]
for more compatibility with Pico, remove extra space after a character
in punct if that character is the same as the one before it

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1933 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdated manpages by Jean-Philippe.
Jordi Mallach [Fri, 10 Sep 2004 22:18:53 +0000 (22:18 +0000)]
Updated manpages by Jean-Philippe.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1932 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agomake get_edit_input() respect view mode, and clarify its changelog entry
David Lawrence Ramsey [Tue, 7 Sep 2004 21:51:49 +0000 (21:51 +0000)]
make get_edit_input() respect view mode, and clarify its changelog entry

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1931 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agominor cosmetic fix
David Lawrence Ramsey [Tue, 7 Sep 2004 15:45:14 +0000 (15:45 +0000)]
minor cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1930 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agowhen calling AC_TRY_RUN() to test for a broken regexec() function, set
David Lawrence Ramsey [Tue, 7 Sep 2004 00:48:49 +0000 (00:48 +0000)]
when calling AC_TRY_RUN() to test for a broken regexec() function, set
the fourth parameter to default to "no" (since it apparently only occurs
on glibc 2.2.3-based systems) so that cross-compiling will work

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1929 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoadd DB's overhaul of the file loading code to increase efficiency,
David Lawrence Ramsey [Sun, 5 Sep 2004 21:40:31 +0000 (21:40 +0000)]
add DB's overhaul of the file loading code to increase efficiency,
remove ugly workarounds for most cases of edittop's or current's being
NULL (as those cases no longer occur due to the overhaul), and remove
detection of binary files (since it wasn't always accurate and will only
cause problems when UTF-8 support is added); also add a few minor fixes
of mine

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1928 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoremove reference to @includedir@ in src/Makefile.am, as it's unneeded
David Lawrence Ramsey [Wed, 1 Sep 2004 22:08:57 +0000 (22:08 +0000)]
remove reference to @includedir@ in src/Makefile.am, as it's unneeded
and can break cross-compilation

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1927 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdated French manpages from Jean-Philippe.
Jordi Mallach [Tue, 31 Aug 2004 18:26:28 +0000 (18:26 +0000)]
Updated French manpages from Jean-Philippe.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1926 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdate Spanish translation from Javi.
Jordi Mallach [Tue, 31 Aug 2004 18:13:07 +0000 (18:13 +0000)]
Update Spanish translation from Javi.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1925 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdated translations.
Jordi Mallach [Tue, 31 Aug 2004 00:23:16 +0000 (00:23 +0000)]
Updated translations.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1924 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

20 years agoUpdated French translation by Jean-Philippe Guérard.
Jordi Mallach [Tue, 31 Aug 2004 00:22:02 +0000 (00:22 +0000)]
Updated French translation by Jean-Philippe Guérard.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1923 35c25a1d-7b9e-4130-9fde-d3aeb78583b8