aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fbuffer_disable_undo): Make arg optional.Richard M. Stallman1993-12-231-2/+3
|
* (Frename_buffer): When the current buffer is already named NAME, don'tRoland McGrath1993-11-201-1/+5
| | | | | | | short-circuit and just return unless UNIQUE is nil. This makes passing UNIQUE=t equivalent to (rename-buffer (generate-new-buffer-name NAME)). This is useful way to rename the buffer automatically so you can create another with the original name.
* Undo last change. SPC feeping at you is too annoying.Roland McGrath1993-11-201-1/+1
|
* (Frename_buffer): Change s to B in interactive spec to give buffer-nameRoland McGrath1993-11-201-1/+1
| | | | | completion. Buffers are often renamed to a name similar to the name of an existing buffer.
* (Flist_buffers): Always return a value.Richard M. Stallman1993-11-191-3/+4
|
* (Foverlay_put): Don't call redisplay_region if overlay has no buffer.Richard M. Stallman1993-11-161-3/+5
|
* (Ferase_buffer): Doc fix.Richard M. Stallman1993-11-091-1/+1
|
* (Fdelete_overlay, Foverlay_put): Use marker_position,Richard M. Stallman1993-10-141-4/+4
| | | | not OVERLAY_POSITION, to get args for redisplay_region.
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (verify_overlay_modification): initialize endpos.Richard M. Stallman1993-08-111-0/+1
|
* (Fmove_overlay): Avoid initializer for Lisp_Object vars.Richard M. Stallman1993-08-021-4/+6
| | | | (verify_overlay_modification): Declare ostart, oend as Lisp_Object.
* (syms_of_buffer): Lisp var doc fixes.Richard M. Stallman1993-07-221-0/+10
|
* (Qmodification_hooks, Qinsert_in_front_hooks)Richard M. Stallman1993-07-211-0/+10
| | | | | (Qinsert_behind_hooks): Moved here. (syms_of_buffer): Lisp vars set up here.
* (Fbuffer_local_variables): For local var that is unbound,Richard M. Stallman1993-07-151-13/+26
| | | | put just the symbol in the result, not a cons of (symbol . value).
* (verify_overlay_modification): New function.Richard M. Stallman1993-07-131-0/+95
| | | | (call_overlay_mod_hooks): New function.
* * buffer.c (list_buffers_1): Make desired_point a lisp object; setJim Blandy1993-06-221-9/+12
| | | | | | | it to nil, unless we find the current buffer. (Flist_buffers): Don't try to set point in the buffer list unless list_buffers_1 actually returns an integer. Don't use a full save_excursion; just save and restore the buffer.
* Don't let the 'B' interactive spec default to buffers viewed inJim Blandy1993-06-171-1/+1
| | | | | | | | | | any visible frame. * buffer.c (Fother_buffer): Pass Qt as the second argument to Fget_buffer_window. * window.c (window_loop): In GET_BUFFER_WINDOW case, ignore non-visible frames. (Fget_buffer_window): Change doc string to mention that passing Qt for the FRAME argument returns windows on visible frames only.
* Don't let the 'B' interactive spec default to buffers viewed inJim Blandy1993-06-171-1/+1
| | | | | | | | | | | | | any visible frame. * buffer.c (Fother_buffer): Pass Qvisible as the second argument to Fget_buffer_window. * window.c (Qvisible): New symbol. (window_loop): In GET_BUFFER_WINDOW case, if frames is Qvisible, ignore non-visible frames. (Fget_buffer_window): Expand doc string to mention that Qvisible is an interesting value for FRAME argument. (syms_of_window): Init and staticpro Qvisible. * lisp.h (Qvisible): New declaration.
* * buffer.c (list_buffers_1): Return the desired point.Jim Blandy1993-06-161-8/+13
| | | | (Flist_buffers): Put point there in the buffer summary.
* (Fgenerate_new_buffer_name): GENTEMP is the value compare against IGNORE.Richard M. Stallman1993-06-111-1/+1
|
* Apply typo patches from Paul Eggert.Jim Blandy1993-06-091-1/+1
|
* (Fdelete_overlay): Do nothing if overlay already deleted.Richard M. Stallman1993-06-071-8/+25
| | | | | | Bind inhibit-quit to t. (Fmove_overlay): Properly handle changing buffers, or no prev buffer. Bind inhibit-quit to t.
* (syms_of_buffer): Set up Lisp var inhibit-read-only.Richard M. Stallman1993-06-041-1/+15
| | | | | (Vinhibit_read_only): Declared. (Fbarf_if_buffer_read_only): Check Vinhibit_read_only.
* (init_buffer): Init default-directory of minibuffer.Richard M. Stallman1993-06-031-0/+4
|
* (Fgenerate_new_buffer_name): Doc fix.Roland McGrath1993-05-301-1/+1
|
* (reset_buffer): Clear mark_active field here.Richard M. Stallman1993-05-301-4/+4
| | | | | | (reset_buffer_local_variables): Not here. (Fswitch_to_buffer, Fpop_to_buffer): Return the buffer. (Fmove_overlay): Fix data types in last change.
* (reset_buffer): Clear mark_active field here.Richard M. Stallman1993-05-291-1/+1
| | | | (reset_buffer_local_variables): Not here.
* (Fgenerate_new_buffer_name): New arg IGNORE.Richard M. Stallman1993-05-281-5/+11
| | | | (Frename_buffer): Pass new arg.
* * buffer.c (Fmove_overlay): If the overlay is changing buffers,Jim Blandy1993-05-281-20/+24
| | | | do a thorough redisplay.
* * buffer.c (Fmake_overlay): Put beg and end in theJim Blandy1993-05-241-18/+26
| | | | | | right order. (Fmove_overlay): If beg and end are markers, make sure they're in the right buffer.
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* (overlays_at): New arg EXTEND.Richard M. Stallman1993-05-161-12/+39
| | | | (Foverlays_at, Fnext_overlay_change): Pass 1.
* * buffer.c (Fmove_overlay): If the overlay is in no buffer and theJim Blandy1993-05-141-4/+8
| | | | | | | | | BUFFER argument has been omitted, put it in the current buffer, for symmetry with move-marker. * buffer.c (Fdelete_overlay): Make the overlay's markers point nowhere, not at 1. Do this after calling redisplay_region, so that code knows what section has changed.
* * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer,Jim Blandy1993-05-141-0/+49
| | | | Foverlay_properties): Functions moved here from subr.el.
* * lisp.h (Lisp_Overlay): New tag.Jim Blandy1993-05-141-22/+50
| | | | | | | | | | | | | | | | | | | | | | | (OVERLAYP): New predicate. (CHECK_OVERLAY): New type-checker. (Qoverlayp): New extern declaration. * buffer.c (Foverlayp): New function. (Qoverlayp): New atom. (overlays_at, recenter_overlay_lists): Abort if we encounter an invalid overlay. (syms_of_buffer): defsubr Soverlayp; initialize Qoverlayp. (Fdelete_overlay): Set the overlay's markers to point nowhere. Use CHECK_OVERLAY instead of signalling a special error. (Fmove_overlay, Foverlay_put): Use CHECK_OVERLAY instead of signalling a special error. (Foverlay_get): Use CHECK_OVERLAY. * fns.c (internal_equal): Define this for overlays. * buffer.h (OVERLAY_VALID): Define in terms of OVERLAYP. * print.c (print): Give overlays their own print syntax. * alloc.c (mark_object): Treat overlays like conses. * buffer.c (Foverlay_get): Return Qnil if the requested property is missing from the property list.
* Arrange to tell redisplay about changes in overlays.Jim Blandy1993-05-101-1/+45
| | | | | | | | | | | | * xdisp.c (redisplay_region): New function. * buffer.c (Fmove_overlay): Call redisplay_region on the areas the overlay has enclosed or left. (Fdelete_overlay): Call redisplay_region on the area the overlay used to occupy. (Foverlay_put): Call redisplay_region on the area the overlay now occupies; we may have put a face property on it. * buffer.c (Fmove_overlay): Doc fix.
* * buffer.c (syms_of_buffer): Doc fix for buffer-display-table.Jim Blandy1993-05-041-7/+10
| | | | | | | | | | | | * buffer.c (Fmake_overlay, Fmove_overlay): New optional BUFFER 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.
* (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
|