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

10633 commits

Author SHA1 Message Date
Jim Blandy
ae450a9555 * keyboard.c (menu_bar_one_keymap): If the key's binding is the
symbol `undefined', don't try to take that symbol's cdr before
passing it to menu_bar_item; pass the `undefined' binding itself,
so menu_bar_item can remove bindings for the same key from result.
1993-07-15 04:58:59 +00:00
Richard M. Stallman
2e894dab2b (Qdisabled_command_hook): New variable.
(Vdisabled_command_hook): Deleted.
(syms_of_keyboard): Corresponding changes.
(Fcommand_execute): Use Qdisabled_command_hook.
1993-07-15 03:09:56 +00:00
Richard M. Stallman
a73c5e2988 (Vhelp_menu_bar_map): New var.
(syms_of_keyboard): Set up Lisp var for it.
(menu_bar_items): Use Vhelp_menu_bar_map.
1993-07-14 16:49:30 +00:00
Richard M. Stallman
12ae29ebfb (mark_object) [DEBUG_MOLE]: Add abort at beginning. 1993-07-14 16:36:25 +00:00
Jim Blandy
bb5fa23256 Initial revision 1993-07-14 06:09:19 +00:00
Richard M. Stallman
f1ca901238 (verify_interval_modification): Use Qinsert_in_front_hooks and
Qinsert_behind_hooks instead of previous names.
1993-07-13 21:08:45 +00:00
Richard M. Stallman
c2d8811cc6 (Qinsert_in_front_hooks, Qinsert_behind_hooks): Declared.
This replaces part of previous change.
1993-07-13 21:07:02 +00:00
Richard M. Stallman
f256353cbc (prepare_to_modify_buffer): Call verify_overlay_modification. 1993-07-13 21:06:19 +00:00
Richard M. Stallman
173f2a642c (verify_overlay_modification): New function.
(call_overlay_mod_hooks): New function.
1993-07-13 21:05:26 +00:00
Richard M. Stallman
f7a9275a0e (Qinsert_in_front_hooks, Qinsert_behind_hooks): New vars.
(syms_of_textprop): Set them up.

