comparison src/buffer.c @ 42762:b656c92e9fc0

(Fkill_all_local_variables): Increment `update_mode_lines' only once.
author Pavel Jan?k <Pavel@Janik.cz>
date Tue, 15 Jan 2002 07:30:23 +0000
parents 11a505aa1322
children 7c5115d286df
comparison
equal deleted inserted replaced
42761:ab5a7b85aa96 42762:b656c92e9fc0
2296 swap_out_buffer_local_variables (current_buffer); 2296 swap_out_buffer_local_variables (current_buffer);
2297 2297
2298 /* Actually eliminate all local bindings of this buffer. */ 2298 /* Actually eliminate all local bindings of this buffer. */
2299 2299
2300 reset_buffer_local_variables (current_buffer, 0); 2300 reset_buffer_local_variables (current_buffer, 0);
2301
2302 /* Redisplay mode lines; we are changing major mode. */
2303
2304 update_mode_lines++;
2305 2301
2306 /* Any which are supposed to be permanent, 2302 /* Any which are supposed to be permanent,
2307 make local again, with the same values they had. */ 2303 make local again, with the same values they had. */
2308 2304
2309 for (alist = oalist; !NILP (alist); alist = XCDR (alist)) 2305 for (alist = oalist; !NILP (alist); alist = XCDR (alist))