#
1.37 |
|
08-Mar-2023 |
guenther |
Delete obsolete /* ARGSUSED */ lint comments.
ok miod@ millert@
|
Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.36 |
|
22-Apr-2021 |
lum |
Add a non-interactive version of query-replace-regexp function called replace-regexp. Unfortunately query-replace-regexp can't be used in a startup file.
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.35 |
|
22-Jul-2020 |
tb |
Avoid running out of memory with query-replace-regex ^
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory.
Patch from Mark Willson with minor stylistic tweaks.
Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either.
Also tested by krw
|
#
1.34 |
|
09-Jul-2020 |
tb |
Avoid NULL deref in regexec when searching for empty lines.
Report & tweak from Hiltjo Posthuma
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.33 |
|
06-Aug-2017 |
bcallah |
Present the default choice before the colon in prompts. Matches GNU Emacs behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
#
1.32 |
|
30-May-2017 |
florian |
fix -Wshadow warnings. Found by bcallah, thanks!
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.31 |
|
19-Mar-2015 |
bcallah |
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.30 |
|
20-Mar-2014 |
lum |
Add some missing dobeeps. ok florian@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.29 |
|
20-Dec-2013 |
florian |
Set the correct line number after successfully searching with re-search-{backward,forward}. OK lum
|
#
1.28 |
|
24-Sep-2013 |
jasper |
rename re_match to regex_match to prevent a namespace conflict on Linux as reported by Han Boetes.
while here, rename re_buff accordingly for consistency.
ok florian@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
31-May-2013 |
lum |
Make the system bell toggleable via 'audible-bell', and if switched off, make available an alternative 'visible-bell'.
ok florian@ jasper@ Feedback Sunil Nimmagadda.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.26 |
|
21-Jan-2011 |
kjell |
It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.25 |
|
04-Jun-2009 |
kjell |
Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.24 |
|
25-Jul-2006 |
kjell |
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
|
#
1.23 |
|
28-May-2006 |
kjell |
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.22 |
|
13-Dec-2005 |
kjell |
More name-clash delinting
|
#
1.21 |
|
18-Nov-2005 |
deraadt |
greedy use of typedef struct was making code harder to read; ok kjell cloder
|
#
1.20 |
|
18-Nov-2005 |
kjell |
Casefold on replace was killed ages ago (it was wrong). Remove a leftover (unused) variable.
|
#
1.19 |
|
14-Oct-2005 |
deraadt |
unused variables
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.18 |
|
09-Aug-2005 |
kjell |
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior
ok beck@ many, many moons ago.
|
#
1.17 |
|
14-Jun-2005 |
kjell |
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
|
#
1.16 |
|
14-Jun-2005 |
kjell |
Three more ereply that should be ereads. This fixes henning's "replace with null string is busted" observation.
ok henning@, cloder@
|
#
1.15 |
|
05-Jun-2005 |
kjell |
if functions permits null reply from minibuffer, use eread (with EFNUL), not ereply. ok cloder
|
#
1.14 |
|
03-Apr-2005 |
db |
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification
ok henning@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.13 |
|
22-Jul-2004 |
vincent |
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.12 |
|
20-May-2003 |
cloder |
Finish KNF of prototypes. That should be all of them. OK vincent@
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
#
1.10 |
|
13-Feb-2002 |
vincent |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c
ok deraadt@, art@
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
24-May-2001 |
mickey |
spaces
|
#
1.8 |
|
23-May-2001 |
art |
remove VOID. We're way beyond the point where this could build with an ancient compiler.
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.7 |
|
29-Jan-2001 |
niklas |
$OpenBSD$
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
01-Sep-2000 |
millert |
More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
13-Apr-2000 |
millert |
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
|
#
1.4 |
|
29-Feb-2000 |
millert |
Better backwards regexp searching. POSIX regexp's don't really give a good way to do this.
|
#
1.3 |
|
29-Feb-2000 |
millert |
Make reverse searching work.
|
#
1.2 |
|
28-Feb-2000 |
millert |
Use POSIX extended regular expressions. Reverse regex searching does not yet work.
|
#
1.1 |
|
25-Feb-2000 |
deraadt |
initial import of mg2a
|
#
1.36 |
|
22-Apr-2021 |
lum |
Add a non-interactive version of query-replace-regexp function called replace-regexp. Unfortunately query-replace-regexp can't be used in a startup file.
|
Revision tags: OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.35 |
|
22-Jul-2020 |
tb |
Avoid running out of memory with query-replace-regex ^
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory.
Patch from Mark Willson with minor stylistic tweaks.
Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either.
Also tested by krw
|
#
1.34 |
|
09-Jul-2020 |
tb |
Avoid NULL deref in regexec when searching for empty lines.
Report & tweak from Hiltjo Posthuma
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.33 |
|
06-Aug-2017 |
bcallah |
Present the default choice before the colon in prompts. Matches GNU Emacs behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
#
1.32 |
|
30-May-2017 |
florian |
fix -Wshadow warnings. Found by bcallah, thanks!
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.31 |
|
19-Mar-2015 |
bcallah |
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.30 |
|
20-Mar-2014 |
lum |
Add some missing dobeeps. ok florian@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.29 |
|
20-Dec-2013 |
florian |
Set the correct line number after successfully searching with re-search-{backward,forward}. OK lum
|
#
1.28 |
|
24-Sep-2013 |
jasper |
rename re_match to regex_match to prevent a namespace conflict on Linux as reported by Han Boetes.
while here, rename re_buff accordingly for consistency.
ok florian@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
31-May-2013 |
lum |
Make the system bell toggleable via 'audible-bell', and if switched off, make available an alternative 'visible-bell'.
ok florian@ jasper@ Feedback Sunil Nimmagadda.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.26 |
|
21-Jan-2011 |
kjell |
It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.25 |
|
04-Jun-2009 |
kjell |
Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.24 |
|
25-Jul-2006 |
kjell |
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
|
#
1.23 |
|
28-May-2006 |
kjell |
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.22 |
|
13-Dec-2005 |
kjell |
More name-clash delinting
|
#
1.21 |
|
18-Nov-2005 |
deraadt |
greedy use of typedef struct was making code harder to read; ok kjell cloder
|
#
1.20 |
|
18-Nov-2005 |
kjell |
Casefold on replace was killed ages ago (it was wrong). Remove a leftover (unused) variable.
|
#
1.19 |
|
14-Oct-2005 |
deraadt |
unused variables
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.18 |
|
09-Aug-2005 |
kjell |
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior
ok beck@ many, many moons ago.
|
#
1.17 |
|
14-Jun-2005 |
kjell |
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
|
#
1.16 |
|
14-Jun-2005 |
kjell |
Three more ereply that should be ereads. This fixes henning's "replace with null string is busted" observation.
ok henning@, cloder@
|
#
1.15 |
|
05-Jun-2005 |
kjell |
if functions permits null reply from minibuffer, use eread (with EFNUL), not ereply. ok cloder
|
#
1.14 |
|
03-Apr-2005 |
db |
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification
ok henning@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.13 |
|
22-Jul-2004 |
vincent |
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.12 |
|
20-May-2003 |
cloder |
Finish KNF of prototypes. That should be all of them. OK vincent@
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
#
1.10 |
|
13-Feb-2002 |
vincent |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c
ok deraadt@, art@
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
24-May-2001 |
mickey |
spaces
|
#
1.8 |
|
23-May-2001 |
art |
remove VOID. We're way beyond the point where this could build with an ancient compiler.
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.7 |
|
29-Jan-2001 |
niklas |
$OpenBSD$
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
01-Sep-2000 |
millert |
More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
13-Apr-2000 |
millert |
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
|
#
1.4 |
|
29-Feb-2000 |
millert |
Better backwards regexp searching. POSIX regexp's don't really give a good way to do this.
|
#
1.3 |
|
29-Feb-2000 |
millert |
Make reverse searching work.
|
#
1.2 |
|
28-Feb-2000 |
millert |
Use POSIX extended regular expressions. Reverse regex searching does not yet work.
|
#
1.1 |
|
25-Feb-2000 |
deraadt |
initial import of mg2a
|
#
1.35 |
|
22-Jul-2020 |
tb |
Avoid running out of memory with query-replace-regex ^
Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory.
Patch from Mark Willson with minor stylistic tweaks.
Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either.
Also tested by krw
|
#
1.34 |
|
09-Jul-2020 |
tb |
Avoid NULL deref in regexec when searching for empty lines.
Report & tweak from Hiltjo Posthuma
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.33 |
|
06-Aug-2017 |
bcallah |
Present the default choice before the colon in prompts. Matches GNU Emacs behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
#
1.32 |
|
30-May-2017 |
florian |
fix -Wshadow warnings. Found by bcallah, thanks!
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.31 |
|
19-Mar-2015 |
bcallah |
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.30 |
|
20-Mar-2014 |
lum |
Add some missing dobeeps. ok florian@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.29 |
|
20-Dec-2013 |
florian |
Set the correct line number after successfully searching with re-search-{backward,forward}. OK lum
|
#
1.28 |
|
24-Sep-2013 |
jasper |
rename re_match to regex_match to prevent a namespace conflict on Linux as reported by Han Boetes.
while here, rename re_buff accordingly for consistency.
ok florian@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
31-May-2013 |
lum |
Make the system bell toggleable via 'audible-bell', and if switched off, make available an alternative 'visible-bell'.
ok florian@ jasper@ Feedback Sunil Nimmagadda.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.26 |
|
21-Jan-2011 |
kjell |
It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.25 |
|
04-Jun-2009 |
kjell |
Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.24 |
|
25-Jul-2006 |
kjell |
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
|
#
1.23 |
|
28-May-2006 |
kjell |
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.22 |
|
13-Dec-2005 |
kjell |
More name-clash delinting
|
#
1.21 |
|
18-Nov-2005 |
deraadt |
greedy use of typedef struct was making code harder to read; ok kjell cloder
|
#
1.20 |
|
18-Nov-2005 |
kjell |
Casefold on replace was killed ages ago (it was wrong). Remove a leftover (unused) variable.
|
#
1.19 |
|
14-Oct-2005 |
deraadt |
unused variables
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.18 |
|
09-Aug-2005 |
kjell |
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior
ok beck@ many, many moons ago.
|
#
1.17 |
|
14-Jun-2005 |
kjell |
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
|
#
1.16 |
|
14-Jun-2005 |
kjell |
Three more ereply that should be ereads. This fixes henning's "replace with null string is busted" observation.
ok henning@, cloder@
|
#
1.15 |
|
05-Jun-2005 |
kjell |
if functions permits null reply from minibuffer, use eread (with EFNUL), not ereply. ok cloder
|
#
1.14 |
|
03-Apr-2005 |
db |
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification
ok henning@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.13 |
|
22-Jul-2004 |
vincent |
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.12 |
|
20-May-2003 |
cloder |
Finish KNF of prototypes. That should be all of them. OK vincent@
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
#
1.10 |
|
13-Feb-2002 |
vincent |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c
ok deraadt@, art@
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
24-May-2001 |
mickey |
spaces
|
#
1.8 |
|
23-May-2001 |
art |
remove VOID. We're way beyond the point where this could build with an ancient compiler.
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.7 |
|
29-Jan-2001 |
niklas |
$OpenBSD$
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
01-Sep-2000 |
millert |
More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
13-Apr-2000 |
millert |
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
|
#
1.4 |
|
29-Feb-2000 |
millert |
Better backwards regexp searching. POSIX regexp's don't really give a good way to do this.
|
#
1.3 |
|
29-Feb-2000 |
millert |
Make reverse searching work.
|
#
1.2 |
|
28-Feb-2000 |
millert |
Use POSIX extended regular expressions. Reverse regex searching does not yet work.
|
#
1.1 |
|
25-Feb-2000 |
deraadt |
initial import of mg2a
|
#
1.34 |
|
09-Jul-2020 |
tb |
Avoid NULL deref in regexec when searching for empty lines.
Report & tweak from Hiltjo Posthuma
|
Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE
|
#
1.33 |
|
06-Aug-2017 |
bcallah |
Present the default choice before the colon in prompts. Matches GNU Emacs behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
#
1.32 |
|
30-May-2017 |
florian |
fix -Wshadow warnings. Found by bcallah, thanks!
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.31 |
|
19-Mar-2015 |
bcallah |
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.30 |
|
20-Mar-2014 |
lum |
Add some missing dobeeps. ok florian@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.29 |
|
20-Dec-2013 |
florian |
Set the correct line number after successfully searching with re-search-{backward,forward}. OK lum
|
#
1.28 |
|
24-Sep-2013 |
jasper |
rename re_match to regex_match to prevent a namespace conflict on Linux as reported by Han Boetes.
while here, rename re_buff accordingly for consistency.
ok florian@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
31-May-2013 |
lum |
Make the system bell toggleable via 'audible-bell', and if switched off, make available an alternative 'visible-bell'.
ok florian@ jasper@ Feedback Sunil Nimmagadda.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.26 |
|
21-Jan-2011 |
kjell |
It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.25 |
|
04-Jun-2009 |
kjell |
Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.24 |
|
25-Jul-2006 |
kjell |
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
|
#
1.23 |
|
28-May-2006 |
kjell |
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.22 |
|
13-Dec-2005 |
kjell |
More name-clash delinting
|
#
1.21 |
|
18-Nov-2005 |
deraadt |
greedy use of typedef struct was making code harder to read; ok kjell cloder
|
#
1.20 |
|
18-Nov-2005 |
kjell |
Casefold on replace was killed ages ago (it was wrong). Remove a leftover (unused) variable.
|
#
1.19 |
|
14-Oct-2005 |
deraadt |
unused variables
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.18 |
|
09-Aug-2005 |
kjell |
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior
ok beck@ many, many moons ago.
|
#
1.17 |
|
14-Jun-2005 |
kjell |
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
|
#
1.16 |
|
14-Jun-2005 |
kjell |
Three more ereply that should be ereads. This fixes henning's "replace with null string is busted" observation.
ok henning@, cloder@
|
#
1.15 |
|
05-Jun-2005 |
kjell |
if functions permits null reply from minibuffer, use eread (with EFNUL), not ereply. ok cloder
|
#
1.14 |
|
03-Apr-2005 |
db |
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification
ok henning@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.13 |
|
22-Jul-2004 |
vincent |
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.12 |
|
20-May-2003 |
cloder |
Finish KNF of prototypes. That should be all of them. OK vincent@
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
#
1.10 |
|
13-Feb-2002 |
vincent |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c
ok deraadt@, art@
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
24-May-2001 |
mickey |
spaces
|
#
1.8 |
|
23-May-2001 |
art |
remove VOID. We're way beyond the point where this could build with an ancient compiler.
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.7 |
|
29-Jan-2001 |
niklas |
$OpenBSD$
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
01-Sep-2000 |
millert |
More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
13-Apr-2000 |
millert |
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
|
#
1.4 |
|
29-Feb-2000 |
millert |
Better backwards regexp searching. POSIX regexp's don't really give a good way to do this.
|
#
1.3 |
|
29-Feb-2000 |
millert |
Make reverse searching work.
|
#
1.2 |
|
28-Feb-2000 |
millert |
Use POSIX extended regular expressions. Reverse regex searching does not yet work.
|
#
1.1 |
|
25-Feb-2000 |
deraadt |
initial import of mg2a
|
Revision tags: OPENBSD_6_2_BASE
|
#
1.33 |
|
06-Aug-2017 |
bcallah |
Present the default choice before the colon in prompts. Matches GNU Emacs behavior.
From Scott Cheloha <scottcheloha@gmail.com>
ok florian@
|
#
1.32 |
|
30-May-2017 |
florian |
fix -Wshadow warnings. Found by bcallah, thanks!
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
|
#
1.31 |
|
19-Mar-2015 |
bcallah |
Clean up the includes in mg. This does the following: Moves all POSIX headers from sysdef.h into the individual .c files so that each file now only includes what it needs. All headers are properly sorted. Moves the remainder of sysdef.h to other files (mostly def.h) and deletes sysdef.h now that it's no longer contains anything. Tweak a comment that references sysdef.h so that it no longer does that. ok florian@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.30 |
|
20-Mar-2014 |
lum |
Add some missing dobeeps. ok florian@
|
Revision tags: OPENBSD_5_5_BASE
|
#
1.29 |
|
20-Dec-2013 |
florian |
Set the correct line number after successfully searching with re-search-{backward,forward}. OK lum
|
#
1.28 |
|
24-Sep-2013 |
jasper |
rename re_match to regex_match to prevent a namespace conflict on Linux as reported by Han Boetes.
while here, rename re_buff accordingly for consistency.
ok florian@
|
Revision tags: OPENBSD_5_4_BASE
|
#
1.27 |
|
31-May-2013 |
lum |
Make the system bell toggleable via 'audible-bell', and if switched off, make available an alternative 'visible-bell'.
ok florian@ jasper@ Feedback Sunil Nimmagadda.
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
|
#
1.26 |
|
21-Jan-2011 |
kjell |
It volates style(9), but in mg, #include"def.h" goes first. 'twas the way it was built. no binary change here. confirmed by lum@, tested by Henri Kemppainen
|
Revision tags: OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.25 |
|
04-Jun-2009 |
kjell |
Rename w_flag to w_rflag. This is not a general purpose flag: it is for redisplay options only. I need an additional all-purpose flag, so renaming removes the desire to wrongly overload the existing one.
Turdshine. No functional chage.
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE
|
#
1.24 |
|
25-Jul-2006 |
kjell |
Rename the header line of a buffer to b_headp, from the remarkably unintuitive b_linep. No binary change.
|
#
1.23 |
|
28-May-2006 |
kjell |
Make Window Flags more mnemonic (and less dumb); i.e. WFHARD -> WFFULL (Redraw full window) WFFORCE -> WFFRAME (Reframe window). No binary change
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.22 |
|
13-Dec-2005 |
kjell |
More name-clash delinting
|
#
1.21 |
|
18-Nov-2005 |
deraadt |
greedy use of typedef struct was making code harder to read; ok kjell cloder
|
#
1.20 |
|
18-Nov-2005 |
kjell |
Casefold on replace was killed ages ago (it was wrong). Remove a leftover (unused) variable.
|
#
1.19 |
|
14-Oct-2005 |
deraadt |
unused variables
|
Revision tags: OPENBSD_3_8_BASE
|
#
1.18 |
|
09-Aug-2005 |
kjell |
Clean up eread handling in mg. (basically, fallout from the 'enter often means abort' behaviour added during the hackathon). Eliminates redundant ereply function, fixes miscellaneous cores when aborting, and move a number of assumed pathnames into the prompt text, since they are used there anyway. All changes consistent with emacs behavior
ok beck@ many, many moons ago.
|
#
1.17 |
|
14-Jun-2005 |
kjell |
Add explicit public domain notices to all public domain files. ok millert@, deraadt@
|
#
1.16 |
|
14-Jun-2005 |
kjell |
Three more ereply that should be ereads. This fixes henning's "replace with null string is busted" observation.
ok henning@, cloder@
|
#
1.15 |
|
05-Jun-2005 |
kjell |
if functions permits null reply from minibuffer, use eread (with EFNUL), not ereply. ok cloder
|
#
1.14 |
|
03-Apr-2005 |
db |
This is a no binary change which does:
- spelling, punctuation fixes - variable declaration lineup - use parentheses for return and sizeof - K&R function declarations -> ANSI - other minor code beautification
ok henning@
|
Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE
|
#
1.13 |
|
22-Jul-2004 |
vincent |
stage 1 of the infinite minibuffer work - add support for on the fly buffer reallocation in veread(). This commit only changes the API. All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
|
Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE
|
#
1.12 |
|
20-May-2003 |
cloder |
Finish KNF of prototypes. That should be all of them. OK vincent@
|
Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
#
1.10 |
|
13-Feb-2002 |
vincent |
* Replace unsafe strcpy and strcat calls to safe strlcpy and strlcat. * Be a little bit more verbose about some errors * Fix some memory leaks in fileio.c
ok deraadt@, art@
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.9 |
|
24-May-2001 |
mickey |
spaces
|
#
1.8 |
|
23-May-2001 |
art |
remove VOID. We're way beyond the point where this could build with an ancient compiler.
|
Revision tags: OPENBSD_2_9_BASE
|
#
1.7 |
|
29-Jan-2001 |
niklas |
$OpenBSD$
|
Revision tags: OPENBSD_2_8_BASE
|
#
1.6 |
|
01-Sep-2000 |
millert |
More -Wall anmd KNF, from op2@tomahawk.SQUiSH.org
|
Revision tags: OPENBSD_2_7_BASE
|
#
1.5 |
|
13-Apr-2000 |
millert |
The start of KNF + -Wall. The code has been run through indent but needs hand fixup. I stopped at keymap.c...
|
#
1.4 |
|
29-Feb-2000 |
millert |
Better backwards regexp searching. POSIX regexp's don't really give a good way to do this.
|
#
1.3 |
|
29-Feb-2000 |
millert |
Make reverse searching work.
|
#
1.2 |
|
28-Feb-2000 |
millert |
Use POSIX extended regular expressions. Reverse regex searching does not yet work.
|
#
1.1 |
|
25-Feb-2000 |
deraadt |
initial import of mg2a
|