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

10633 commits

Author SHA1 Message Date
Jim Blandy
6c65530f8a * sysdep.c (read_input_waiting): Set e.frame_or_window, not
e.frame; the latter doesn't exist anymore.

	* sysdep.c (start_of_data): If ORDINARY_LINK is #defined, we don't
	have the data_start symbol defined, so we'll just use the address
	of environ.

	* sysdep.c (init_baud_rate): Use input_fd, instead of fd; the
	latter is undefined.
1993-03-11 07:14:54 +00:00
Jim Blandy
a87b802fe9 * process.c (process_send_signal): In the TERMIOS code for sending
control characters to processes, don't try to return Qnil; just
	return.

	* process.c [! subprocesses] (wait_reading_process_input):
	Remember to re-enable polling for input.
1993-03-11 07:14:16 +00:00
Jim Blandy
340176df06 * floatfns.c (Flogb): Undo the change of Feb 22. 1993-03-11 07:13:24 +00:00
Jim Blandy
a90538cbb5 * emacs.c (__do_global_ctors, __do_global_ctors_aux,
__do_global_dtors, __CTOR_LIST__, __DTOR_LIST__, __main): Don't
	define these if ORDINARY_LINK is #defined; in that case, the
	standard linking procedure will find definitions for these.

	* emacs.c (main): SIGIOT isn't defined on all systems; don't set
	its signal handler unless it is.
1993-03-11 07:13:06 +00:00
Jim Blandy
d6717cdb6d * dired.c (NAMLEN): Never use d_nameln to get the length of the
directory entry's name; it is used inconsistently.  Always call
	strlen instead.
1993-03-11 07:11:34 +00:00
Jim Blandy
5447018c7b * s/usg5-4.h: Changes from Eric Raymond:
If we're doing ordinary linking, define LIB_STANDARD appropriately.
	Give LIBS_DEBUG a null definition; usg5-4 has no -lg.
	#define LIBS_STANDARD as "-lc"; usg5-4 has no -lPW.
	#define NSIG, if it's not already defined.
	#define HAVE_TERMIOS instead of HAVE_TCATTR.
	Provide our own definition of LIB_X11_LIB.
1993-03-11 07:11:06 +00:00
Jim Blandy
aee87fc432 * s/usg5-3.h (LIBX11_SYSTEM): Eric Raymond says the libraries here
were slightly wrong.
1993-03-11 07:10:34 +00:00
Jim Blandy
00b1a5fb22 * m/template.h, s/template.h: Mention that `etc/MACHINES' and
`configure' should be updated whenever support for a configuration
	is added or improved.
