aboutsummaryrefslogtreecommitdiffstats
path: root/src/lread.c
diff options
context:
space:
mode:
authorStefan Monnier2007-10-02 20:51:02 +0000
committerStefan Monnier2007-10-02 20:51:02 +0000
commitd6aa1876eb29c086ef190c46d488d391db062f50 (patch)
treee809e1bbd31b4dc7958049774229273873e38828 /src/lread.c
parentde509a6071aa4d046e666860468bb7d8bf134e02 (diff)
downloademacs-d6aa1876eb29c086ef190c46d488d391db062f50.tar.gz
emacs-d6aa1876eb29c086ef190c46d488d391db062f50.zip
* buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
(DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c. * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER): * lread.c (defvar_per_buffer): * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
Diffstat (limited to 'src/lread.c')
-rw-r--r--src/lread.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lread.c b/src/lread.c
index d2709dead4c..189fcc0977f 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -3746,37 +3746,6 @@ defvar_lisp (namestring, address)
3746 staticpro (address); 3746 staticpro (address);
3747} 3747}
3748 3748
3749/* Similar but define a variable whose value is the Lisp Object stored in
3750 the current buffer. address is the address of the slot in the buffer
3751 that is current now. */
3752
3753void
3754defvar_per_buffer (namestring, address, type, doc)
3755 char *namestring;
3756 Lisp_Object *address;
3757 Lisp_Object type;
3758 char *doc;
3759{
3760 Lisp_Object sym, val;
3761 int offset;
3762
3763 sym = intern (namestring);
3764 val = allocate_misc ();
3765 offset = (char *)address - (char *)current_buffer;
3766
3767 XMISCTYPE (val) = Lisp_Misc_Buffer_Objfwd;
3768 XBUFFER_OBJFWD (val)->offset = offset;
3769 SET_SYMBOL_VALUE (sym, val);
3770 PER_BUFFER_SYMBOL (offset) = sym;
3771 PER_BUFFER_TYPE (offset) = type;
3772
3773 if (PER_BUFFER_IDX (offset) == 0)
3774 /* Did a DEFVAR_PER_BUFFER without initializing the corresponding
3775 slot of buffer_local_flags */
3776 abort ();
3777}
3778
3779
3780/* Similar but define a variable whose value is the Lisp Object stored 3749/* Similar but define a variable whose value is the Lisp Object stored
3781 at a particular offset in the current kboard object. */ 3750 at a particular offset in the current kboard object. */
3782 3751