1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-02 02:10:46 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Jim Blandy
db9e92962d * keyboard.c (read_key_sequence): Don't lay down an unwind_protect
to restore the original buffer until we actually get a mouse click.
1993-05-18 22:30:21 +00:00
Jim Blandy
5a1c6df8cd * xterm.c (XTread_socket): Turn off ControlMask for XLookupString.
* keyboard.c (make_lispy_event): Controlify here.
1993-05-18 22:24:14 +00:00
Jim Blandy
1f18c48f3a * window.c (window-dedicated-p): Doc fix. 1993-05-18 22:07:14 +00:00
Richard M. Stallman
096855a66a (struct window): New slot region_showing. 1993-05-18 04:49:52 +00:00
Richard M. Stallman
bd66d1baeb (mark_window_display_accurate): Set region_showing fields.
(redisplay_window): Update region_showing field.
(display_text_line): Set region_showing to t if will show one.

(mark_window_display_accurate): Set region_showing fields.
(redisplay_window): Update region_showing field.
(display_text_line): Set region_showing to t if will show one.

(redisplay, redisplay_window): Don't use the cursor-motion
special-case code if the region is or was highlighted.

(display_text_line): Pass those args,
describing the region if the mark is transient and active.

(display_menu_bar): Update FRAME_MENU_BAR_ITEMS here.
1993-05-17 04:47:53 +00:00
Richard M. Stallman
c49cbce2eb (x_set_cursor_color): Set cursor_foreground_pixel. 1993-05-16 22:35:23 +00:00
Richard M. Stallman
67710a6327 (x_display): New field cursor_fore_pixel. 1993-05-16 22:34:42 +00:00
Richard M. Stallman
b73b6aaf28 (dumpglyphs): Create a temporary merged gc
when cursor falls on char with non-default face.
1993-05-16 22:32:36 +00:00
Richard M. Stallman
61d54cd540 (overlays_at): New arg EXTEND.
(Foverlays_at, Fnext_overlay_change): Pass 1.
1993-05-16 22:31:48 +00:00
Richard M. Stallman
9516fe943a (compute_char_face): Pass 0 as EXTEND arg to overlays_at.
Try first with small overlay_vec, then use a big enough one.
1993-05-16 22:31:04 +00:00
Jim Blandy
e01091534d Document sun change. 1993-05-16 18:12:57 +00:00
Richard M. Stallman
a1929ae348 (casify_region): Remove mistaken arg to record_change. 1993-05-16 13:42:36 +00:00
Jim Blandy
584d063432 * xfaces.c (Fset_face_attribute_internal): Jolt redisplay, so it
knows something has changed.
1993-05-16 01:32:11 +00:00
Jim Blandy
32dc08666b * xfaces.c (unload_color): Don't try to unload the standard black
or white pixel.
1993-05-16 00:23:33 +00:00
Jim Blandy
3ce7a076e6 Install David Mackenzie's patches to make ${srcdir} work.
* Makefile.in (srcdir, VPATH): Get this value from the top-level
	Makefile.
	(xmakefile): Use ${srcdir} to find the files from which we produce
	xmakefile.  Edit the values for srcdir and VPATH into xmakefile.
	* ymakefile (srcdir, VPATH): New definitions for the Makefile
	to edit.
	(ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and
	`-I.'.
	(emacs): Adjust dumping commands to deal with a separate source
	directory.
	(${etc}DOC): Pass `-d ${srcdir}' to make-docfile, to tell it where
	to find the source files.
	(prefix-args): Find the source code in ${srcdir}.
1993-05-15 23:21:35 +00:00
Jim Blandy
26ec91de25 * process.c (wait_reading_process_input): If we're running
Solaris, it's not necessary to check if we should redeliver SIGIO,
	according to David Mackenzie.
	* s/sol2.h: #include "usg5-4.h", and #define const.
1993-05-15 23:20:33 +00:00
Jim Blandy
d712c26dd5 * systime.h: Borrow CPP sequence from getdate.y to include the
proper combination of <time.h> and <sys/time.h>.
1993-05-15 20:47:28 +00:00
Richard M. Stallman
356ba514a3 (Fx_selection_exists_p): Handle nil, t as SELECTION arg.
Don't die if SELECTION is not recognized.
1993-05-15 19:00:34 +00:00
Richard M. Stallman
bc0db68d47 (compute_char_face): New args REGION_BEG, REGION_END.
Don't sort if noverlays is 0 or 1.
1993-05-15 18:45:14 +00:00
Richard M. Stallman
de83c3149e (direct_output_forward_char): Just give up
if region is being highlighted.

(direct_output_for_insert): Pass those args.
1993-05-15 18:44:46 +00:00
Jim Blandy
3ece337ad9 * buffer.c (Fmove_overlay): If the overlay is in no buffer and the
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.
1993-05-14 22:57:10 +00:00
Richard M. Stallman
926a64aa20 (access_keymap): Handle any length vector.
(store_in_keymap): Likewise.
(Fcopy_keymap): Likewise.
1993-05-14 22:11:17 +00:00
Richard M. Stallman
0e9d6dd34b (command_loop_1): Don't do it here. 1993-05-14 19:43:05 +00:00
Jim Blandy
8ebafa8d4d * buffer.c (Foverlay_start, Foverlay_end, Foverlay_buffer,
Foverlay_properties): Functions moved here from subr.el.
1993-05-14 15:35:17 +00:00
Jim Blandy
4a4dc352d5 * xterm.c (dumpglyphs): Give the cursor higher priority than the
face specified by the glyph under it.

	* xterm.c (dumpglyphs): Move the underline up a row.  I dislike
	the way X addresses pixels.  Quickdraw is much nicer.

	* xterm.c (dumpglyphs): Pass the proper arguments to intern_face.

	* xterm.c (dumpglyphs): Don't increment left twice.
1993-05-14 14:44:26 +00:00
Jim Blandy
f6b98e0be9 * xfaces.c (compute_char_face): When merging the overlays,
traverse sortvec, not overlay_vec; the latter isn't the one we
	sorted.

	* xfaces.c (intern_face): If the face has a GC, but it's not the
	default or modeline face, abort.  Nothing but those two faces
	should have a GC *and* be passed to intern_face.
	(compute_char_face, compute_glyph_face): After copying
	the frame's default face into face, to use as a base case for
	calculation, set the `gc' member to zero; that way we don't have
	things lying around that look like display faces but aren't.

	* xfaces.c (intern_frame_face): When copying the new face into the
	frame's face array, remember that the number of bytes to copy is
	sizeof (*new_face), not sizeof (new_face).

	* xfaces.c (compute_char_face): Assume that W is displaying the
	current buffer.  Abort if it isn't.
1993-05-14 14:44:01 +00:00
Jim Blandy
04a759c81b The text property routines can now modify buffers other
than the current one.
	* insdel.c (modify_region): New argument BUFFER.  Select that
	buffer while we prepare for the modification, and switch back when
	we're done.
	* textprop.c (add_properties, remove_properties): Pass
	the buffer being modified as the first argument to modify_region.
	* editfns.c (Fsubst_char_in_region, Ftranslate_region): Pass the
	current_buffer as the first argument to modify_region.
	* casefiddle.c (casify_region): Same.
1993-05-14 14:43:30 +00:00
Jim Blandy
6c523803b3 * lisp.h (Lisp_Overlay): New tag.
(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.
1993-05-14 14:43:00 +00:00
Jim Blandy
93b9120871 * lread.c, data.c: If STDC_HEADERS is #defined, include <stdlib.h>
to get the extern declarations for atof.  That's where it is in
	POSIX.
1993-05-14 14:42:01 +00:00
Jim Blandy
20280af7ca * lisp.h (Lisp_Overlay): New tag.
(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.

	* lisp.h (FLOATP): Define this appropriately when LISP_FLOAT_TYPE
	is not defined.
1993-05-14 14:41:36 +00:00
Jim Blandy
620567645f * intervals.c (set_point): Check for point out of bounds before
checking for an empty interval tree.
1993-05-14 14:40:56 +00:00
Jim Blandy
517b2e01b3 * dispnew.c (direct_output_for_insert): Compute the face of the
character we're inserting properly.
1993-05-14 14:39:15 +00:00
Jim Blandy
7b502dc326 * cmds.c (Fforward_char): Check proposed new position, and then
set point, instead of setting point to a potentially invalid
	position.
1993-05-14 14:37:53 +00:00
Jim Blandy
52f8ec734e * lisp.h (Lisp_Overlay): New tag.
(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.
1993-05-14 14:36:01 +00:00
Jim Blandy
b6d40e465b * xfaces.c (intern_frame_face): Exchange order of arguments, to
make callers correct.

	* xfaces.c (compute_char_face): Notice the next property change
	location correctly.

	* xfaces.c (face_name_id_number): Return 0 (the default face) if
	the name is undefined.

	* xfaces.c (Fset_face_attribute_internal): Do nothing unless FRAME
	is an X frame.
1993-05-13 04:08:52 +00:00
Jim Blandy
1c2250c26e * xdisp.c (copy_rope, copy_part_of_rope): Add face argument.
(display_text_line): Initialize current_face to zero.   Apply it
	to characters as we write them to the display matrix.
	(display_string): Pass the new argument to copy_rope.

	* xdisp.c (display_text_line): Handle the locations of face
	changes properly.
1993-05-13 04:08:26 +00:00
Jim Blandy
6a0486dd89 * textprop.c (Fnext_single_property_change,
Fprevious_single_property_change): Pass arguments to textget in
	the right order.
1993-05-13 03:17:03 +00:00
Jim Blandy
8b4cc189e3 *** empty log message *** 1993-05-13 01:47:22 +00:00
Richard M. Stallman
cd9565badb (child_setup): Omit duplicates from new env array. 1993-05-13 00:21:47 +00:00
Richard M. Stallman
1a40d27fa2 (make_lispy_event): Don't set shift modifier for C-^. 1993-05-13 00:21:23 +00:00
Richard M. Stallman
992984b287 (current_minor_maps): Call Findirect_function, so symbols
can be used in place of actual maps.
1993-05-13 00:20:51 +00:00
Richard M. Stallman
68a37fa8c7 (display_text_line): Use break; to exit loop at eol.
Duplicate the short MAKE_GLYPH loop after the main loop.
If no display table, do obey selective_display_ellipses.
(copy_part_of_rope): Arg FROM is now Lisp_Object *.
1993-05-13 00:19:20 +00:00
Richard M. Stallman
db6f9d952e (Faccessible_keymaps): Use whatever size the vector has.
(Fwhere_is_internal): Likewise.
(describe_vector): Likewise.
1993-05-12 21:58:16 +00:00
Richard M. Stallman
819012f055 (Fx_popup_menu): Add a vector of prefix keys for the panes.
(keymap_panes): Allocate that vector.
(single_keymap_panes): Fill in that vector.
(xmenu_show): Return a list of events, not just one event.
1993-05-12 05:17:47 +00:00
Jim Meyering
9d330ad06a Initial revision 1993-05-11 23:23:34 +00:00
Jim Blandy
18004d2b7f * xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
macro here; that's x-specific.  Just don't pass the second
	argument.
	* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
	use F's default face.
1993-05-11 02:48:07 +00:00
Jim Blandy
9dbd4b48c5 * xdisp.c (display_text_line): Make face-handling code conditional
on HAVE_X_WINDOWS macro.  Perhaps this isn't the best approach,
	but it'll do for now.

	* xdisp.c (display_text_line): We can't use the FRAME_DEFAULT_FACE
	macro here; that's x-specific.  Just don't pass the second
	argument.
	* xfaces.c (compute_glyph_face): Remove the BASIC_FACE argument;
	use F's default face.
1993-05-11 02:47:46 +00:00
Jim Blandy
a253bab22d * fileio.c (ro_fsys) [SOLARIS_BROKEN_ACCESS]: Check for the
filesystem being ro, since Solaris 2.1 doesn't.
        (file-writable-p): Call ro_fsys.
	* s/sol2.h (SOLARIS_BROKEN_ACCESS): Define this.
1993-05-11 01:39:42 +00:00
Jim Blandy
5cbdb35688 * systime.h: Use the strategy from getdate.y to include the proper
combination of <time.h> and <sys/time.h>.
1993-05-11 00:07:51 +00:00
Jim Blandy
ee8f40ccfc * xfns.c (Fx_create_frame): Use an XLFD name for the default font,
instead of "9x15" or whatever it was.
1993-05-10 23:31:01 +00:00