1993-03-11 07:10:06 +00:00
Jim Blandy
399c3df8eb * m/intel386.h (LIB_STANDARD): If USG5_4 is #defined, there's no
need to include `-lPW'; that has been merged with `-lc'.
1993-03-11 07:08:47 +00:00
Jim Blandy
0f7a8fee2b * keyboard.c (command_loop_1): Adjust to the fact that display
tables are now vectors of vectors, not vectors of strings.
1993-03-11 03:49:34 +00:00
Richard M. Stallman
2182d45996 Define HAVE_TCATTR based on HAVE_TERMIOS earlier.
(struct emacs_tty): Separate the struct decl
from the EMACS_..._TTY... macro definitions.
Use HAVE_TCATTR to decide whether to use `struct termios'.
1993-03-10 05:34:06 +00:00
Richard M. Stallman
4b6baf5f45 (FLOAT_CHECK_ERRNO): Define unless NO_FLOAT_CHECK_ERRNO.
Changes from Lucid:
(HAVE_MATHERR, FLOAT_CHECK_ERRNO, FLOAT_CATCH_SIGILL): New parm macros.
(FLOAT_CHECK_DOMAIN, HAVE_RINT): New parm macros.
(HAVE_INVERSE_HYPERBOLIC, HAVE_CBRT): New parm macros.
[!HAVE_RINT]: Define rint as macro.
(IN_FLOAT): Major rewrite; several alternate versions.
(IN_FLOAT2): New macro.
(arith_error, range_error, domain_error, domain_error2): New macros.
(Facos, Fasin, Fatan, Fcos, Fsin, Ftan, Fexp, Fexpt, Flog): Changed.
(Flog10, Fsqrt, Fabs, Ffloat, Flogb): Changed.
(Ffloor, Fceiling, Fround, Ftruncate): Changed.
(Fcube_root): Renamed from Fcbrt.
(matherr): New function.
(float_error): Only if FLOAT_CATCH_SIGILL.
1993-03-10 05:33:40 +00:00
Richard M. Stallman
0b8fc2d451 (Fdefine_key): Use proper meta-bit to clear.
(access_keymap): Handle ints beyond the ASCII range.
(store_in_keymap): Likewise.
(Faccessible_keymaps): Use meta_modifier.
Use vectors for the key sequences.
(Fwhere_is_internal): Use meta_modifier.
(append_key): Always return a vector.
1993-03-10 05:24:42 +00:00
Richard M. Stallman
6315e7617b (syms_of_data) [LISP_FLOAT_TYPE]: Define new error conditions:
Qarith_error, Qrange_error, Qdomain_error,
Qsingularity_error, Qoverflow_error, Qunderflow_error.
1993-03-10 05:14:04 +00:00
Richard M. Stallman
f5313ed94c (Fy_or_n_p): Use query-replace-map. 1993-03-10 05:13:24 +00:00
Richard M. Stallman
5cae0ec66c (set_point): Check invisibility of following character, not previous character.
(textget): Handle categories.
(get_local_map): New function.
(verify_interval_modification): Call textget correctly.
1993-03-10 05:12:42 +00:00
Jim Blandy
11a364d9f2 *** empty log message *** 1993-03-09 17:03:08 +00:00
Richard M. Stallman
a26a1f956a (Fframe_char_height, Fframe_char_width):
(Fframe_pixel_height, Fframe_pixel_width):
New functions, two versions of each.
[MULTI_FRAME] (syms_of_frame): Make them Lisp functions.
[!MULTI_FRAME] (syms_of_frame): Likewise.  Also Fselected_frame.
1993-03-08 08:08:23 +00:00
Richard M. Stallman
55caf99cb9 (Fx_pixel_width, Fx_pixel_height): Fns deleted.
(syms_of_xfns): Don't install them.
(x_user_set_name): Function deleted.
(x_char_height, x_char_width): New functions.
1993-03-08 08:07:52 +00:00
Richard M. Stallman
c581d7100c (copy_rope): Expect FROM to be a vector.
(copy_part_of_rope): New function.
(display_string): Expect display table elts to be vectors.
1993-03-08 06:37:04 +00:00
Richard M. Stallman
10e6549c5f (XTread_socket):
Don't reverse the chars that XLookupString returns.  Use all of them.
Save last 100 chars and keysyms in temp_buffer.
1993-03-08 05:38:53 +00:00
Richard M. Stallman
1a7c673b85 Declare Qcategory, Qlocal_map. Declare textget, get_local_map. 1993-03-07 23:45:23 +00:00
Richard M. Stallman
497ba7a108 Include intervals.h.
(read_key_sequence): Use get_local_map.
1993-03-07 23:43:52 +00:00
Roland McGrath
188d4d111d (syms_of_buffer): Make erase-buffer a disabled command. 1993-03-07 23:41:34 +00:00
Richard M. Stallman
6ba6e250c9 Include termhooks.h.
(push_key_description): Handle all modifiers.
Handle large character codes.
(Fkey_description): Move the meta bit, if arg is string.
(Fsingle_key_description): Don't alter integer value.
Make tem long enough.

(Flookup_key): Use meta_modifier as meta-bit if from vector.
(Fdefine_key): Likewise.
1993-03-07 23:32:54 +00:00
Richard M. Stallman
dc70cea781 (Fget_text_property): Use textget.
(Fnext_single_property_change): Likewise.
(Fprevious_single_property_change): Likewise.

(syms_of_textprop): Set up Qcategory, Qlocal_map.
1993-03-07 23:30:01 +00:00
Richard M. Stallman
d3cc13faac (read_key_sequence):
Use meta_modifier for meta keys when handling function_key_map.
1993-03-07 20:18:52 +00:00
Richard M. Stallman
23ad46587f (Qmodification_hooks): Renamed from Qmodification.
(syms_of_textprop): Changed accordingly.
1993-03-07 09:35:31 +00:00
Richard M. Stallman
294efdbeb8 (verify_interval_modification): Handle insertions
specially.  For non-insertions, check only the chars being changed.
`modification-hooks' property is now a list of functions.
(set_point): Ignore chars outside current restriction.
1993-03-07 09:34:39 +00:00
Richard M. Stallman
83ec8b67da (struct buffer): New field mark_active. 1993-03-07 09:33:43 +00:00
Richard M. Stallman
2f545eea31 (prepare_to_modify_buffer): Set Vdeactivate_mark. 1993-03-07 09:33:13 +00:00
Richard M. Stallman
9772455e0d (save_excursion_save): Save mark_active of buffer.
(save_excursion_restore): Restore mark_active of buffer.
Run activate-mark-hook if it's on, or deactivate-mark-hook if it turns off.
(region_limit): Error if mark inactive, if transient-mark-mode.
1993-03-07 09:32:22 +00:00
Richard M. Stallman
4d1f43c038 (check_mark): Error if mark is not active. 1993-03-07 09:31:37 +00:00
Richard M. Stallman
a3c44b1451 (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask): New variables.
(x_find_modifier_meanings): Set them.
(x_convert_modifiers): Check for them.
(XTread_socket): Handle BackSpace, etc, function keys.
1993-03-07 09:30:31 +00:00
Richard M. Stallman
3076b39de3 (alt_modifier, super_modifier, hyper_modifier):
(shift_modifier, ctrl_modifier, meta_modifier):
Renumber the bits.
1993-03-07 09:29:36 +00:00
Richard M. Stallman
86e5706b37 (follow_key): Downcase shift_modifier as well as ASCII.
(command_loop_1): Run pre-command-hook and post-command-hook.
Set this_command before running pre-command-hook.
(syms_of_keyboard): Set up vars for those hooks.

