1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-14 07:20:35 -08:00
Commit graph

169 commits

Author SHA1 Message Date
Richard M. Stallman
89ca3e1b91 (Fmake_overlay): Use XMISCTYPE. 1995-04-07 05:32:09 +00:00
Richard M. Stallman
2f3f993bdf (Fkill_buffer): Call reset_buffer_local_variables
and swap_out_buffer_local_variables.
(swap_out_buffer_local_variables): New subroutine.
(Fkill_all_local_variables): Use that subroutine.
1995-04-06 06:58:50 +00:00
Karl Heuer
554216ad38 (syms_of_buffer): Doc fix. 1995-03-24 03:19:16 +00:00
Karl Heuer
fc04fa47a4 (overlay_touches_p): New function. 1995-03-22 21:23:10 +00:00
Boris Goldowsky
be9aafddc1 (reset_buffer): Reset file_format element too.(init_buffer_once): Define file_format flag; reset file_format.
(syms_of_buffer): New vbl buffer-file-format.
1995-03-17 18:12:02 +00:00
Richard M. Stallman
9e552710cf (Fmake_indirect_buffer): Invert the arguments. 1995-03-14 05:54:51 +00:00
Richard M. Stallman
3cb719bd3b (reset_buffer_local_variables): Init invisibility.
(init_buffer_once): Set up buffer_local_flags for it.
(syms_of_buffer): New variable `buffer-invisibility-spec'.
1995-03-11 22:36:29 +00:00
Richard M. Stallman
7c2087eea5 (Fpop_to_buffer): Call Fset_buffer_major_mode if we create a buffer. 1995-03-06 04:15:23 +00:00
Richard M. Stallman
f6ed2e848d (syms_of_buffer): Set up Lisp var buffer-file-truename.
(init_buffer_once): Set up flag and default value for file_truename.
(reset_buffer): Init file_truename slot.
1995-02-14 16:33:19 +00:00
Richard M. Stallman
81841847d1 (Fget_buffer_create): Call buffer_memory_full. 1995-02-05 08:58:27 +00:00
Richard M. Stallman
5e05d0a567 (syms_of_buffer): overwrite-mode doc fix. 1995-01-31 04:55:29 +00:00
Richard M. Stallman
943e065b3c (init_buffer_once, syms_of_buffer):
Set up buffer-local var point_before_scroll.
(reset_buffer): Init point_before_scroll.
1995-01-27 07:17:39 +00:00
Richard M. Stallman
e0585c647b (syms_of_buffer) [DOS_NT]: Add missing ';'. 1995-01-20 23:40:45 +00:00
Richard M. Stallman
01c386ba5e (list_buffers_1, Flist_buffers): Functions deleted. 1995-01-17 02:33:24 +00:00
Richard M. Stallman
6c0df54af6 (syms_of_buffer): Doc fix. 1995-01-08 19:22:20 +00:00
Richard M. Stallman
336cd05669 (Fmake_indirect_buffer): New function.
(Fbuffer_base_buffer): New function.
(syms_of_buffer): defsubr them.

(reset_buffer): Don't alter intervals here.
(Fget_buffer_create): Use BUF_MARKERS.  Init BUF_INTERVALS here.
(Fkill_buffer): Use BUF_MARKERS; but don't touch it in indir buf.
Likewise BUF_INTERVALS.
(init_buffer_once): Set up .text and BUF_INTERVALS
in buffer_local_symbols and buffer_defaults.

(Fkill_buffer): Don't free the text in indirect buffer.
When killing a base buffer, kill its indirect buffers first.

(set_buffer_temp): New function.

(reset_buffer_local_variables): Initialize buffer_file_type field.

(Fget_buffer_create): Initialize pt_marker, begv/zv_marker.
(set_buffer_internal): Use and update these markers.
Copy undo_list in and out of the base buffer.

(Fget_buffer_create): Init save_modiff field here.
(reset_buffer): Not here.
(Fbuffer_modified_p): Use BUF_SAVE_MODIFF.
(Fset_buffer_modified_p): Use SAVE_MODIFF.
(Fkill_buffer, list_buffers_1): Use BUF_SAVE_MODIFF.

(Fget_buffer_create): Initialize the size and text fields.
1995-01-02 21:50:28 +00:00
Richard M. Stallman
006d3d3458 (syms_of_buffer): Doc fix for buffer-file-type. 1994-12-25 22:19:45 +00:00
Richard M. Stallman
04ae1b489a (Fget_buffer_create): Copy the name, and clear text props.
(assoc_ignore_text_properties): New function.
(Fget_buffer): Use assoc_ignore_text_properties.

(Fother_buffer): Take account of frame's buffer predicate.
1994-12-21 22:50:22 +00:00
Richard M. Stallman
930a91400a (report_overlay_modification): Renamed from verify_overlay_modification.
(call_overlay_mod_hooks): New args AFTER, ARG1, ARG2, ARG3.
Args START, END deleted.  Pass each function AFTER, ARG1 and ARG2,
and ARG3 if ARG3 is not nil.
(verify_overlay_modification): New args AFTER, ARG1, ARG2, ARG3.
Pass them to call_overlay_mod_hooks.
1994-12-11 11:30:43 +00:00
Richard M. Stallman
5296fd1855 (list_buffers_1): Right-align the size values. 1994-12-11 09:48:25 +00:00
Richard M. Stallman
cbb6a418dc (Fkill_buffer): Use internal_delete_file. 1994-11-28 19:27:27 +00:00
Karl Heuer
8fc0589a7e (overlays_at): Use the new type-test macros. 1994-11-15 23:54:26 +00:00
Richard M. Stallman
fb5eba9c6f (Frename_buffer): Rename arg NAME to NEWNAME. 1994-11-15 17:05:44 +00:00
Richard M. Stallman
489c043ab7 (Frename_buffer): Rename arg NAME to NEWNAME. 1994-11-15 14:01:12 +00:00
Karl Heuer
48e2e3ba61 (Fmake_overlay, Foverlay_properties, Foverlay_get, Foverlay_put): Use new
overlay substructure.
(list_buffers_1): Use PT, not point.
1994-11-15 02:02:34 +00:00
Karl Heuer
6746ed7a33 (Fkill_all_local_variables): Use XBUFFER_LOCAL_VALUE, not XCONS. 1994-11-15 00:06:33 +00:00
Karl Heuer
fdc6e51676 (set_buffer_internal): Use XBUFFER_LOCAL_VALUE, not XCONS. 1994-11-11 07:33:46 +00:00
Richard M. Stallman
cf1e6391ae (init_buffer): Fix error message syntax. 1994-11-02 01:22:31 +00:00
Richard M. Stallman
f7975d0711 (init_buffer): Use DIRECTORY_SEP, IS_DIRECTORY_SEP macros,
not character constants.
(init_buffer_once, syms_of_buffer): Test DOS_NT, not MSDOS.
1994-11-01 06:39:38 +00:00
Karl Heuer
a9ee7a5992 (Fset_buffer_major_mode): New function. Set the default major mode here.
(Fget_buffer_create): Not here.
(Fswitch_to_buffer): Call Fset_buffer_major_mode.
(syms_of_buffer): defsubr the new function.
1994-10-27 22:35:14 +00:00
Richard M. Stallman
b5b4d3606f (list_buffers_1): Always mark current_buffer read-only. 1994-10-20 21:19:47 +00:00
Karl Heuer
54dfdeb04f (buffer_slot_type_mismatch): Take just the offset as argument. Only check
against types that are actually used.
1994-10-12 05:14:30 +00:00
Karl Heuer
c51e6d8c26 (buffer_slot_type_mismatch): Test against Lisp_Misc. 1994-10-11 07:46:22 +00:00
Richard M. Stallman
1d3395a615 (list_buffers_1): Fix indentation in header lines. 1994-10-11 05:29:55 +00:00
Jim Blandy
f0c5b7125a (syms_of_buffer): Doc fix for cache-long-line-scans. 1994-10-10 16:01:58 +00:00
Jim Blandy
28e969dd70 * buffer.c: #include region-cache.h.
(Fget_buffer_create): Initialize new members of struct buffer.
(Fkill_buffer): Free memory occupied by caches.
(init_buffer_once): Set default value for cache_long_line_scans in
buffer_defaults, and give it a bit in buffer_local_flags.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for cache_long_line_scans.
1994-10-08 22:12:12 +00:00
Karl Heuer
aab808227e (init_buffer_once): Don't use XSETFASTINT when negative.
(reset_buffer_local_variables, Fbuffer_local_variables): Access
buffer_local_flags as Lisp_Object, not int.
1994-10-06 22:30:47 +00:00
Karl Heuer
0319206797 (validate_region): Swap using temp Lisp_Object, not int. 1994-10-04 19:36:47 +00:00
Karl Heuer
8d7a4592e2 (reset_buffer, Ferase_buffer, validate_region, list_buffers_1, recenter_overlay_lists, init_buffer_once): Don't use XFASTINT as an lvalue. 1994-10-04 15:36:45 +00:00
Karl Heuer
67180c6ae0 (Fget_buffer_create, Frename_buffer, Fbuffer_disable_undo,
Fbuffer_enable_undo, Fcurrent_buffer, Fbury_buffer, Fmake_overlay,
init_buffer_once): Use new accessor macros instead of calling XSET directly.
1994-10-04 11:54:19 +00:00
Richard M. Stallman
cab4777e78 (Foverlay_get): Handle `category' property on overlay. 1994-10-01 21:02:59 +00:00
Karl Heuer
a7a60ce913 (nsberror, Fget_buffer, Fget_file_buffer, Fbuffer_local_variables,
Fkill_buffer, set_buffer_internal, list_buffers_1, sort_overlays): Use type
test macros.
1994-09-27 03:57:23 +00:00
Richard M. Stallman
11da536332 (get-file-buffer): Doc fix. 1994-09-24 01:16:19 +00:00
Karl Heuer
889bf32987 (evaporate_overlays): Overlay is in car, not cdr. 1994-09-22 19:20:52 +00:00
Richard M. Stallman
239c932bb2 (overlays_at): New arg PREV_PTR.
Return previous overlay end.
(Foverlays_at): Pass NULL for last 2 args of overlays_at.
(Fnext_overlay_change): Pass new arg to overlays_at.
(Fprevious_overlay_change): New function.
1994-09-21 08:14:33 +00:00
Karl Heuer
3402827c0e (syms_of_buffer): Doc fix. 1994-09-19 20:24:47 +00:00
Jim Blandy
a45e35e173 Add a new element to display tables controlling side-by-side
window borders.
* buffer.c (syms_of_buffer): Update doc string for
`buffer-display-table'.
* disptab.h (DISP_TABLE_SIZE): Bump to 262.
(DISP_BORDER_GLYPH): New accessor macro.
* xdisp.c (display_text_line): Consult the display table when
building side-by-side window borders.
1994-09-19 17:28:37 +00:00
Richard M. Stallman
bcd4052086 (reset_buffer): Don't call reset_buffer_local_variables.
(Fget_buffer_create): Call it here.
(init_buffer_once): And here.
1994-09-18 08:46:34 +00:00
Karl Heuer
9d7608b719 (Qevaporate): New symbol.
(syms_of_buffer): Initialize it.
(Fmove_overlay): Check if overlay is empty.
(Foverlay_put): Check if setting evaporate property on empty overlay.
(evaporate_overlays): New function.
1994-09-17 01:51:30 +00:00
Richard M. Stallman
4d2f13893e (reset_buffer_local_variables, Fbuffer_local_variables)
(init_buffer_once): Use EMACS_INT.
1994-09-17 00:26:43 +00:00