diff liboctave/cmd-edit.cc @ 3004:9a54159563de

[project @ 1997-05-23 05:00:49 by jwe]
author jwe
date Fri, 23 May 1997 05:03:17 +0000
parents 467aae13b70a
children 0d640dc625c7
line wrap: on
line diff
--- a/liboctave/cmd-edit.cc	Fri May 23 04:11:07 1997 +0000
+++ b/liboctave/cmd-edit.cc	Fri May 23 05:03:17 1997 +0000
@@ -53,8 +53,6 @@
 
 // It would be nice if readline.h declared these, I think.
 
-extern "C" void rl_deprep_terminal (void);
-
 extern int rl_blink_matching_paren;
 
 extern int screenheight;
@@ -98,7 +96,7 @@
 
   void do_blink_matching_paren (bool flag);
 
-  void do_set_paren_string_delimiters (const string& s);
+  void do_set_basic_quote_characters (const string& s);
 
   void do_set_completion_append_character (char c);
 
@@ -242,7 +240,8 @@
 void
 gnu_readline::do_restore_terminal_state (void)
 {
-  rl_deprep_terminal ();
+  if (rl_deprep_term_function)
+    rl_deprep_term_function ();
 }
 
 void
@@ -252,7 +251,7 @@
 }
 
 void
-gnu_readline::do_set_paren_string_delimiters (const string& s)
+gnu_readline::do_set_basic_quote_characters (const string& s)
 {
   static char *ss = 0;
 
@@ -260,7 +259,7 @@
 
   ss = strsave (s.c_str ());
 
-  rl_paren_string_delimiters = ss;
+  rl_basic_quote_characters = ss;
 }
 
 void
@@ -589,10 +588,10 @@
 }
 
 void
-command_editor::set_paren_string_delimiters (const string& s)
+command_editor::set_basic_quote_characters (const string& s)
 {
   if (instance_ok ())
-    instance->do_set_paren_string_delimiters (s);
+    instance->do_set_basic_quote_characters (s);
 }
 
 void