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

1741 commits

Author SHA1 Message Date
Richard M. Stallman
9f315aebf6 (Vmark_even_if_inactive): New var, with Lisp variable.
(check_mark): Use it.
1993-07-04 04:55:03 +00:00
Richard M. Stallman
d3e6f8be7b (Fsignal): Clarify error message. 1993-07-04 04:51:13 +00:00
Richard M. Stallman
7e85b93579 (read_char): After Fgarbage_collect, call redisplay.
(read_key_sequence): When inserting `menu-bar' prefix,
modify the position field to prevent doing so twice.
Do all these forms of event expansion after replayed events also.
Set last_real_key_start before each key.
Use last_real_key_start in criterion for being the first event.

(syms_of_keyboard): Doc fix.
(Vhelp_char): Renamed from help_char.
(Vprefix_help_command): New Lisp variable.
(read_key_sequence): Use that, for help char after prefix key.

(kbd_buffer_get_event): Clear f before calling mouse_position_hook.
1993-07-04 02:21:02 +00:00
Jim Blandy
1314409546 * frame.c (Fredirect_frame_focus): Allow redirection of focus of
dead frames.
1993-07-04 01:53:24 +00:00
Jim Blandy
939acc46c7 * s/sunos4-1.h (LIBS_SYSTEM): Make this be -lresolv, so we get the
versions of gethostbyname and such that use the DNS.
1993-07-03 21:11:51 +00:00
Jim Blandy
164aeafee8 * s/hpux8.h (random, srandom): No need to define these to be
foo_random and foo_srandom; autoconf should autodetect when the
	real random functions are available.
1993-07-03 07:19:24 +00:00
Roland McGrath
d093c3ac08 (Frename_file): After prompting for ok-if-already-exists, pass only nil or
t to copy-file, never an integer.
1993-07-03 06:58:05 +00:00
Richard M. Stallman
f66ef18523 (Faccessible_keymaps): Doc fix. 1993-07-03 03:58:10 +00:00
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