]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): Set immediate_quit.
authorGerd Moellmann <gerd@gnu.org>
Mon, 10 Apr 2000 11:44:37 +0000 (11:44 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 10 Apr 2000 11:44:37 +0000 (11:44 +0000)
src/indent.c

index 5d2dbe5ab361b9f54b44605670c3b8322c6268bb..486589a0464022a4e4494d8063379a2f7d98b0de 100644 (file)
@@ -1097,7 +1097,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
        run cache, because that's based on the buffer's display table.  */
     width_table = 0;
 
-  if (tab_width <= 0 || tab_width > 1000) tab_width = 8;
+  if (tab_width <= 0 || tab_width > 1000)
+    tab_width = 8;
+
+  immediate_quit = 1;
+  QUIT;
 
   pos = prev_pos = from;
   pos_byte = prev_pos_byte = CHAR_TO_BYTE (from);
@@ -1540,6 +1544,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
   /* Nonzero if have just continued a line */
   val_compute_motion.contin = (contin_hpos && prev_hpos == 0);
 
+  immediate_quit = 0;
   return &val_compute_motion;
 }