(syms_of_keyboard): Handle gaps in modifier_names.
(modifier_names): Reorder to match termhooks.h.

(parse_modifiers_uncached): Detect `s-', not `super-'.
(apply_modifiers_uncached): Make `s-', not `super-'.

(lispy_function_keys): Add codes starting at 0xff00
and running through 0xffff.

(read_char): Move metabit when fetching from string macro.

(command_loop_1): Clear Vdeactivate_mark before cmd.
Clear mark_active if command set Vdeactivate_mark.
Run deactivate-mark-hook at that time, or activate-mark-hook.
(syms_of_keyboard): Define variable deactivate-mark.

(syms_of_keyboard): New lisp var unread-command-char.
(Finput_pending_p): Test unread_command_char.
(Fdiscard_input, quit_throw_to_read_char, init_keyboard): Set it.
(read_char): Fetch from it.

(Fthis_command_keys, Fread_key_sequence):
Fix calls to make_event_array.

(make_lispy_event): Put meta and shift modifiers
into an integer.
(read_avail_input): Set the modifiers field in the events read.
(kbd_buffer_get_event): Pass thru integer event untruncated.
(read_char): Likewise.
(read_key_sequence, read_char): Only -1 means EOF.
(kbd_buffer_store_event): Don't ignore 0200 bit in quit char.
(follow_key): Use new meta bit flag.
1993-03-07 09:27:28 +00:00
Richard M. Stallman
7bd279cd8e (syms_of_lread): Set up Qascii_character.
(Fread_char, Fread_char_exclusive): Use that property
to convert symbols like tab, return, M-return,... to ASCII.

Include termhooks.h.
(read_escape): Handle \H, \A, \s.  Use ..._modifier.
1993-03-07 09:25:28 +00:00
Richard M. Stallman
c48f61ef04 (reset_buffer_local_variables): Reset mark_active.
(syms_of_buffer): New buffer-local var `mark-active'.
(init_buffer_once): Initialize mechanism for it.
1993-03-07 09:24:18 +00:00
Richard M. Stallman
a354518d21 (check_protected_fields): Variable deleted.
(syms_of_buffer): Delete vars buffer-field-list and check-protected-fields.
1993-03-06 02:59:13 +00:00
Richard M. Stallman
78d7ac46c7 (check_protected_fields): Delete decl. 1993-03-06 02:58:49 +00:00
Richard M. Stallman
f405a5850c (read_escape): Handle M-, C- and S- for new convention.
(read1): Move the meta bit to the right place for a string.
1993-03-05 23:57:00 +00:00
Richard M. Stallman
dea4d2e671 (current_column, Fmove_to_column, compute_motion):
Expect display table elts to be vectors.
1993-03-05 23:56:43 +00:00
Richard M. Stallman
80ec1ba2eb (XTread_socket): Set bufp->modifiers for all kinds of keys. 1993-03-05 23:56:13 +00:00
Richard M. Stallman
ba8810f92a (Fend_kbd_macro): Fix call to make_event_array. 1993-03-05 23:55:44 +00:00
Richard M. Stallman
88dbfee590 (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros. 1993-03-05 23:55:20 +00:00
Richard M. Stallman
736471d10e (Fmake_rope, Frope_elt): Fns deleted. 1993-03-05 23:52:49 +00:00
Richard M. Stallman
82c515115d (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.
(DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE.
All callers changed.
1993-03-05 23:52:24 +00:00
Richard M. Stallman
e2f4b44c39 (ELF): Handle this parameter.
[! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions.
(_BSD_TTY_FLAVOR): Don't define if already defined.
(C_COMPILER, LINKER, MAKE_COMMAND): New definitions.
1993-03-04 19:50:30 +00:00
Jim Blandy
20f0f7a66f * Makefile.in (xmakefile): Add missing quote. 1993-03-04 15:16:11 +00:00
Richard M. Stallman
e40c4104bb (unexec): Move data2 section header up so all section
headers will be in ascending order.  This will prevent the unexeced
emacs that being processed by other applications (such as strip)
to fail.

Handle rounding of section boundaries.
(round_up): New function.
1993-03-03 09:03:06 +00:00