changeset 105738:89a1bad44673

(octave-complete-symbol): Use choose-completion if mouse-choose-completion is ever removed.
author Glenn Morris <rgm@gnu.org>
date Sat, 24 Oct 2009 03:48:37 +0000
parents 2009126d46e1
children af8ed20ba9ca
files lisp/ChangeLog lisp/progmodes/octave-mod.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Oct 24 03:45:50 2009 +0000
+++ b/lisp/ChangeLog	Sat Oct 24 03:48:37 2009 +0000
@@ -1,5 +1,8 @@
 2009-10-24  Glenn Morris  <rgm@gnu.org>
 
+	* progmodes/octave-mod.el (octave-complete-symbol): Use
+	choose-completion if mouse-choose-completion is ever removed.
+
 	* textmodes/sgml-mode.el (sgml-looking-back-at): Move definition before
 	use.
 
--- a/lisp/progmodes/octave-mod.el	Sat Oct 24 03:45:50 2009 +0000
+++ b/lisp/progmodes/octave-mod.el	Sat Oct 24 03:48:37 2009 +0000
@@ -1268,7 +1268,9 @@
 			      (get-buffer "*Completions*"))
 			  (eq (key-binding key) 'mouse-choose-completion)))
 		   (progn
-		     (mouse-choose-completion first)
+		     (if (fboundp 'mouse-choose-completion)
+			 (mouse-choose-completion first)
+		       (choose-completion first)) ; Emacs >= 23.2
 		     (set-window-configuration conf))
 		 (if (eq first ?\ )
 		     (set-window-configuration conf)