diff options
| author | Richard M. Stallman | 1995-01-27 07:17:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-01-27 07:17:39 +0000 |
| commit | 943e065b3c5e5cb2ec81a2222f03faab864a562f (patch) | |
| tree | 3a97b722cb1ad0361c9d4a6b6db9e9780acc737d /src | |
| parent | 58f950b4459542699d3e252e9d5cf1e168c5a58a (diff) | |
| download | emacs-943e065b3c5e5cb2ec81a2222f03faab864a562f.tar.gz emacs-943e065b3c5e5cb2ec81a2222f03faab864a562f.zip | |
(init_buffer_once, syms_of_buffer):
Set up buffer-local var point_before_scroll.
(reset_buffer): Init point_before_scroll.
Diffstat (limited to 'src')
| -rw-r--r-- | src/buffer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index c8c5498c083..052413ba64f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -423,6 +423,7 @@ reset_buffer (b) | |||
| 423 | b->overlays_after = Qnil; | 423 | b->overlays_after = Qnil; |
| 424 | XSETFASTINT (b->overlay_center, 1); | 424 | XSETFASTINT (b->overlay_center, 1); |
| 425 | b->mark_active = Qnil; | 425 | b->mark_active = Qnil; |
| 426 | b->point_before_scroll = Qnil; | ||
| 426 | } | 427 | } |
| 427 | 428 | ||
| 428 | /* Reset buffer B's local variables info. | 429 | /* Reset buffer B's local variables info. |
| @@ -2714,6 +2715,7 @@ init_buffer_once () | |||
| 2714 | XSETINT (buffer_local_flags.mode_name, -1); | 2715 | XSETINT (buffer_local_flags.mode_name, -1); |
| 2715 | XSETINT (buffer_local_flags.undo_list, -1); | 2716 | XSETINT (buffer_local_flags.undo_list, -1); |
| 2716 | XSETINT (buffer_local_flags.mark_active, -1); | 2717 | XSETINT (buffer_local_flags.mark_active, -1); |
| 2718 | XSETINT (buffer_local_flags.point_before_scroll, -1); | ||
| 2717 | 2719 | ||
| 2718 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); | 2720 | XSETFASTINT (buffer_local_flags.mode_line_format, 1); |
| 2719 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); | 2721 | XSETFASTINT (buffer_local_flags.abbrev_mode, 2); |
| @@ -3223,6 +3225,9 @@ maintained internally by the Emacs primitives. Enabling or disabling\n\ | |||
| 3223 | the cache should not affect the behavior of any of the motion\n\ | 3225 | the cache should not affect the behavior of any of the motion\n\ |
| 3224 | functions; it should only affect their performance."); | 3226 | functions; it should only affect their performance."); |
| 3225 | 3227 | ||
| 3228 | DEFVAR_PER_BUFFER ("point-before-scroll", ¤t_buffer->point_before_scroll, Qnil, | ||
| 3229 | "Value of point before the last series of scroll operations, or nil."); | ||
| 3230 | |||
| 3226 | DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, | 3231 | DEFVAR_LISP ("transient-mark-mode", &Vtransient_mark_mode, |
| 3227 | "*Non-nil means deactivate the mark when the buffer contents change."); | 3232 | "*Non-nil means deactivate the mark when the buffer contents change."); |
| 3228 | Vtransient_mark_mode = Qnil; | 3233 | Vtransient_mark_mode = Qnil; |