# HG changeset patch # User dbateman # Date 1191964977 0 # Node ID f20010b5dcf0dbc90008381e5e6f546dae157679 # Parent 9dc99ab00c86097e8f844bd83ebbbe2cbc3d5029 [project @ 2007-10-09 21:22:57 by dbateman] diff -r 9dc99ab00c86 -r f20010b5dcf0 src/ChangeLog --- a/src/ChangeLog Tue Oct 09 20:39:55 2007 +0000 +++ b/src/ChangeLog Tue Oct 09 21:22:57 2007 +0000 @@ -1,3 +1,10 @@ +2007-10-09 David Bateman + + * input.cc (accept_line): Drop this function and remove automatic + insertion of closing quotes as the transpose operator confuses it. + (initialize_command_input): Remove accept_line from here as well. + + 2007-10-09 John W. Eaton * ov-mapper.cc (octave_mapper::apply): If possible, use diff -r 9dc99ab00c86 -r f20010b5dcf0 src/input.cc --- a/src/input.cc Tue Oct 09 20:39:55 2007 +0000 +++ b/src/input.cc Tue Oct 09 21:22:57 2007 +0000 @@ -535,31 +535,6 @@ return (std::string ("'") + text); } -static void -accept_line (const std::string &text) -{ - // Close open strings if needed - bool sq = false; - bool dq = false; - bool pass_next = false; - - for (std::string::const_iterator it = text.begin(); it < text.end(); it++) - { - if (pass_next) - pass_next = false; - else if (*it == '\\') - pass_next = true; - else if (*it == '\'' && ! dq) - sq = !sq; - else if (*it == '"' && ! sq) - dq = !dq; - } - if (sq) - command_editor::insert_text("'"); - if (dq) - command_editor::insert_text("\""); -} - void initialize_command_input (void) { @@ -585,8 +560,6 @@ command_editor::set_completion_function (generate_completion); command_editor::set_quoting_function (quoting_filename); - - command_editor::set_user_accept_line_function (accept_line); } static bool