Index: src/nano.h
===================================================================
--- src/nano.h (revisión: 4954)
+++ src/nano.h (copia de trabajo)
@@ -537,7 +537,6 @@
NO_NEWLINES,
BOLD_TEXT,
QUIET,
- UNDOABLE,
SOFTWRAP,
POS_HISTORY,
LOCKING,
Index: src/global.c
===================================================================
--- src/global.c (revisión: 4954)
+++ src/global.c (copia de trabajo)
@@ -795,12 +795,10 @@
add_to_funcs(do_unindent, MMAIN,
N_("Unindent Text"), IFSCHELP(nano_unindent_msg), TRUE, NOVIEW);
- if (ISSET(UNDOABLE)) {
- add_to_funcs(do_undo, MMAIN,
- N_("Undo"), IFSCHELP(nano_undo_msg), FALSE, NOVIEW);
- add_to_funcs(do_redo, MMAIN,
- N_("Redo"), IFSCHELP(nano_redo_msg), TRUE, NOVIEW);
- }
+ add_to_funcs(do_undo, MMAIN,
+ N_("Undo"), IFSCHELP(nano_undo_msg), FALSE, NOVIEW);
+ add_to_funcs(do_redo, MMAIN,
+ N_("Redo"), IFSCHELP(nano_redo_msg), TRUE, NOVIEW);
#endif /* !NANO_TINY */
add_to_funcs(do_left, MMAIN,
@@ -1032,10 +1030,8 @@
add_to_sclist(MMAIN, "M-6", do_copy_text, 0, TRUE);
add_to_sclist(MMAIN, "M-}", do_indent_void, 0, TRUE);
add_to_sclist(MMAIN, "M-{", do_unindent, 0, TRUE);
- if (ISSET(UNDOABLE)) {
- add_to_sclist(MMAIN, "M-U", do_undo, 0, TRUE);
- add_to_sclist(MMAIN, "M-E", do_redo, 0, TRUE);
- }
+ add_to_sclist(MMAIN, "M-U", do_undo, 0, TRUE);
+ add_to_sclist(MMAIN, "M-E", do_redo, 0, TRUE);
#endif
add_to_sclist(MMOST, "^B", do_left, 0, TRUE);
add_to_sclist(MMOST, "^F", do_right, 0, TRUE);
Index: src/rcfile.c
===================================================================
--- src/rcfile.c (revisión: 4955)
+++ src/rcfile.c (copia de trabajo)
@@ -95,7 +95,6 @@
{"smarthome", SMART_HOME},
{"smooth", SMOOTH_SCROLL},
{"tabstospaces", TABS_TO_SPACES},
- {"undo", UNDOABLE},
{"whitespace", 0},
{"wordbounds", WORD_BOUNDS},
{"softwrap", SOFTWRAP},
@@ -1265,9 +1264,6 @@
else
rcfile_error(N_("Cannot unset option \"%s\""),
rcopts[i].name);
- /* If undo/redo was enabled, reinitialize the lists. */
- if (strcasecmp(rcopts[i].name, "undo") == 0)
- shortcut_init();
break;
}
}
Index: src/text.c
===================================================================
--- src/text.c (revisión: 4954)
+++ src/text.c (copia de trabajo)
@@ -854,9 +854,6 @@
openfilestruct *fs = openfile;
/* Last thing we cut to set up the undo for uncut. */
- if (!ISSET(UNDOABLE))
- return;
-
/* Ugh, if we were called while cutting not-to-end, non-marked, and
* on the same lineno, we need to abort here. */
u = fs->current_undo;
@@ -996,9 +993,6 @@
undo *u;
openfilestruct *fs = openfile;
- if (!ISSET(UNDOABLE))
- return;
-
#ifdef DEBUG
fprintf(stderr, "action = %d, fs->last_action = %d, openfile->current->lineno = %ld",
action, fs->last_action, (long)openfile->current->lineno);
Index: src/nano.c
===================================================================
--- src/nano.c (revisión: 4954)
+++ src/nano.c (copia de trabajo)
@@ -936,10 +936,6 @@
#endif
print_opt("-t", "--tempfile",
N_("Auto save on exit, don't prompt"));
-#ifndef NANO_TINY
- print_opt("-u", "--undo", N_("Allow generic undo [EXPERIMENTAL]"));
-#endif
-
print_opt("-v", "--view", N_("View mode (read-only)"));
#ifndef DISABLE_WRAPPING
print_opt("-w", "--nowrap", N_("Don't hard-wrap long lines"));
@@ -2199,11 +2195,11 @@
while ((optchr =
#ifdef HAVE_GETOPT_LONG
getopt_long(argc, argv,
- "ABC:DEFGHIKLNOPQ:RST:UVWY:abcdefghijklmno:pqr:s:tuvwxz$",
+ "ABC:DEFGHIKLNOPQ:RST:UVWY:abcdefghijklmno:pqr:s:tvwxz$",
long_options, NULL)
#else
getopt(argc, argv,
- "ABC:DEFGHIKLNOPQ:RST:UVWY:abcdefghijklmno:pqr:s:tuvwxz$")
+ "ABC:DEFGHIKLNOPQ:RST:UVWY:abcdefghijklmno:pqr:s:tvwxz$")
#endif
) != -1) {
switch (optchr) {
@@ -2363,11 +2359,6 @@
case 't':
SET(TEMP_FILE);
break;
-#ifndef NANO_TINY
- case 'u':
- SET(UNDOABLE);
- break;
-#endif
case 'v':
SET(VIEW_MODE);
break;
Index: doc/man/nanorc.5
===================================================================
--- doc/man/nanorc.5 (revisión: 4954)
+++ doc/man/nanorc.5 (copia de trabajo)
@@ -19,7 +19,7 @@
.\" .
.\"
.\" $Id$
-.TH NANORC 5 "version 2.3.3" "May 2014"
+.TH NANORC 5 "version 2.3.5" "June 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
.SH NAME
@@ -232,9 +232,6 @@
.BR white , \ black , \ red , \ blue , \ green , \ yellow , \ magenta ", and " cyan .
And either "\fIfgcolor\fR" or ",\fIbgcolor\fR" may be left out.
.TP
-.B set/unset undo
-Enable the experimental generic-purpose undo/redo code.
-.TP
.B set/unset view
Disallow file modification.
.TP
Index: doc/man/nano.1
===================================================================
--- doc/man/nano.1 (revisión: 4954)
+++ doc/man/nano.1 (copia de trabajo)
@@ -19,7 +19,7 @@
.\" .
.\"
.\" $Id$
-.TH NANO 1 "version 2.3.3" "April 2014"
+.TH NANO 1 "version 2.3.5" "June 2014"
.\" Please adjust this date whenever revising the manpage.
.\"
@@ -200,10 +200,6 @@
Always save changed buffer without prompting. Same as Pico's \fB\-t\fP
option.
.TP
-.B \-u (\-\-undo)
-Enable the experimental generic-purpose undo/redo code. The default undo
-and redo shortcuts are Meta-U and Meta-E, respectively.
-.TP
.B \-v (\-\-view)
View-file (read-only) mode.
.TP
Index: doc/texinfo/nano.texi
===================================================================
--- doc/texinfo/nano.texi (revisión: 4954)
+++ doc/texinfo/nano.texi (copia de trabajo)
@@ -7,9 +7,9 @@
@c This file has the new style title page commands.
@c Run 'makeinfo' rather than 'texinfo-format-buffer'.
@smallbook
-@set EDITION 0.1
-@set VERSION 2.3.3
-@set UPDATED May 2014
+@set EDITION 0.2
+@set VERSION 2.3.5
+@set UPDATED June 2014
@dircategory Editors
@direntry
@@ -23,7 +23,7 @@
@titlepage
@title GNU @code{nano}
@subtitle a small and friendly text editor.
-@subtitle version 2.3.3
+@subtitle version 2.3.5
@author Chris Allegretta
@page
@@ -289,10 +289,6 @@
exiting, assume yes. This is most useful when using @code{nano} as the
composer of a mailer program.
-@item -u, --undo
-Enable the experimental generic-purpose undo/redo code. The default undo
-and redo shortcuts are Meta-U and Meta-E, respectively.
-
@item -v, --view
Don't allow the contents of the file to be altered. Note that this
option should NOT be used in place of correct file permissions to
@@ -747,9 +743,6 @@
white, black, red, blue, green, yellow, magenta, and cyan.
And either "fgcolor" or ",bgcolor" may be left out.
-@item set/unset undo
-Enable the experimental generic-purpose undo/redo code.
-
@item set/unset view
Disallow file modification.