aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* * textprop.c (copy_text_properties): Pass a copy of POS toJim Blandy1993-07-061-10/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * textprop.c (copy_text_properties): New function, from DavidJim Blandy1993-07-061-0/+1
| | | | | | | | | 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.
* * intervals.c (find_interval): Doc fixes, computation ofJim Blandy1993-07-061-86/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * fns.c (Fsubstring, concat): Pass all six arguments toJim Blandy1993-07-061-3/+16
| | | | | | | | | | | | 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.
* * print.c: Get rid of extra space at the end of print syntax forJim Blandy1993-07-061-2/+1
| | | | | | | | 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.
* * m/pmax.h (C_SWITCH_X_MACHINE): Set this toJim Blandy1993-07-061-0/+21
| | | | | | | "-DNeedFunctionPrototypes=0", to avoid lossage in DEC X11 header files. * ymakefile (really-oldXMenu): Pass C_SWITCH_X_MACHINE to the oldXMenu make.
* * doc.c (Fsubstitute_command_keys): Pass all five arguments toJim Blandy1993-07-061-1/+1
| | | | describe_map_tree.
* Compare the values of text properties using EQ, not Fequal.Jim Blandy1993-07-062-4/+3
| | | | | * intervals.c (intervals_equal): Call EQ, not Fequal. * textprop.c (interval_has_all_properties, add_properties): Same.
* * xfaces.c [XOS_NEEDS_TIME_H]: #undef USG while #includingJim Blandy1993-07-051-9/+11
| | | | | <X11/Xos.h>, so that file doesn't try to define struct timeval and struct timezone.
* * textprop.c (validate_interval_range): Don't increment bothJim Blandy1993-07-051-2/+6
| | | | | *begin and *end if they point to the same thing. (validate_plist): Call QUIT while scanning LIST.
* * intervals.c (intervals_equal): Test the return value of FequalJim Blandy1993-07-051-1/+1
| | | | against Qnil, not 0.
* Fix initialization of Vdouble_click_time in syms_of_keyboard.Jim Blandy1993-07-051-1/+1
|
* * keyboard.c (Vdouble_click_time): Renamed from double_click_time,Jim Blandy1993-07-051-8/+11
| | | | | | | | | | 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.
* * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): NewJim Blandy1993-07-051-0/+4
| | | | accessors.
* Doc fix.Jim Blandy1993-07-041-1/+1
|
* * s/sunos4-1.h (LIBS_SYSTEM): Don't link against -lresolv; that'sJim Blandy1993-07-041-3/+6
| | | | only needed for some broken systems.
* (Vmark_even_if_inactive): New var, with Lisp variable.Richard M. Stallman1993-07-041-1/+13
| | | | (check_mark): Use it.
* (Fsignal): Clarify error message.Richard M. Stallman1993-07-041-1/+1
|
* (read_char): After Fgarbage_collect, call redisplay.Richard M. Stallman1993-07-041-117/+144
| | | | | | | | | | | | | | | (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.
* * frame.c (Fredirect_frame_focus): Allow redirection of focus ofJim Blandy1993-07-041-1/+4
| | | | dead frames.
* * s/sunos4-1.h (LIBS_SYSTEM): Make this be -lresolv, so we get theJim Blandy1993-07-031-0/+4
| | | | versions of gethostbyname and such that use the DNS.
* * s/hpux8.h (random, srandom): No need to define these to beJim Blandy1993-07-031-0/+3
| | | | | foo_random and foo_srandom; autoconf should autodetect when the real random functions are available.
* (Frename_file): After prompting for ok-if-already-exists, pass only nil orRoland McGrath1993-07-031-1/+4
| | | | t to copy-file, never an integer.
* (Faccessible_keymaps): Doc fix.Richard M. Stallman1993-07-031-1/+3
|
* * textprop.c (set_properties): Add undo records to remove entirelyJim Blandy1993-07-021-11/+46
| | | | | | | | 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.
* (wait_reading_process_input): Do include the keyboardRichard M. Stallman1993-07-021-9/+11
| | | | in the select, if read_kbd was a cons cell.
* (describe_map_tree): Insert key_heading here.Richard M. Stallman1993-07-021-75/+158
| | | | | | | | | | | | | | | | | 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.
* * xterm.c (XTread_socket): When handing non-syntheticJim Blandy1993-07-021-5/+8
| | | | | ConfigureNotify events, don't refer to the parent window descriptor.
* * xterm.c (frame_highlight, frame_unhighlight): Don't testJim Blandy1993-07-011-6/+16
| | | | | Vx_no_window_manager. BLOCK_INPUT around the border manipulation calls.
* * xterm.c (XTread_socket): Initialize event_found to zero, andJim Blandy1993-06-301-3/+4
| | | | | pass a zeroed timeout to select, not a null pointer; the latter means "wait forever".
* * xdisp.c (redisplay): If we're not already showing the region,Jim Blandy1993-06-301-2/+3
| | | | | then don't disable the single-line optimizations just because the mark isn't where we last displayed it.
* (check_memory_limits): Use unsigned long to hold memory size values.Richard M. Stallman1993-06-301-2/+2
|
* (PRIO_PROCESS): Definition deleted.Richard M. Stallman1993-06-302-3/+1
|
* * keyboard.c (kbd_buffer_get_event): Correctly generateJim Blandy1993-06-301-1/+1
| | | | switch-frame events when reading mouse motion events.
* * xterm.c: Add CPP tangle from process.c to get definitions forJim Blandy1993-06-291-3/+24
| | | | | FD_SET, etcetera. (XTread_socket): Use those macros when testing for dropped connection.
* * xfns.c (Fx_create_frame): Check for internalBorder resource, asJim Blandy1993-06-291-1/+13
| | | | well as internalBorderWidth.
* * keyboard.c (read_char): Don't do idle autosaves if we're notJim Blandy1993-06-291-1/+1
| | | | interactive.
* (mark_object): Add aborts in Lisp_Symbol case.Richard M. Stallman1993-06-291-0/+8
|
* (wait_reading_process_input): Use SIGIO only if defined.Richard M. Stallman1993-06-291-0/+2
|
* (describe_map_2): Cleanups.Richard M. Stallman1993-06-281-16/+17
| | | | Check there's no previous definition in same keymap.
* * xterm.c (XTread_socket): Remove #if 0''s around code which testsJim Blandy1993-06-241-6/+8
| | | | for dropped connection (i.e. sigio but no events).
* * commands.h (Vglobal_mouse_map): Removed; unused.Jim Blandy1993-06-221-3/+0
| | | | * xfns.c (Vglobal_mouse_map): Same.
* * keyboard.c (menu_bar_items, read_key_sequence): UseJim Blandy1993-06-221-2/+2
| | | | | | current_global_map, not global_map; the latter is only meant to be used for initial_define_key. * commands.h: Doc fix.
* * keyboard.c (menu_bar_items, read_key_sequence): UseJim Blandy1993-06-221-8/+4
| | | | | | | | | 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.
* * buffer.c (list_buffers_1): Make desired_point a lisp object; setJim Blandy1993-06-221-9/+12
| | | | | | | 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.
* Separate parameter faces (those created and modified by the user)Jim Blandy1993-06-223-29/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Separate parameter faces (those created and modified by the user)Jim Blandy1993-06-221-128/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Separate parameter faces (those created and modified by the user)Jim Blandy1993-06-221-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * xdisp.c (redisplay_window): Remember to compute end relative toJim Blandy1993-06-221-1/+1
| | | | the start of the visible region, too.
* * xrdb.c (get_user_db): Remember to free the screen-local resourceJim Blandy1993-06-221-1/+4
| | | | string after we've merged its data into db.