1. 03 Oct, 1992 4 commits
  2. 02 Oct, 1992 16 commits
    • Jim Blandy's avatar
      * keyboard.h (EVENT_HAS_PARAMETERS): Definition changed - all events · ac501cd9
      Jim Blandy authored
      	are not 5 elements long.
      	(EVENT_HEAD): Work correctly on all sorts of events, not just
      	events with parameters.
      	(EVENT_WINDOW, EVENT_BUFFER_POSN, EVENT_SCROLLBAR_BUTTON,
      	EVENT_WINDOW_POSN, EVENT_TIMESTAMP): These aren't useful
      	anymore; this information may appear twice in an event.  These
      	are replaced by the POSN_ accessors, which are meant to be
      	composed with the EVENT_START and EVENT_END accessors.
      	(EVENT_START, EVENT_END): Two new accessors, to get at the
      	starting and ending position of an event.
      	(POSN_WINDOW, POSN_BUFFER_POSN, PONS_SCROLLBAR_BUTTON,
      	POSN_WINDOW_POSN, POSN_TIMESTAMP): New macros, to futher
      	diasassemble the values returned by EVENT_START and EVENT_END.
      
      	* keyboard.h (Qevent_unmodified): Extern declaration replaced by...
      	(Qevent_symbol_elements): This.
      	(EVENT_HEAD_UNMODIFIED): Use the Qevent_symbol_elements
      	property, rather than the Qevent_unmodified property.
      ac501cd9
    • Jim Blandy's avatar
      * keyboard.c (echo_char, read_char): Apply EVENT_HEAD without first · 88cb0656
      Jim Blandy authored
      	testing for EVENT_HAS_PARAMETERS; EVENT_HEAD works properly on
      	all sorts of events now.
      	(read_key_sequence): Use the new accessors to decide in which window
      	an event occurred.
      
      	* keyboard.c (Qevent_unmodified): Replaced by...
      	(Qevent_symbol_elements): New property.
      	(syms_of_keyboard): initialize and staticpro the latter, not the
      	former.
      
      	* keyboard.c (readable_events): This doesn't need to scan and
      	discard mouse release events anymore; it just uses
      	EVENT_QUEUES_EMPTY.
      	(kbd_buffer_get_event): No need to skip past mouse release events.
      
      	* keyboard.c (button_down_location): New variable, which
      	stores the location at which each button was pressed, so we
      	can build a complete drag event when the button is released.
      	(make_lispy_event): When a button is pressed, record its
      	location in button_down_location, and turn it into a `down'
      	event.  When a button is released, compare its release
      	location with its press location, and decide whether to call
      	it a `click' or `drag' event.
      	Change mouse movement events to be arranged like click events.
      	(format_modifiers): Note that the click modifier has no
      	written representation.
      	(modifier_names, modifer_symbols): New variables, used to
      	create the Qevent_symbol_elements property.
      	(modify_event_symbol): Change the format of the modified
      	symbol cache; there are too many modifier bits now to use a
      	vector indexed by a modifier mask.  Use an assoc-list instead.
      	Document the format of the cache.
      	Put the Qevent_symbol_elements property on each new symbol,
      	instead of a Qevent_unmodified property.
      	(symbols_of_keyboard): Put Qevent_symbol_elements properties on
      	the symbols specified in head_table, not Qevent_unmodifed properties.
      	Initialize and staticpro modifier_symbols, and staticpro the
      	window elements of button_down_location.
      88cb0656
    • Richard M. Stallman's avatar
      (Info-follow-nearest-node): Handle line breaks after *note. · f9969361
      Richard M. Stallman authored
      Fix interactive spec.  Doc fix.  Put on mouse-3.
      f9969361
    • Joseph Arceneaux's avatar
      * buffer.c: #include intervals.h. · 21cf4cf8
      Joseph Arceneaux authored
      21cf4cf8
    • Joseph Arceneaux's avatar
      Fixed typos. · 249a6da9
      Joseph Arceneaux authored
      249a6da9
    • Joseph Arceneaux's avatar
      * lisp.h: Declare Qbuffer_or_string_p. · cde20f41
      Joseph Arceneaux authored
      cde20f41
    • Joseph Arceneaux's avatar
      Fixed typeos. · 03ad6beb
      Joseph Arceneaux authored
      03ad6beb
    • Jim Blandy's avatar
      * xmenu.c: #include "keyboard.h". · 031b0e31
      Jim Blandy authored
      	(Fx_popup_menu): Use the event accessors defined in keyboard.h,
      	instead of writing out cars and cdrs.
      031b0e31
    • Joseph Arceneaux's avatar
      db3563a8
    • Joseph Arceneaux's avatar
      * textprop.c: Conditionalize all functions on · 25013c26
      Joseph Arceneaux authored
      	"USE_TEXT_PROPERTIES".
      25013c26
    • Joseph Arceneaux's avatar
      * intervals.c: Conditionalize all functions on · d2f7a802
      Joseph Arceneaux authored
      	"USE_TEXT_PROPERTIES".
      d2f7a802
    • Joseph Arceneaux's avatar
      * alloc.c: #include "intervals.h". · d5e35230
      Joseph Arceneaux authored
      	(init_intervals, make_interval,
      	mark_interval, mark_interval_tree): New functions conditionally
      	defined.
      	(make_uninit_string): Call INITIALIZE_INTERVAL.
      	(INIT_INTERVALS, UNMARK_BALANCE_INTERVALS, MARK_INTERVAL_TREE):
      	New macros, conditionally defined.
      	(mark_object): Call MARK_INTERVAL_TREE in case Lisp_String.
      	(gc_sweep): If text properties are in use, place all unmarked
      	intervals on the free list.  Call UNMARK_BALANCE_INTERVALS on
      	`buffer->intervals' when unmarking `buffer'.
      	(compact_strings): Include INTERVAL_PTR_SIZE in calculation for
      	target of bcopy when relocating strings.
      	(init_alloc_once): Call INIT_INTERVALS.
      	(make_pure_string): Include INTERVAL_PTR_SIZE in calculation of
      	`size'.
      d5e35230
    • Joseph Arceneaux's avatar
      * fileio.c (Finsert_file_contents): Call offset_intervals() if · 8d4e077b
      Joseph Arceneaux authored
      	text was actually inserted.
      	#include "intervals.h".
      8d4e077b
    • Richard M. Stallman's avatar
      79f3b0b7
    • Jim Blandy's avatar
      *** empty log message *** · ca21f8b1
      Jim Blandy authored
      ca21f8b1
    • Richard M. Stallman's avatar
  3. 01 Oct, 1992 13 commits
  4. 30 Sep, 1992 7 commits