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

10633 commits

Author SHA1 Message Date
Jim Blandy
d7b4e137ca * textprop.c (set_properties): Add undo records to remove entirely
new properties.  Only record old property values for those
	properties whose values have changed.

	* textprop.c (set_properties): Don't try to make undo records if
	OBJECT is a string.
1993-07-02 22:50:40 +00:00
Richard M. Stallman
de6fd4b97c (wait_reading_process_input): Do include the keyboard
in the select, if read_kbd was a cons cell.
1993-07-02 05:43:43 +00:00
Richard M. Stallman
53c8f9fa14 (describe_map_tree): Insert key_heading here.
New arg TITLE.
(describe_buffer_bindings): Corresponding changes.

(shadow_lookup): New function.
(describe_map_2): Call it.  SHADOW is now a list of maps.
(describe_vector): Likewise.
(describe_map): SHADOW is now a list of maps.
(describe_map_tree): Likewise.
(describe_buffer_bindings): Build suitable list to pass as SHADOW.
(Faccessible_keymaps): New arg PREFIX.  Callers changed.
(describe_map_tree): New arg PREFIX.
(Fdescribe_bindings): New arg PREFIX.
Pass to describe_buffer_bindings along with buffer.
(describe_buffer_bindings): Extract PREFIX and pass along.
1993-07-02 05:21:05 +00:00
Jim Blandy
6cc35d868b * xterm.c (XTread_socket): When handing non-synthetic
ConfigureNotify events, don't refer to the parent window
	descriptor.
1993-07-02 04:00:38 +00:00
Jim Blandy
b3e1e05cfe * xterm.c (frame_highlight, frame_unhighlight): Don't test
Vx_no_window_manager.  BLOCK_INPUT around the border manipulation
	calls.
1993-07-01 04:04:32 +00:00
Jim Blandy
66f55a9d0c * xterm.c (XTread_socket): Initialize event_found to zero, and
pass a zeroed timeout to select, not a null pointer; the latter
	means "wait forever".
1993-06-30 21:35:22 +00:00
Jim Blandy
82d04750c7 * xdisp.c (redisplay): If we're not already showing the region,
then don't disable the single-line optimizations just because the
	mark isn't where we last displayed it.
1993-06-30 21:30:25 +00:00
Richard M. Stallman
46b3623d72 (check_memory_limits): Use unsigned long to hold memory size values. 1993-06-30 20:18:30 +00:00
Richard M. Stallman
88a64fef30 (PRIO_PROCESS): Definition deleted. 1993-06-30 17:51:16 +00:00
Jim Blandy
764cb3f9d2 * keyboard.c (kbd_buffer_get_event): Correctly generate
switch-frame events when reading mouse motion events.
1993-06-30 04:56:29 +00:00
Jim Blandy
c34efc6cd8 * xterm.c: Add CPP tangle from process.c to get definitions for
FD_SET, etcetera.
	(XTread_socket): Use those macros when testing for dropped connection.
1993-06-29 23:07:22 +00:00
Jim Blandy
ddf768c3cf * xfns.c (Fx_create_frame): Check for internalBorder resource, as
well as internalBorderWidth.
1993-06-29 23:04:11 +00:00
Jim Blandy
26c1639eb6 * keyboard.c (read_char): Don't do idle autosaves if we're not
interactive.
1993-06-29 22:46:26 +00:00
Richard M. Stallman
5d7aa25b52 (mark_object): Add aborts in Lisp_Symbol case. 1993-06-29 21:08:31 +00:00
Richard M. Stallman
7324d660df (wait_reading_process_input): Use SIGIO only if defined. 1993-06-29 16:53:32 +00:00
Richard M. Stallman
99a225a911 (describe_map_2): Cleanups.
Check there's no previous definition in same keymap.
1993-06-28 19:20:28 +00:00
Jim Blandy
31ea78fd30 * xterm.c (XTread_socket): Remove #if 0''s around code which tests
for dropped connection (i.e. sigio but no events).
1993-06-24 01:34:33 +00:00
Jim Blandy
5c1538928e * commands.h (Vglobal_mouse_map): Removed; unused.
* xfns.c (Vglobal_mouse_map): Same.
1993-06-22 08:17:56 +00:00
Jim Blandy
7e6992e06e * keyboard.c (menu_bar_items, read_key_sequence): Use
current_global_map, not global_map; the latter is only meant to be
	used for initial_define_key.
	* commands.h: Doc fix.
1993-06-22 08:17:36 +00:00
Jim Blandy
6ce387e698 * keyboard.c (menu_bar_items, read_key_sequence): Use
current_global_map, not global_map; the latter is only meant to be
	used for initial_define_key.
	* commands.h: Doc fix.

	* commands.h (Vglobal_mouse_map): Removed; unused.
	* xfns.c (Vglobal_mouse_map): Same.
