aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Qmode-line-format): Describe %l in the doc string.Eric S. Raymond1993-04-251-1/+1
|
* * buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFERJim Blandy1993-04-101-51/+84
| | | | | | | | | | | arguments. (recenter_overlay_lists): New argument BUF, to use instead of the current buffer. (Foverlay_recenter): Pass the appropriate arguments to recenter_overlay_lists. * buffer.c (Fdelete_overlay): Don't assume that overlay is in the current buffer. Don't forget to declare the argument a Lisp_Object.
* (Fkill_all_local_variables): Store each var's current valueRichard M. Stallman1993-04-081-0/+8
| | | | in the buffer's alist entry, before reverting to the default value.
* Include blockinput.h.Richard M. Stallman1993-04-071-0/+1
|
* Put interrupt input blocking in a separate file from xterm.h.Jim Blandy1993-03-311-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This isn't specific to X, and it allows us to avoid #including xterm.h in files that don't really have anything to do with X. * blockinput.h: New file. * xterm.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT, UNBLOCK_INPUT_RESIGNAL): These are now in blockinput.h. (x_input_blocked, x_pending_input): Deleted; there are analogs in blockinput.h called interrupt_input_blocked and interrupt_input_pending. * keyboard.c (interrupt_input_blocked, interrupt_input_pending): New variables, used by the macros in blockinput.h. * xterm.c: #include blockinput.h. (x_input_blocked, x_pending_input): Deleted. (XTread_socket): Test and set interrupt_input_blocked and interrupt_input_pending instead of the old variables. * alloc.c, xfaces.c, xfns.c, xmenu.c, xselect.c, keymap.c: #include blockinput.h. * eval.c: #include blockinput.h instead of xterm.h. * keyboard.c: #include blockinput.h. (input_poll_signal): Just test interrupt_input_blocked, instead of testing HAVE_X_WINDOWS and x_input_blocked. Block the processing of interrupt input while we're manipulating the malloc heap. * alloc.c: (xfree): New function, to make it easy to free things safely. (xmalloc, xrealloc): Block X input while doing the deed. (VALIDATE_LISP_STORAGE, gc_sweep, compact_strings): Use xfree instead of free. (uninterrupt_malloc): New function, to install input-blocking hooks into the GNU malloc routines. * emacs.c [not SYSTEM_MALLOC] (main): Call uninterrupt_malloc on startup. * alloc.c: (make_interval, make_float, Fcons, Fmake_vector, Fmake_symbol, Fmake_marker, make_uninit_string, Fgarbage_collect): Use xmalloc instead of malloc; don't bother to check if out of memory here. (Fgarbage_collect): Call xrealloc instead of realloc. * buffer.c: Use xmalloc and xfree instead of malloc and free; don't bother to check if out of memory here. (Fget_buffer_create): Put BLOCK_INPUT/UNBLOCK_INPUT pair around calls to ralloc routines. * insdel.c: Same. * lisp.h (xfree): New extern declaration. * xfaces.c (xfree): Don't #define this to be free; use the definition in alloc.c. * dispnew.c, doc.c, doprnt.c, fileio.c, lread.c, term.c, xfns.c, xmenu.c, xterm.c: Use xfree instead of free. * hftctl.c: Use xfree and xmalloc instead of free and malloc. * keymap.c (current_minor_maps): BLOCK_INPUT while calling realloc and malloc. * search.c: Since the regexp routines can malloc, BLOCK_INPUT while runing them. #include blockinput.h. * sysdep.c: #include blockinput.h. Call xfree and xmalloc instead of free and malloc. BLOCK_INPUT around routines which we know will call malloc. ymakefile (keyboard.o, keymap.o, search.o, sysdep.o, xfaces.o, xfns.o, xmenu.o, xterm.o, xselect.o, alloc.o, eval.o): Note that these depend on blockinput.h.
* (init_buffer_once, reset_buffer):Richard M. Stallman1993-03-271-47/+447
| | | | | | | | | | Delete last vestige of fieldlist slot. (Fregion_fields): Finally deleted. (overlays_at, recenter_overlay_lists): New functions. (Fmake_overlay, Fdelete_overlay, Foverlay_get, Foverlay_put): Likewise. (Fmove_overlay, Foverlays_at, Fnext_overlay_change): Likewise. (Foverlay_lists, Foverlay_recenter): Likewise.
* Doc fix.Jim Blandy1993-03-161-1/+1
|
* * cmds.c (overwrite_binary_mode): Deleted; this implements theJim Blandy1993-03-161-0/+4
| | | | | | | | | | | wrong feature. (Qoverwrite_mode_binary): New variable. (internal_self_insert): If current_buffer->overwrite_mode is `overwrite-mode-binary', do as overwrite_binary_mode used to. (syms_of_cmds): Remove defvar of overwrite_binary_mode; initialize Qoverwrite_mode_binary. * buffer.c (syms_of_buffer): Doc fix for overwrite_mode. * buffer.h (struct buffer): Doc fix.
* (syms_of_buffer): Make erase-buffer a disabled command.Roland McGrath1993-03-071-0/+4
|
* (reset_buffer_local_variables): Reset mark_active.Richard M. Stallman1993-03-071-1/+14
| | | | | (syms_of_buffer): New buffer-local var `mark-active'. (init_buffer_once): Initialize mechanism for it.
* (check_protected_fields): Variable deleted.Richard M. Stallman1993-03-061-12/+0
| | | | (syms_of_buffer): Delete vars buffer-field-list and check-protected-fields.
* * buffer.c (buffer-undo-list): Doc fix.Jim Blandy1993-03-021-2/+6
| | | | | | * buffer.c (syms_of_buffer): Add the extra argument to the commented-out DEFVAR_PER_BUFFER for `mode-line-format', so make-docfile will find the docstring properly.
* (Ferase_buffer): Added interactive spec.Roland McGrath1993-02-241-3/+4
|
* (syms_of_buffer): Doc fix.Richard M. Stallman1993-02-241-0/+4
|
* * buffer.c (Fswitch_to_buffer): Pass the correct number ofJim Blandy1993-02-221-5/+6
| | | | | | | | | | arguments to Fnext_window. * buffer.c (Fbury_buffer): Pass the correct number of arguments to Fother_buffer. * buffer.c (buffer_slot_type_mismatch): Make symbol_name an unsigned char *, to match the type of a string's data.
* (Frename_buffer): Make prefix arg set UNIQUE.Richard M. Stallman1993-02-141-7/+8
|
* JimB's changes since January 18thJim Blandy1993-01-261-6/+9
|
* * buffer.c (Frename_buffer): Set update_mode_lines.Jim Blandy1992-12-241-0/+5
|
* * buffer.c (Ferase_buffer): Doc fix.Jim Blandy1992-11-161-9/+11
| | | | | | * buffer.c (Fbury_buffer): Make this behave as in 18.59, although that behavior is very odd - only remove the buffer from the selected window if BUFFER was nil or omitted.
* * buffer.c (init_buffer): If PWD is accurate, use it instead ofJim Blandy1992-11-071-1/+15
| | | | | calling getwd. #include <sys/types.h> and <sys/stat.h>, for the call to stat.
* * buffer.c (reset_buffer): Don't assign to b->save_length as if itJim Blandy1992-10-311-1/+1
| | | | were an int; use XFASTINT.
* (Fkill_buffer): Pass 2nd arg to Fother_buffer.Richard M. Stallman1992-10-061-4/+4
| | | | (Fswitch_to_buffer, Fpop_to_buffer, Fbury_buffer):
* * buffer.c: #include intervals.h.Joseph Arceneaux1992-10-021-0/+1
|
* * buffer.c (reset_buffer): Do INITIALIZE_INTERVAL on the buffer'sJoseph Arceneaux1992-10-011-0/+8
| | | | | interval component. (Fkill_buffer): Likewise.
* * buffer.c (Fother_buffer): Add back the VISIBLE_OK argument. ItJim Blandy1992-09-301-5/+9
| | | | | got removed with no comment or ChangeLog entry, and append-to-buffer uses it.
* * data.c (Frem): Use the `fmod' function under SunOS, Ultrix, andJim Blandy1992-09-291-1/+1
| | | | HP/UX, not just under USG systems.
* * buffer.c (Fbury_buffer): This used to undisplay the buffer beingJim Blandy1992-09-291-14/+20
| | | | | | | | buried only if the BUFFER argument was nil. Instead, undisplay the buffer whenever it's displayed in the selected window, no matter how it was specified by BUFFER. This is how it behaves in 18.58, and I can't find any ChangeLog entry in 18.58 or 19.0 saying why they differ. Fix the doc string accordingly.
* * buffer.c (Fget_buffer_create): Doc fix.Jim Blandy1992-09-221-0/+1
|
* Formatting changeJim Blandy1992-08-291-5/+3
|
* (syms_of_buffer): Made buffer-display-table,Richard M. Stallman1992-08-281-3/+3
| | | | buffer-field-list and buffer-undo-list allow any type of value.
* * buffer.c (syms_of_buffer): Call DEFVAR_PER_BUFFER with the newJim Blandy1992-08-191-7/+60
| | | | | | TYPE argument. * buffer.c (buffer_local_types): New variable. (buffer_slot_type_mismatch): New function.
* entered into RCSJim Blandy1992-07-131-1/+1
|
* *** empty log message ***Richard M. Stallman1992-07-041-1/+3
|
* *** empty log message ***Jim Blandy1992-05-181-19/+26
|
* *** empty log message ***Jim Blandy1992-03-161-3/+1
|
* *** empty log message ***Jim Blandy1992-02-151-6/+6
|
* *** empty log message ***Jim Blandy1992-01-131-57/+54
|
* *** empty log message ***Roland McGrath1991-08-151-16/+35
|
* Initial revisionRoland McGrath1991-07-151-0/+1605