| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Don't call Vrun_hooks if it is nil.
|
| | |
|
| | |
|
| |
|
|
| |
(syms_of_buffer): Make Lisp var for kill-buffer-query-functions.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
(keys_of_buffer): Do it here instead.
|
| |
|
|
| |
buffer-file-type to handle DOS newlines.
|
| |
|
|
|
|
| |
(Qget_file_buffer): New variable.
(syms_of_buffer): Set up Qget_file_buffer.
(Fget_file_buffer): For magic file names, run the handler.
|
| | |
|
| |
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
completion. Buffers are often renamed to a name similar to the name of an
existing buffer.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
not OVERLAY_POSITION, to get args for redisplay_region.
|
| | |
|
| | |
|
| |
|
|
| |
(verify_overlay_modification): Declare ostart, oend as Lisp_Object.
|
| | |
|
| |
|
|
|
| |
(Qinsert_behind_hooks): Moved here.
(syms_of_buffer): Lisp vars set up here.
|
| |
|
|
| |
put just the symbol in the result, not a cons of (symbol . value).
|
| |
|
|
| |
(call_overlay_mod_hooks): New function.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
(Flist_buffers): Put point there in the buffer summary.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Bind inhibit-quit to t.
(Fmove_overlay): Properly handle changing buffers, or no prev buffer.
Bind inhibit-quit to t.
|
| |
|
|
|
| |
(Vinhibit_read_only): Declared.
(Fbarf_if_buffer_read_only): Check Vinhibit_read_only.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
(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_local_variables): Not here.
|
| |
|
|
| |
(Frename_buffer): Pass new arg.
|
| |
|
|
| |
do a thorough redisplay.
|
| |
|
|
|
|
| |
right order.
(Fmove_overlay): If beg and end are markers, make sure they're in
the right buffer.
|
| | |
|
| |
|
|
| |
(Foverlays_at, Fnext_overlay_change): Pass 1.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Foverlay_properties): Functions moved here from subr.el.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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 (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.
|
| | |
|