diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index f8d5bdc76fe..09166b17cfb 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1615,6 +1615,8 @@ the current buffer's major mode. */) | |||
| 1615 | int count; | 1615 | int count; |
| 1616 | Lisp_Object function; | 1616 | Lisp_Object function; |
| 1617 | 1617 | ||
| 1618 | CHECK_BUFFER (buffer); | ||
| 1619 | |||
| 1618 | if (STRINGP (XBUFFER (buffer)->name) | 1620 | if (STRINGP (XBUFFER (buffer)->name) |
| 1619 | && strcmp (SDATA (XBUFFER (buffer)->name), "*scratch*") == 0) | 1621 | && strcmp (SDATA (XBUFFER (buffer)->name), "*scratch*") == 0) |
| 1620 | function = find_symbol_value (intern ("initial-major-mode")); | 1622 | function = find_symbol_value (intern ("initial-major-mode")); |