Commit ed9e5d71 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

docs: mark some rebindable function names as deprecated

No related merge requests found
Showing with 18 additions and 6 deletions
+18 -6
...@@ -413,6 +413,7 @@ a string in the current list in the file browser. ...@@ -413,6 +413,7 @@ a string in the current list in the file browser.
.TP .TP
.B searchagain .B searchagain
Repeats the last search command without prompting. Repeats the last search command without prompting.
(The form 'research' is deprecated.)
.TP .TP
.B findprevious .B findprevious
As \fBsearchagain\fR, but always in the backward direction. As \fBsearchagain\fR, but always in the backward direction.
...@@ -447,6 +448,7 @@ Cuts all text from the cursor position till the end of the buffer. ...@@ -447,6 +448,7 @@ Cuts all text from the cursor position till the end of the buffer.
.TP .TP
.B curpos .B curpos
Shows the current cursor position: the line, column, and character positions. Shows the current cursor position: the line, column, and character positions.
(The form 'cursorpos' is deprecated.)
.TP .TP
.B wordcount .B wordcount
Counts the number of words, lines and characters in the current buffer. Counts the number of words, lines and characters in the current buffer.
...@@ -579,6 +581,7 @@ Toggles case sensitivity in searching (search/replace menus only). ...@@ -579,6 +581,7 @@ Toggles case sensitivity in searching (search/replace menus only).
.TP .TP
.B regexp .B regexp
Toggles whether searching/replacing is based on literal strings or regular expressions. Toggles whether searching/replacing is based on literal strings or regular expressions.
(The form 'regex' is deprecated.)
.TP .TP
.B backwards .B backwards
Toggles whether searching/replacing goes forward or backward. Toggles whether searching/replacing goes forward or backward.
...@@ -591,6 +594,7 @@ Shows the next history entry in the prompt menus (e.g. search). ...@@ -591,6 +594,7 @@ Shows the next history entry in the prompt menus (e.g. search).
.TP .TP
.B flipreplace .B flipreplace
Toggles between searching for something and replacing something. Toggles between searching for something and replacing something.
(The form 'dontreplace' is deprecated.)
.TP .TP
.B flipexecute .B flipexecute
Toggles between inserting a file and executing a command. Toggles between inserting a file and executing a command.
...@@ -598,6 +602,7 @@ Toggles between inserting a file and executing a command. ...@@ -598,6 +602,7 @@ Toggles between inserting a file and executing a command.
.B flipnewbuffer .B flipnewbuffer
Toggles between inserting into the current buffer and into a new Toggles between inserting into the current buffer and into a new
empty buffer. empty buffer.
(The form 'newbuffer' is deprecated.)
.TP .TP
.B dosformat .B dosformat
When writing a file, switches to writing a DOS format (CR/LF). When writing a file, switches to writing a DOS format (CR/LF).
...@@ -701,6 +706,7 @@ The 'search to replace' menu. ...@@ -701,6 +706,7 @@ The 'search to replace' menu.
.TP .TP
.B replacewith .B replacewith
The 'replace with' menu, which comes up after 'search to replace'. The 'replace with' menu, which comes up after 'search to replace'.
(The form 'replace2' is deprecated.)
.TP .TP
.B gotoline .B gotoline
The 'goto line (and column)' menu. The 'goto line (and column)' menu.
......
...@@ -1008,6 +1008,7 @@ a string in the current list in the file browser ...@@ -1008,6 +1008,7 @@ a string in the current list in the file browser
@item searchagain @item searchagain
Repeats the last search command without prompting. Repeats the last search command without prompting.
(The form 'research' is deprecated.)
@item findprevious @item findprevious
As @code{searchagain}, but always in the backward direction. As @code{searchagain}, but always in the backward direction.
...@@ -1042,6 +1043,7 @@ Cuts all text from the cursor position till the end of the buffer. ...@@ -1042,6 +1043,7 @@ Cuts all text from the cursor position till the end of the buffer.
@item curpos @item curpos
Shows the current cursor position: the line, column, and character positions. Shows the current cursor position: the line, column, and character positions.
(The form 'cursorpos' is deprecated.)
@item wordcount @item wordcount
Counts the number of words, lines and characters in the current buffer. Counts the number of words, lines and characters in the current buffer.
...@@ -1171,6 +1173,7 @@ Toggles case sensitivity in searching (search/replace menus only). ...@@ -1171,6 +1173,7 @@ Toggles case sensitivity in searching (search/replace menus only).
@item regexp @item regexp
Toggles whether searching/replacing is based on literal strings or regular expressions. Toggles whether searching/replacing is based on literal strings or regular expressions.
(The form 'regex' is deprecated.)
@item backwards @item backwards
Toggles whether searching/replacing goes forward or backward. Toggles whether searching/replacing goes forward or backward.
...@@ -1183,6 +1186,7 @@ Shows the next history entry in the prompt menus (e.g.@: search). ...@@ -1183,6 +1186,7 @@ Shows the next history entry in the prompt menus (e.g.@: search).
@item flipreplace @item flipreplace
Toggles between searching for something and replacing something. Toggles between searching for something and replacing something.
(The form 'dontreplace' is deprecated.)
@item flipexecute @item flipexecute
Toggles between inserting a file and executing a command. Toggles between inserting a file and executing a command.
...@@ -1190,6 +1194,7 @@ Toggles between inserting a file and executing a command. ...@@ -1190,6 +1194,7 @@ Toggles between inserting a file and executing a command.
@item flipnewbuffer @item flipnewbuffer
Toggles between inserting into the current buffer and into a new Toggles between inserting into the current buffer and into a new
empty buffer. empty buffer.
(The form 'newbuffer' is deprecated.)
@item dosformat @item dosformat
When writing a file, switches to writing a DOS format (CR/LF). When writing a file, switches to writing a DOS format (CR/LF).
...@@ -1294,6 +1299,7 @@ The 'search to replace' menu. ...@@ -1294,6 +1299,7 @@ The 'search to replace' menu.
@item replacewith @item replacewith
The 'replace with' menu, which comes up after 'search to replace'. The 'replace with' menu, which comes up after 'search to replace'.
(The form 'replace2' is deprecated.)
@item gotoline @item gotoline
The 'goto line (and column)' menu. The 'goto line (and column)' menu.
......
...@@ -1397,7 +1397,7 @@ sc *strtosc(const char *input) ...@@ -1397,7 +1397,7 @@ sc *strtosc(const char *input)
s->scfunc = do_search; s->scfunc = do_search;
#ifndef NANO_TINY #ifndef NANO_TINY
else if (!strcasecmp(input, "searchagain") || else if (!strcasecmp(input, "searchagain") ||
!strcasecmp(input, "research")) !strcasecmp(input, "research")) /* Deprecated. Remove in 2018. */
s->scfunc = do_research; s->scfunc = do_research;
else if (!strcasecmp(input, "findprevious")) else if (!strcasecmp(input, "findprevious"))
s->scfunc = do_findprevious; s->scfunc = do_findprevious;
...@@ -1428,7 +1428,7 @@ sc *strtosc(const char *input) ...@@ -1428,7 +1428,7 @@ sc *strtosc(const char *input)
s->scfunc = do_linter; s->scfunc = do_linter;
#endif #endif
else if (!strcasecmp(input, "curpos") || else if (!strcasecmp(input, "curpos") ||
!strcasecmp(input, "cursorpos")) !strcasecmp(input, "cursorpos")) /* Deprecated. Remove in 2018. */
s->scfunc = do_cursorpos_void; s->scfunc = do_cursorpos_void;
else if (!strcasecmp(input, "gotoline")) else if (!strcasecmp(input, "gotoline"))
s->scfunc = do_gotolinecolumn_void; s->scfunc = do_gotolinecolumn_void;
...@@ -1527,14 +1527,14 @@ sc *strtosc(const char *input) ...@@ -1527,14 +1527,14 @@ sc *strtosc(const char *input)
s->scfunc = case_sens_void; s->scfunc = case_sens_void;
#endif #endif
else if (!strcasecmp(input, "regexp") || else if (!strcasecmp(input, "regexp") ||
!strcasecmp(input, "regex")) !strcasecmp(input, "regex")) /* Deprecated. Remove in 2018. */
s->scfunc = regexp_void; s->scfunc = regexp_void;
#ifndef NANO_TINY #ifndef NANO_TINY
else if (!strcasecmp(input, "backwards")) else if (!strcasecmp(input, "backwards"))
s->scfunc = backwards_void; s->scfunc = backwards_void;
#endif #endif
else if (!strcasecmp(input, "flipreplace") || else if (!strcasecmp(input, "flipreplace") ||
!strcasecmp(input, "dontreplace")) !strcasecmp(input, "dontreplace")) /* Deprecated. Remove in 2018. */
s->scfunc = flip_replace_void; s->scfunc = flip_replace_void;
else if (!strcasecmp(input, "gototext")) else if (!strcasecmp(input, "gototext"))
s->scfunc = gototext_void; s->scfunc = gototext_void;
...@@ -1560,7 +1560,7 @@ sc *strtosc(const char *input) ...@@ -1560,7 +1560,7 @@ sc *strtosc(const char *input)
#endif #endif
#ifndef DISABLE_MULTIBUFFER #ifndef DISABLE_MULTIBUFFER
else if (!strcasecmp(input, "flipnewbuffer") || else if (!strcasecmp(input, "flipnewbuffer") ||
!strcasecmp(input, "newbuffer")) !strcasecmp(input, "newbuffer")) /* Deprecated. Remove in 2018. */
s->scfunc = new_buffer_void; s->scfunc = new_buffer_void;
#endif #endif
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
...@@ -1640,7 +1640,7 @@ int strtomenu(const char *input) ...@@ -1640,7 +1640,7 @@ int strtomenu(const char *input)
return MWHEREIS; return MWHEREIS;
else if (!strcasecmp(input, "replace")) else if (!strcasecmp(input, "replace"))
return MREPLACE; return MREPLACE;
else if (!strcasecmp(input, "replace2") || else if (!strcasecmp(input, "replace2") || /* Deprecated. Remove in 2018. */
!strcasecmp(input, "replacewith")) !strcasecmp(input, "replacewith"))
return MREPLACEWITH; return MREPLACEWITH;
else if (!strcasecmp(input, "gotoline")) else if (!strcasecmp(input, "gotoline"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment