aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorVincent Belaïche2016-07-28 18:12:50 +0200
committerVincent Belaïche2016-07-28 18:12:50 +0200
commit90ab699c4f281d0c9a9b71f3eb4c8493d00fcf4f (patch)
treedf3235d89ee8e4d32571b8a8521f75f7576913c2 /src/buffer.c
parent41b28dea8587c13b0bc59c1ec70b65afab3aeeca (diff)
parentec359399a47f852b4d022a30245449438e349193 (diff)
downloademacs-90ab699c4f281d0c9a9b71f3eb4c8493d00fcf4f.tar.gz
emacs-90ab699c4f281d0c9a9b71f3eb4c8493d00fcf4f.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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))