diff options
| author | Stefan Monnier | 2007-10-02 20:51:02 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-02 20:51:02 +0000 |
| commit | d6aa1876eb29c086ef190c46d488d391db062f50 (patch) | |
| tree | e809e1bbd31b4dc7958049774229273873e38828 /src/lisp.h | |
| parent | de509a6071aa4d046e666860468bb7d8bf134e02 (diff) | |
| download | emacs-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/lisp.h')
| -rw-r--r-- | src/lisp.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/lisp.h b/src/lisp.h index b30af269508..69ef17f7b85 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1145,6 +1145,8 @@ struct Lisp_Marker | |||
| 1145 | 1145 | ||
| 1146 | /* For markers that point somewhere, | 1146 | /* For markers that point somewhere, |
| 1147 | this is used to chain of all the markers in a given buffer. */ | 1147 | this is used to chain of all the markers in a given buffer. */ |
| 1148 | /* We could remove it and use an array in buffer_text instead. | ||
| 1149 | That would also allow to preserve it ordered. */ | ||
| 1148 | struct Lisp_Marker *next; | 1150 | struct Lisp_Marker *next; |
| 1149 | /* This is the char position where the marker points. */ | 1151 | /* This is the char position where the marker points. */ |
| 1150 | EMACS_INT charpos; | 1152 | EMACS_INT charpos; |
| @@ -1242,6 +1244,10 @@ struct Lisp_Buffer_Local_Value | |||
| 1242 | unsigned int found_for_frame : 1; | 1244 | unsigned int found_for_frame : 1; |
| 1243 | Lisp_Object realvalue; | 1245 | Lisp_Object realvalue; |
| 1244 | /* The buffer and frame for which the loaded binding was found. */ | 1246 | /* The buffer and frame for which the loaded binding was found. */ |
| 1247 | /* Having both is only needed if we want to allow variables that are | ||
| 1248 | both buffer local and frame local (in which case, we currently give | ||
| 1249 | precedence to the buffer-local binding). I don't think such | ||
| 1250 | a combination is desirable. --Stef */ | ||
| 1245 | Lisp_Object buffer, frame; | 1251 | Lisp_Object buffer, frame; |
| 1246 | 1252 | ||
| 1247 | /* A cons cell, (LOADED-BINDING . DEFAULT-VALUE). | 1253 | /* A cons cell, (LOADED-BINDING . DEFAULT-VALUE). |
| @@ -1723,7 +1729,6 @@ extern void defvar_lisp P_ ((char *, Lisp_Object *)); | |||
| 1723 | extern void defvar_lisp_nopro P_ ((char *, Lisp_Object *)); | 1729 | extern void defvar_lisp_nopro P_ ((char *, Lisp_Object *)); |
| 1724 | extern void defvar_bool P_ ((char *, int *)); | 1730 | extern void defvar_bool P_ ((char *, int *)); |
| 1725 | extern void defvar_int P_ ((char *, EMACS_INT *)); | 1731 | extern void defvar_int P_ ((char *, EMACS_INT *)); |
| 1726 | extern void defvar_per_buffer P_ ((char *, Lisp_Object *, Lisp_Object, char *)); | ||
| 1727 | extern void defvar_kboard P_ ((char *, int)); | 1732 | extern void defvar_kboard P_ ((char *, int)); |
| 1728 | 1733 | ||
| 1729 | /* Macros we use to define forwarded Lisp variables. | 1734 | /* Macros we use to define forwarded Lisp variables. |
| @@ -1734,15 +1739,6 @@ extern void defvar_kboard P_ ((char *, int)); | |||
| 1734 | #define DEFVAR_BOOL(lname, vname, doc) defvar_bool (lname, vname) | 1739 | #define DEFVAR_BOOL(lname, vname, doc) defvar_bool (lname, vname) |
| 1735 | #define DEFVAR_INT(lname, vname, doc) defvar_int (lname, vname) | 1740 | #define DEFVAR_INT(lname, vname, doc) defvar_int (lname, vname) |
| 1736 | 1741 | ||
| 1737 | /* TYPE is nil for a general Lisp variable. | ||
| 1738 | An integer specifies a type; then only LIsp values | ||
| 1739 | with that type code are allowed (except that nil is allowed too). | ||
| 1740 | LNAME is the LIsp-level variable name. | ||
| 1741 | VNAME is the name of the buffer slot. | ||
| 1742 | DOC is a dummy where you write the doc string as a comment. */ | ||
| 1743 | #define DEFVAR_PER_BUFFER(lname, vname, type, doc) \ | ||
| 1744 | defvar_per_buffer (lname, vname, type, 0) | ||
| 1745 | |||
| 1746 | #define DEFVAR_KBOARD(lname, vname, doc) \ | 1742 | #define DEFVAR_KBOARD(lname, vname, doc) \ |
| 1747 | defvar_kboard (lname, \ | 1743 | defvar_kboard (lname, \ |
| 1748 | (int)((char *)(¤t_kboard->vname) \ | 1744 | (int)((char *)(¤t_kboard->vname) \ |