Pavel Janík
efc7e75ff0
Reindent DEFUNs and DEFVARs woth doc: keywords.
2001-10-21 08:49:43 +00:00
Miles Bader
7ee72033eb
Change doc-string comments to new style' [w/doc:' keyword].
2001-10-17 03:16:12 +00:00
Gerd Moellmann
71a0f2c6e4
(Fset_buffer_major_mode): Use initial-major-mode for
...
*scratch*.
2001-10-16 09:21:56 +00:00
Ken Raeburn
f3fbd15535
Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
...
with lisp system changes.
2001-10-16 09:09:51 +00:00
Pavel Janík
018ba359ab
Put doc strings in comments.
2001-10-15 20:52:59 +00:00
Stefan Monnier
c58dab6376
(Fbury_buffer): Don't try to remove the buffer from the
...
selected window if it's not displayed there. Handle the case
when the window is dedicated.
(syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2001-10-12 02:01:23 +00:00
Stefan Monnier
e35f6ff793
Include keymap.h.
2001-10-10 16:05:21 +00:00
Gerd Moellmann
f5c1dd0dc5
Use SYMBOL_VALUE/SET_SYMBOL_VALUE macros instead of accessing
...
symbols' value directly.
2001-10-05 09:49:39 +00:00
Eli Zaretskii
e58c389d2a
Fix a typo in a comment.
2001-09-18 13:51:22 +00:00
Gerd Moellmann
26f545d7f8
(modify_overlay): Don't do nothing if START == END;
...
This can still be a modification, for example when an overlay has
a before-string or after-string.
(Fdelete_overlay): Prevent redisplay optimizations when deleting
an overlay with before-string or after-string.
2001-09-18 12:20:53 +00:00
Gerd Moellmann
79aa538170
(syms_of_buffer): Doc fix.
2001-09-03 08:03:53 +00:00
Eli Zaretskii
36b40a8aa8
(syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
2001-07-06 15:38:42 +00:00
Stefan Monnier
db3a49a62e
(copy_overlays): Make ENABLE_CHECKING happy.
2001-05-31 01:44:47 +00:00
Gerd Moellmann
04e4cb3a83
(copy_overlays): New function.
...
(clone_per_buffer_values): Use it.
2001-05-16 12:17:43 +00:00
Gerd Moellmann
bfd8410fc2
(mouse_face_overlay_overlaps): Fix the computation
...
of the number of overlays to check.
2001-04-25 14:51:11 +00:00
Eli Zaretskii
9948db79dd
(syms_of_buffer): Doc fix.
2001-03-26 17:09:00 +00:00
Gerd Moellmann
9b3a7dad95
(swap_out_buffer_local_variables): Call
...
store_symval_forwarding with BUF null.
2001-03-15 09:43:39 +00:00
Gerd Moellmann
2ab62c6c94
(syms_of_buffer) <header-line-format>: Doc fix.
2001-03-07 14:15:25 +00:00
Gerd Moellmann
09a22085f4
(mouse_face_overlay_overlaps): New function.
2001-03-06 15:28:48 +00:00
Gerd Moellmann
d57b83b374
(Fset_buffer_modified_p): Set buffer's
...
prevent_redisplay_optimizations_p flag.
2001-01-16 14:21:59 +00:00
Gerd Moellmann
933bfda185
(Fkill_buffer): Don't Fset_buffer when testing if
...
the buffer is the sole visible buffer when in the mini-buffer.
2000-12-12 15:29:00 +00:00
Gerd Moellmann
1dd6a7adbf
(Fmake_indirect_buffer): Don't treat nil as a
...
buffer object.
2000-11-22 22:33:55 +00:00
Gerd Moellmann
77270fac61
(Fkill_buffer): Notice if the buffer to kill is the
...
sole visible buffer when we're currently in the mini-buffer, and
give up if so.
2000-11-21 20:41:11 +00:00
Gerd Moellmann
1a15cca02c
(mmap_free_1): Avoid a compiler warning.
2000-11-21 12:33:01 +00:00
Gerd Moellmann
09dfdf85ac
(MAP_FAILED): Define it as `((void *) -1)' if it's
...
not defined in mman.h.
2000-11-20 17:24:36 +00:00
Gerd Moellmann
edaa9aed5a
(mmap_enlarge): Don't print a message on stderr
...
if mapping new memory at the end of the existing region fails.
2000-11-18 15:51:00 +00:00
Miles Bader
1d5f4c1de4
(overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos to
...
prev when startpos == pos.
2000-10-25 07:30:21 +00:00
Dave Love
15e7873af5
Include stdio.h.
2000-09-25 18:18:31 +00:00
Dave Love
815add8485
(alloc_buffer_text): Fix xmalloc call.
2000-09-14 19:39:11 +00:00
Gerd Moellmann
b86af064c5
Move allocation with mmap here, from ralloc.c. Change
...
conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
(mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
from former r_alloc_* functions in ralloc.c.
(mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
variables.
(MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
(mmap_init) [REL_ALLOC_MMAP]: New function.
(alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
BUFFER_FREE.
2000-09-14 15:14:02 +00:00
Gerd Moellmann
684b01ee39
(set_buffer_internal_1) [REL_ALLOC_MMAP]: If
...
buffer's text buffer is null, map new memory.
2000-09-06 21:42:14 +00:00
Gerd Moellmann
93c27ef1aa
(init_buffer) [REL_ALLOC_MMAP]: Map new buffer
...
text buffers if necessary.
2000-09-06 21:25:12 +00:00
Gerd Moellmann
66ffe51c35
(Fother_buffer): Consider buffers as invisible when
...
they are displayed in a window on an invisible frame.
2000-09-05 13:02:14 +00:00
Eli Zaretskii
9b47cfe0f3
(syms_of_buffer) <scroll-up-aggressively>: Doc fix.
...
<scroll-down-aggressively>: Likewise.
2000-08-23 11:54:24 +00:00
Andrew Innes
2538fae4f8
Include keyboard.h before frame.h.
2000-08-22 22:41:00 +00:00
Dave Love
a9800ae8a9
(Fget_buffer_create, Fmake_indirect_buffer): Avoid
...
INITIALIZE_INTERVAL.
2000-08-17 13:51:37 +00:00
Miles Bader
ac869cf715
(overlays_at): Add CHANGE_REQ parameter.
...
(Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
2000-08-08 23:45:38 +00:00
Gerd Moellmann
017f053958
(Fprevious_overlay_change): Avoid memory leak.
2000-07-21 14:33:35 +00:00
Kenichi Handa
ed00559de2
(Fset_buffer_multibyte): Don't make the current buffer as modified if
...
it is originally unmodified.
2000-06-06 05:43:12 +00:00
Dave Love
98067d54ca
(Vbefore_change_function, Vafter_change_function):
...
Variables and their initializations deleted.
2000-06-02 12:43:31 +00:00
Kenichi Handa
a9bcded1f3
(advance_to_char_boundary): Don't use DEC_POS to find a
...
apparent char boundary.
(Fset_buffer_multibyte): Convert 8-bit characters in the range
0x80..0x9F to/from multibyte form.
2000-05-19 23:50:26 +00:00
Gerd Moellmann
a1a8b28e52
(Fbury_buffer): Avoid trouble from burying a killed buffer.
2000-05-19 20:33:58 +00:00
Dave Love
139f13a779
Fix last change.
2000-05-11 18:38:29 +00:00
Dave Love
6c9a74728b
(syms_of_buffer) [auto-fill-function]: Doc fix.
2000-05-04 22:00:40 +00:00
Gerd Moellmann
a3bbced0df
(init_buffer_once): Handle extra_line_spacing.
...
(syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
(reset_buffer): Don't initialize extra2 and extra3. Intialize
extra_line_spacing from default value.
(init_buffer_once): Initialize default value of extra_line_spacing.
2000-04-24 13:55:05 +00:00
Dave Love
f532dca004
(Fmake_indirect_buffer): Escape newline in doc.
2000-04-19 08:55:09 +00:00
Gerd Moellmann
7e9d581860
(clone_per_buffer_values): New function.
...
(Fmake_indirect_buffer): Add optional argument CLONE. Call
clone_per_buffer_values if CLONE is not nil.
2000-04-17 15:26:29 +00:00
Gerd Moellmann
a8c21b482f
(Frestore_buffer_modified_p): New function.
...
(syms_of_buffer): Defsubr it.
2000-04-09 10:47:46 +00:00
Ken Raeburn
8801a864d2
* lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):
...
Verify correct object type before returning pointer, using eassert.
* frame.h (XFRAME): Likewise.
* buffer.c (Frename_buffer, Fset_buffer_multibyte,
swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER,
etc, to values that may be nil or of the wrong type.
* data.c (set_internal): Likewise.
* dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise.
* fileio.c (auto_save_1): Likewise.
* insdel.c (check_markers): Likewise.
* marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
* undo.c (record_insert): Likewise.
* vmsproc.c (child_sig): Likewise.
* window.c (unshow_buffer, window_loop): Likewise.
* xterm.c (x_erase_phys_cursor): Likewise.
2000-03-30 09:56:31 +00:00
Gerd Moellmann
7313acd0d4
(buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
...
instead of MAX_BUFFER_LOCAL_VARS.
(last_per_buffer_idx): Renamed from max_buffer_local_idx.
2000-03-27 12:51:06 +00:00