diff lisp/electric/electric.el @ 140:585fb297b004 r20-2b4

Import from CVS: tag r20-2b4
author cvs
date Mon, 13 Aug 2007 09:32:43 +0200
parents b9518feda344
children 59463afc5666
line wrap: on
line diff
--- a/lisp/electric/electric.el	Mon Aug 13 09:31:48 2007 +0200
+++ b/lisp/electric/electric.el	Mon Aug 13 09:32:43 2007 +0200
@@ -143,6 +143,13 @@
 				(prin1-to-string conditions)))
 		     (sit-for 2))))
 	(ding))
+      (and (not (eq (current-buffer) electrified-buffer)) ; XEmacs -
+	   (not (eq (selected-window) (minibuffer-window)))
+	   (progn (ding nil 'quit)
+		  (message "Leaving electric command loop %s."
+			   "because buffer has changed")
+		  (sit-for 2)
+		  (throw return-tag nil)))
       (if loop-function (funcall loop-function loop-state err))))
   ;; XEmacs - huh?  It should be impossible to ever get here...
   (ding nil 'alarm)