diff options
| author | Dmitry Antipov | 2014-07-16 12:45:22 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2014-07-16 12:45:22 +0400 |
| commit | e0b07ec3416d1ee7c77234e9dd0a7408b50da83c (patch) | |
| tree | 430fc691f2cc593268fd1ada8defcec5b9c78ef4 /src/buffer.h | |
| parent | 74660d84d923fd8252b166770ca2403f6025a7ac (diff) | |
| download | emacs-e0b07ec3416d1ee7c77234e9dd0a7408b50da83c.tar.gz emacs-e0b07ec3416d1ee7c77234e9dd0a7408b50da83c.zip | |
More precise control over values of some buffer-local variables.
* keyboard.c (Qvertical_scroll_bar):
* frame.c (Qleft, Qright): Move to ...
* buffer.c (Qleft, Qright, Qvertical_scroll_bar): ... here.
* buffer.c (Qchoice, Qrange, Qoverwrite_mode, Qfraction): New symbols.
(syms_of_buffer): DEFSYM all of the above, attach special properties.
Use special symbols to DEFVAR_PER_BUFFER overwrite-mode,
vertical-scroll-bar, scroll-up-aggressively
and scroll-down-aggressively.
* buffer.h (Qchoice, Qrange, Qleft, Qright, Qvertical_scroll_bar):
Add declarations.
* nsfns.m, frame.h (Qleft, Qright):
* nsterm.m (Qleft): Remove declarations.
* gtkutil.c (toplevel): Include buffer.h.
* data.c (wrong_choice, wrong_range): New functions.
(store_symval_forwarding): Handle special properties of buffer-local
variables and use functions from the above to signal error, if any.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 5c1e1bb278c..3c29019554c 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -1135,6 +1135,7 @@ extern Lisp_Object Qbefore_change_functions; | |||
| 1135 | extern Lisp_Object Qafter_change_functions; | 1135 | extern Lisp_Object Qafter_change_functions; |
| 1136 | extern Lisp_Object Qfirst_change_hook; | 1136 | extern Lisp_Object Qfirst_change_hook; |
| 1137 | extern Lisp_Object Qpriority, Qbefore_string, Qafter_string; | 1137 | extern Lisp_Object Qpriority, Qbefore_string, Qafter_string; |
| 1138 | extern Lisp_Object Qchoice, Qrange, Qleft, Qright, Qvertical_scroll_bar; | ||
| 1138 | 1139 | ||
| 1139 | /* FOR_EACH_LIVE_BUFFER (LIST_VAR, BUF_VAR) followed by a statement is | 1140 | /* FOR_EACH_LIVE_BUFFER (LIST_VAR, BUF_VAR) followed by a statement is |
| 1140 | a `for' loop which iterates over the buffers from Vbuffer_alist. */ | 1141 | a `for' loop which iterates over the buffers from Vbuffer_alist. */ |