1993-06-22 08:17:26 +00:00
Jim Blandy
718cde7d8e * buffer.c (list_buffers_1): Make desired_point a lisp object; set
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.
1993-06-22 07:39:26 +00:00
Jim Blandy
28f7279833 Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.
1993-06-22 07:26:44 +00:00
Jim Blandy
7b00de84fd Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.

	* xfaces.c (face_vector, nfaces, nfaces_allocated): Make these
	static.
1993-06-22 07:25:42 +00:00
Jim Blandy
a081bd3724 Separate parameter faces (those created and modified by the user)
from the computed faces (the combinations created by
	compute_char_face), so that we don't waste global face id's.
	* xterm.h (struct x_display): Replace the fields faces and n_faces
	with fields param_faces, n_param_faces, computed_faces,
	n_computed_faces, and size_computed_faces.
	(FRAME_FACES, FRAME_N_FACES): Replaced by...
	(FRAME_COMPUTED_FACES, FRAME_N_COMPUTED_FACES, FRAME_PARAM_FACES,
	FRAME_N_PARAM_FACES): New macros.
	* xfaces.c: Doc fixes.
	(init_frame_faces): Call new_computed_face to create entries for
	the default and mode line faces.  Use the FRAME...PARAM_FACES
	macros.
	(free_frame_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Don't use the copy flag; all
	parameter faces have real X resources, and all computed faces just
	have copies.  Free both the parameter and computed face arrays.
	(new_computed_face): New function.
	(intern_computed_face): Renamed from intern_frame_face; callers
	changed.  Call new_computed_face.
	(ensure_face_ready, compute_char_face, compute_glyph_face): Use the
	FRAME...PARAM_FACES macros.
	(recompute_basic_faces): Use the FRAME...PARAM_FACES and
	FRAME...COMPUTED_FACES macros.  Produce the computed faces by
	starting with the base faces and merging in the parameter faces.
	(Fset_face_attribute_internal): Use the FRAME...PARAM_FACES
	macros.  Just call recompute_basic_faces if the default or mode
	line faces have changed.
	* xfns.c (Fx_list_fonts): Use the FRAME...PARAM_FACES macros.
	* xterm.c (dumpglyphs): Use the FRAME...COMPUTED_FACES macros.
	* dispextern.h (struct face): Remove the copy member.  This is no
	longer necessary; all computed faces are copies, and no parameter
	faces are.

	* xfns.c (Fx_open_connection): Remember to block input while
	calling x_load_resources.
	* xrdb.c: Undo change of June 19th; it was a BLOCK_INPUT problem,
	not a server-specific bug.
1993-06-22 07:25:11 +00:00
Jim Blandy
85f26be98d * xdisp.c (redisplay_window): Remember to compute end relative to
the start of the visible region, too.
1993-06-22 06:59:07 +00:00
Jim Blandy
fdce0b3948 * xrdb.c (get_user_db): Remember to free the screen-local resource
string after we've merged its data into db.
1993-06-22 03:44:28 +00:00
Jim Blandy
fbcd35bd72 * keyboard.c (make_lispy_event): Added detection of double-click
and triple-click events.
	(parse_modifiers_uncached, apply_modifiers_uncached): Same.
	(read_key_sequence): Coerce double-clicks to clicks, and triple-clicks
	to double-clicks or clicks, by analogy with drag events.
	(double_click_time): Added variable.
	* termhooks.h: Added multi-click event modifier bits.
1993-06-22 02:06:54 +00:00
Richard M. Stallman
05d5b93e40 (Fremove_text_properties, Fadd_text_properties):
Really do next_interval when skipping the first interval.
1993-06-21 19:37:49 +00:00
Jim Blandy
7d385b0569 * alloc.c (Fgarbage_collect): If the minibuffer is active, don't
display the "...done" message; allow the minibuffer to show again.
1993-06-21 00:25:57 +00:00
Jim Blandy
b38f9ff319 * config.h.in (HAVE_LONG_FILE_NAMES): Add an #undef, for autoconf
to chew on.  Re-arrange macros to reflect the ordering of the
	corresponding macros in configure.in, to facilitate this kind of
	checking.
1993-06-20 20:18:32 +00:00
Richard M. Stallman
7c92db56e0 (verify_interval_modification): Don't just test
Qread_only prop; use INTERVAL_WRITABLE_P.
1993-06-20 08:48:58 +00:00
Jim Blandy
9f2ccd7bc1 * puresize.h (PURESIZE): Up this to 20500 for MULTI_FRAME Emaces,
and 190000 for non-MULTI_FRAME Emaces.
1993-06-19 22:58:35 +00:00
Jim Blandy
254a1b6640 * xfaces.c (recompute_basic_faces): This shouldn't be declared static. 1993-06-19 21:28:56 +00:00
Jim Blandy
19c7afdf57 * sysdep.c (rename): Make arguments const. autoconf #defines
const away on systems which don't have it; any system with
	prototypes will declare the arguments const (the ones to which I
	have access do); and systems without prototypes won't notice.
1993-06-19 21:07:02 +00:00
Jim Blandy
a1b4b084b1 * minibuf.c (Fread_minibuffer): Add missing semicolon after
CHECK_STRING macro.
1993-06-19 21:06:18 +00:00
Jim Blandy
64a0721980 * xterm.c (XTread_socket): Never treat a modifier key as a
non_ascii_keystroke.
1993-06-19 21:01:38 +00:00
Jim Blandy
d0068e2530 * emacs.c (Fkill_emacs): Pass third argument to shut_down_emacs.
* lisp.h (shut_down_emacs): Doc fix.
1993-06-19 20:26:11 +00:00
Jim Blandy
fc25d15df0 * frame.c (Fmake_frame_visible): Make this interactively callable;
frames can accept input while iconified, so it makes sense to put
	this on a key.
1993-06-19 01:47:40 +00:00
Jim Blandy
415445e2ba * xfaces.c: Add forward declaration for recompute_basic_faces. 1993-06-19 01:08:14 +00:00
Jim Blandy
76c881b015 * fileio.c (Fset_visited_file_modtime): We're only passing two
arguments to the file name handler; use call2, not call3.
1993-06-19 01:04:50 +00:00
Jim Blandy
5a570e3721 Changes for Irix 4.0, tested this time:
* s/irix4-0.h: Get rid of our fake definitions for setpgrp and
	getpgrp.
	* callproc.c (Fcall_process): Go ahead and use the USG calling
	convention for setpgrp.
	* ymakefile (pre-crt0.o): Add rule for this.  Perhaps it will help
	separate-source-directory compilation.
	* emacs.c (shut_down_emacs): Some USG systems #define
	EMACS_HAVE_TTY_PGRP; call getpgrp as appropriate for such systems.
	* sysdep.c (sys_suspend): Call getpgrp as appropriate for USG and
	non-USG.
	* process.c [IRIX] (create_process): Don't put child in process
	group zero before opening the tty; Irix is like USG in this
	regard.
1993-06-18 23:33:20 +00:00
Jim Blandy
b7c0f208a3 Remove #definition of HAVE_CLOSEDIR; autoconf figures this out. 1993-06-18 18:58:46 +00:00
Jim Blandy
0505a74033 * xfns.c: Always #include "bitmaps/gray.xbm"; the bitmaps seem to
be missing on some systems, and there's no point in having
	configure check; it should work fine to always use our copy.
1993-06-18 16:33:12 +00:00
Jim Blandy
40166bf181 Typo. 1993-06-18 15:48:31 +00:00
Jim Blandy
1319549a9a * m/iris4d.h (LIB_STANDARD): Do *not* include -lbsd. We are
now calling the BSD[sg]etpgrp functions directly, so this library
	is not needed; it just provides the BSD[sg]etpgrp functions under
	the [sg]etpgrp names.
	* callproc.c [IRIX] (child_setup): Don't call setpgrp this time.
	It's already been called up in Fcall_process, and create_process.
1993-06-17 23:25:37 +00:00
Jim Blandy
582080c149 * xfaces.c (compute_base_face): Initialize the face's stipple.
Although we don't use this feature now, face_eql notices it.

	* xfaces.c (compute_base_face): Set cached_index to an invalid
	index, to avoid an unnecessary comparison.
1993-06-17 22:03:40 +00:00
Jim Blandy
b5aaed99d0 * callproc.c (Fcall_process, child_setup): If IRIX is #defined,
call setpgrp with arguments, even if USG is #defined.
	* process.c [IRIX] (create_process): Don't call setpgrp before
	opening the pty.  Call it after doing the TIOCNOTTY ioctl.
1993-06-17 22:03:06 +00:00
Jim Blandy
cca310dacf * keyboard.c (read_key_sequence): Don't confuse mock input with
function-key-map expansion, and continue reading mock events when
	the current sequence is unbound.

	* keyboard.c (read_key_sequence): After providing a prefix symbol
	for a mouse event, modify the mouse event to indicate that that
	won't need to be done again, by putting the event's position
	symbol in a list.

	* keyboard.c (read_key_sequence): When returning mock input which
	has run off the end of the current maps, make sure the events get
	echoed, and make it into this-command-keys.

	* keyboard.c (read_key_sequence): When re-reading a previously
	read mouse click which requires a prefix symbol, make sure to set
	last_real_key_start appropriately, so we can properly drop
	button-down events.
1993-06-17 21:23:29 +00:00
Jim Blandy
1bc981d2b5 Don't let the 'B' interactive spec default to buffers viewed in
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.
	(Qvisible): Removed.
1993-06-17 05:06:36 +00:00
Jim Blandy
db732e5a3d Don't let the 'B' interactive spec default to buffers viewed in
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.
1993-06-17 05:05:53 +00:00