(set_properties): Call modify_region.
(remove_properties): Call modify_region before record_property_change.
(add_properties): Likewise.
1993-07-13 21:04:07 +00:00
Jim Meyering
e1efaae9a2 *** empty log message *** 1993-07-13 16:37:01 +00:00
Richard M. Stallman
8537f1cb3a (Qinsert_before_hooks, Qinsert_after_hooks): Declared.
(Qmodification_hooks): Declared.
1993-07-13 02:20:40 +00:00
Richard M. Stallman
c36494197b (verify_interval_modification):
For insertion, run the insert-before-hooks and insert-after-hooks,
not the modification-hooks.
1993-07-13 02:19:50 +00:00
Richard M. Stallman
e58aa38535 (Qundefined): New variable.
(syms_of_keyboard): Set up Qundefined.
(menu_bar_items): Don't reverse the items.
Process the maps in reverse order.
(menu_bar_item): If definition is `undefined',
delete any menu bar item already made, and don't make one.
1993-07-12 23:32:43 +00:00
David J. MacKenzie
039e9c8b9b *** empty log message *** 1993-07-12 22:13:12 +00:00
Richard M. Stallman
97f3b3d6e9 (wait_reading_process_input): If wait_for_cell, do call
swallow_events and do_pending_window_change when appropriate.
1993-07-09 21:42:51 +00:00
Roland McGrath
646d9d18cc (region_limit): Declare Vmark_even_if_inactive. 1993-07-08 23:45:22 +00:00
Roland McGrath
2ad6c95919 (syms_of_callint): Fix DEFVAR_LISP for Vmark_even_if_inactive to use right
Lisp symbol name (without V prepended).
1993-07-08 23:44:01 +00:00
Roland McGrath
6497d2d838 (check_mark): Don't check mark-active unless in transient-mark-mode.
For inactive mark, signal mark-inactive instead of error with a message.
1993-07-08 21:43:11 +00:00
Roland McGrath
c9dd14e184 (region_limit): Don't error if Vmark_even_if_inactive is set. When the
mark is inactive and that is a no-no, signal mark-inactive instead of using
error with a message.
1993-07-08 21:36:04 +00:00
Roland McGrath
638b77e614 (syms_of_data): Staticpro Qmark_inactive. 1993-07-08 21:27:33 +00:00
Roland McGrath
3b8819d645 Define Qmark_inactive.
(syms_of_data): Initialize it.
1993-07-08 21:26:57 +00:00
Roland McGrath
83125cd707 Declare Qmark_inactive. 1993-07-08 21:26:29 +00:00
Richard M. Stallman
07f15dfd8b (describe_map_tree): When inserting TITLE, mention PREFIX.
Insert newline at end, if inserted anything else.
(describe_buffer_bindings): Corresponding changes.
For minor mode maps, build up a title string,
then let describe_map_tree insert it.
1993-07-07 18:40:35 +00:00
Jim Blandy
50aa2f9032 * editfns.c (Fformat): Since floats occupy two elements in the
argument list passed to doprnt, we must use separate indices for
	the array of arguments passed to Fformat, and the array of
	arguments to be passed to doprnt.
1993-07-07 10:22:05 +00:00
David J. MacKenzie
fb3ebe6ca6 *** empty log message *** 1993-07-06 23:07:30 +00:00
Jim Blandy
15e4954b14 * textprop.c (copy_text_properties): Pass a copy of POS to
validate_interval_range; that function increments its arguments,
	which isn't what we want.

	* intervals.c (find_interval): Consistently treat POSITION as an
	actual buffer position, i.e. origin 1.  The old code seemed
	undecided on this point.  Treat the end of the buffer as being
	part of the rightmost interval.
	(adjust_intervals_for_insertion): Consistently treat POSITION as
	origin 1.
	(interval_deletion_adjustment): The exception: FROM should be
	origin zero here.  Consistently treat it as such.  Simplify code
	which shrinks and possibly deletes intervals.
	(adjust_intervals_for_deletion): Treat start as origin 1; our
	caller does.
	(set_point): Use buffer positions throughout, not a mix of buffer
	posns and origin zero posns.
	(get_local_map): Remove special case for POSITION at end of buffer;
	find_interval handles that case correctly.
	(verify_interval_modification): Remove special case for START at
	end of buffer.
	* textprop.c (validate_interval_range): End-of-buffer/string
	positions no longer need special handling.

	* textprop.c (copy_text_properties): New function, from David
	Gillespie.
	* intervals.h: Declare copy_text_properties.
	* fns.c: #include "intervals.h".
	(Fsubstring): Copy text properties to result string.
	(concat): Copy text properties to result string.
	* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
1993-07-06 14:55:20 +00:00
Jim Blandy
15e92abada * textprop.c (copy_text_properties): New function, from David
Gillespie.
	* intervals.h: Declare copy_text_properties.
	* fns.c: #include "intervals.h".
	(Fsubstring): Copy text properties to result string.
	(concat): Copy text properties to result string.
	* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
1993-07-06 14:54:28 +00:00
Jim Blandy
24e3d3bf9e * intervals.c (find_interval): Doc fixes, computation of
tree->position rearranged for clarity.

	* intervals.c (find_interval): Consistently treat POSITION as an
	actual buffer position, i.e. origin 1.  The old code seemed
	undecided on this point.  Treat the end of the buffer as being
	part of the rightmost interval.
	(adjust_intervals_for_insertion): Consistently treat POSITION as
	origin 1.
	(interval_deletion_adjustment): The exception: FROM should be
	origin zero here.  Consistently treat it as such.  Simplify code
	which shrinks and possibly deletes intervals.
	(adjust_intervals_for_deletion): Treat start as origin 1; our
	caller does.
	(set_point): Use buffer positions throughout, not a mix of buffer
	posns and origin zero posns.
	(get_local_map): Remove special case for POSITION at end of buffer;
	find_interval handles that case correctly.
	(verify_interval_modification): Remove special case for START at
	end of buffer.
	* textprop.c (validate_interval_range): End-of-buffer/string
	positions no longer need special handling.

	* intervals.c (make_new_interval): #if 0 this out.  Nobody calls it.
1993-07-06 14:53:54 +00:00
Jim Blandy
ac811a55ab * fns.c (Fsubstring, concat): Pass all six arguments to
copy_text_properties.

	* textprop.c (copy_text_properties): New function, from David
	Gillespie.
	* intervals.h: Declare copy_text_properties.
	* fns.c: #include "intervals.h".
	(Fsubstring): Copy text properties to result string.
	(concat): Copy text properties to result string.
	* ymakefile (fns.o): Note that this depends on INTERVAL_SRC.
1993-07-06 14:43:32 +00:00
Jim Blandy
30503c0bab * print.c: Get rid of extra space at the end of print syntax for
strings with intervals.
	[USE_TEXT_PROPERTIES] (print): Don't print a space before the
	interval property lists.
	[USE_TEXT_PROPERTIES] (print_interval): Print a space before this
	internal's properties, not after.
1993-07-06 07:44:36 +00:00
Jim Blandy
9b4d86fc62 * m/pmax.h (C_SWITCH_X_MACHINE): Set this to
"-DNeedFunctionPrototypes=0", to avoid lossage in DEC X11 header
	files.
	* ymakefile (really-oldXMenu): Pass C_SWITCH_X_MACHINE to the
	oldXMenu make.
1993-07-06 06:57:49 +00:00
Jim Blandy
fc593b0589 * doc.c (Fsubstitute_command_keys): Pass all five arguments to
describe_map_tree.
1993-07-06 06:16:20 +00:00
Jim Blandy
734c51b2dd Compare the values of text properties using EQ, not Fequal.
* intervals.c (intervals_equal): Call EQ, not Fequal.
	* textprop.c (interval_has_all_properties, add_properties): Same.
1993-07-06 02:23:22 +00:00
Jim Blandy
657070acda * xfaces.c [XOS_NEEDS_TIME_H]: #undef USG while #including
<X11/Xos.h>, so that file doesn't try to define struct timeval and
	struct timezone.
1993-07-05 09:31:36 +00:00
Jim Blandy
b1e94638f6 * textprop.c (validate_interval_range): Don't increment both
*begin and *end if they point to the same thing.
	(validate_plist): Call QUIT while scanning LIST.
1993-07-05 08:13:50 +00:00
Jim Blandy
375aa801ba * intervals.c (intervals_equal): Test the return value of Fequal
against Qnil, not 0.
1993-07-05 07:57:34 +00:00
Jim Blandy
aab06933fa Fix initialization of Vdouble_click_time in syms_of_keyboard. 1993-07-05 07:45:43 +00:00
Jim Blandy
564dc952e9 * keyboard.c (Vdouble_click_time): Renamed from double_click_time,
and made a Lisp_Object instead of an int.
	(make_lispy_event): If Vdouble_click_time is t, impose no time
	limit on double-clicks.
	(syms_of_keyboard): DEFVAR_LISP (not DEFVAR_INT)
	Vdouble_click_time (not double_click_time), and adjust doc string
	to say that `nil' means no double clicks, and `t' means no time
	limit.
1993-07-05 07:18:24 +00:00
Jim Blandy
6765e5b098 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): New
accessors.
1993-07-05 04:26:30 +00:00
Jim Blandy
54a60e143a Doc fix. 1993-07-04 20:03:20 +00:00
Jim Blandy
8b7c3e3a5a * s/sunos4-1.h (LIBS_SYSTEM): Don't link against -lresolv; that's
only needed for some broken systems.
1993-07-04 20:01:21 +00:00
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