aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorPaul Eggert2014-12-18 18:12:01 -0800
committerPaul Eggert2014-12-18 18:12:24 -0800
commitad013ba63134d4fe6470665abf2f9e33a595848a (patch)
tree595bcf2e2228e833fac882aeb60a8793b057f024 /src/buffer.c
parent83299b940dd211f4e142d754b93ea592e9f67974 (diff)
downloademacs-ad013ba63134d4fe6470665abf2f9e33a595848a.tar.gz
emacs-ad013ba63134d4fe6470665abf2f9e33a595848a.zip
Minor cleanups for Lisp objects and symbols
* alloc.c (next_vector, set_next_vector): * lisp.h (lisp_h_INTEGERP, make_number, XFASTINT, make_natnum): (lisp_h_make_number) [USE_LSB_TAG]: Use Lisp_Int0 instead of the mystery constant 0. * alloc.c (mark_object): Always set and use po; that's simpler. (CHECK_LIVE, CHECK_ALLOCATED_AND_LIVE): Properly parenthesize definientia. * bidi.c (bidi_initialize): * buffer.c (init_buffer_once): * nsfns.m (syms_of_nsfns): * nsmenu.m (syms_of_nsmenu): * nsselect.m (syms_of_nsselect): Prefer DEFSYM to defining by hand. * data.c: Fix too-long line. * lisp.h (DECLARE_GDB_SYM): New macro. (DEFINE_GDB_SYMBOL_BEGIN): Use it. (DEFINE_GDB_SYMBOL_BEGIN, DEFINE_GDB_SYMBOL_END) [!MAIN_PROGRAM]: Declare the symbol, so it's visible to everywhere lisp.h is included. Move forward decls as far forward as they can go, to allow future changes to use them.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 9bdbfb830fd..ba3245fa5ad 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5224,16 +5224,14 @@ init_buffer_once (void)
5224 5224
5225 QSFundamental = build_pure_c_string ("Fundamental"); 5225 QSFundamental = build_pure_c_string ("Fundamental");
5226 5226
5227 Qfundamental_mode = intern_c_string ("fundamental-mode"); 5227 DEFSYM (Qfundamental_mode, "fundamental-mode");
5228 bset_major_mode (&buffer_defaults, Qfundamental_mode); 5228 bset_major_mode (&buffer_defaults, Qfundamental_mode);
5229 5229
5230 Qmode_class = intern_c_string ("mode-class"); 5230 DEFSYM (Qmode_class, "mode-class");
5231 DEFSYM (Qprotected_field, "protected-field");
5231 5232
5232 Qprotected_field = intern_c_string ("protected-field"); 5233 DEFSYM (Qpermanent_local, "permanent-local");
5233 5234 DEFSYM (Qkill_buffer_hook, "kill-buffer-hook");
5234 Qpermanent_local = intern_c_string ("permanent-local");
5235
5236 Qkill_buffer_hook = intern_c_string ("kill-buffer-hook");
5237 Fput (Qkill_buffer_hook, Qpermanent_local, Qt); 5235 Fput (Qkill_buffer_hook, Qpermanent_local, Qt);
5238 5236
5239 /* super-magic invisible buffer */ 5237 /* super-magic invisible buffer */