aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.Eli Zaretskii2001-07-061-1/+1
|
* (copy_overlays): Make ENABLE_CHECKING happy.Stefan Monnier2001-05-311-2/+2
|
* (copy_overlays): New function.Gerd Moellmann2001-05-161-2/+47
| | | | (clone_per_buffer_values): Use it.
* (mouse_face_overlay_overlaps): Fix the computationGerd Moellmann2001-04-251-6/+5
| | | | of the number of overlays to check.
* (syms_of_buffer): Doc fix.Eli Zaretskii2001-03-261-7/+22
|
* (swap_out_buffer_local_variables): CallGerd Moellmann2001-03-151-1/+1
| | | | store_symval_forwarding with BUF null.
* (syms_of_buffer) <header-line-format>: Doc fix.Gerd Moellmann2001-03-071-2/+2
|
* (mouse_face_overlay_overlaps): New function.Gerd Moellmann2001-03-061-1/+35
|
* (Fset_buffer_modified_p): Set buffer'sGerd Moellmann2001-01-161-1/+4
| | | | prevent_redisplay_optimizations_p flag.
* (Fkill_buffer): Don't Fset_buffer when testing ifGerd Moellmann2000-12-121-1/+0
| | | | the buffer is the sole visible buffer when in the mini-buffer.
* (Fmake_indirect_buffer): Don't treat nil as aGerd Moellmann2000-11-221-2/+1
| | | | buffer object.
* (Fkill_buffer): Notice if the buffer to kill is theGerd Moellmann2000-11-211-0/+11
| | | | | sole visible buffer when we're currently in the mini-buffer, and give up if so.
* (mmap_free_1): Avoid a compiler warning.Gerd Moellmann2000-11-211-1/+1
|
* (MAP_FAILED): Define it as `((void *) -1)' if it'sGerd Moellmann2000-11-201-0/+4
| | | | not defined in mman.h.
* (mmap_enlarge): Don't print a message on stderrGerd Moellmann2000-11-181-1/+1
| | | | if mapping new memory at the end of the existing region fails.
* (overlays_at): Only let CHANGE_REQ inhibit an assignment of startpos toMiles Bader2000-10-251-1/+2
| | | | prev when startpos == pos.
* Include stdio.h.Dave Love2000-09-251-0/+1
|
* (alloc_buffer_text): Fix xmalloc call.Dave Love2000-09-141-1/+1
|
* Move allocation with mmap here, from ralloc.c. ChangeGerd Moellmann2000-09-141-18/+549
| | | | | | | | | | | | | 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.
* (set_buffer_internal_1) [REL_ALLOC_MMAP]: IfGerd Moellmann2000-09-061-0/+11
| | | | buffer's text buffer is null, map new memory.
* (init_buffer) [REL_ALLOC_MMAP]: Map new bufferGerd Moellmann2000-09-061-1/+18
| | | | text buffers if necessary.
* (Fother_buffer): Consider buffers as invisible whenGerd Moellmann2000-09-051-1/+1
| | | | they are displayed in a window on an invisible frame.
* (syms_of_buffer) <scroll-up-aggressively>: Doc fix.Eli Zaretskii2000-08-231-2/+2
| | | | <scroll-down-aggressively>: Likewise.
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-0/+3
|
* (Fget_buffer_create, Fmake_indirect_buffer): AvoidDave Love2000-08-171-2/+3
| | | | INITIALIZE_INTERVAL.
* (overlays_at): Add CHANGE_REQ parameter.Miles Bader2000-08-081-7/+12
| | | | (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
* (Fprevious_overlay_change): Avoid memory leak.Gerd Moellmann2000-07-211-3/+3
|
* (Fset_buffer_multibyte): Don't make the current buffer as modified ifKenichi Handa2000-06-061-0/+5
| | | | it is originally unmodified.
* (Vbefore_change_function, Vafter_change_function):Dave Love2000-06-021-35/+0
| | | | Variables and their initializations deleted.
* (advance_to_char_boundary): Don't use DEC_POS to find aKenichi Handa2000-05-191-5/+115
| | | | | | apparent char boundary. (Fset_buffer_multibyte): Convert 8-bit characters in the range 0x80..0x9F to/from multibyte form.
* (Fbury_buffer): Avoid trouble from burying a killed buffer.Gerd Moellmann2000-05-191-10/+12
|
* Fix last change.Dave Love2000-05-111-1/+1
|
* (syms_of_buffer) [auto-fill-function]: Doc fix.Dave Love2000-05-041-1/+2
|
* (init_buffer_once): Handle extra_line_spacing.Gerd Moellmann2000-04-241-2/+13
| | | | | | | (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.
* (Fmake_indirect_buffer): Escape newline in doc.Dave Love2000-04-191-2/+2
|
* (clone_per_buffer_values): New function.Gerd Moellmann2000-04-171-14/+64
| | | | | (Fmake_indirect_buffer): Add optional argument CLONE. Call clone_per_buffer_values if CLONE is not nil.
* (Frestore_buffer_modified_p): New function.Gerd Moellmann2000-04-091-0/+31
| | | | (syms_of_buffer): Defsubr it.
* * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):Ken Raeburn2000-03-301-10/+10
| | | | | | | | | | | | | | | | | | 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.
* (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARSGerd Moellmann2000-03-271-17/+17
| | | | | instead of MAX_BUFFER_LOCAL_VARS. (last_per_buffer_idx): Renamed from max_buffer_local_idx.
* (syms_of_buffer): Add default-cursor-type.Gerd Moellmann2000-03-261-1/+5
| | | | | (init_buffer_once): Don't let cursor_type have a local value in every buffer.
* (reset_buffer): Initialize buffer's cursor_type.Gerd Moellmann2000-03-261-0/+13
| | | | | | (init_buffer_once): Set default cursor_type value to t. Mark cursor_type as local everywhere. (syms_of_buffer): New per-buffer variable cursor-type.
* (buffer_permanent_local_flags): Make a char array.Gerd Moellmann2000-03-261-67/+84
| | | | | | | | | (max_buffer_local_idx): New variable. (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten for new handling of per-buffer variables. (buffer_slot_type_mismatch): Use new macros for per-buffer vars. (init_buffer_once): Initialize per-buffer vars differently. Set max_buffer_local_idx.
* (Fset_buffer_modified_p): Set update_mode_linesGerd Moellmann2000-03-201-1/+18
| | | | only if buffer is displayed in some window.
* (Fget_buffer_create, Fmake_indirect_buffer): UseGerd Moellmann2000-02-171-3/+2
| | | | allocate_buffer instead of xmalloc.
* (Fother_buffer): Don't call Fset_buffer_major_modeGerd Moellmann2000-01-281-2/+6
| | | | for *scratch* if it already existed.
* (modify_overlay): Always compute unchanged info.Gerd Moellmann1999-12-281-2/+2
|
* (Fset_buffer_multibyte): Arrange for a thoroughGerd Moellmann1999-12-221-2/+10
| | | | redisplay after changing the multibyteness of a buffer.
* (syms_of_buffer): Add %z, %Z, %m and %& to the docEli Zaretskii1999-11-231-1/+4
| | | | string of mode-line-format. Remove the obsolete %t.
* (indicate-empty-lines): Doc-fix.Gerd Moellmann1999-11-131-1/+3
|
* Remove conditional compilation on USE_TEXT_PROPERTIES.Gerd Moellmann1999-11-071-5/+0
|