From: Gerd Moellmann Date: Mon, 10 Apr 2000 11:44:37 +0000 (+0000) Subject: (compute_motion): Set immediate_quit. X-Git-Tag: emacs-pretest-21.0.90~4296 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e45001163eede99425c33eec112605b377e61d8f;p=emacs.git (compute_motion): Set immediate_quit. --- diff --git a/src/indent.c b/src/indent.c index 5d2dbe5ab36..486589a0464 100644 --- a/src/indent.c +++ b/src/indent.c @@ -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; }