aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 534b9e40da3..8756cbbbd7d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -30,7 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#include <verify.h> 30#include <verify.h>
31 31
32#include "lisp.h" 32#include "lisp.h"
33#include "coding.h"
34#include "intervals.h" 33#include "intervals.h"
35#include "systime.h" 34#include "systime.h"
36#include "window.h" 35#include "window.h"
@@ -1985,7 +1984,9 @@ the current buffer's major mode. */)
1985 function = BVAR (current_buffer, major_mode); 1984 function = BVAR (current_buffer, major_mode);
1986 } 1985 }
1987 1986
1988 if (NILP (function) || EQ (function, Qfundamental_mode)) 1987 if (NILP (function)) /* If function is `fundamental-mode', allow it to run
1988 so that `run-mode-hooks' and thus
1989 `hack-local-variables' get run. */
1989 return Qnil; 1990 return Qnil;
1990 1991
1991 count = SPECPDL_INDEX (); 1992 count = SPECPDL_INDEX ();
@@ -3907,7 +3908,8 @@ buffer. */)
3907 struct buffer *b, *ob = 0; 3908 struct buffer *b, *ob = 0;
3908 Lisp_Object obuffer; 3909 Lisp_Object obuffer;
3909 ptrdiff_t count = SPECPDL_INDEX (); 3910 ptrdiff_t count = SPECPDL_INDEX ();
3910 ptrdiff_t n_beg, n_end, o_beg IF_LINT (= 0), o_end IF_LINT (= 0); 3911 ptrdiff_t n_beg, n_end;
3912 ptrdiff_t o_beg UNINIT, o_end UNINIT;
3911 3913
3912 CHECK_OVERLAY (overlay); 3914 CHECK_OVERLAY (overlay);
3913 if (NILP (buffer)) 3915 if (NILP (buffer))