comparison src/buffer.c @ 48227:efcead0d345a

(Fset_buffer_major_mode): Fix last change.
author Dave Love <fx@gnu.org>
date Sat, 09 Nov 2002 12:43:58 +0000
parents 8c6b3be30074
children 55b6e3969474
comparison
equal deleted inserted replaced
48226:65903e252ec1 48227:efcead0d345a
1549 and then call the mode function. Run the hook anyhow. */ 1549 and then call the mode function. Run the hook anyhow. */
1550 1550
1551 record_unwind_protect (save_excursion_restore, save_excursion_save ()); 1551 record_unwind_protect (save_excursion_restore, save_excursion_save ());
1552 1552
1553 Fset_buffer (buffer); 1553 Fset_buffer (buffer);
1554 if (NILP (function) || EQ (function, Qfundamental_mode)) 1554 if (!(NILP (function) || EQ (function, Qfundamental_mode)))
1555 call0 (function); 1555 call0 (function);
1556 Frun_hooks (1, &Qset_buffer_major_mode_hook); 1556 Frun_hooks (1, &Qset_buffer_major_mode_hook);
1557 1557
1558 return unbind_to (count, Qnil); 1558 return unbind_to (count, Qnil);
1559 } 1559 }