changeset 107195:3c104aea26eb

Close bug#5593. * progmodes/f90.el (f90-electric-insert): Give it a delete-selection property.
author Glenn Morris <rgm@gnu.org>
date Thu, 18 Feb 2010 18:36:10 -0800
parents f14b4c307fe1
children 19bad34b0d81
files lisp/ChangeLog lisp/progmodes/f90.el
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Feb 18 18:32:36 2010 -0800
+++ b/lisp/ChangeLog	Thu Feb 18 18:36:10 2010 -0800
@@ -1,3 +1,8 @@
+2010-02-19  Glenn Morris  <rgm@gnu.org>
+
+	* progmodes/f90.el (f90-electric-insert): Give it a delete-selection
+	property.  (Bug#5593)
+
 2010-02-18  Sam Steingold  <sds@gnu.org>
 
 	* vc-cvs.el (vc-cvs-merge-news): Yet another fix of message parsing.
--- a/lisp/progmodes/f90.el	Thu Feb 18 18:32:36 2010 -0800
+++ b/lisp/progmodes/f90.el	Thu Feb 18 18:36:10 2010 -0800
@@ -1356,6 +1356,8 @@
   (if auto-fill-function (f90-do-auto-fill) ; also updates line
     (f90-update-line)))
 
+;; Behave like self-insert-command for delete-selection-mode (bug#5593).
+(put 'f90-electric-insert 'delete-selection t)
 
 (defun f90-get-correct-indent ()
   "Get correct indent for a line starting with line number.