aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Declare Qcategory, Qlocal_map. Declare textget, get_local_map.Richard M. Stallman1993-03-071-1/+5
|
* Include intervals.h.Richard M. Stallman1993-03-071-1/+6
| | | | (read_key_sequence): Use get_local_map.
* (syms_of_buffer): Make erase-buffer a disabled command.Roland McGrath1993-03-071-0/+4
|
* Include termhooks.h.Richard M. Stallman1993-03-071-11/+78
| | | | | | | | | | | (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.
* (Fget_text_property): Use textget.Richard M. Stallman1993-03-071-12/+11
| | | | | | | (Fnext_single_property_change): Likewise. (Fprevious_single_property_change): Likewise. (syms_of_textprop): Set up Qcategory, Qlocal_map.
* (read_key_sequence):Richard M. Stallman1993-03-071-2/+2
| | | | Use meta_modifier for meta keys when handling function_key_map.
* (Qmodification_hooks): Renamed from Qmodification.Richard M. Stallman1993-03-071-4/+4
| | | | (syms_of_textprop): Changed accordingly.
* (verify_interval_modification): Handle insertionsRichard M. Stallman1993-03-071-39/+113
| | | | | | 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.
* (struct buffer): New field mark_active.Richard M. Stallman1993-03-071-1/+6
|
* (prepare_to_modify_buffer): Set Vdeactivate_mark.Richard M. Stallman1993-03-071-1/+3
|
* (save_excursion_save): Save mark_active of buffer.Richard M. Stallman1993-03-071-5/+17
| | | | | | (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.
* (check_mark): Error if mark is not active.Richard M. Stallman1993-03-071-4/+6
|
* (x_alt_mod_mask, x_super_mod_mask, x_hyper_mod_mask): New variables.Richard M. Stallman1993-03-071-6/+29
| | | | | | (x_find_modifier_meanings): Set them. (x_convert_modifiers): Check for them. (XTread_socket): Handle BackSpace, etc, function keys.
* (alt_modifier, super_modifier, hyper_modifier):Richard M. Stallman1993-03-071-9/+10
| | | | | (shift_modifier, ctrl_modifier, meta_modifier): Renumber the bits.
* (follow_key): Downcase shift_modifier as well as ASCII.Richard M. Stallman1993-03-071-41/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (syms_of_lread): Set up Qascii_character.Richard M. Stallman1993-03-071-5/+68
| | | | | | | | (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.
* (reset_buffer_local_variables): Reset mark_active.Richard M. Stallman1993-03-071-1/+14
| | | | | (syms_of_buffer): New buffer-local var `mark-active'. (init_buffer_once): Initialize mechanism for it.
* (check_protected_fields): Variable deleted.Richard M. Stallman1993-03-061-12/+0
| | | | (syms_of_buffer): Delete vars buffer-field-list and check-protected-fields.
* (check_protected_fields): Delete decl.Richard M. Stallman1993-03-061-9/+0
|
* (read_escape): Handle M-, C- and S- for new convention.Richard M. Stallman1993-03-051-5/+25
| | | | (read1): Move the meta bit to the right place for a string.
* (current_column, Fmove_to_column, compute_motion):Richard M. Stallman1993-03-051-10/+10
| | | | Expect display table elts to be vectors.
* (XTread_socket): Set bufp->modifiers for all kinds of keys.Richard M. Stallman1993-03-051-2/+2
|
* (Fend_kbd_macro): Fix call to make_event_array.Richard M. Stallman1993-03-051-2/+2
|
* (CHAR_META, CHAR_SHIFT, CHAR_CTL): New macros.Richard M. Stallman1993-03-051-1/+7
|
* (Fmake_rope, Frope_elt): Fns deleted.Richard M. Stallman1993-03-051-59/+14
|
* (DISP_INVIS_VECTOR): Renamed from DISP_INVIS_ROPE.Richard M. Stallman1993-03-051-2/+2
| | | | | (DISP_CHAR_VECTOR): Renamed from DISP_CHAR_ROPE. All callers changed.
* (ELF): Handle this parameter.Richard M. Stallman1993-03-041-1/+52
| | | | | | [! COFF] (UNEXEC, USG_SHARED_LIBRARIES): New definitions. (_BSD_TTY_FLAVOR): Don't define if already defined. (C_COMPILER, LINKER, MAKE_COMMAND): New definitions.
* * Makefile.in (xmakefile): Add missing quote.Jim Blandy1993-03-041-1/+1
|
* (unexec): Move data2 section header up so all sectionRichard M. Stallman1993-03-031-139/+221
| | | | | | | | | 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.
* (S_IFLNK): Add #undef.Richard M. Stallman1993-03-021-4/+50
| | | | | | | | | | | | (C_SWITCH_SYSTEM): Add conditional definition. (NO_ASM, USE_UTIME, NO_X_DESTROY_DATABASE): Defined. (LIB_STANDARD): Alternate definition if __GNUC__. (SIGTSTP): #undef deleted. (LIBS_SYSTEM): Define only if HAVE_X_WINDOWS. (USG_SHARED_LIBRARIES, CLASH_DETECTION, NO_FCHMOD): Define. (HAVE_TIMEVAL): Do not define. (NO_ASM): Only define once.
* entered into RCSRichard M. Stallman1993-03-021-0/+13
|
* (describe_syntax_1): Delete excess arg to describe_vector.Richard M. Stallman1993-03-021-2/+260
| | | | | | (check_syntax_table): Delete excess arg to wrong_type_argument. (Fforward_comment): New function.
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-029-208/+208
| | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed.
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-021-201/+216
| | | | | | | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed. * xterm.c (x_window_to_scrollbar, x_scrollbar_expose, x_scrollbar_handle_click, x_scrollbar_note_movement): Remember that these can be called during GC; we have to ignore mark bits. * lisp.h (GC_NILP, GC_EQ): New macros to help with that.
* * xdisp.c (redisplay): Protect calls to request_sigio andJim Blandy1993-03-021-20/+20
| | | | | | | | | unrequest_sigio in "#ifdef SIGIO" clauses; these are not defined Use the term `scroll bar', instead of `scrollbar'. * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed.
* * print.c (float_to_string): Define buf to be an unsigned char, toJim Blandy1993-03-021-1/+1
| | | | match the data field of strings.
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-021-5/+7
| | | | | | | | | | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed. * xterm.c (x_window_to_scrollbar, x_scrollbar_expose, x_scrollbar_handle_click, x_scrollbar_note_movement): Remember that these can be called during GC; we have to ignore mark bits. * lisp.h (GC_NILP, GC_EQ): New macros to help with that. * lisp.h (RETURN_UNGCPRO): Remove "do ... while (0)" wrapper around macro.
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-022-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed. Don't generate switch-frame events by checking Vlast_event_frame; use a separate variable for that bookkeeping. In order to generate them properly, we may need to fiddle with it. * keyboard.c (internal_last_event_frame): New variable. (command_loop_1): Check internal_last_event_frame, not Vlast_event_frame. (read_char, kbd_buffer_store_event): Set both Vlast_event_frame and internal_last_event_frame. (kbd_buffer_get_event): Check internal_last_event_frame to decide whether to generate a switch-frame event. Set Vlast_event_frame after each event. (init_keyboard): Initialize both Vlast_event_frame and internal_last_event_frame. * keyboard.h (internal_last_event_frame): Add extern declaration for this. * frame.c (Vlast_event_frame): Remove external declaration for this. (Fselect_frame): Set internal_last_event_frame to Qnil to force a switch-frame event, not Vlast_event_frame; the latter is supposed to convey information to the user.
* * keyboard.c (kbd_buffer_get_event): Protect assignment toJim Blandy1993-03-021-42/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Vlast_event_frame in a "#ifdef MULTI_FRAME" clause. Use the term `scroll bar', instead of `scrollbar'. * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed. Don't generate switch-frame events by checking Vlast_event_frame; use a separate variable for that bookkeeping. In order to generate them properly, we may need to fiddle with it. * keyboard.c (internal_last_event_frame): New variable. (command_loop_1): Check internal_last_event_frame, not Vlast_event_frame. (read_char, kbd_buffer_store_event): Set both Vlast_event_frame and internal_last_event_frame. (kbd_buffer_get_event): Check internal_last_event_frame to decide whether to generate a switch-frame event. Set Vlast_event_frame after each event. (init_keyboard): Initialize both Vlast_event_frame and internal_last_event_frame. * keyboard.h (internal_last_event_frame): Add extern declaration for this. * frame.c (Vlast_event_frame): Remove external declaration for this. (Fselect_frame): Set internal_last_event_frame to Qnil to force a switch-frame event, not Vlast_event_frame; the latter is supposed to convey information to the user. * keyboard.c (syms_of_keyboard): Doc fix for unread_command_events.
* * data.c (Fstring_to_number): Declare p to be an unsigned char, toJim Blandy1993-03-021-3/+2
| | | | | | | | match the data field of strings. * data.c (Fstring_to_number): Just skip tabs and spaces; don't use the <ctype.h> macros. The <ctype.h> stuff apparently varies from locale to locale more than we'd like. Don't include <ctype.h>.
* * cmds.c (Fnewline): Doc fix.Jim Blandy1993-03-021-7/+8
|
* * buffer.c (buffer-undo-list): Doc fix.Jim Blandy1993-03-021-2/+6
| | | | | | * buffer.c (syms_of_buffer): Add the extra argument to the commented-out DEFVAR_PER_BUFFER for `mode-line-format', so make-docfile will find the docstring properly.
* Don't include dispextern.h more than once.Richard M. Stallman1993-03-011-1/+3
| | | | (INTERVAL_VISIBLE_P): NILP test was backwards.
* (syms_of_cmds): Typo in last change.Richard M. Stallman1993-03-011-1/+1
|
* (record_property_change): Typo in last change.Richard M. Stallman1993-03-011-0/+49
| | | | | (Fprimitive_undo): Handle property-change undo entry. (record_property_change): New function.
* (print--string case):Richard M. Stallman1993-03-011-11/+48
| | | | | | | | | Any non-null interval means print intervals. Get rid of var obj1; just use obj. (print): Never declare OBJ arg as `register'. Special handling for strings with intervals. (print_intervals): New function.
* (read1--strings with properties case):Richard M. Stallman1993-03-011-3/+43
| | | | | | Detect end of list, and invalid syntax, using recursive read1 calls. (read1): Handle reading strings with properties.
* (Fadd_text_properties, Fremove_text_properties):Richard M. Stallman1993-03-011-41/+172
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add len>0 as condition for main loop. Abort if reach a null interval. (Fset_text_properties): Abort if reach a null interval. (Ftext_properties_at, Fget_text_property): Return nil if POS is end of OBJECT. (add_properties): Use NILP to test result of Fequal. No longer inline. (remove_properties): No longer inline. (set_properties): Total rewrite as function. (validate_interval_range): Don't alter *begin at end of buffer. But do search for a position just before the end. Return null for an empty string. (validate_interval_range): Allow 0 as position in string. Add 1 to specified string positions. (Fprevious_single_property_change): Subtract 1 if object is string. (Fnext_single_property_change): Likewise. (Fprevious_property_change, Fnext_property_change): Likewise. (remove_properties): Call modify_buffer. (add_properties): Likewise. (Fadd_text_properties): Pass new arg to add_properties. (Fremove_text_properties): Likewise. (add_properties, remove_properties): New arg OBJECT. Record undo info. (Fput_text_property): New function.
* (intervals_equal): Handle one arg null and other not.Richard M. Stallman1993-03-011-162/+141
| | | | | | | | | | | | | | | | | | (set_point): Considerable rewrite. Handle intervals both before and after the old and new point values. Redo handling of invisible intervals, and of motion hooks. (textget): New function. (graft_intervals_into_buffer): create_root_interval needs Lisp object arg. Set tree to new root interval. Don't test TREE_LENGTH if buffer has no intervals. Rearrange code to copy properties so that it really does merge the inserted ones into the inherited ones. (traverse_intervals): Pass `arg' on recursive calls. (split_interval_left): Use new_length as basis for length of new. (traverse_intervals): New arg ARG.
* (del_range): Update point before offset_intervals.Richard M. Stallman1993-03-011-3/+3
|