aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 37ec0e44e2c..3aa03fc32de 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1551,7 +1551,7 @@ the current buffer's major mode. */)
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