Commit graph

10633 commits

Author SHA1 Message Date
Gerd Moellmann c1636aa6ab (MINSIZE): Removed.
(window_min_size): New.
(set_window_height): Use window_min_size.
(change_window_height): Ditto.
1999-08-13 20:51:51 +00:00
Kenichi Handa 048151c1c1 (CHAR_MODIFIER_MASK): New macro. 1999-08-13 12:55:11 +00:00
Kenichi Handa 164d590d5c (read_escape): For Control modifier, pay attention to
multibyte character.
(read1): Likewise.  Singal error or a multibyte character which
has a modifer bit.  Check validity of Shift modifer.
1999-08-13 12:54:36 +00:00
Kenichi Handa 6662e69b7f (non_ascii_char_to_string): Handle modifier bits as
the same as Lisp reader.
1999-08-13 12:54:08 +00:00
Gerd Moellmann 708ca3c8f9 (vmotion): Don't add in mini-buffer prompt width
if prompts are inserted into mini-buffer.
1999-08-12 20:49:57 +00:00
Karl Heuer a319f7c188 (Fopen_network_stream): Use getaddrinfo. 1999-08-12 16:35:22 +00:00
Karl Heuer 5c644c1dd8 Add HAVE_GETADDRINFO. 1999-08-12 15:59:36 +00:00
Gerd Moellmann 337042a9b7 (get_overlay_arrow_glyph_row): Set the charpos of
glyphs to -1.
1999-08-11 15:36:17 +00:00
Gerd Moellmann 7085174642 (face_before_or_after_it_pos): If position after
or before iterator's current position in the buffer is out
of bounds, return the iterator's original face id.
1999-08-11 11:50:20 +00:00
Gerd Moellmann a38634ff1f (mirror_make_current): If desired row isn't enabled,
just swap glyphs pointers between current and desired row.
(build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
desired matrix method string to current matrix.
1999-08-11 10:47:38 +00:00
Geoff Voelker 7f5d1df85e (x_bitmap_icon): New function.
(x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
1999-08-10 17:33:38 +00:00
Geoff Voelker eb7576cefd (x_set_icon_type): Support setting frame icons. 1999-08-10 17:32:59 +00:00
Karl Heuer ae53401aeb (BCOPY_SHORT): Fix typo `unsigined'. 1999-08-10 17:30:22 +00:00
Karl Heuer 4dbcac312d [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. 1999-08-10 17:28:10 +00:00
Eli Zaretskii e30aee93e2 (IT_set_face): Abort if the default face is not realized
and cached.
(IT_write_glyphs): Reset the screen face to the default face
before writing glyphs.
1999-08-10 10:43:12 +00:00
Eli Zaretskii 1697ca3831 (realize_default_face) [MSDOS]: Don't take default
colors from the frame here.
(realize_tty_face) [MSDOS]: Do it here.  Update the face
attributes with the actual name of the color taken from the
frame.
1999-08-10 10:38:37 +00:00
Eli Zaretskii 6821243b5f (msdos_stdcolor_name): Remove const from return value. 1999-08-10 10:29:20 +00:00
Eli Zaretskii 87f1940e4a (Fframe_parameters): Swap foreground and background
colors returned in frame parameters if the frame has reverse in
its parameter alist.
(Fmake_terminal_frame): Make a unique copy of face_alist for
each frame.
1999-08-10 10:13:05 +00:00
Richard M. Stallman 1076254d83 (Feval_buffer): New arg DO_ALLOW_PRINT. 1999-08-07 16:16:32 +00:00
Richard M. Stallman daa1c1093c (Fprevious_overlay_change): Just return the answer obtained from overlays_at. 1999-08-07 16:10:47 +00:00
Gerd Moellmann 5dd6aea877 (LIBTIFF): Use -ltiff instead of -ltiff34 1999-08-07 16:01:17 +00:00
Richard M. Stallman e4c082be5e (xpm_load) [!XpmAllocCloseColors]:
Use XpmCloseness and attrs.closeness instead.
1999-08-07 11:28:27 +00:00
Gerd Moellmann 286bcbc971 (set_iterator_to_next): After delivering a character
from a display vector, restore face and charset to what they were
before the display vector was processed.
1999-08-06 21:08:08 +00:00
Geoff Voelker b19cc00c30 (stat): Check for directory ending in separator when
doing readdir fast path.
1999-08-06 20:40:36 +00:00
Geoff Voelker 4424b2557f (directory_files_internal, Fdirectory_files_and_attributes,
Ffile_attributes_lessp): New functions.
(Fdirectory_files): Use directory_files_internal.
(syms_of_dired): Initialize Fdirectory_files_and_attributes,
Ffile_attributes_lessp.
1999-08-06 20:40:10 +00:00
Gerd Moellmann 9b4a7047ab (x_display_and_set_cursor): If cursor_in_echo_area,
show hollow box cursor for windows other than echo_area_window,
show normal cursor for echo_area_window.
1999-08-06 15:05:34 +00:00
Gerd Moellmann 862b479030 (set_window_cursor_after_update): Correct cursor
position if cursor_in_echo_area:
1999-08-06 15:05:27 +00:00
Gerd Moellmann 66ac4b0e5f (x_draw_phys_cursor_glyph): Redraw overlaps.
(x_fix_overlapping_area): New.
(x_redisplay_interface): Add x_fix_overlapping_area.
(x_draw_glyphs): Add parameter overlaps_p.
(struct glyph_string): Add member for_overlaps_p.
(x_get_glyph_string_clip_rect): If glyph string draws foreground
of overlapping rows, clip to window bottom.
(x_fill_glyph_string): Add parameter overlaps_p.
(x_fill_composite_glyph_string): Ditto.
(BUILD_GLYPH_STRINGS): Ditto.
(BUILD_CHAR_GLYPH_STRINGS): Ditto.
(x_draw_glyph_string): Don't draw anything but the foreground
if glyph string draws row overlaps.
(x_append_glyph): Set glyph flag overlaps_vertically_p.
(x_produce_image_glyph): Compute iterator's physical
ascent and descent.
(x_produce_stretch_glyph): Ditto.
(x_produce_glyphs): Ditto.
1999-08-06 13:59:59 +00:00
Gerd Moellmann 312246d12f (compute_line_metrics): If first line's physical ascent
is larger than its logical ascent, use the physical ascent, and
make the row taller.  Set row's overlapping_p flag.
(init_iterator): Reset physical line height info
after producing special glyphs.
(display_toolbar_line): Set physical line height info.
(compute_line_metrics): Ditto.
(display_line): Ditto.
(display_string): Ditto.
(reseat_at_next_visible_line_start): New parameter
on_newline_p.
(set_iterator_to_next):  After delivering last char
from display vector, reseat on next visible line start if
dpvec_char_len < 0.
(next_element_from_buffer): Set dpvec_char_len to -1 for
selective display.
1999-08-06 13:59:43 +00:00
Gerd Moellmann cfe8a05e43 (produce_glyphs): Set iterator's physical height
information.
1999-08-06 13:59:39 +00:00
Gerd Moellmann 408f5064df (redraw_overlapping_rows): Use flag overlapping_p.
(direct_output_for_insert): Ditto.
(direct_output_for_insert): Don't use this method if
row is overlapped by others.
(update_text_area): Write full line if current line is overlapped.
(redraw_overlapped_rows): New.
(update_window): Call it.
(redraw_overlapping_rows): New.
(update_window): Call it.
(scrolling_window): Make sure overlapped_p flag in current rows is
unchanged.
(row_equal_p): Take rows overlapped_p flag into account.
(adjust_glyphs): Block input while adjusting matrices.
(direct_output_for_insert): Don't use this
optimization for rows that overlap others.
(update_window_line): Return non-zero if display has changed.
(update_text_area): Ditto.
(update_window): Record if display has been changed.
(blank_row): Compute glyph row's physical height.
(row_equal_p): Take physical row heights into account.
(direct_output_for_insert): Ditto.
(update_text_area): Ditto.
1999-08-06 13:59:32 +00:00
Gerd Moellmann 2febf6e033 (struct glyph_row): Add overlapping_p.
(MATRIX_ROW_OVERLAPS_PRED_P): New.
(MATRIX_ROW_OVERLAPS_SUCC_P): New.
(struct glyph_row): Add flag overlapped_p.
(MATRIX_ROW_OVERLAPPING_P): New.
(struct redisplay_interface): Add
fix_overlapping_area.
(struct glyph): Add overlaps_vertically_p.
(struct glyph_row): Add phys_ascent and
phys_height.
(struct it): Add phys_ascent, phys_descent, max_phys_ascent,
max_phys_descent.
1999-08-06 13:59:29 +00:00
Richard M. Stallman 413e06a447 (switch_to_buffer_1): New subroutine, taken out from Fswitch_to_buffer.
(no_switch_buffer): New function.
(Fswitch_to_buffer): Call them.  Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-06 11:45:48 +00:00
Richard M. Stallman aee631c210 (display-buffer): Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-05 19:40:03 +00:00
Richard M. Stallman 2594e0fdb5 (switch_to_buffer_1): New subroutine, taken out from Fswitch_to_buffer.
(no_switch_buffer): New function.
(Fswitch_to_buffer): Call them.  Don't get confused
by "same-window" buffers in a dedicated frame.
1999-08-05 19:38:34 +00:00
Andreas Schwab 534b98409f (insert_from_string_1): Check gap size against number
of outgoing bytes, not incoming bytes.
1999-08-04 11:26:17 +00:00
Richard M. Stallman 9e062b6cc0 (read1): Added circular reading code to #N=.
(SUBSTITUTE): New macro.
(seen_list): New variable.
(substitute_object_in_subtree): New function.
(substitute_object_recurse): New function.
(substitute_in_interval): New function.
1999-08-03 17:27:46 +00:00
Eli Zaretskii 1c56132258 (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. 1999-08-02 12:46:06 +00:00
Eli Zaretskii 1a6d362313 (make_terminal_frame): Don't call init_frame_faces if
noninteractive, for termcap frames as well.
1999-08-02 12:41:09 +00:00
Eli Zaretskii 045942b2e9 (init_sys_modes): Call init_frame_faces for termcap
frames.
1999-08-02 12:37:31 +00:00
Richard M. Stallman ae1ef097ac Comment change. 1999-08-02 01:17:41 +00:00
Richard M. Stallman 95aa0336b5 (x_set_internal_border_width):
Call do_pending_window_change.  Don't block input, don't call XFlush.
(x_set_vertical_scroll_bars): Call do_pending_window_change.
(x_set_scroll_bar_width, x_set_font): Likewise.
1999-08-02 00:10:19 +00:00
Richard M. Stallman b5dd21a8e6 (Fset_frame_height): Call do_pending_window_change.
(Fset_frame_width, Fset_frame_size): Likewise.
1999-08-02 00:01:27 +00:00
Richard M. Stallman 79e03a85f9 (EmacsFrameSetCharSize): Don't call do_pending_window_change here. 1999-08-02 00:01:05 +00:00
Richard M. Stallman fddd5cebcc (x_set_window_size): When calling change_frame_size, specify 1 for DELAY. 1999-08-02 00:00:14 +00:00
Richard M. Stallman e23f814f70 (internal_equal): Fix overlay comparison. 1999-08-01 22:31:00 +00:00
Dave Love 4a8443fcdd Add HAVE_STDLIB_H. 1999-07-30 17:32:20 +00:00
Karl Heuer 331e2d7b60 (allocate_vectorlike): Add missing increment. 1999-07-30 15:49:10 +00:00
Karl Heuer 32f532b7e2 (Fdefalias): Call Ffset instead of duplicating code. 1999-07-30 15:46:56 +00:00
Karl Heuer fc14013c81 (create_process): Detect failure of `pipe'. 1999-07-30 14:39:27 +00:00
Karl Heuer b1314e1550 (get_keymap_1, get_keyelt): Check the type of OBJECT
before calling indirect_function.
1999-07-30 14:37:30 +00:00
Karl Heuer c5749019d9 (lock_if_free): Indentation fix. 1999-07-30 14:30:03 +00:00
Eli Zaretskii 1cc0312335 (load_color, lookup_derived_face): Declare
prototypes.
1999-07-30 08:41:55 +00:00
Eli Zaretskii 622dca8953 (init_display) [MSDOS]: Don't initialize frame faces,
it will be done later.
1999-07-30 08:38:10 +00:00
Eli Zaretskii 4aec4b2958 (make_terminal_frame) [MSDOS]: Don't call
init_frame_faces if non-interactive.
(Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
array with a call to msdos_stdcolor_name.  The font name is now
"ms-dos", consistent with realize_tty_face.
1999-07-30 08:33:50 +00:00
Eli Zaretskii e6a77d6cab (cmd_error_internal): Don't kill Emacs if this is an
MSDOS frame.
1999-07-30 08:28:18 +00:00
Eli Zaretskii 4314246fcf (Fset_window_configuration) [MSDOS]: Don't call
x_set_toolbar_lines.
1999-07-30 08:24:02 +00:00
Eli Zaretskii 44747bd00a (load_color): Remove static from definition and remove
prototype.
[MSDOS]: Add a DOS-specific version of load_color.
(lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
(lookup_derived_face): New function.
(realize_default_face): Support MSDOS frames.
[MSDOS]: If fore/background colors are unspecified, inherit them
from the frame.
(realize_face): Support MSDOS frames.
(realize_tty_face): Support MSDOS frames.
[MSDOS]: If the face color is not in Vface_tty_color_alist, call
load_color to try to find a suitable approximation.  If the face
is inverse-video, swap the foreground and background colors.
1999-07-30 08:19:22 +00:00
Eli Zaretskii e4441df01c (msdos_stdcolor_name, msdos_stdcolor_idx): New
functions.
1999-07-30 08:15:13 +00:00
Eli Zaretskii ab39b7a5d5 (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. 1999-07-30 08:11:41 +00:00
Eli Zaretskii 236027c963 Remove redundant declarations (most of them are now in
dispextern.h).
1999-07-30 08:08:43 +00:00
Eli Zaretskii c77f6f1b96 (IT_set_face): Rewritten for the new redisplay engine.
Use default frame colors if the face doesn't specify them; invert
the colors if highlight is ON.
(IT_write_glyphs): Rewritten for the new redisplay engine.
(IT_change_line_highlight): Add (unused) parameter Y, since that's
how the hook is called by term.c.
(IT_copy_glyphs): New function, copies an area of the display in
video RAM.
(IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
redisplay now calls it even if char_ins_del_ok is zero.
(IT_set_frame_parameters): Prototype changed.  Calls the new
load_color.  Puts the new fore/background colors into the default
face on current frame.
(IT_menu_display): Rewritten to handle the new struct glyph
instead of a char array.
(XMenuActivate): Call lookup_derived_face to create and use
special faces for the pop-up and drop-down menus.
1999-07-30 08:05:13 +00:00
Gerd Moellmann eb3935300f (x_set_toolkit_scroll_bar_thumb): Fix previous change. 1999-07-29 15:09:42 +00:00
Eli Zaretskii e2ee551e3b (getdefdir): Don't return failure indication when
_fixpath sets errno to ENOSYS.
1999-07-29 11:01:50 +00:00
Gerd Moellmann 7a5b8a934b (string_char_and_length): Fix previous change. 1999-07-28 19:46:05 +00:00
Gerd Moellmann 4fdb80f2a2 (string_char_and_length): New. Use it everywhere
instead of STRING_CHAR_AND_LENGTH in xdisp.c.
1999-07-28 18:05:44 +00:00
Kenichi Handa 87f0532f11 (concat): Fix previous change. 1999-07-28 02:37:17 +00:00
Kenichi Handa 2d6115c835 (count_combining): New function.
(struct textproc_rec): New structure.
(concat): Copy text properties correctly when byte combining
occurs.
1999-07-28 02:10:51 +00:00
Gerd Moellmann be8a72f424 (prepare_face_for_display): Use FillOpaqueStippled instead of
FillStippled.
1999-07-27 23:55:58 +00:00
Gerd Moellmann dcd08bfb64 (x_set_toolkit_scroll_bar_thumb): Don't call
XawScrollbarSetThumb if thumb parameters haven't changed because
that function apparently isn't optimized for this case.
1999-07-27 23:55:28 +00:00
Kenichi Handa d27f8ca73b (x_find_ccl_program): Add casting. 1999-07-27 01:32:50 +00:00
Kenichi Handa 17eedd00d9 (w32_find_ccl_program): Add casting. 1999-07-27 01:32:10 +00:00
Gerd Moellmann b9432a852b (x_setup_relief_color): Don't try smart color allocation
if display is mono.
(x_draw_row_bitmaps): If face has stipple, don't switch
to foreground color for clearing areas, and set the fill style.
1999-07-27 00:02:50 +00:00
Gerd Moellmann d7bf0342f2 (x_create_tip_frame): Don't set bitmapIcon resource. 1999-07-27 00:02:17 +00:00
Gerd Moellmann 2891cf7aaa (struct glyph_row): Flag internal_border_p removed. 1999-07-27 00:01:46 +00:00
Markus Rost 1fffe87013 (Fgethash): Fix order of variables (patch by gerd).
(Fputhash): Ditto.
(Fremhash): Ditto.
1999-07-26 22:20:21 +00:00
Gerd Moellmann 1da3fd719e (x_get_glyph_string_clip_rect): Take internal border
into account for full-width windows.  Don't add scroll bar width
to width of clip rect.
(x_draw_glyph_string_box): Add 1 to right x of full width lines.
(x_set_glyph_string_background_width): Add 1 to background width.
(x_draw_glyphs): Take internal border into account for full-width
lines.
1999-07-26 21:23:07 +00:00
Gerd Moellmann 203ae5607e (EmacsFrameSetCharSize): Don't add XtNborderWidth
value to frame width and height.
1999-07-26 21:22:23 +00:00
Karl Heuer 51a1d2d86b (x_set_mouse_color): Always unload the old color.
Don't allow nil as color value.
(x_set_cursor_color, x_set_background_color, x_set_foreground_color):
Always unload the old color.
1999-07-26 19:09:56 +00:00
Karl Heuer de4075cff3 (Fmove_to_column): Extend end of line only if FORCE is t. 1999-07-26 19:05:40 +00:00
Karl Heuer 2b8503eae9 (Fy_or_n_p): Doc fix. 1999-07-26 16:42:38 +00:00
Kenichi Handa 3545439c0b (w32_find_ccl_program): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:58:24 +00:00
Kenichi Handa a42f54e697 (x_find_ccl_program): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:57:35 +00:00
Kenichi Handa ef4ced281f (setup_coding_system): Get compiled CCL code by just
calling setup_coding_system.
1999-07-26 11:56:56 +00:00
Kenichi Handa 5232fa7b78 (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
stored in the following CCL code.  Adjusted for the change of
Vccl_program_table.
(resolve_symbol_ccl_program): Adjusted for the new style of
embedded symbols (SYMBOL . PROP) in CCL compiled code.   Return Qt
is resolving failed.
(ccl_get_compiled_code): New function.
(setup_ccl_program): Function type changed from `void' to `int'.
Resolve symbols in CCL_PROG.
(Fccl_program_p): New function.
(Fccl_execute): Get compiled CCL code by just calling
setup_ccl_program.
(Fccl_execute_on_string): Likewise.
(Fregister_ccl_program): Adjusted for the change of
Vccl_program_table.
1999-07-26 11:56:28 +00:00
Kenichi Handa e5e6d6fbaf (setup_ccl_program): The type is changed to `int'. 1999-07-26 11:55:53 +00:00
Gerd Moellmann 54c85a234b (get_next_display_element): Display DEL as `^?'. 1999-07-26 11:50:17 +00:00
Gerd Moellmann d6fc0a2255 (load_face_colors): Load background color if setting
stipple, too.
1999-07-26 11:49:43 +00:00
Karl Heuer 25b332443f (Fsplit_window): For default size, round up for left window. 1999-07-23 08:37:26 +00:00
Karl Heuer 5df0b2faaf (lock_if_free): Return -1 if check_lock_owner()
has returned -1 (lockfile exists but is not a symlink?)
1999-07-22 00:41:21 +00:00
Gerd Moellmann 2327e4a0bc (NARROWPROTO): New. 1999-07-21 21:43:52 +00:00
Gerd Moellmann e18f992255 (FONT_INFO_ID): Build an ID from a font_info pointer.
(FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
(toplevel): Add extern declarations for Vfontset_alias_alist
and Vglobal_fontset_alist.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 18082e2d15 (make_frame): Set n_current_toolbar_items to 0.
(syms_of_frame_1): Add Qtoolbar_lines.
(make_frame): Initialize toolbar members.
(make_frame): Initialize toolbar_window.
(frame-initialize): Set frame-creation-function to
tty-create-frame-with-faces.
(make_terminal_frame): Call init_frame_faces
unconditionally.
(make_frame): Call set_window_buffer instead of
Fset_window_buffer.
(make_frame): Initialze face cache with null.
(make_frame): Initialize face_cache.
(Fdelete_frame): Free it.
(Fdelete_frame): Use xfree instead of free.
(set_menu_bar_lines): Ditto.
(Fmake_terminal_frame): Ditto.
(make_frame): Initialize menu_bar_window to nil.
(make_frame): Remove CURSOR_X/Y.
(set_menu_bar_lines): Adjust matrices.
(make_frame): Initialize pools.
(make_frame): initialize DECODE_MODE_SPEC_BUFFER.
(Fmake_terminal_frame): Adjust glyphs.
(Fdelete_frame): Free glyphs.
(make_frame): Initialize matrix fields in frame.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3b83d6312c (FRAME_TOOLBAR_LINES): New.
(FRAME_TOP_MARGIN): New.
(struct frame): Add toolbar-related members.
(FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
(CHECK_FRAME): Give this macro a C-statement form!
(CHECK_LIVE_FRAME): Ditto.
(FRAME_FACE_CACHE): New.
(struct frame): Add member face_cache.
(FRAME_FLAGS_AREA_COLS): New.
(FRAME_FLAGS_AREA_WIDTH): New.
(struct frame): New member menu_bar_window.
(struct frame): Add trunc_area_pixel_width, and _cols.
(struct frame): Cursor-related stuff removed.
(FRAME_SCROLL_BAR_WIDTH): Removed.
(FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
(FRAME_CURSOR_X): Removed.
(FRAME_CURSOR_Y): Ditto.
(struct frame): Remove old glyphs, add new.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 8720a429d9 (Fvertical_motion): Rewritten. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 04e209dc56 (ctagsfiles): Split so that files starting
with an `x' are found before files starting with `w32'.
(ctagsfiles1): New.
(ctagsfiles2): New.
(TAGS): Use ctagsfiles[12] instead of ctagsfiles.
Add PNG library.
(obj): Add sound.o.
(LIBW): Use Xaw3d if present.
(LIBTIFF): Added.
(LIBJPEG): Added.
(LIBXPM): If not already defined, define to -lXpm.
(LIBX)[HAVE_X11]: Add LIBXPM.
(term.o): Add dependency on dispextern.h.
(alloc.o): Add dependency to dispextern.h.
(window.o): Depends on dispextern.h.
(alloc.o): Add dependency dispextern.h.
(window.o): Add dependency window.c -> dispextern.h
(term.o): term.c depends on dispextern.h
1999-07-21 21:43:52 +00:00
Gerd Moellmann d3c92eee39 (toplevel): Add function prototypes. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 2e9f55fde2 (prepare_to_modify_buffer): Set windows_or_buffers_changed,
(del_range_1) [PROMPT_IN_BUFFER]: If start position
is less than mini-buffer prompt width, use prompt width as start.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 41c28a3753 (gc_sweep): Call sweep_weak_hash_tables.
(survives_gc_p): New.
(mark_object): Mark objects referenced from glyphs, hash tables,
toolbar date, toolbar window, face caches, menu bar window.
Mark windows specially.
(Fgarbage_collect): Use message3_nolog.
(mark_face_cache): New.
(NSTATICS): Increased to 1024.
(mark_glyph_matrix): New.
1999-07-21 21:43:52 +00:00
Gerd Moellmann ecfd95532d Add function prototypes. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7ee32cda42 (read_char): Use message3_nolog to show help-echo.
(make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
(kbd_store_ptr): Declare it as a volatile pointer
instead of a pointer to a volatile input_event.
(kbd_buffer_store_event): Remove volatile modifier from
declaration of local variable `sp'.
(Fdiscard_input): Don't cast when assigning kbd_store_ptr
to kbd_fetch_ptr.
(make_lispy_event): Handle mouse on top lines.
(make_lispy_movement): Ditto.
(read_char): Rename local variable echo_area_message
because it shadows the global one.
(cmd_error_internal): Set echo_areA_message.
(command_loop_1): Test echo_areA_message.
(read_char): Ditto.
(record_menu_key): Set echo_area_message to nil.
(Fexecute_extended_command): Test echo_area_message.
(Fexecute_extended_command): Handle echo_area_message.
(toolbar_items): Call access_keymap with third
parameter 1, so that we don't get inherited toolbar item
definitions.
 Ditto.
(kbd_buffer_get_event): Set flag to prevent recording
TOOLBAR_EVENT events in last_nonmenu_event.
(timer_check): Inhibit busy cursor around calls to
timer-event-handler.  This busy cursor tends to be anoying if
fontifying stealthily.
(command_loop_1): Display busy cursor.
(Vshow_help_function): New.
(read_char): Use it.
(make_lispy_event): Add string and string position
info to mouse-click events.
(read_key_sequence): Handle `local-map' property of mode line
strings.
(Qend_scroll): New.
(scroll_bar_parts): Add it.
(scroll_bar_parts): Add Qtop and Qbottom.
(syms_of_keyboard): Add Qbottom.
(make_lispy_event): Handle scroll_bar_click
differently when using toolkit scroll bars.
(cmd_error_internal): Bug fix.
(syms_of_keyboard): Staticpro toolbar_item_properties
and toolbar_items_vectors.
(Qhelp_echo): New symbol.
(read_char): Handle `toolbar' and `help_echo' events.
(kbd_buffer_get_event): Handle HELP_ECHO input event.
(make_lispy_event): Handle TOOLBAR_EVENT.
(toolbar_items): New.
(process_toolbar_item): New.
(PROP): New.
(init_toolbar_items): New.
(append_toolbar_item): New.
(read_char_x_menu_prompt): Handle `toolbar' event.
(read_key_sequence): Ditto.
(syms_of_keyboard): Intern `:help'.
(toolbar_items): New.
(process_toolbar_item): New.
(parse_toolbar_item): New.
(init_toolbar_items): New.
(append_toolbar_item): New.
(detect_input_pending_run_timers): Likewise.
(detect_input_pending_run_timers): Call gobble_input
after redisplaying.
(clear_waiting_for_input): Return void.
(record_asynch_buffer_change): Return void.
(stop_polling): Return void.
(start_polling): Ditto.
(cmd_error_internal): Write to stderr if selected
frame is Vterminal_frame under X.  This is the case when a font
cannot be loaded when Emacs starts.  Replace test for
FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
(quit_throw_to_read_char): Ditto.
(make_lispy_event): mouse clicks; don't do frame
glyph position calculations.
(make_lispy_movement): Use buffer_posn_from_coords and window
relative coordinates.
(make_lispy_event): For mouse clicks, use
x_y_to_hpos_vpos.
(make_lispy_event): Use BUFFER_POSN_FROM_COORDS
with window relative pixel coordinates.  Use GLYPH_TO_PIXEL_-
COORDS mit new arguments.
(make_lispy_event): WINDOW_FROM_COORDINATES with
pixel coords.
(make_lispy_movement): Same.
(interrupt_signal): Cursor_to with 4 params.
(command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
for any character.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 0552666bc1 (init_buffer_once): Init top_line_format.
(default-top-line-format): New.
(top-line-format): New buffer-local variable.
(init_buffer_once): Set buffer_local_flags for
scroll_*_aggressively.
(syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
(init_buffer_once): Set defaults for these variables.
(syms_of_buffer): Add default-scroll-*-aggressively.
(indicate-empty-lines): New.
(default-indicate-zv-lines): Likewise.
(init_buffer_once): Add default for `indicate-zv-lines'.
(init_buffer_once): New variable `default-indicate-zv-lines'.
(syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
(init_buffer_once): Add left_margin_width and
right_margin_width to buffer_local_flags.
(syms_of_buffer): Add buffer-local variables
left-margin-width and right-margin-width.  Add defaults
default-left-margin-width and default-right-margin-width.
(record_buffer): Return void.
(record_asynch_buffer_change): Return void.
(Fget_buffer_create): Initialize minibuffer_prompt_length.
(Fmake_indirect_buffer): Ditto.
(Fkill_buffer): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 6e0adcfa04 (POSN_STRING): New. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 2d8c80b12e Add top_line_format.
(scroll_up_aggressively): New.
(scroll_down_aggressively):  New.
(struct buffer): indicate_empty_lines renamed from
indicate_zv_lines.
(struct buffer): New member indicate_zv_lines.
(struct buffer): New members left_margin_width
and right_margin_width.
(struct buffer): Add member minibuffer_prompt_length
if PROMPT_IN_BUFFER.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5e6d549314 (Fmessage): Use message3.
(Fcurrent_message): If echo_area_message is set,
return a substring of that string.
(Fformat): Add text properties to the result string
from properties of the format string and properties of string
arguments.
(make_buffer_string_both) [PROMPT_IN_BUFFER]: Prevent start > end.
(make_buffer_string) [PROMPT_IN_BUFFER]: If start
position is less than mini-buffer prompt width, use the prompt
width as start.
(make_buffer_string) [PROMPT_IN_BUFFER): Add prompt
length to start position.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5010d3b802 (P_): Moved to top of file.
(struct Lisp_Hash_Table): New.
(GC_HASH_TABLE_P): New.
(PVEC_HASH_TABLE): New.
(struct Lisp_Hash_Table): New.
(XHASH_TABLE): New.
(XSET_HASH_TABLE): New.
(HASH_TABLE_P): New.
(CHECK_HASH_TABLE): New.
(DEFAULT_HASH_SIZE): New.
(DEFAULT_REHASH_THRESHOLD): New.
(DEFAULT_REHASH_SIZE): New.
(HAVE_FACES): Removed.
(MAKE_GLYPH): Remove test for frame type.
(GLYPH_CHAR): Ditto.
(GLYPH_FACE): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3dc9587ac1 (CHAR_LEN): Moved here from dispextern.h. 1999-07-21 21:43:52 +00:00
Gerd Moellmann f69f3ee03b (Fbeginning_of_line) [PROMPT_IN_BUFFER]: Set point to
end of prompt if applied to a mini-buffer and BEG reached.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 279cf52c7f (read_minibuf): Reset echo message strings to nil.
(Fminibuffer_completion_help): Ditto.
(Fminibuffer_complete_word): Fix computation of
i_byte when prompts are inserted into minibuffers.
(read_minibuf): Use minibuf_prompt instead of prompt.
(read_minibuf): Add front-sticky text property for prompt.
(read_minibuf_unwind): Return Lisp_Object.
(read_minibuf): Put access to minibuffer_prompt_length
in #if PROMPT_IN_BUFFER.
(minibuffer-prompt-in-buffer): Bound if
PROMPT_IN_BUFFER.
(read_minibuf): Save the value of
minibuffer_prompt_length in minibuf_save_list.
(read_minibuf_unwind): Restore minibuffer_prompt_length.
(Fminibuffer_prompt_width): Return value from
current_buffer if PROMPT_IN_BUFFER.
(read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
mini-buffer and make it read-only.
(Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
minibuffer_prompt_length instead of BEGV.
(Fminibuffer_complete_word): Ditto.
(Fminibuffer_complete_word): Ditto.
(read_minibuf): Conditionally insert prompt into
buffer instead of handling prompts specially.  Change other
functions accordingly.  All such code is in #if PROMPT_IN_BUFFER.
(read_minibuf): Set MUST_BE_UPDATED_P instead of
building frame matrix.
(read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
(read_minibuf): Build frame matrix.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 43c70fcf91 (HAVE_PNG): New.
(HAVE_SOUND): New.
(HAVE_MACHINE_SOUNDCARD_H): New.
(HAVE_SYS_SOUNDCARD_H): New.
(USE_TOOLKIT_SCROLL_BARS): New.
(HAVE_XAW3D): New.
(HAVE_FACES): Removed.
(HAVE_TIFF): Added.
(HAVE_JPEG): Added.
(HAVE_XPM): New.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5f5c8ee54a Complete rewrite. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7eb0330213 (print): Add hash table handling.
(printchar): Set echo_area_message to nil.
(strout): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 90d920b607 (main): Call init_fns.
(main): Call syms_of_sound and init_sound.
(main): Call syms_of_xfaces before init_window_once.
(main): Call init_xfns.
(shut_down_emacs): check glyph memory.
1999-07-21 21:43:52 +00:00
Gerd Moellmann efa2a55cbd (wait_reading_process_input): Show and hide busy
cursor.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 48f8dfa38d (Fsignal): Reset redisplaying_p to zero.
(Fsignal): Hide busy cursor.
(Feval): Check interrupt_input_block == 0.
(Fsignal): Call to quit_error_check removed.
1999-07-21 21:43:52 +00:00
Gerd Moellmann d70392acd4 (BASE_PURESIZE): Increased. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 9c856db9d2 (Fdo_auto_save): Handle the case that echo_area_message
is set.
(Finsert_file_contents): Prevent redisplay optimizations.
(Fread_file_name): Call it.
(report_file_error): Return void.
1999-07-21 21:43:52 +00:00
Gerd Moellmann d80c6c1199 (toplevel): Add hash tables.
(init_fns): New.
(Fmessage): Use message3.
(Fcurrent_message): If echo_area_message is set,
return a substring of that string.
(Fformat): Add text properties to the result string
from properties of the format string and properties of string
arguments.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 8970011174 Rewritten. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 7840ced199 New file. 1999-07-21 21:43:52 +00:00
Gerd Moellmann a168702af0 Rewritten.
(append_glyph): New.
(update_end): Turn cursor on only if selected window's
cursor_off_p flag is not set.
(TS_cursor_visible): Renamed from TS_visual_mode.
(TS_cursor_normal): Renamed from TS_end_visual_mode.
(TS_cursor_invisible):  New.
(term_init): Initialize TS_cursor_invisible.
(tty_hide_cursor): New.
(tty_show_cursor): New.
(update_end): Show tty cursor.
(update_begin): Hide tty cursor to prevent cursor flickering
during redisplays triggered by timers (stealth fontification).
(estimate_mode_line_height): New.
(estimate_mode_line_height_hook): New.
(OUTPUT_IF): Make replacement text have statement form.
(OUTPUT1_IF): Ditto.
(TS_italic_mode, TS_end_italic_mode): Removed.
(TS_bold_mode): Removed.
(TS_underscore_mode, TS_end_underscore_mode): Removed.
(TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
(TS_enter_reverse_mode): New.
(TS_enter_underline_mode, TS_exit_underline_mode): New.
(TN_magic_cookie_glitch_ul): New.
(TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
(TS_exit_attribute_mode): New.
(TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
(TS_set_foreground, TS_set_background): New.
(reset_terminal_modes): Switch colors back to default.
(write_glyphs): Turn face on before writing text, turn it off
afterwards.
(insert_glyphs): Ditto.
(term_init): Initialize new terminal capability variables.
(turn_on_face): Turn a face on.
(turn_off_face): Turn a face off.
(global): Rewrite for new glyphs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 6820433ec3 (scroll_bar_end_scroll): New.
(scroll_bar_to_top): New.
(scroll_bar_to_bottom): New.
(event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
 Some hooks with prototypes.
Add function prototypes.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 9dd7eec678 (text_property_list): New.
(add_text_properties_from_list): New.
(extend_property_ranges): New.
(validate_interval_range): Make it externally
visible.
1999-07-21 21:43:52 +00:00
Gerd Moellmann f403d3c379 (EmacsFrameSetCharSize): Take widget's border width
into account.
(set_frame_size): Use FRAME_SCROLL_BAR_COLS
to determine vertical_scroll_bar_extra.
(EmacsFrameSetCharSize): Ditto.
(EmacsFrameDestroy): Remove call to free_frame_faces;
it's also called from x_destroy_window.  Since this function is
called from X, freeing stuff allocated with xmalloc is dangerous
here, anyway.
(widget_store_internal_border): Return void.
(create_frame_gcs): Don't allocate relief GCs.
(setup_frame_gcs): Don't change relief GCs.
(setup_frame_gcs): Initialize relief GC's to line
width 1; remove references to relief_gc_line_width.
(create_frame_gcs): Create GC's for relief drawing.
(setup_frame_gcs): Initialize them.
(EmacsFrameDestroy): Free them.
(set_frame_size): Double trunc_area_extra.
(EmacsFrameSetCharSize): Ditto.
(set_frame_size): Set it.
(EmacsFrameSetCharSize): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 9ee67259db (x_set_font): Don't call face-set-after-frame-default
if faces haven't been initialized.
(Fx_create_frame): Call face-set-after-frame-default after
faces have been initialized, and widget has been created.
(scroll_bar): Add x_widget_low and x_widget_high.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 5500c42256 (Fcoordinates_in_window_p): Rewritten.
(scroll_command): If not acting on current_buffer,
make redisplay consider all windows.
(coordinates_in_window): Rewritten.
(Fdelete_other_windows): Use FRAME_TOP_MARGIN
instead of FRAME_MENU_BAR_LINES.
(check_frame_size): Ditto.
(struct save_window_data): Add frame_toolbar_lines.
(Fcurrent_window_configuration): Save toolbar lines.
(window_from_coordinates): Rewritten.
(Vscroll_preserve_screen_position): Replacement for
scroll_preserve_screen_position.
(window_scroll_pixel_based): New.
(Fsplit_window): Rewritten.
(window_internal_width): Rewritten.
(set_window_buffer): Extracted from Fset_window_buffer,
with an additional argument specifying whether or not hooks may
be called.
(Fset_window_buffer): Call it.
(Fset_window_vscroll): New.
(Fwindow_vscroll): New.
(Fpos_visible_in_window_p): Rewrite.
(change_window_height): Return void.
(make_dummy_parent): Return void.
(init_window_once): Return void.
(syms_of_window): Ditto.
(keys_of_window): Ditto.
(delete_window): Correct return with and without value.
(unshow_buffer): Return void.
(delete_window): Ditto.
(set_window_height): Return void.
(set_window_width): Ditto.
(get_phys_cursor_glyph): New.
(change_window_height): Ditto.
(Fset_window_margins): Ditto.
(window_scroll_line_based): Formerly window_scroll.
(window_scroll): Call both.
(window_topmost_p, window_rightmost_p): Removed because not used.
(Fset_window_margins): New.
(Fwindow_margins): New.
(make_window): Rewritten.
(replace_window): Rewritten.
(Fset_window_configuration): Rewritten.
(get_leaf_windows): New.
(Fdelete_window): Free window matrices.
(Fdelete_window): Adjust glyphs.
(change_window_height): Ditto.
1999-07-21 21:43:52 +00:00
Gerd Moellmann f43dd8341a (struct window): Add vscroll.
(struct window): New member cursor_off_p.
(struct window): Remove phys_cursor_glyph.
(struct window): New members phys_cursor_ascent and
phys_cursor_descent.
(struct window): New flag pseudo_window_p.
(struct window): Add left_margin_width, right_margin_width.
New member last_cursor.
(WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
(WINDOW_TO_FRAME_VPOS): Convert window vpos
to frame vpos.
(WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
(FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
(FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
(WINDOW_TOPMOST_P): Added.
(struct window): Rewrittenf for new glyphs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 82641697d8 Implemented from scratch. 1999-07-21 21:43:52 +00:00
Gerd Moellmann 333b20bbc2 (x_real_positions): Don't subtract window borders
from positions returned.
(top-level): Added image support, busy cursor, tooltips, file
selection box.
(x_report_frame_params): Don't report `outer-window-id'
if widget not present.
(x_set_font): Don't call face-set-after-frame-default
if faces haven't been initialized.
(Fx_create_frame): Call face-set-after-frame-default after
faces have been initialized, and widget has been created.
(x_set_scroll_bar_foreground): New.
(x_set_scroll_bar_background): New.
(x_default_scroll_bar_color_parameter): New.
(Fx_create_frame): Call it.
(Fx_create_frame): Initialize scroll bar pixel color
values in x_output structure.
(Qscroll_bar_foreground, Qscroll_bar_background): New.
(syms_of_xfns): Initialize these symbols.
(x_frame_parms): Add entries for scroll bar colors.
(Fx_create_frame): Try 12pt Courier font first.
(Fx_create_frame): Add toolbar height to frame height.
(x_frame_parms): Add `toolbar-lines'.
(x_set_toolbar_lines): New.
(x_set_internal_border_width): Correct call to
widget_store_internal_border_width.
(x_destroy_bitmap): Use xfree instead of free.  Return
void.
(init_x_parm_symbols): Return void.
(x_report_frame_params): Ditto.
(x_set_border_pixel): Ditto.
(syms_of_xfns): Ditto.
(x_destroy_all_bitmaps): Use xfree instead of free.
(Fx_close_connection): Use xfree instead of free.
Only free fonts from filled font table entries.
(display_x_get_resource): Make it externally visible.
(x_set_font): First store real font name in frame
parameters, then call recompute_basic_faces.
(Fx_face_fixed_p): Removed.
(Fx_list_fonts): Moved to xfaces.c.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 3427a3db9f Ditto.
(xmenu_show) [LESSTIF_VERSION]: Add workaround for remaining
button grab under LessTif
(HAVE_BOXES): Define if USE_X_TOOLKIT.
(HAVE_BOXES): Define if using Lucid menus.
(single_submenu): Set button_type of menu to
BUTTON_TYPE_NONE.
(single_submenu): Likewise for panes and menu items.
(set_frame_menubar): Set button_type of menu bar to none.
(xmenu_show): Likewise.
(single_submenu): Set widget values selected slot.
(xmenu_show): Likewise.
(push_menu_item): Add parameters `type' and
`selected'. Store it in menu_items.
(MENU_ITEMS_ITEM_TYPE): New.
(MENU_ITEMS_ITEM_SELECTED): New.
(MENU_ITEMS_ITEM_LENGTH): Increase by two.
(popup_get_selection): Use xmalloc/xfree instead of
malloc/free.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 4da4f20133 (x_load_resources): Set double-click time defaults
for Motif list boxes from double-click-time.
(x_load_resources): Add default resoures for file
selection dialog.
(x_load_resources): Add grey background colors as
defaults for menus, scroll bars, and dialogs.
(x_load_resources): Add font defaults for menus and
dialogs.
1999-07-21 21:43:52 +00:00
Gerd Moellmann 06a2c2193f Display-related functions implemented from scratch. Add toolkit
scroll bars, mouse-sensitive mode line, help-echo, busy-cursor.
(x_calc_absolute_position): Subtract menu bar height
for YNegative, if using X toolkit.
(XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
in scroll bars.
(SET_SAVED_MENU_EVENT): Give it statement form.
(XTflash): Don't flash the toolbar window.
(XTread_socket): Workaround for LessTif popup menus
in case of ButtonPress events.
(XTread_socket): Set inhibit_busy_cursor.
1999-07-21 21:43:52 +00:00
Gerd Moellmann a8cc2c53ca (struct x_output): Add scroll bar pixel colors, busy_cursor,
busy_window.  Remove cursor, computed_faces etc.  Add
white_relief_pixel, black_relief_pixel, white_allocated_p,
black_allocated_p, relief_background.
(struct x_display_info): Add gray pixmap, scroll_bar_pixel,
Xatom_Scrollbar, DONE, PAGE, image cache, resx, rey, smallest_char_width,
smallest_font_height.
(scroll_bar): Add x_widget_low and x_widget_high.
(FRAME_X_IMAGE_CACHE): New.
(FRAME_SMALLEST_CHAR_WIDTH): New.
(FRAME_SMALLEST_FONT_HEIGHT): New.
(struct relief): New.
(VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
(text_cursor_kinds): New.
(FRAME_FLAGS_BITMAP_HEIGHT): New.
(FRAME_FLAGS_BITMAP_WIDTH): New.
(FRAME_X_FLAGS_AREA_COLS): New.
(FRAME_MODE_LINE_BORDER_WIDTH): Removed.
(FRAME_MODE_LINE_HEIGHT): Removed.
(CHAR_TO_PIXEL_WIDTH): Rrwritten.
(PIXEL_TO_CHAR_WIDTH): Ditto.
(WINDOW_COL_PIXEL_X etc.) Removed.
1999-07-21 21:43:52 +00:00
Paul D. Smith 071b0719a0 * Fix memory leaks, fd leaks, and some long-standing bugs recognizing when
targets need to have their modtimes rechecked (-n, etc.)
1999-07-20 22:34:43 +00:00
Dave Love ed8300d96d (syms_of_buffer): Make default-enable-multibyte-characters a user variable. 1999-07-20 16:42:19 +00:00
Richard M. Stallman 33bae69064 (lock_file): Do nothing if purifying. 1999-07-14 16:00:57 +00:00
Richard M. Stallman eea6af04ee (x_display_bar_cursor): Use the cursor-color
to display the bar, not the cursor foreground pixel.
1999-07-10 20:45:46 +00:00
Andrew Innes 191100f2aa (w32_use_full_screen_buffer): New variable.
(syms_of_ntterm): Register it.
(initialize_w32_display): Set initial frame size accordingly,
respecting the LINES and COLUMNS environment variables if set.
1999-07-09 13:38:11 +00:00
Andrew Innes d44c074d09 (w32_console_read_socket): Use new variable w32_use_full_screen_buffer. 1999-07-09 13:36:55 +00:00
Richard M. Stallman 10af5b4c34 (create_process): If the output goes to a unibyte
buffer, suppress character code conversion.p
1999-07-07 22:50:13 +00:00
Richard M. Stallman 237a6fd294 (Finsert_file_contents): If reading into a unibyte
buffer, suppress character code conversion.
1999-07-07 22:49:31 +00:00
Richard M. Stallman 09494912d9 (Fcall_process): Decide coding system for decoding
after we set to the target buffer.  If the output goes to a
unibyte buffer, suppress character code conversion.

(Fcall_process): Don't use initializer on coding_systems.
(Fcall_process_region): Likewise.
1999-07-07 22:48:37 +00:00
Andreas Schwab 9f02739333 (line-number-display-limit): Doc fix. 1999-07-07 10:24:28 +00:00
Richard M. Stallman 0fa248bcc0 (init_callproc): Set exec_directory if installation_directory is
non-nil, without a test of exec_path.
1999-07-02 12:57:10 +00:00
Richard M. Stallman 094d978996 (read_minibuf): Set the multibyteness of the
minibuffer before inserting `initial' string.
1999-07-02 12:15:14 +00:00
Andrew Innes 716490f0c2 (drain_message_queue): New function. 1999-07-01 19:48:55 +00:00
Andrew Innes b37ac782fc (drain_message_queue): Add extern. 1999-07-01 19:48:19 +00:00
Andrew Innes 8b031dcc5f (sys_select): Call MsgWaitForMultipleObjects instead
of WaitForMultipleObjects when user input is allowed, so we can
handle incoming window messages.  Call drain_message_queue when
there are messages waiting; this ensures that windows created
indirectly from the lisp thread get processed properly, and don't
hang other applications by failing to respond to broadcasts.
1999-07-01 19:47:32 +00:00
Andreas Schwab 4b27f17c03 (Fcall_interactively): Ignore first element of
event-symbol-elements property.
1999-07-01 15:02:43 +00:00
Richard M. Stallman 887f2a2d78 Comment changes. 1999-07-01 14:16:44 +00:00
Richard M. Stallman b537a6c701 (Fread_file_name): Check type of DEFAULT_FILENAME. 1999-07-01 14:15:48 +00:00
Richard M. Stallman ac1f48a4dc (x_make_gc): Turn off GCStipple when setting up cursor_gc. 1999-07-01 00:24:55 +00:00
Karl Heuer b67792520c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
Move the handling of MALLOC_CHECK_ envvar here.
(main): Moved from here.

[DOUG_LEA_MALLOC] (malloc_initialize_hook): New
function, assigned to the global __malloc_initialize_hook pointer.
(main): Move malloc_set_state call into malloc_initialize_hook
so that it happens as early as possible.
1999-06-29 17:14:31 +00:00
Karl Heuer 3bd0dffb71 (read_key_sequence): Properly reinitialize
fkey_map after translating thru Vkey_translation_map.
After translating thru Vfunction_key_map, don't reset
keytrans-start to 0.
1999-06-27 21:21:31 +00:00
Geoff Voelker 354350d51c w32heap.h (osinfo_cache): Declare. 1999-06-24 22:05:46 +00:00
Geoff Voelker b9cad9c16e w32heap.c (osinfo_cache): New variable.
(cache_system_info): Initialize osinfo_cache.
1999-06-24 22:05:35 +00:00
Geoff Voelker c5247da267 (get_emacs_configuration): Use GetVersionEx to
handle NT5.0 correctly.  Include build number in configuration.
w32heap.c (osinfo_cache): New variable.
1999-06-24 22:05:14 +00:00
Karl Heuer f16d510603 (casify_object): Use make_multibyte_string
if we casify a multibyte string.
1999-06-24 18:01:32 +00:00
Kenichi Handa 427f5aab9d (Finsert_file_contents): In the case of REPALCE, call
del_range_byte instead off del_range_1, set `inserted' to the
number of characters actually inserted.
1999-06-22 23:25:16 +00:00
Kenichi Handa 5e34de1585 (decode_coding_sjis_big5): Avoid compiler warning. 1999-06-18 06:11:29 +00:00
Paul Eggert a48de9b290 (BOOT_TIME_FILE): New macro.
(get_boot_time): Use it instead of hardwiring the file name.
Check BOOT_TIME_FILE only after inspecting the kernel directly.
1999-06-18 05:49:18 +00:00
Karl Heuer 6693a99a2c (invalid_eol_type): Make it unsigned. 1999-06-17 22:57:01 +00:00
Karl Heuer 9660863d1e (send_process): Delete unsafe/redundant assignment. 1999-06-17 22:52:23 +00:00
Jason Rumney daffac2fba Handle wide characters properly. 1999-06-17 08:45:30 +00:00
Andrew Innes a14724c880 (strerror): Override the default implementation of
strerror, so we can map winsock error codes.
1999-06-16 20:02:55 +00:00
Andrew Innes d8fcc1b984 (sys_strerror): New function. 1999-06-16 20:00:19 +00:00
Andrew Innes 03f8fb34a1 (w32_to_x_weight): Return "demibold" instead of "semibold". 1999-06-16 19:58:02 +00:00
Kenichi Handa 36bb26f758 (syms_of_buffer): Don't make
enable-multibyte-characters customizable.
1999-06-16 02:33:32 +00:00
Karl Heuer 016c8f3fc1 (Fuser_full_name): Doc fix. 1999-06-15 05:30:07 +00:00
Karl Heuer 914eeff99a (unexec): Dump the .rodata section from memory
under IRIX6.5 in order to be able to unexec with gcc.
1999-06-13 22:48:46 +00:00
Jason Rumney 9c332a804d (clear_cached_bitmap_slots): Remove.
(get_bitmap_with_cache): Check if CreateBitmap failed.
Adjust cache size dynamically so cache is never larger than the
system limit of GDI resources.
Do cache clearing inline.  Move global variables to local scope.
1999-06-13 17:49:12 +00:00
Karl Heuer a9a679b70e (compute_motion): Fix boundary case. 1999-06-12 03:50:37 +00:00
Karl Heuer 31d4844a6a (cancel_mouse_face): new function. See equiv
changes to xterm.c on 1996-10-31.
(x_set_window_size): use cancel_mouse_face.
(w32_read_socket): use cancel_mouse_face.
Update frame position when size is restored.
1999-06-12 03:44:31 +00:00
Kenichi Handa d6bd663cc1 (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
japanese-jisx0208-1978 correctly.
1999-06-08 00:26:51 +00:00
Karl Heuer 4116ab9feb (Vuser_init_file): New variable.
(syms_of_lread): Set up Lisp variable.
(Fload): Store the file name there, if var was t before.
1999-06-05 01:15:26 +00:00
Karl Heuer 445ebb943f (get_boot_time): Don't look at /proc/uptime; it
doesn't work if the system date is changed, or if the system
is suspended.  Look at the last-modified time of
/var/run/random-seed instead.
1999-06-05 01:13:36 +00:00
Andrew Innes 972ee7e089 (get_section_info) [_ALPHA_]: Force as much bss data
as possible to be dumped, for safety.
1999-06-03 21:00:10 +00:00
Kenichi Handa 497ee4fb44 (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
latin-jisx0201 correctly.
1999-06-02 23:44:53 +00:00
Kenichi Handa 0c01c27ea5 Fix previous change. 1999-05-26 08:03:16 +00:00
Kenichi Handa 28d0c844b2 (Vcharset_table): Comment fixed. 1999-05-26 07:15:39 +00:00
Richard M. Stallman cfc01fa742 (lock_if_free): After deleting a stale lock,
try again to lock the file.
1999-05-24 09:19:06 +00:00
Richard M. Stallman 940daec19b (syms_of_buffer): Doc fix. 1999-05-24 09:03:05 +00:00
Richard M. Stallman 928aedd8b4 (syms_of_coding): Doc fix. 1999-05-24 09:02:41 +00:00
Andrew Innes b7b978978c (maybe_generate_resize_event): Detect changes in the
console window size.
(w32_console_read_socket): Call maybe_generate_resize_event
whenever input events are received, since we don't get told when
the window size changes (as opposed to the buffer size, which we
don't care about).
1999-05-22 17:38:01 +00:00
Andrew Innes a5404e3acf (clear_frame): Remember that the window width might
be smaller than the screen buffer width.
(write_glyphs): Remove redundant variable attrs.  Use
FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
1999-05-22 17:37:18 +00:00
Andrew Innes 08712a41ef (w32_read_socket): Reset the grabbed flag when a frame gains or
loses focus.
1999-05-20 20:46:01 +00:00
Andrew Innes 487163ac86 (w32_wnd_proc): Ensure mouse capture is released if
frame loses focus, and that mouse button state is reset.  Ditto
when the menu bar is activated.
1999-05-20 20:42:58 +00:00
Richard M. Stallman 92a581153d Comment change. 1999-05-19 02:27:09 +00:00
Richard M. Stallman b97771fc17 Fix performance bug on hosts with large
/var/adm/wtmp files with no boot records.

(boot_time_initialized): New var.
(init_filelock): Initialize it.
(get_boot_time): Use it, instead of nonzero boot_time,
to test whether boot_time is initialized.
Don't invoke utmp routines when dumping.

(get_boot_time): First, try to get the boot time from the
current utmp file, as this can be much faster.  Don't try to
get the boot time from utmp and/or wtmp more than once.

(get_boot_time_1): When passed null pointer, don't invoke utmpname.
New arg LATEST.  All uses changed.
1999-05-19 01:30:15 +00:00
Richard M. Stallman ea02eb562d (Fdefine_abbrev): Doc fix. 1999-05-18 04:47:26 +00:00
Andrew Innes b1ae662fa6 (dumpglyphs): Use correct colours for drawing rectangles in place of
missing fonts, and make them the right size.
1999-05-15 17:39:26 +00:00
Dave Love 0beaf54f1d (Fparse_partial_sexp): Correct test for element 8 to be
non-nil.
1999-05-14 09:51:02 +00:00
Andrew Innes ce6059daf3 (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
definition.
(w32_wnd_proc): Reinstall debugging output.
(w32_wnd_proc): Reinstall SetForegroundWindow change.
(syms_of_w32fns): Reinstall new initializer for
Vw32_phantom_key_code.

(x_to_w32_charset): Do partial matching of charset
names for most non-European charsets, to cope with wildcards or
missing spec dates.
(Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
to avoid deadlock when activating the menu bar.
1999-05-11 13:38:10 +00:00
Kenichi Handa 6397418aa1 (boyer_moore): Get charset base value of `untranslated'
by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
1999-05-11 01:34:28 +00:00
Andreas Schwab 8d6d9fefe0 (Fread_file_name): Correct handling of dollars in file
names.  Protect dollars in strings put on the file-name-history.
Substitute homedir by `~' also in default_filename.
1999-05-10 12:57:15 +00:00
Andreas Schwab daa3df262c (try_window_id): Fix computation of tab_offset when
backing up over a character that is splitted across lines.
1999-05-10 12:53:07 +00:00
Kenichi Handa 38edf7d458 (code_convert_region): If eol format is inconsistent,
change coding->symbol to the sibling coding system of Unix like
eol format.
1999-05-10 01:04:01 +00:00
Karl Heuer c6fd1dc43d (get_boot_time): Handle NO_WTMP_FILE. 1999-05-09 17:57:03 +00:00
Karl Heuer d9db7b7b0e (NO_WTMP_FILE): Define it. 1999-05-09 17:56:43 +00:00
Andrew Innes c0611964e9 (w32_strict_painting): New variable.
(w32_wnd_proc): Use it to select repaint rules.
(syms_of_w32fns): Defvar it.
1999-05-05 11:18:31 +00:00
Andrew Innes 1c885fe1ad (x_to_w32_charset): Fix typo: want to map all Japanese
charsets to the standard Windows charset for Japanese.
1999-05-04 08:57:08 +00:00
Kenichi Handa 74848a963c (x_load_font): Fix typo (>' -> ='). 1999-05-04 05:45:36 +00:00
Kenichi Handa e05645eeb8 (struct ccl_program): New member stack_idx. 1999-05-04 05:43:41 +00:00
Kenichi Handa c13362d808 (ccl_prog_stack_struct): Declare it as static.
(ccl_driver): Setup stack_idx and ccl_prog correctly.  Update them
before returing.
(setup_ccl_program): Initialize ccl->stack_idx to 0.
1999-05-04 05:42:55 +00:00
Andrew Innes e3e0e526a7 (dumpglyphs): Always fill background for italic fonts. 1999-05-03 22:27:11 +00:00
Andrew Innes e5124be7f7 (make_time): Make argument type be time_t. 1999-05-03 22:01:09 +00:00
Andrew Innes 68026917ff (unibyte_display_via_language_environment): Add extern. 1999-05-02 11:02:11 +00:00
Andrew Innes 86e8618142 (unibyte_display_via_language_environment):
Variable moved to xdisp.c.
(syms_of_w32fns): Don't set up Lisp var here.
1999-05-02 10:58:11 +00:00
Andrew Innes e16bf4949f (unibyte_display_via_language_environment):
Variable moved to xdisp.c.
(syms_of_msdos): Don't set up Lisp var here.
1999-05-02 10:56:26 +00:00
Andrew Innes 2c088c9835 (unibyte_display_via_language_environment):
Variable moved to xdisp.c.
(syms_of_xfns): Don't set up Lisp var here.
1999-05-02 10:54:36 +00:00
Andrew Innes 7bbe686fb2 (display_text_line): Convert unibyte char to multibyte
if unibyte_display_via_language_environment is set.
(unibyte_display_via_language_environment):
Variable moved from xfns.c and elsewhere.
(syms_of_xfns): Set up Lisp var.
1999-05-02 10:51:03 +00:00
Andrew Innes a5a7d30fe9 (HAVE_FSYNC): New macro.
(fsync): Map to _commit.
(ftruncate): Map to _chsize.
1999-05-02 10:36:23 +00:00
Andrew Innes e12ca9c2ec [andrewi]
(dumpglyphs): On Windows NT, do output in Unicode even
for ASCII, if enabled, to avoid memory allocation overhead for
implicit Unicode conversion.  Also, recognize that ASCII and
Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
lready contains the Unicode characters in that case.
(construct_drag_n_drop): Remove old code that was
trashing the drop location.

[jasonr]
(w32_write_glyphs, w32_clear_end_of_line,
w32_clear_frame, clear_cursor, x_display_bar_cursor,
x_display_box_cursor, x_set_window_size): Use phys_cursor_on
field in frame.
(do_line_dance): Updated WRT xterm.c. Use macros where possible.
(dumprectangle): Take into account the width of a left-side
scroll bar.
1999-05-02 10:34:21 +00:00
Andrew Innes 43df7d0b43 (Fw32_set_clipboard_data): Undo last change to add
nlines to encoding_buffer_size (real bug was in a ccl program in
lisp/international/coding.el).
1999-05-02 10:30:22 +00:00
Andrew Innes 49fb6381ca (w32_get_string_resource): Check for name in current
user area, and if not found look in the local machine area.
1999-05-02 10:28:55 +00:00
Andrew Innes f446016fdb (sys_kill): Attach to current foreground thread
when grabbing focus; necessary on NT 5.0.
1999-05-02 10:27:27 +00:00
Andrew Innes 55dcfc1588 [andrewi]
(w32_list_bdf_fonts): Initialize n_fonts.
(Fw32_shell_execute): New function; used to support browse-url.
(syms_of_w32fns): Register it.
(w32_load_system_font): Force max width to be average
char width for fixed-pitch fonts, to avoid unnecessary redisplay
slowdown.
(x_to_w32_charset): Define VIETNAMESE_CHARSET if not
already defined.
(syms_of_w32fns): Set Vw32_phantom_key_code to 255.

[jasonr]
(w32_wnd_proc) [WM_PAINT]: Use rectangle from
GetUpdateRect rather than BeginPaint.
(w32_wnd_proc): Attach to current foreground thread
when grabbing focus; necessary on NT 5.0.
(w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
debugging display messages.
(w32_to_x_charset): Put wildcard last in unknown charsets to avoid
false matching.
1999-05-02 10:23:06 +00:00
Andrew Innes e3ddd18c28 (get_section_info): Dump back the entire EMDATA
section if we can put Emacs' initialized data in a separate
section, otherwise use the my_begdata/my_edata method.
1999-05-02 10:13:08 +00:00
Andrew Innes 9551468ff4 ($(BLD)\w32term.obj): Add dependency on w32heap.h. 1999-05-02 10:11:35 +00:00
Andrew Innes 716e0b0ab9 [andrewi]
(decode_eol): Set produced/consumed values to zero if
src_bytes is <= 0 on entry.

[handa]
(setup_raw_text_coding_system): Call
setup_coding_system to initialize the fields of struct
coding_system correctly.
1999-05-02 10:05:22 +00:00
Karl Heuer 003a7eaa31 Comment fix. 1999-04-28 16:41:08 +00:00
Karl Heuer 53ca46578b (x_list_fonts): Fix previous change. 1999-04-26 06:02:19 +00:00
Karl Heuer f1b6f8a157 (HAVE_LIBXP): Add #undef. 1999-04-26 05:22:32 +00:00
Karl Heuer 6389f670f9 (LIB_MOTIF_EXTRA): Check HAVE_LIBXP. 1999-04-26 05:22:16 +00:00
Kenichi Handa 17d85edc86 Trap X errors so that Emacs doesn't die
by them.
1999-04-13 00:51:52 +00:00
Karl Heuer 165e2d55b4 (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3. 1999-04-12 18:23:41 +00:00
Kenichi Handa b550eb05f7 (Fset_fontset_font): Fix previous change. 1999-04-12 01:26:06 +00:00
Kenichi Handa 79091e9c64 (Fquery_fontset): Check for fontset aliases here.
(Fnew_fontset, Fset_fontset_font): Don't check for them here.
1999-04-10 02:21:00 +00:00
Richard M. Stallman f87740dccb (do_autoload): Preserve match data. 1999-04-09 19:21:52 +00:00
Richard M. Stallman abc9d9597c (Fmake_indirect_buffer): Copy multibyte status from the base buffer.
(Fset_buffer_multibyte): Copy new multibyte status
into the buffer's indirect buffers.
1999-04-09 19:20:26 +00:00
Richard M. Stallman 0748d150ec (Faccept_process_output): Check validity of PROCESS. 1999-04-08 16:50:04 +00:00
Eli Zaretskii fb7f676dd3 (jp_kbd_translate_table): Fix the other \ key. 1999-04-08 11:55:45 +00:00
Richard M. Stallman 26e18ed97f (x_set_font): Fix error message. 1999-04-08 01:16:01 +00:00
Richard M. Stallman 9af3dc479f (Fquery_fontset): Don't check for fontset aliases here.
(Fnew_fontset, Fset_fontset_font): Check for them here.
(Ffontset_info, Fnew_fontset, Fset_fontset_font):
Fix error message syntax.
1999-04-07 23:35:12 +00:00
Richard M. Stallman 8ea3e05445 (x_to_w32_font): Provide sufficient buffer to encode_coding to avoid carryover. 1999-04-07 05:48:00 +00:00
Kenichi Handa e238283b30 (base64_encode_1): Don't add unnecessary newline at the tail. 1999-04-07 05:40:54 +00:00
Richard M. Stallman 6d4e6528f5 (Ffile_attributes): Doc fix. 1999-04-06 23:41:21 +00:00
Richard M. Stallman fb2fdea71c (get_doc_string): When UNIBYTE and DEFINITION are 0,
let the data control whether string is unibyte.
1999-04-06 19:50:49 +00:00
Richard M. Stallman b91f7a6f35 (Faccessible_keymaps): Really initialize i_byte.
Convert 0200 to meta only in a unibyte string.
(Fkey_description): Likewise.
1999-04-06 19:36:02 +00:00
Kenichi Handa 52d41803be Add comments for decode_coding and encode_coding. 1999-04-06 12:34:12 +00:00
Kenichi Handa 6076842800 (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
a composite character by skipping its leading code.
<CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
correctly.
1999-04-06 12:33:42 +00:00
Eli Zaretskii a54b7a82c8 (dos_rawgetc): Don't zero out c if private translation
table was used.
(jp_kbd_translate_table): Support C-\.
(it_kbd_translate_table): Map `>' correctly.
(it_keyboard): Add `>'.
1999-04-06 10:25:31 +00:00
Richard M. Stallman 6445414a59 (graft_intervals_into_buffer): Turn off
inhibit_modification_hooks around calling Fset_text_properties.
1999-04-06 08:49:28 +00:00
Kenichi Handa 07ff4fb3cf (dumpglyphs): Be sure to fill the whole background of
glyphs.
1999-04-05 06:47:41 +00:00
Eli Zaretskii ec4d531332 (jp_kbd_translate_table): Fix last change. 1999-04-05 06:36:31 +00:00
Eli Zaretskii d1d5dc1954 (struct kbd_translate): New struct, for key translation
tables private to certain national keyboard layouts.
(struct dos_keyboard_map): Add a pointer to a private translation
table.
(jp_kbd_translate_table): Private table for the Japanese
keyboard.
(jp_keyboard): Japanese keyboard layout.
(it_kbd_translate_table): Private table for the Italian keyboard.
(it_keyboard): Use it_kbd_translate_table.
(keyboard_layout_list): Add the Japanese keyboard.
(dos_rawgetc): Use the keyboard-private translation table, if
available.
(abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
1999-04-04 11:43:57 +00:00
Kenichi Handa 919c7723de (redisplay_window): When we call compute_motion with
HPOS got from w->last_point_x, call it with DID_MOTION 1.
(display_text_line): Stop the loop for processing overlay strings
when we reach the right edge of the window.
1999-04-02 16:35:33 +00:00
Karl Heuer 80184dac07 (Fexecute_kbd_macro): Save real_this_command.
(pop_kbd_macro): Restore the saved real_this_command.
(Fcall_last_kbd_macro): Set real_this_command to the macro.
1999-03-30 18:02:13 +00:00
Karl Heuer 90d456d297 (Fset_buffer_modified_p): Don't lock or unlock
if buffer-file-name is nil.
1999-03-26 17:55:42 +00:00
Andrew Innes 0ece9ef6bf (Fw32_set_clipboard_data): Take into account line
ends when calculating clipboard storage needed for non-ASCII text.
1999-03-25 22:59:18 +00:00
Andrew Innes a7976df819 (PREPARED_HEADERS): Change name of paths.h to epaths.h.
(epaths.h): Renamed from paths.h.
(clean):
($(BLD)\filelock.obj):
($(BLD)\lread.obj):
($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
1999-03-25 22:56:34 +00:00
Kenichi Handa f30b349973 (decode_mode_spec_coding): Handle integer value in
eoltype correctly for backward compatibility.
1999-03-23 12:29:30 +00:00
Kenichi Handa 8dbb769e94 (encode_coding_iso2022): Initialize dummy arguments to
ENCODE_ISO_CHARACTER for the previous change on this macro.
1999-03-23 12:28:55 +00:00
Kenichi Handa 6f5510294b (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
invalid, produce the buffer internal byte sequence without
encoding.
1999-03-20 07:47:54 +00:00
Karl Heuer 00d6521642 (Fformat): Accept %i format. 1999-03-19 08:09:59 +00:00
Karl Heuer 29a2adb0fb (get_boot_time): Test tempname, not filename. 1999-03-18 00:16:38 +00:00
Geoff Voelker f46e6225bb (enum_font_cb2): Set the font height to be the
character height, not the cell height.
(Fw32_select_font): Initialize font dialog with current
default font.
(Vw32_system_coding_system): New variable.
(w32_strict_filenames): Add comment.
(w32_to_x_font): Decode font name using Vw32_system_coding_system.
(x_to_w32_font): Encode font name using Vw32_system_coding_system.
(syms_of_w32fns): Add w32-system-coding-system.
1999-03-17 22:03:55 +00:00
Geoff Voelker 865203c3b7 Merged patches from Meadow. 1999-03-17 22:03:43 +00:00
Karl Heuer bf1b7b30da (XTread_socket) <ConfigureNotify>:
If cursor pos is outside the new frame size, mark cursor as off.
1999-03-15 19:53:32 +00:00
Kenichi Handa d847cc360a (try_window_id): Initizlie val.ovstring_chars_done to 0. 1999-03-15 02:20:31 +00:00
Kenichi Handa d645aaa442 (x_list_fonts): Trap X errors so that Emacs doesn't die
by them.
(x_load_font): Likewise.
1999-03-15 00:11:22 +00:00
Karl Heuer 4b7da890ac (Fexecute_kbd_macro): Initialize executing_macro_iterations at beginning. 1999-03-14 06:33:01 +00:00
Geoff Voelker 1075afa924 (w32_strict_fontnames): New variable.
(Fx_create_frame): Formatting fix.
(w32_load_system_font): Keep trying to load non-existant font
if w32_strict_fontnames is nil. Formatting fix.
(syms_of_w32fns): Add w32-strict-fontnames.
1999-03-14 05:27:47 +00:00
Geoff Voelker 5eee6366e8 (W32_TEXTOUT): Do not multiply nchars by
charset_dim.
(dumpglyphs): Formatting fixes.
1999-03-14 05:27:21 +00:00
Geoff Voelker b1f918f8da (w32_wnd_proc): Handle WM_GETMINMAXINFO message. 1999-03-14 05:21:29 +00:00
Karl Heuer 908ec3ce2c (BASE_PURESIZE): Increase to 505000. 1999-03-10 19:58:01 +00:00
Karl Heuer a3fd58aa89 (init_filelock): New function. 1999-03-09 22:09:49 +00:00
Karl Heuer ad067ea663 (main) [CLASH_DETECTION]: Call init_filelock. 1999-03-09 22:09:09 +00:00
Dave Love 3be6c6a0a2 Doc fix. 1999-03-09 19:20:59 +00:00
Kenichi Handa 1f5dbf34c7 (setup_coding_system): Check for CODING_SYSTEM = nil. 1999-03-09 11:55:12 +00:00
Karl Heuer e3a5b8ae84 (get_boot_time): Reduce scope of #ifdef BOOT_TIME
to only the part that uses get_boot_time_1.
1999-03-09 03:31:10 +00:00
Dave Love 68cfd85324 (Finsert_file_contents): Use xfree. 1999-03-07 15:53:09 +00:00
Kenichi Handa f1653e8fe4 (callproc.o, coding.o, fileio.o, msdos.o, process.o,
term.o, xselect.o): Depend on ccl.h.
1999-03-06 05:31:24 +00:00
Geoff Voelker 47373a1fdb Remove common multiple file compilation commands. 1999-03-06 02:15:46 +00:00
Kenichi Handa 7f8a084075 (Fbase64_encode_string): Allocate sufficient memory for
newlines added when the arg NO-LINE-BREAK is nil.
1999-03-04 11:35:42 +00:00
Karl Heuer 5ed6257458 (syms_of_buffer): Doc fix. 1999-03-04 09:16:12 +00:00
Karl Heuer 21e01890f8 (Fstring_match, Fposix_string_match): Doc fix. 1999-03-04 09:15:37 +00:00
Karl Heuer a871dd585b (Fcall_process): Use xmalloc, xfree. 1999-03-04 09:03:31 +00:00
Karl Heuer a678d9fff1 (term_init): Use xmalloc, not malloc. 1999-03-04 09:02:51 +00:00
Eli Zaretskii 4029384bd4 (get_clipboard_data): Always stop at the first null byte. 1999-03-03 14:51:07 +00:00
Andreas Schwab c569512a35 (Fdefconst): Doc fix. 1999-03-03 10:29:45 +00:00
Kenichi Handa 39787efd63 Comment for ISO 2022 encoding mechanism modified. 1999-03-01 11:52:54 +00:00
Karl Heuer f805a125e1 (get_boot_time): Support FreeBSD way to read boot-time. 1999-03-01 03:50:34 +00:00
Karl Heuer 06d74a6512 (internal_self_insert): Calculate column properly
in overwrite-of-tab case.
1999-03-01 03:50:00 +00:00
Andreas Schwab d942e12a70 (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
malloc in glibc 2.1.
1999-02-28 02:12:07 +00:00
Richard M. Stallman 57bda87a94 Use epaths.h istead of paths.h. 1999-02-26 11:41:17 +00:00
Richard M. Stallman affb929948 paths.h and paths.in renamed to epaths.h and epaths.in. 1999-02-26 11:39:47 +00:00
Richard M. Stallman 77e544a4cd (get_boot_time): Use WTMP_FILE for file name.
(WTMP_FILE): Default definition in case not defined.
(get_boot_time_1): Test that file exists before trying to read it.
1999-02-26 10:47:36 +00:00
Andreas Schwab 7c9cd4467d (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
malloc.
1999-02-26 09:23:52 +00:00
Richard M. Stallman 53fe786d1f (syms_of_buffer): Doc fix for enable-multibyte-characters. 1999-02-26 07:07:13 +00:00
Kenichi Handa d3c004965b (push_key_description): If enable-multibyte-characters
is nil and C is single byte, push C as is.
1999-02-25 08:43:17 +00:00
Kenichi Handa 9fb7129305 (push_key_description): If enable-multibyte-characters
is non-nil, try to convert unibyte character to multibyte.  For
invalid multibyte character, show all bits by octal form.
(Fsingle_key_description): Check the varidity of charset for a
generic character.
1999-02-24 02:31:57 +00:00
Karl Heuer 4cd8344ad3 (Ffile_regular_p): Undo previous change. 1999-02-23 22:28:55 +00:00
Karl Heuer 701b1ec29a (Fdefconst): Doc fix. 1999-02-23 22:23:57 +00:00
Karl Heuer 8e339303f4 (get_boot_time): Don't use BUFSIZ. 1999-02-23 22:09:47 +00:00
Karl Heuer bf7ce02180 Initial revision 1999-02-22 20:56:34 +00:00
Andrew Innes 69bd9c93b7 (EXTRA_LINK): Do version test with strings. 1999-02-22 12:46:52 +00:00
Andrew Innes 312ae6bf9a ($(BLD)\w32bdf.obj): Add missing continuation character. 1999-02-22 12:05:01 +00:00
Andreas Schwab 915b831236 (Fbase64_encode_string): Fix last change. 1999-02-22 10:45:53 +00:00
Andreas Schwab b9818d1929 (event_kind): Add user_signal. 1999-02-22 10:07:06 +00:00
Andreas Schwab 5bf68f6e34 (Qusr1_signal, Qusr2_signal): New variables.
(syms_of_keyboard): Initialize them.
(lispy_user_signals): New variable.
(make_lispy_event): Handle user_signal event type.
1999-02-22 10:05:43 +00:00
Andreas Schwab e2fa15ffaa Don't define Qusr1_signal and Qusr2_signal.
(syms_of_emacs): Don't initialize them.
(handle_USR1_signal, handle_USR2_signal): Set event type to
user_signal instead of non_ascii_keystroke, and use plain integers
as code instead of Lisp symbols.
1999-02-22 10:04:28 +00:00
Richard M. Stallman e9f22ced2f (get_boot_time_1): Put this in #ifdef BOOT_TIME. 1999-02-21 19:57:34 +00:00
Richard M. Stallman 8c29413d71 (print_error_message): Don't crash if (cdr data) is not a list. 1999-02-21 19:56:08 +00:00
Eli Zaretskii 8f6df9b587 (lstat) [!S_ISLNK]: Use stat instead of lstat. 1999-02-21 16:36:07 +00:00
Andrew Innes b78e8d0afb (memory_warnings) [WINDOWSNT]: Reset lim_data on each
run, since size can vary from run to run.
1999-02-20 20:50:20 +00:00
Andrew Innes 2b9a4fe9b8 (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
data is included, to enable profiling.
($(EMACS)): Map file not needed for emacs.exe.
1999-02-20 20:48:10 +00:00
Andrew Innes f5a3c8c45d (main): [!SYSTEM_MALLOC]: Call realloc and free as well
as malloc before calling uninterrupt_malloc, for consistency.
This also enables profiling to work on WINDOWSNT.
1999-02-20 20:43:58 +00:00
Richard M. Stallman b81ea5ef1d (syms_of_process): defsubr it.
(Fprocess_running_child_p): New function.

(process_send_signal): If CURRENT_GROUP is `lambda'
then don't send the signal if the shell owns the terminal.
(Finterrupt_process): Doc change.
1999-02-19 01:39:27 +00:00
Richard M. Stallman a028e993f8 (emacs.o): Depend on termhooks.h.
(filelock.o): Depend on systime.h.
1999-02-19 01:37:28 +00:00
Richard M. Stallman 9177d97852 (within_one_second): New function.
(current_lock_owner): Use that.
(get_boot_time): Use /proc/uptime if available.
Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
(get_boot_time_1): New subroutine taken from get_boot_time.
1999-02-19 01:36:29 +00:00
Richard M. Stallman 5bda49c640 (Qusr1_signal, Qusr2_signal): New variables.
(syms_of_emacs): Init and staticpro them.
(handle_USR1_signal): Don't run any code, just queue up an event.
(handle_USR2_signal): Likewise.
1999-02-19 01:34:48 +00:00
Kenichi Handa 9da8350f2e (Fdecode_sjis_char): In case of error, use %x for
formatting error message.
(Fdecode_big5_char): Likewise.
1999-02-18 12:52:07 +00:00
Richard M. Stallman c8a3c7eb27 (adjust_markers_for_replace): When doing an insertion
(replacing a region of zero length), handle markers at the
insertion point properly.
1999-02-18 05:40:34 +00:00
Andrew Innes 7d08135584 (Vw32_quit_key): New variable.
(post_character_message): Use it.
(syms_of_w32fns): DEFVAR it.
1999-02-17 12:47:59 +00:00
Kenichi Handa c22554ac39 (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'. 1999-02-17 08:12:31 +00:00
Eli Zaretskii cb1846b412 (Ffile_attributes): If the file's size doesn't fit in
an integer, return it as a float.  Doc string fixed.
1999-02-16 08:25:51 +00:00
Kenichi Handa c28a9453f6 (Fdecode_sjis_char, Fencode_sjis_char): Hanlde
ASCII correctly.  Signal error on invalid characters.
(Fdecode_big5_char, Fencode_big5_char): Likewise.
1999-02-16 01:38:01 +00:00
Eli Zaretskii cc6d8c5b60 (get_clipboard_data): Work around a bug in Windows95
DOS box which doubles the reported size of text in the clipboard.
1999-02-15 15:14:47 +00:00
Kenichi Handa a63063ae57 (decode_coding_iso2022): Don't set coding->composed_chars to 0 here.
(setup_coding_system): Set coding->composed_chars to 0 here.
1999-02-15 10:47:36 +00:00
Richard M. Stallman 5057be3e8c (Ffile_regular_p): Use lstat. 1999-02-13 16:36:24 +00:00
Richard M. Stallman 72443547c2 (HAS_SBSS_SECTION): Define this in some cases.
(unexec): Test this instead of specific systems.
1999-02-10 03:02:01 +00:00
Dave Love 0c6ca44b7a (Fyes_or_no_p, Fy_or_n_p): Doc fix. 1999-02-08 13:59:24 +00:00
Kenichi Handa 489427668f (ccl_coding_driver): On encoding, coding->produced_char
should be set to coding->produced.
1999-02-08 11:06:56 +00:00
Paul Fisher 9a092df081 (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
(base64_decode_1): Use READ_QUADRUPLET_BYTE.
1999-02-07 23:58:09 +00:00
Richard M. Stallman d6c0ea9945 (Fformat): Doc fix. 1999-02-07 06:28:54 +00:00
Andrew Innes fb9cc9cc6e (construct_drag_n_drop): Call DraqQueryPoint before
recording drop position.
1999-02-05 17:49:04 +00:00
Kenichi Handa f3ac545f7d (encode_terminal_code): Fix previous change. 1999-02-05 05:40:27 +00:00
Kenichi Handa 3efbce959e (encode_coding_iso2022): Before writing out an invalid
code, reset glaphic planes and registers if necessary.
1999-02-05 05:39:58 +00:00
Eli Zaretskii 5033894e97 (last_clipboard_text, clipboard_storage_size): New
static variables.
(set_clipboard_data): Save a copy of the text we put into
clipboard in last_clipboard_text.
(get_clipboard_data): If the clipboard text is identical to what
last_clipboard_text holds, pretend there's no data in the
clipboard.
1999-02-04 15:53:37 +00:00
Richard M. Stallman fc9b48d7f3 (NLIST_STRUCT): Add #undef. 1999-02-04 04:48:24 +00:00
Eli Zaretskii ba92a4701a Fix last change. 1999-02-03 16:40:32 +00:00
Eli Zaretskii c759462781 (Fw16_set_clipboard_data): When the text needs to be
encoded, set its pointer and size as returned by encode_coding.
1999-02-03 14:53:47 +00:00
Kenichi Handa 2db66414f1 (Fset_char_table_default): To handle the case that CH is
an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
1999-02-03 02:20:53 +00:00
Andrew Innes 247be83704 (syms_of_w32fns): Change default value of w32-mouse-move-interval to
0, so that the mouse wheel/rocker on some mice works properly.
1999-02-02 14:03:10 +00:00
Eli Zaretskii 0236e3f151 (set_clipboard_data): Correctly null-terminate the
string to be put into the Windows clipboard.  Use xbuf_addr.
1999-02-02 13:43:14 +00:00
Geoff Voelker e6c0f51910 Use full path to temacs.exe when dumping. 1999-02-02 02:59:29 +00:00
Richard M. Stallman 6e553d5e6c (Fset_buffer_multibyte): Error if buffer is multibyte. 1999-02-01 11:17:41 +00:00
Andrew Innes 7fef47a389 (ROUND_UP_DST_AND_ZERO): New macro.
(copy_executable_and_dump_data): Use it to ensure alignment slop
is zeroed.
1999-01-31 21:53:14 +00:00
Richard M. Stallman e90c4fe62a (Fset_window_point): If WINDOW is selected but the
current buffer is not its buffer, don't use Fgoto_char.
1999-01-30 23:45:54 +00:00
Andrew Innes aa7b87b0b2 (init_environment): Change argv[0] to contain the full path to Emacs. 1999-01-30 18:48:57 +00:00
Andrew Innes a3a58294d8 (main): Pass argv to init_environment. 1999-01-30 18:47:52 +00:00
Kenichi Handa d5749adb29 (x_load_font): For the height of font, if normarl ascent and
descent value are larger than those in max_bounds field, use the
former.
1999-01-30 02:37:14 +00:00
Kenichi Handa 715a159be2 (x_new_fontset): For ASCII font, don't use the font name
returned by x_new_font (the resolved one) but use the font name
set in the fontset specification.
1999-01-30 01:46:35 +00:00
Eli Zaretskii 302f2b38d0 (decode_mode_spec_coding): Fix previous change. 1999-01-28 16:30:23 +00:00
Geoff Voelker 5ca0cd71d3 (w32_load_system_font): Do not load unlisted fonts if
list was reliable.
(enum_fontex_cb1, enum_fontex_cb2): New functions.
(w32_list_bdf_fonts): New parameter; max_names.  Callers updated.
(w32_list_synthesized_fonts): New function.
(w32_list_fonts): Use maxnames.  Use EnumFontFamiliesEx when
available instead of EnumFontFamilies.  List synthesized fonts if
Vw32_enable_italics is non-nil.
1999-01-28 04:52:02 +00:00
Richard M. Stallman 5878523b19 (x_set_frame_parameters): gcpro as needed. 1999-01-28 04:01:44 +00:00
Richard M. Stallman 35fc36a16b (SETUP_SLAVE_PTY): Use the ptem module if it exists.
Don't complain if ttcompat does not exist.
1999-01-28 03:49:39 +00:00
Andrew Innes 576ba81cd4 (w32_wnd_proc): Fix bug introduced by previous change;
the lwindow, rwindow and apps keys could not be used as function
keys, because they were being passed to TranslateMessage which
ignores them.  Also, key was being changed to SPC.
1999-01-27 21:53:27 +00:00
Andrew Innes 27d3ec7f87 Do make version comparison as strings. 1999-01-27 21:49:57 +00:00
Eli Zaretskii 20ee919eb4 eol-mnemonic-* variables are now strings, not characters. 1999-01-27 10:09:55 +00:00
Eli Zaretskii 7722baf9b3 (syms_of_coding): eol-mnemonic-* variables are now
strings, not characters.
1999-01-27 10:08:13 +00:00
Eli Zaretskii d24715e869 (decode_mode_spec_coding): Display the EOL type as a string. 1999-01-27 10:06:21 +00:00
Richard M. Stallman 7e8e59d0cd (main): Up-date copyright. 1999-01-26 22:09:40 +00:00
Dave Love 94c7a21474 (syms_of_coding): Doc fix for inhibit-eol-conversion. 1999-01-25 19:00:50 +00:00
Andreas Schwab bfa8ca433a (Fsignal): Move comment to avoid confusing make-docfile. 1999-01-25 09:20:43 +00:00
Richard M. Stallman 7589a1d97e (x_set_frame_parameters): gcpro as needed. 1999-01-25 01:37:58 +00:00
Dave Love c0218e1b54 Comment about unibyte. 1999-01-24 22:37:36 +00:00
Richard M. Stallman 0afc861ba9 (read_key_sequence): Fix previous change. 1999-01-24 20:08:10 +00:00
Richard M. Stallman cf591cc18b (same_x_server): Detect treat ":0" and "unix:0"
as the same.  Treat "myname:0" as the same as those two.
1999-01-24 20:07:05 +00:00
Richard M. Stallman e18e6130fa (x_handle_selection_clear): Don't clear the
selection if Emacs still owns it through a different display.
1999-01-24 20:06:34 +00:00
Karl Heuer ccf89641df (scan_sexps_forward): Delete duplicate code
to set prev_from_syntax, above start of main loop.
At startinstring, check syntax when checking for a match.
1999-01-22 21:57:43 +00:00
Geoff Voelker 33d52f9c45 (Vw32_bdf_filename_alist): New variable.
(x_destroy_bitmap): Returns void not int.
(x_set_border_pixel): Returns void.
(w32_load_bdf_font): New function.
(w32_load_system_font): New function, was w32_load_font.  List
fonts before loading.  Explicitly set encoding for SJIS fonts.
Set default_ascent to 0 as comment indicates.
(w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
(w32_unload_font): Support BDF fonts.
(w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
Autodetect whether to use koi8-r instead of iso8859-5.
Associate "ksc5601.1987" with HANGUEL_CHARSET.
Associate "ksc5601.1992" with JOHAB_CHARSET.
(x_to_w32_charset): Make consistent with w32_to_x_charset.
(w32_to_x_font): Add resolution.
(x_to_w32_font): Use font resolution to calculate height if supplied.
(w32_font_match): Handle wildcards anywhere within field.
(enumfont_t): Remove unused head pointer.
(enum_font_cb2): Dereference elfLogFont.
(w32_list_bdf_fonts): New function.
(w32_list_fonts): Use one_w32_dispay_info instead of insisting on
valid frame.  Remove MessageBox.  Support BDF fonts.
(Fw32_find_bdf_fonts): New function.
(syms_of_w32fns): Add Vw32_bdf_filename_alist and
Sw32_find_bdf_fonts.
1999-01-22 19:59:22 +00:00
Geoff Voelker 65c4903c49 (W32_TEXTOUT): New macro.
(dumpglyphs): Support BDF fonts.  Use W32_TEXTOUT macro.
Simplify baseline calculation.  Detect SJIS by font, not glyph.
Call SetTextAlign.
(syms_of_w32term): Remove "jisx0212-sjis" from
w32-charset-to-codepage-alist.
Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
Add "ksc5601.1992' to w32-charset-to-codepage-alist.
1999-01-22 19:58:37 +00:00
Geoff Voelker 25d9ec8cc4 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
Support BDF fonts.
1999-01-22 19:58:23 +00:00
Geoff Voelker 640ea3c512 Include w32bdf.h.
(W32FontStruct) Add bdf element.
1999-01-22 19:58:10 +00:00
Geoff Voelker f0cd15b5cd Add w32bdf.c and w32bdf.h. 1999-01-22 19:58:01 +00:00
Geoff Voelker 7b416d4284 Initial revision 1999-01-22 19:42:26 +00:00
Andrew Innes 15682d2416 (temacs): Use del to delete file, not rm. 1999-01-21 12:12:24 +00:00
Geoff Voelker a1b9438c25 Remove codepage macros. Remove redundant BIG5 macros.
(dumpglyphs): Move definitions out of block containing goto.
Remove redundant code for BIG5.
Use w32_codepage_for_font instead of
w32_codepage_for_charset.  Add cast to int where float
operation is assigned to int.
(Vw32_charset_to_codepage_alist): New variable.
(w32_codepage_for_charset): Removed.
(w32_codepage_for_font): New function, replacing
w32_codepage_for_charset.
(syms_of_w32term): Add and initialize
w32-charset-to-codepage-alist.
1999-01-19 22:25:33 +00:00
Geoff Voelker a4e691eeeb (x_to_w32_charset): Add iso8859-9.
(w32_to_x_charset): Fix charset mappings.
1999-01-19 22:25:08 +00:00
Richard M. Stallman 27c3b45d28 (re_match_2_internal) [WINDOWSNT & emacs]: Insert QUIT at various places. 1999-01-19 03:24:03 +00:00
Andrew Innes a7325b562f (w32_executable_type): Relax the check to identify
cygwin-compiled applications, because the exact dll name varies
with release.  Now only require the name to start "cygwin".
1999-01-17 19:24:42 +00:00
Andrew Innes a5352d98bb (ROUND_UP):
(ROUND_DOWN): New macros.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(init_heap): New extern.
(data_region_size):
(recreate_heap):
(read_in_bss):
(map_in_heap):
(round_to_next):
(w32_fatal_reload_error):
(get_section_size): Obsolete externs removed.
1999-01-17 19:23:52 +00:00
Andrew Innes 30d2b1c27b (RVA_TO_PTR): Redefine to convert RVA to address in
current process.
(round_to_next): Obsolete function removed.
(preload_heap_section): New variable.
(data_region_size): Obsolete variable removed.
(allocate_heap): Modified to determine end of static heap section
used during preload, and use that as initial base address for
dynamic heap instead of hard-coded value.
(sbrk): Remove call to allocate_heap; handled by init_heap.  Skip
calls to commit or decommit pages when allocating from static heap
section during preload.
(recreate_heap): Obsolete function removed.
(init_heap): New function to initialize internal sbrk heap
variables.  Uses static heap section during preload, otherwise
calls allocate_heap to reserve a heap region dynamically.
(round_heap): Use ROUND_UP macro instead of round_to_next.
1999-01-17 19:22:55 +00:00
Andrew Innes 5b79dba5b9 Major rewrite to support cleaner method of dumping; a
static "bss" section is used for heap space during preload, and
bss data is now written to the proper section area when dumping.
(need_to_recreate_heap): Renamed to using_dynamic_heap.
(heap_index_in_executable): Obsolete variable removed.
(data_section): New variable.
(data_start_va): Renamed to data_start.
(data_start_file): Obsolete variable removed.
(bss_section):
(extra_bss_size):
(bss_section_static):
(bss_start_static):
(bss_size_static):
(extra_bss_size_static):
(heap_section): New variables.
(_start): Remove code based on old unexec method.  Call init_heap
to initialize sbrk heap.
(close_file_data): Update size of file when closing, so that
unexec doesn't have to work out exact size in advance.
(get_bss_info_from_map_file):
(get_section_size): Obsolete functions removed.
(rva_to_section): Fix minor bug, and add a work-around for a bug
in very old linkers.
(offset_to_section):
(relocate_offset): New functions.
(OFFSET_TO_RVA):
(RVA_TO_OFFSET):
(RVA_TO_SECTION_OFFSET):
(PTR_TO_RVA):
(PTR_TO_OFFSET):
(OFFSET_TO_PTR): New macros.
(get_section_info): Modify to support new unexec method;
determines address ranges in process that need dumping, and COFF
sections where data will be dumped.  Allows for static and global
bss data to be in separate ranges.  No longer relies on knowledge
of section names.
(copy_executable_and_dump_data_section): Renamed
copy_executable_and_dump_data.  Completely rewritten to copy
executable section by section, so that raw data areas can be
expanded to hold dumped data as necessary.  Allows for bss data to
be in same section as initialized data.  Reduces size of static
heap section to that used during preload.
(dump_bss_and_heap):
(w32_fatal_reload_error):
(read_in_bss):
(map_in_heap): Obsolete functions removed.
(unexec): Rounds off preload heap to nearest page rather than
virtual allocation unit.  Modified to match other changes.
1999-01-17 19:21:24 +00:00
Andrew Innes 3bc2366f3c (get_lim_data): Use reserved_heap_size instead of
data_region_size.
1999-01-17 19:18:38 +00:00
Andrew Innes ea01f00222 (TEMACS_TMP): New macro.
($(TEMACS)): Output to TEMACS_TMP from link, use post-link
processor to add static heap section in support of new unexec.
1999-01-17 19:17:43 +00:00
Andrew Innes cfe8de4370 Include config.h to pick up data layout pragmas.
[WINDOWSNT]: Remove explicit pragma.
1999-01-17 19:16:08 +00:00
Kenichi Handa 55ab7be3ac (Fdecode_sjis_char): Decode Japanese Katakana character
correctly.
(Fencode_sjis_char): Encode Japanese Katakana character correctly.
1999-01-14 01:20:35 +00:00
Dave Love f07f4a2430 (syms_of_coding): Doc fix for inhibit-eol-conversion. 1999-01-11 21:21:03 +00:00
Richard M. Stallman 9b942ebd48 (find_handler_clause): If SIG is nil (memory full error),
never run the debugger, and don't bother checking the args
to see whether the debugger should be run.
1999-01-11 18:09:31 +00:00
Richard M. Stallman c700c260e6 (read_key_sequence): In key-translation-map and
function-key-map, handle symbol with array as fn def.
In function-key-map, handle symbol with keymap as fn def,
and autoloaded definitions.
1999-01-11 15:30:06 +00:00
Richard M. Stallman bbd25f47ef (BASE_PURESIZE): Increment to 500000. 1999-01-11 15:27:08 +00:00
Richard M. Stallman d9c21094c7 (Qtemp_buffer_setup_hook): New variable.
(syms_of_print): Init and staticpro that.
(temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
1999-01-11 15:26:11 +00:00
Kenichi Handa 9c36993afd (del_range_1): Call signal_after_change.
(del_range_byte): Likewise.
(del_range_both): Likewise.
(del_range_2): Don't call signal_after_change.
1999-01-11 11:42:52 +00:00
Kenichi Handa a45dc86eeb (message_dolog): Use insert_1_both to avoid running any
Lisp code here.
1999-01-11 11:42:52 +00:00
Richard M. Stallman 41857307a6 (Frequire): Don't fail to unbind bindings. 1999-01-06 23:55:31 +00:00
Richard M. Stallman e83f6bb074 (read_key_sequence): Tell get_keyelt to look handle autoloads.
Handle symbols defined as keymaps, and autoloaded keymaps.
1999-01-06 23:54:44 +00:00
Richard M. Stallman 5ffaf437c9 (search_buffer): Fix previous change. 1999-01-06 22:46:20 +00:00
Eli Zaretskii 0265f89f7c (set_clipboard_data): Terminate the text with a null
character.  Don't allow to put binary data into the clipboard.
Return zero in case of success, 1 or 2 otherwise.
(get_clipboard_data): Only bail out if the null character is in
the last 32-byte chunk of clipboard data
(Fw16_set_clipboard_data): Make ok and put_status be unsigned.  If
they save binary data, print a message in the echo area saying the
text was not put into the clipboard.
1999-01-06 10:14:25 +00:00
Eli Zaretskii 52d38ab2d9 (IT_write_glyphs): Move constant expression out of the loop. 1999-01-06 10:08:24 +00:00
Andreas Schwab 55a2e19e03 [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
_BSD_SOURCE, the latter is always defined.
1999-01-04 12:10:38 +00:00
Richard M. Stallman c782ad7a64 Delete #if 0 old definitions. 1999-01-03 16:36:41 +00:00
Richard M. Stallman 0f5c40c7b0 (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit. 1999-01-02 21:53:05 +00:00
Richard M. Stallman 38f02ede3f (Ffind_charset_region): Fix doc typo. 1999-01-02 20:00:29 +00:00
Richard M. Stallman 759860a6af In each active map, for each menu bar item, use only the first submap.
(menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
(menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
(syms_of_keyboard): Staticpro and init it.
1999-01-02 00:11:36 +00:00
Richard M. Stallman e0a6ee5e19 [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it. 1999-01-02 00:10:53 +00:00
Richard M. Stallman 81d492d5da (MMAP_MAX_AREAS): New macro.
(allocate_vectorlike, make_uninit_multibyte_string): Use that.
(init_alloc_once): Use that.
1999-01-02 00:10:26 +00:00
Eli Zaretskii aff4381d9a (IT_write_glyphs): Convert unibyte characters to
multibyte in unibyte buffers only.
1998-12-31 16:32:53 +00:00
Eli Zaretskii 7f8f0e6709 (Fdefine_prefix_command): Accept a third argument NAME
and pass it to Fmake_sparse_keymap.
1998-12-31 13:16:45 +00:00
Richard M. Stallman ba5c004d4b (re_compile_fastmap): Do something similar to the
previous change, for charset_not, wordchar, notwordchar,
categoryspec, notcategoryspec.
1998-12-30 20:44:39 +00:00
Richard M. Stallman c8099634a0 (lisp_malloc, lisp_free): New functions.
Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
(n_interval_blocks, n_float_blocks): New variable.
(n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
(n_marker_blocks, n_string_blocks): New variable.
(init_intervals, make_interval): Set a count variable.
Use lisp_malloc instead of setting allocating_for_lisp.
(init_float, make_float, init_cons, Fcons): Likewise.
(allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
(init_marker, allocate_misc, init_strings): Likewise.
(make_uninit_multibyte_string): Likewise.
(gc_sweep, compact_strings): Decrement the count variables.

(uninterrupt_malloc): Don't store Emacs's hooks
into the old_..._hook variables.
1998-12-30 01:07:49 +00:00
Richard M. Stallman bf7f4e9066 (main): Call memory_warnings and uninterrupt_malloc
even when starting the dumped Emacs.
1998-12-29 22:53:54 +00:00
Richard M. Stallman 5c9c2c3f33 (Fsingle_key_description): Handle (control ?x) etc.
(Fkey_description): Handle lists like vectors.
1998-12-29 22:53:25 +00:00
Andrew Innes 4934bcddb3 (x_iconify_frame): Wait for frame to be iconified; do
not set async_iconified flag though.
1998-12-28 19:43:05 +00:00
Andrew Innes 3ef68e6be2 (w32_msg_pump): Ignore WM_NULL message posted to thread
by complete_deferred_msg.
(post_character_message): Cancel all deferred messages when
quit_char is typed, in order to break out of potential deadlocks.
(cancel_all_deferred_msgs): New function.
(complete_deferred_msg): Don't abort if msg not found; may have
been cancelled.

(Fw32_reconstruct_hot_key): Use pre-interned symbols.

(Fw32_send_sys_command): Wait for system command to
complete before returning.
1998-12-28 19:42:26 +00:00
Andrew Innes 82e7c0a907 (Vw32_start_process_inherit_error_mode): New variable.
(create_child): Use it.
(syms_of_ntproc): Defvar it.  Also fix docstrings for
w32-start-process-share-console and w32-start-process-show-window.
1998-12-28 19:33:57 +00:00
Andrew Innes 467af476c1 (_start): Force system calls accessing unmounted devices to fail
without prompting.
1998-12-28 19:28:19 +00:00
Kenichi Handa b8ba7b4e76 (read_char): Don't bind
input-method-exit-on-first-char.
1998-12-22 06:06:48 +00:00
Kenichi Handa 562e4a4f61 (Fcall_interactively) <'C'>: Give Fread_char Qnil
because of the change of the second argument of Fread_char.
1998-12-22 06:06:48 +00:00
Kenichi Handa fc351d2f65 (Fread_char): Change the meaning of the second argument.
(Fread_event): Likewise.
(Fread_char_exclusive): Likewise.
1998-12-22 06:06:48 +00:00
Kenichi Handa e6e114f231 (Fcharset_after): Check range. If POS is out of
range, return nil.
1998-12-22 06:06:48 +00:00
Kenichi Handa 9a4d01d85c (printchar): Fix previous change. 1998-12-22 06:06:48 +00:00
Kenichi Handa 51c6067d9b (read_process_output): Decide the multibyteness of
string given to a process filter by a coding system used for
decoding the process output.
1998-12-22 06:06:48 +00:00
Eli Zaretskii 8cbf107d58 (copy_text, count_size_as_multibyte): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:13:57 +00:00
Eli Zaretskii 543b4f618f (unibyte_char_to_multibyte): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:12:53 +00:00
Eli Zaretskii f9638719e2 (concat): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:11:47 +00:00
Eli Zaretskii f0dd4c3524 (IT_write_glyphs): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:10:52 +00:00
Eli Zaretskii 3e1f7d51ce (dumpglyphs): Don't convert 7-bit ASCII characters via
nonascii-translation-table.
1998-12-21 16:09:29 +00:00
Andreas Schwab a3cec380f5 (Fdocumentation): Change the doc string for prefix
commands to make it a complete sentence in one line.
1998-12-21 09:59:30 +00:00
Karl Heuer ca49396408 (TIOCSIGSEND): Don't define this if irix6.
(bcopy, bcmp, bzero): Likewise.
1998-12-16 21:46:44 +00:00
Karl Heuer 808903abdd Initial revision 1998-12-16 21:45:24 +00:00
Karl Heuer b71689771d (IRIX6): Define this symbol. 1998-12-16 21:44:28 +00:00
Karl Heuer a6851a5bab (LIBS_MACHINE): Leave this blank if irix6.5.
(C_SWITCH_MACHINE): New value for irix6.5.
1998-12-16 21:43:35 +00:00
Karl Heuer 8c21764540 (Fbase64_decode_region, Fbase64_decode_string):
Do free malloc'd memory even in case of failure.
Use xfree, not free.
(Fbase64_encode_region, Fbase64_encode_string):
Use xfree, not free.
(base64_decode_1): Don't fail for short lines.
1998-12-16 06:32:39 +00:00
Kenichi Handa d366d2e41b (printchar): Outputting multibyte characters
to echo area always makes it multibyte.
1998-12-15 10:41:44 +00:00
Kenichi Handa c7e3eb8b1b (printchar): Cancel previous change. 1998-12-15 10:38:40 +00:00
Kenichi Handa edf496dd13 Include "ccl.h".
(Fcall_process): Doc-string modified.  Set CODING_MODE_LAST_BLOCK
bit in argument_coding.mode to tell encoding procedure to flush
data.  While encoding arguments, if argument_coding uses CCL
program, initialize it again after encoding.
(Fcall_process_region): Doc-string modified.  Handle the case that
NARGS is 3.
1998-12-15 04:35:38 +00:00
Kenichi Handa ad3d1b1d67 (CCL_SUCCESS): Don't set ccl->ic.
(ccl_driver) <CCL_End>: Pretend that all source text is consumed.
Set `ic' to the head of this command.
(ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
code for an invalid code.
(setup_ccl_program): If the arg VEC is nil, skip setting ups
based on VEC.
1998-12-15 04:35:38 +00:00
Kenichi Handa 0282eb6915 (Qunknown): New variable.
(init_charset_once): Intern and staticpro Qunknown.  Initialize
all elements of Vcharset_symbol_table to Qunknown.
(find_charset_in_str): New arg MULTIBYTE.  If it is zero, check
unibyte characters only.  For an invalid composition sequence, set
CHARSETS[1] to 1.
(Ffind_charset_region): Call find_charset_in_str with an
appropriate MULTIBYTE arg.  If undefined charsets are found,
include `unknown' is the return value.
(Ffind_charset_string): Likewise.
(Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
(str_cmpchar_id): Max composite character code should be less than
GENERIC_COMPOSITION_CHAR.
1998-12-15 04:35:38 +00:00
Kenichi Handa 8c5b01cc4b (find_charset_in_str): Update declaration. 1998-12-15 04:35:38 +00:00
Kenichi Handa 944bd42004 (DECODE_DESIGNATION): Jump to label_invalid_code if
final_char is invalid.
(decode_coding): If coding->type is coding_type_ccl, call
ccl_coding_driver even if SRC_BYTES is zero.
(code_convert_region): Update `inserted' correctly after calling
coding->post_read_conversion.  Even after the code converter
consumed all source text, call it once more if it is
coding_type_ccl to flush out data.
1998-12-15 04:35:38 +00:00
Kenichi Handa 02a08df0ab (printchar): When outputting a multibyte character to
echo area, always set message_enable_multibyte to 1.
1998-12-15 04:35:38 +00:00
Kenichi Handa de7fbd0989 (read_process_output): If NBYTES is zero and
CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
and try decoding again.
(Fprocess_send_eof): If the coding system of PROCESS
requires flushing, call send_process with null-string at first.
1998-12-15 04:35:38 +00:00
Kenichi Handa c91beee236 (Finsert_file_contents): Even if INSERTED is zero, if
CODING is handled by CCL program, call code_convert_region.
1998-12-15 04:35:38 +00:00
Kenichi Handa 67bfe42d76 (string_char_to_byte): Handle invalid multibyte sequence
correctly.
(string_byte_to_char): Likesize.
1998-12-15 04:35:38 +00:00
Kenichi Handa 040272ceb2 (search_buffer): Don't use Boyer-Moore
to search for an invalid multibyte code.
In unibyte case, no need to check whether there are translations
in more than one charset; just set charset_base to 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 42912be360 (Fw16_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 2798f18161 (Fw32_set_clipboard_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Kenichi Handa 666273c2f0 (lisp_data_to_selection_data): Call find_charset_in_str
with MULTIBYTE arg 0.
1998-12-15 04:35:38 +00:00
Geoff Voelker dabe36a823 (LOCALTIME_CACHE): Define. 1998-12-10 06:41:00 +00:00
Geoff Voelker 4f8ac0b2d6 (w32_get_long_filename): Handle root dirs correctly. 1998-12-10 05:43:07 +00:00
Karl Heuer b283f79ec7 Doc fixes. 1998-12-10 04:25:07 +00:00
Karl Heuer 4468c4f1cf (insert_from_buffer_1): Properly count the size
of output from conversion to multibyte even when input
is split across the gap.
1998-12-10 03:19:37 +00:00
Karl Heuer d18b62f211 (re_compile_fastmap): For anychar, set all fastmap
elements for all possible unibyte chars (except newline).
1998-12-10 03:09:12 +00:00
Karl Heuer 620e6ddb8c (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space. 1998-12-10 02:52:20 +00:00
Geoff Voelker c0ca703bd4 (Fw32_get_clipboard_data): Do not delete isolated CR
characters, only convert CRLF to LF.
1998-12-09 00:03:09 +00:00
Geoff Voelker 9c148db6a3 Do string comparision of _NMAKE_VER. 1998-12-08 23:56:14 +00:00
Eli Zaretskii aa9ce93672 (Vdos_unsupported_char_glyph): New variable.
(syms_of_msdos): DEFVAR_LISP it.
(IT_insert_glyphs, IT_delete_glyphs): New functions which abort
Emacs.
(internal_terminal_init): Set up insert_glyphs_hook and
delete_glyphs_hook to call them.  Explicitly set char_ins_del_ok
to 0.
(unibyte_display_via_language_environment): New variable.
(syms_of_msdos): Devfar it.
(IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
Encode the character codes of the glyphs according to the
terminal_coding in effect.
1998-12-06 15:57:48 +00:00
Eli Zaretskii d24422702f (msdos.o): Depend on termchar.h, charset.h, coding.h, and disptab.h 1998-12-06 15:55:59 +00:00
Andreas Schwab c3161ec382 (Fstring_as_unibyte): Doc fix. 1998-12-04 09:50:31 +00:00
Eli Zaretskii 06b1ea1321 (init_environment): Record the time we started up.
(IT_reset_terminal_modes): Don't restore the screen if we exit too
fast after startup (aka crash).
1998-12-03 09:41:48 +00:00
Eli Zaretskii 6f855d6452 (dos_cleanup): Flush and fsync the termscript stream. 1998-12-03 09:41:09 +00:00
Andreas Schwab c2d1e590cf Declare char_valid_p. 1998-12-03 09:22:52 +00:00
Geoff Voelker a0b9c8385f (check_windows_init_file): Use decode_env_path when
using EMACSLOADPATH.
1998-12-03 03:14:46 +00:00
Geoff Voelker 19589637fa (FONT_MAX_WIDTH): New macro. 1998-12-03 00:06:26 +00:00
Geoff Voelker feba565d2a (dumpglyphs): Use unsigned char arrays.
Use FONT_MAX_WIDTH to detect and fudge proportional fonts
for various languages.
Compensate for fonts that have underhangs (e.g., Thai).
1998-12-03 00:06:03 +00:00
Geoff Voelker 93066bc2ab (WM_EMACS_TOGGLE_LOCK_KEY): New define. 1998-12-02 23:54:30 +00:00
Geoff Voelker 9ddef9c4de (key_event): Use Vw32_phantom_key_code. Undo the
mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
(w32_console_toggle_lock_key): New function.
1998-12-02 23:54:14 +00:00
Geoff Voelker adcc38092f (Vw32_phantom_key_code): New variable.
(Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New
variables.
(syms_of_w32fns): Init and register them.
(reset_modifiers): Use a more precise test for whether Emacs has
keyboard focus.  Synchronize state of all keys that can be used as
modifiers, to overcome problems arising from hot-keys.
(w32_key_to_modifier): Be careful not to call intern() to avoid
requiring thread synchronization.
(w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
(w32_wnd_proc): Ensure lock key indicator lights are updated
promptly on Windows 9x, by passing key events on to the system.
(w32_wnd_proc): Use Vw32_phantom_key_code to stop system
responding to Windows key events when not wanted.
(w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
Ctrl-NumLock into pause by the system.
(w32_wnd_proc): Don't translate key combinations containing any
modifiers other than shift (and capslock).
(w32_wnd_proc): Reset modifier key states when receiving focus (we
can't determine the key states until we have keyboard focus).
(Fw32_toggle_lock_key): New function.
(syms_of_w32fns): Defsubr it.
1998-12-02 23:52:47 +00:00
Geoff Voelker 83c75055bc (w32_last_error): Fix cut+paste error. 1998-12-02 23:00:29 +00:00
Geoff Voelker dba46b7c5d termhooks.h (event_kind) [WINDOWSNT]: Define
language_change_event.
1998-12-02 23:00:14 +00:00
Geoff Voelker 501d50943c (parse_modifiers): Declare prototype. 1998-12-02 23:00:02 +00:00
Geoff Voelker 1161d3675c (Qlanguage_change): New variable.
(syms_of_keyboard): Init it.
(kbd_buffer_get_event) [WINDOWSNT]: Generate language-change
events.
(lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
keys; add name for Escape key; extend to 256 elements.
(parse_modifiers): Make non-static.
1998-12-02 22:59:11 +00:00
Richard M. Stallman 2cbebefb27 (Qouter_window_id): New variable.
(syms_of_xfns): Initialize it.
(x_report_frame_params): Set up outer-window-id parameter.
1998-12-02 18:06:37 +00:00
Richard M. Stallman 9160906f27 (Freplace_match): Set OPOINT clearly for the case
where point is in the middle of the text to be replaced.
1998-12-01 05:17:11 +00:00
Richard M. Stallman ffa286a2aa (display_text_line): When handling HPOS < 0 after loop,
if compute_motion fails to advance at all, don't back it up.
1998-11-30 06:35:33 +00:00
Richard M. Stallman f49770515b (Fsingle_key_description): Fix previous change. 1998-11-28 22:16:09 +00:00
Richard M. Stallman f4e09ae710 (Fstring_as_unibyte, Fstring_as_multibyte):
Clear text properties in the new string.
1998-11-27 22:15:38 +00:00
Kenichi Handa 6f39b7c89b (Frequire): Update declaration. 1998-11-26 08:37:32 +00:00
Kenichi Handa 9b0ca86943 (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
if the charset is ascii.
(ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
1998-11-26 08:12:12 +00:00
Kenichi Handa 8ac5a9ccbe (non_ascii_char_to_string): If C has modifier bits,
make an appropriate one byte string.
(char_bytes): Handle the case that C is a single byte char or has
modifier bits.
1998-11-26 08:12:12 +00:00
Kenichi Handa 43229ac34b (CHAR_BYTES): If C has modifier bits, return 1. 1998-11-26 08:12:12 +00:00
Kenichi Handa 741263c22b (internal_self_insert): If C has modifier bits, insert
appropriate one byte char.
1998-11-26 08:12:12 +00:00
Richard M. Stallman 1741e72de6 (read_process_output): Call signal_after_change. 1998-11-25 01:26:56 +00:00
Richard M. Stallman 9ebc22d43e (syms_of_buffer): Doc fix. 1998-11-24 09:01:32 +00:00
Richard M. Stallman 307958d6cb (syms_of_keyboard): Doc fix. 1998-11-24 08:56:27 +00:00
Richard M. Stallman 69eca94c24 (Fmake_keymap): Doc fix. 1998-11-24 04:55:16 +00:00
Kenichi Handa 9a64297c67 (word_boundary_p): If C1 or C2 are composite
characters, test their first components.
1998-11-24 03:52:08 +00:00
Richard M. Stallman e84ffeec07 (Fset_mouse_position): Doc fix. 1998-11-22 17:23:36 +00:00
Richard M. Stallman 47a18cef7c (Fsingle_key_description): Handle generic characters. 1998-11-19 04:30:14 +00:00
Richard M. Stallman 53d5acf5c1 (Frequire): New arg NOERROR. 1998-11-19 04:26:44 +00:00
Richard M. Stallman ff83dbb19a (Qmouse_face): Replace definition with extern decl.
(syms_of_xfaces): Initialization deleted.
1998-11-18 01:40:17 +00:00
Richard M. Stallman 69bb837eb5 (Qmouse_face): Variable definition moved here.
(syms_of_textprop): Initialize it.
1998-11-18 01:38:14 +00:00
Richard M. Stallman 65a04b969d (temp_output_buffer_show): Around temp-buffer-show-hook,
don't do save-excursion, just restore selected window.

(window_loop): For UNSHOW_BUFFER, always do consider minibuffer windows.
1998-11-17 16:27:02 +00:00
Kenichi Handa 6185c1c05b (CHAR_TABLE_REF): Check if IDX is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa da63a5fee1 (non_ascii_char_to_string): If C is negative, signal error. 1998-11-16 06:26:27 +00:00
Kenichi Handa 72b718d765 (SINGLE_BYTE_CHAR_P): Check if C is negative or not. 1998-11-16 06:26:27 +00:00
Kenichi Handa 9ced2cfe0a Initial revision 1998-11-16 06:26:03 +00:00
Kenichi Handa 9192a0270d Include charset.h. 1998-11-16 01:17:06 +00:00
Kenichi Handa 94c02a5e1a (abbrev.o): Depend on charset.h
(bytecode.o): Depend on charset.h.
1998-11-16 01:17:06 +00:00
Kenichi Handa 0b58a513d9 (SYNTAX_ENTRY_INT): For a composite character, check
the first component.
1998-11-16 01:17:06 +00:00
Karl Heuer 3ec46dba9a (LIBS_MACHINE): Delete redundant definition. 1998-11-13 23:27:33 +00:00
Karl Heuer a00e91cd76 (XTread_socket): Fix previous change in case F == 0. 1998-11-12 01:57:30 +00:00
Karl Heuer 9f641ce742 Initial revision 1998-11-11 19:01:02 +00:00
Karl Heuer 6d9fac3ecd (BSD_PGRPS): Add #undef. 1998-11-11 18:58:45 +00:00
Karl Heuer b12576db33 (BROKEN_FIONREAD): #undef commented out.
(INTERRUPT_INPUT): #define commented out.
1998-11-11 18:53:50 +00:00
Eli Zaretskii 4b2e75e6ad (MAX_ALLOCA): New macro.
(Fbase64_encode_region, Fbase64_encode_string,
Fbase64_decode_region, Fbase64_decode_string):  Don't allocate
more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
1998-11-11 11:12:09 +00:00
Kenichi Handa ea12aa2bf9 (byte_combining_error): Error message improved. 1998-11-11 10:37:09 +00:00
Kenichi Handa 32278fd599 (char_valid_p): Handle a composite character correctly. 1998-11-11 10:31:24 +00:00
Kenichi Handa 9b4d1fe69d (str_cmpchar_id): Check the byte sequence for
composition more rigidly.
(Fcompose_string): Allow DEL to be composed.  Signal error if STR
contains an invalid multibyte sequence.
1998-11-11 03:36:15 +00:00
Kenichi Handa 861bf815f3 (x_list_fonts): Don't change the value of maxnames. 1998-11-11 03:36:15 +00:00
Geoff Voelker ccc2d29c56 (Vw32_pass_optional_keys_to_system): Variable removed.
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_enable_num_lock):
(Vw32_enable_caps_lock):
(Vw32_scroll_lock_modifier): New variables.
(modifier_set): Return toggle state for Scroll Lock.
(w32_key_to_modifier): New function.  Returns chosen modifier bit
for given key.
(w32_get_modifiers): Returns modifier flags for
non-keyboard input events.
(construct_console_modifiers): Renamed from construct_modifiers;
recognize Windows and Apps keys as modifiers.
(w32_get_key_modifiers): New function.  Returns modifier flags for
keyboard input events.
(map_keypad_keys): Make non-static.  Use second arg as extended
flag.
(w32_grabbed_keys): New variable.
(HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
(register_hot_keys):
(unregister_hot_keys):
(lookup_vk_code):
(w32_parse_hot_key):
(Fw32_register_hot_key):
(Fw32_unregister_hot_key):
(Fw32_registered_hot_keys):
(Fw32_reconstruct_hot_key): New functions to support hotkeys.
(post_character_message): New function.
(w32_msg_pump): Handle new messages for using hotkeys and changing
keyboard layout/language.
(w32_wnd_proc): Major rework of keyboard input handling:
optionally recognize Windows keys and Apps key as modifiers;
optionally treat NumLock, CapsLock and ScrollLock as function
keys; let system translate keystrokes to characters to avoid
system bugs relating to dead-key handling; preserve shift
distinction for control characters; forward keyboard
layout/language changes to lisp; detect and convert hot-key events
to normal keystrokes.
(syms_of_w32fns): Register new functions and variables.
(w32_last_error): New function for use in debugging.
1998-11-10 20:54:46 +00:00
Geoff Voelker f791da1d45 ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
and w32heap.h.
1998-11-10 20:54:31 +00:00
Geoff Voelker 29a2c30ff6 Include w32term.h and w32heap.h.
(map_keypad_keys):
(Vw32_enable_caps_lock):
(Vw32_enable_num_lock):
(Vw32_pass_lwindow_to_system):
(Vw32_pass_rwindow_to_system):
(Vw32_lwindow_modifier):
(Vw32_rwindow_modifier):
(Vw32_apps_modifier):
(Vw32_scroll_lock_modifier):
(w32_key_to_modifier): Add externs.
(w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
Scroll Lock as potential modifiers; exclude numpad keys from
effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
code.
(is_dead_key): Copy from w32fns.c.
(w32_kbd_patch_key): Comment attempt to improve handling of
dead-keys, and system bug relating to same on Windows NT.  Work
around the bug by calling ToUnicode and then converting to the
correct codepage.
(map_virt_key): Removed obsolete variable.
(lispy_function_keys): Add extern.
(key_event): Major rework of keyboard input handling: optionally
recognize Windows keys and Apps key as modifiers; optionally treat
NumLock, CapsLock and ScrollLock as function keys; let system
translate keystrokes to characters to avoid system bugs relating
to dead-key handling; preserve shift distinction for control
characters.  Remove some obsolete code.
1998-11-10 20:52:20 +00:00
Geoff Voelker 0eaf592609 (sys_kill): Set extended key flag when faking
Ctrl-Break keystrokes.
(Fw32_get_locale_info): Allow LONGFORM parameter to specify an
arbitrary locale property using a numerical index.
(Vw32_valid_codepages): New variable.
(enum_codepage_fn):
(Fw32_get_valid_codepages):
(Fw32_get_console_codepage):
(Fw32_set_console_codepage):
(Fw32_get_console_output_codepage):
(Fw32_set_console_output_codepage):
(Fw32_get_codepage_charset):
(Fw32_get_valid_keyboard_layouts):
(Fw32_get_keyboard_layout):
(Fw32_set_keyboard_layout): New functions, exposing Windows locale
handling functions.
(syms_of_ntproc): Register them.
1998-11-10 20:50:40 +00:00
Geoff Voelker f98169a023 (convert_to_key_event): Removed.
(is_dead_key): Copied to w32fns.c.
(w32_read_socket): Generate language_change_event.  Modify to work
with keyboard handling changes in w32_wnd_proc.
1998-11-10 20:50:08 +00:00
Geoff Voelker bb35543459 (struct w32_display_info): New element faked_key.
(WM_EMACS_SETKEYBOARDLAYOUT):
(WM_EMACS_REGISTER_HOT_KEY):
(WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
(LEFT_WIN_PRESSED):
(RIGHT_WIN_PRESSED):
(APPS_PRESSED): New console keyboard modifier flags.
1998-11-10 20:49:30 +00:00
Karl Heuer 3583e969a4 (regex_compile): Handle translation of multibyte
exact-match characters.
1998-11-10 07:03:05 +00:00
Kenichi Handa c61bca6a28 (CATEGORY_SET): Adjusted for the change of cmpchar_component.
(CATEGORY_SET): Likewise.
1998-11-10 00:24:40 +00:00
Kenichi Handa de54b0d5ec (cmpchar_component): New arg NOERROR. Check
composition char ID more strictly.
(Fcmpchar_component): Call cmpchar_component with NOERROR arg
zero.
(Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
return 255.
(Fcompose_string): Signal error if STR contains a rule-based
composition character.
1998-11-10 00:24:40 +00:00
Kenichi Handa cf36cf3f21 (cmpchar_component): Proto-type adjusted. 1998-11-10 00:24:40 +00:00
Kenichi Handa 1dca54f61e (string_to_non_ascii_char): Return correct length for
a charset of dimension 2 and composition character.
1998-11-09 07:06:11 +00:00
Karl Heuer 31cd7d0079 (Fprocess_status): Doc fix. 1998-11-07 16:55:41 +00:00
Kenichi Handa 6038393415 (init_charset_once): Fix previous change. 1998-11-07 01:42:20 +00:00
Kenichi Handa bb63e573a8 (string_to_non_ascii_char): Fix previous change.
(char_valid_p): The the validity of CHARSET by CHARSET_DEFINED_P.
1998-11-06 10:59:09 +00:00
Kenichi Handa dfd57aa70f (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
character correctly.
(STRING_CHAR): Handle an invalid charater correctly.
1998-11-06 10:59:09 +00:00
Kenichi Handa f35b0e56f0 (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte character. 1998-11-06 00:44:16 +00:00
Kenichi Handa d9d851ea28 (Fstring_to_char): Don't return a multibyte character
if STRING is a unibyte string.
1998-11-06 00:44:16 +00:00
Kenichi Handa a6c253264f (string_to_non_ascii_char): Fix previous change. 1998-11-06 00:44:16 +00:00
Kenichi Handa d6127b83e3 (MAKE_NON_ASCII_CHAR): Check validity of CHARSET. 1998-11-06 00:44:16 +00:00
Kenichi Handa a688bb2444 (display_text_line): Check validity of a multibyte
character.
(display_string): Likewise.  Handle an invalid character
correctly.
1998-11-06 00:44:16 +00:00
Karl Heuer 101e446fa0 (Fcombine_after_change_execute): Return nil, not junk.
If nothing to do, return immediately.
(syms_of_insdel): Initialize combine_after_change_buffer.
1998-11-05 20:06:22 +00:00
Karl Heuer edad46f664 (XTread_socket): ButtonPress clears f->mouse_moved. 1998-11-05 19:17:42 +00:00
Geoff Voelker 484fa2c1ec (w32_enable_unicode_output): Rename from
w32_no_unicode_output.
(w32_use_unicode_for_codepage, syms_of_w32term): Use new name
and new semantics.
1998-11-04 23:42:04 +00:00
Geoff Voelker bc6af9357c (dumpglyphs): Use FRAME_FONT for w32_fill_area. 1998-11-04 23:38:42 +00:00
Geoff Voelker 396594fed9 (w32_list_fonts): Report an error if a frame has not
been created yet.
1998-11-04 23:38:19 +00:00
Kenichi Handa fbddb98df1 Initial revision 1998-11-04 10:54:59 +00:00
Kenichi Handa a4165c918b (do_switch_frame): Cancel previous change. 1998-11-04 10:53:14 +00:00
Kenichi Handa da1ad4e741 (print_string): Check validity of a character.
(print): Likewise.
1998-11-04 10:53:14 +00:00
Kenichi Handa 6a0d0ed308 [nec_ews_svr4]: Extern *_sobuf. 1998-11-04 10:53:14 +00:00
Kenichi Handa 6ef23ebb48 (string_to_non_ascii_char): Change the check for the
varidity of multibyte form.
(update_charset_table): Check validity of BYTES.  Don't set
bytes_by_char_head here.
(init_charset_once): Set bytes_by_char_head completely.
1998-11-04 10:48:53 +00:00
Geoff Voelker c654fd9e7d Compile multiple source files when possible. 1998-11-04 01:28:57 +00:00
Geoff Voelker f2b56a5d96 (Qmouse_face): Replace definition with extern decl. 1998-11-04 01:26:24 +00:00
Andrew Innes 01f31dfb5f (stat): GetFileInformationByHandle can legitimately fail, so don't
rely on it succeeding.
1998-11-03 22:39:04 +00:00
Andrew Innes 1a292d24f1 (x_to_w32_font): Specify DEFAULT_CHARSET in the w32 LOGFONT struct if
x font doesn't specify the charset.

(x_to_w32_charset): Change >= to == when testing results of stricmp.
1998-11-03 22:21:58 +00:00
Geoff Voelker 4488d7e15c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo. 1998-11-03 02:26:21 +00:00
Richard M. Stallman 33fa85e042 (set_internal): For built-in maybe-local vars,
when BINDFLAG is set, do not mark them as local.
1998-10-31 23:39:42 +00:00
Kenichi Handa b80f1b20d3 (replace_range): Fix previous change. 1998-10-31 05:24:11 +00:00
Kenichi Handa 33a2d2a074 (do_switch_frame): Update minibuf_window if necessary. 1998-10-31 05:12:07 +00:00
Kenichi Handa 039af53ac4 (byte_combining_error): New function.
(CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
(insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Check the posibility of inhibitted byte
combining correctly.
(replace_range): Before signaling an error for inhibitted byte
combining, recover the buffer in a safe state.
(del_range_2): Check the posibility of inhibitted byte combining
correctly.
1998-10-31 05:12:07 +00:00
Kenichi Handa 48839d2ed7 (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-31 05:12:07 +00:00
Kenichi Handa 922dfd866f (Fbase64_decode_region): Fix previous change.
n
1998-10-31 05:12:07 +00:00
Andreas Schwab aac77ff120 (Vselection_coding_system): Doc fix. 1998-10-30 10:21:58 +00:00
Andreas Schwab 8b835738fd (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
when we have both char and byte position.  Fix type clashes.
1998-10-30 10:20:25 +00:00
Andreas Schwab 377127ce12 (Fsignal): Use a separate format string when passing
error message string to fatal, in case it contains %'s.
1998-10-30 10:14:50 +00:00
Andreas Schwab 3c52e568d6 (Fchar_after): Fix type clashes. 1998-10-30 10:13:41 +00:00
Andreas Schwab 60022cb712 (Fchar_bytes): Doc fix.
(char_bytes): Fix returned value to match returned type.
(syms_of_charset): Fix type clash in initialisation of
Vauto_fill_chars.
1998-10-30 10:13:36 +00:00
Geoff Voelker 938469f27d (initialize_w32_display): Use buffer coords
instead of buffer size (which may be larger than the window).
1998-10-30 04:22:31 +00:00
Geoff Voelker dbda5089c0 fileio.c (init_fileio_once): New function. 1998-10-30 03:49:09 +00:00
Geoff Voelker 680256a8be emacs.c (main): Invoke init_fileio_once. 1998-10-30 03:48:54 +00:00
Paul Eggert 1decb68022 (XTread_socket): Check the returned value of XmbLookupString more carefully. 1998-10-29 00:16:49 +00:00
Kenichi Handa 9f3ede3ccc (check_markers): Check if markers are at character
boundry.
(adjust_markers_for_insert): Fix previous change.
(count_combining_before): Don't limit the check at BEGV.
(count_combining_after): Don't limit the check at ZV.
(CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
(insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
(insert_from_string_1): Likewise.
(insert_from_buffer_1): Likewise.
(adjust_after_replace): Inhibit bytes combined across region
boundary.  Update end_unchanged correctly.
(replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT.  Update
end_unchanged correctly.
(del_range_2): Inhibit bytes combined across region boundary.
Update end_unchanged correctly.
1998-10-28 07:52:13 +00:00
Kenichi Handa 3f5409d35b (Fsubst_char_in_region): Fix previous change.
(Ftranslate_region): Fix previous change.
1998-10-28 07:52:13 +00:00
Kenichi Handa d14d03ac4a (DECODE_CHARACTER_ASCII): Check validity of inserted
code.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(DECODE_CHARACTER_DIMENSION2): Likewise.
(decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
1998-10-28 07:52:13 +00:00
Geoff Voelker 78859b8033 (Fset_message_beep): Recognize 'silent.
(w32_sys_ring_bell): Do nothing for the 'silent sound.
1998-10-28 05:48:12 +00:00
Geoff Voelker 93cbf229f9 (Vnext_selection_coding_system): New variable.
(syms_of_w32select): DEFVAR_LISP it.
(Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert multibyte strings.
(Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
non-nil.  Always convert a string that includes non-ASCII characters.
1998-10-28 03:50:07 +00:00
Geoff Voelker 96ef7d42fb (check_windows_init_file): Also look in load path specified
in environment.
1998-10-27 23:42:26 +00:00
Geoff Voelker 5d84dd8714 (w32_color_map_lookup): Remove duplicate definition. 1998-10-27 20:10:19 +00:00
Richard M. Stallman 46ac5b268d (Fbase64_decode_string): Doc fix.
(Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
Likewise.
1998-10-27 17:55:28 +00:00
Dave Love 15a9a50c39 (Fbase64_decode_region, Fbase64_encode_region): Fix
newline in doc string.
1998-10-27 10:39:24 +00:00
Kenichi Handa f6ecdae5b2 (adjust_after_replace): Correctly handle the case that
both byte combining before and byte combining after happen.
(replace_range): Likewise.
1998-10-27 03:54:13 +00:00
Kenichi Handa a3360ff915 (Fsubst_char_in_region): Correctly handle the case
that byte combining before happens.
(Ftranslate_region): Likewise.
1998-10-27 03:54:13 +00:00
Richard M. Stallman b413f89564 (Fformat): Increase buffer size for floating format. 1998-10-26 23:48:57 +00:00
Kenichi Handa 61a398eac8 (syms_of_category): Doc-string modified. 1998-10-26 08:00:11 +00:00
Kenichi Handa 0007bdd098 (code_convert_region): Kill the work buffer created by
pre-write-conversion.
1998-10-26 08:00:11 +00:00
Geoff Voelker 02062ac320 (main) [HAVE_NTGUI]: Invoke syms_of_fontset(). 1998-10-25 23:55:37 +00:00
Kenichi Handa 828f1ed318 (adjust_markers_for_insert): Adjust markers by taking
combined_before_bytes and combined_after_bytes into account.
(count_combining_after): Handle the case that LENGTH is zero.
(adjust_after_replace): Record deletion at correct buffer
position.  Handle the case that LEN is zero.
(replace_range): Record deletion at correct buffer position.
(del_range_2): Call adjust_makers_for_replace to adjust makers for
combined bytes.
1998-10-24 01:17:09 +00:00
Kenichi Handa 6abb9bd967 (code_convert_region): While preserving the orignal
point, pay attention to the byte combining problem.
1998-10-24 01:17:09 +00:00
Kenichi Handa 9b703a38c6 (Fbase64_decode_region): Pay attention to the byte
combining problem.
1998-10-24 01:17:09 +00:00
Richard M. Stallman 6e0fca1d84 (Fgarbage_collect): Block input around most of the function. 1998-10-22 01:53:38 +00:00
Kenichi Handa 9ebe6947ae (Fx_list_fonts): Access frame parameters throught
general macros.   Don't call x_list_font directory, instead call a
function set in list_fonts_func.
1998-10-21 11:50:56 +00:00
Kenichi Handa 3541bb8faa Include frame.h before fontset.h.
(list_fonts_func): Fix prototype.
1998-10-21 11:50:56 +00:00
Kenichi Handa 9625ce22ee (list_fonts_func): Fix prototype. 1998-10-21 11:50:56 +00:00
Kenichi Handa a1dfb88a16 Include frame.h before fontset.h. 1998-10-21 11:50:56 +00:00
Kenichi Handa e133c8fabc (setup_coding_system): Fix setting up
coding->spec.ccl.valid_codes for CCL based coding system.
(code_convert_region): Set point to FROM before inserting the
result of pre-write-funciton.  Preserve original point.
(code_convert_string): If coding->type is coding_type_ccl, do
conversion even if the length of conversion region is zero.
1998-10-21 11:50:56 +00:00
Geoff Voelker bbdf24fae2 (w32_use_unicode_for_codepage): Interpret w32_no_unicode_output properly.
(syms_of_w32term): Reference w32_no_unicode_output properly.
1998-10-20 22:34:50 +00:00
Geoff Voelker bd6bb5442f Include charset.h and fontset.h. 1998-10-20 22:16:48 +00:00
Geoff Voelker d82f9149cb Remove redundant font_info struct definition.
(Vx_pixel_size_width_font_regexp,
unibyte_display_via_language_environment): Declare variables.
(w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
Declare functions.
w32_output): New fields font_baseline and fontset.
(FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
1998-10-20 22:16:00 +00:00
Geoff Voelker cabb23bc0d Include fontset.h. Define codepage macros.
Add ENCODE_BIG5 macro from coding.c.
(w32_no_unicode_output): New variable.
(w32_codepage_for_charset, w32_use_unicode_for_codepage): New
functions.
(BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
(dumpglyphs): Rewrite based on xterm.c equivalent.
(x_new_font): Use functionality provided in fontset.c.
(x_new_fontset): New function based on the one in xterm.c.
(syms_of_w32term): Add w32-no-unicode-output flag.
1998-10-20 22:15:14 +00:00
Geoff Voelker 4587b02635 (Vx_pixel_size_width): New global variable.
(unibyte_display_via_language_environment): New global variable.
(x_set_font): Add support for setting fontsets.
(Fx_create_frame): Add check_w32(). Initialize fontsets.  Fix
font names to match xlfd-tight-regexp.
(w32_load_font): Rewrite based on x_load_font.
(x_to_w32_charset, w32_to_x_charset): Add character sets.  Use
`iso8859-1' rather than `ansi'.
(w32_to_x_font): Remove `-' from font name.  Remove the `-' off the
end. Move charset into `charset registry' field.
(enum_font_cb2): Check charsets match.  Include width in font list.

(w32_list_fonts): Rewrite based on x_list_fonts.
Moved from w32term.c to have access to enumfont_t struct.
(Fx_list_fonts): w32 specific version eliminated.  Include
`x-list-fonts.c'.
(w32_get_font_info, w32_query_font, w32_find_ccl_program): New
functions for fontset support - adapted from x_ equivalents.
(syms_of_w32fns): New lisp variables initialised.  Function
pointers for fontset.c set up.
1998-10-20 22:13:14 +00:00
Geoff Voelker 30a231e64d Update comments referring to obsolete structs.
(allocate_face, copy_face, face_eql, load_font,
Fpixmap_spec_p, free_frame_faces, new_computed_face,
frame_update_line_height, merge_faces, compute_base_face,
Fset_face_attribute_internal): Use fontset support based on xfaces.c.
1998-10-20 22:12:51 +00:00
Geoff Voelker 67c2a40ffd (w32fns.c): Add x-list-font.c to dependancies. 1998-10-20 22:12:38 +00:00
Richard M. Stallman f3be100fc2 (syms_of_syntax): Fix the setup of Qscan_error. 1998-10-20 20:56:18 +00:00
Eli Zaretskii 0c7bc1aabd (mouse_init): Reset the button press/release info of the mouse driver.
(mouse_preempted): New variable.
(dos_rawgetc): Don't generate mouse events if mouse is preempted.
(XMenuActivate): Preempt the mouse during menu-handling loop.
Release the current time slice while idling in the menu-handling
loop.  Leave the loop only if the user pressed, then released the
same button.  Discard all mouse events that are pending in the
event queue before exiting.
1998-10-20 14:25:38 +00:00
Kenichi Handa c1a08b4c81 (Vauto_fill_chars, Qauto_fill_chars): New variables.
(syms_of_charset): Staticpro and initialize Qauto_fill_chars.
Declare auto-fill-chars as a Lisp variable and initialize it.
1998-10-19 00:40:10 +00:00
Kenichi Handa 69535a4bd5 (Vauto_fill_chars): Extern it. 1998-10-19 00:40:10 +00:00
Kenichi Handa 01428933ec (internal_self_insert): Check Vauto_fill_chars. 1998-10-19 00:40:10 +00:00
Kenichi Handa 3742fe75f8 (casify_object): Use make_string instead of
make_specified_string to cope with byte-combining situation.
1998-10-17 01:58:01 +00:00
Kenichi Handa 174a4cbee1 (decode_coding_iso2022): Set coding->fake_multibyte to
1 when encountered with a code of the range 0x80..0x9F.
1998-10-17 01:58:01 +00:00
Eli Zaretskii 8a52365ce8 (Fcall_process): Use $TMPDIR instead of trying $TMP
and $TEMP, since the former is always set in msdos.c.
(Fcall_process_region): When looking for a place to put the
temporary files, check $TMPDIR as well.
1998-10-14 15:17:11 +00:00
Richard M. Stallman bbce7d721d (exec_sentinel, read_process_output):
Restore waiting_for_user_input_p after running Lisp code.
1998-10-14 14:36:33 +00:00
Richard M. Stallman 07ba902ebf (parse_menu_item): Avoid initialization for Lisp_Object.
(command_loop): Likewise.
1998-10-14 12:59:30 +00:00
Kenichi Handa 3019692c38 (adjust_markers_for_combining): This function deleted.
(adjust_markers_for_replace): Correctly adjust marker positions.
Don't record these adjustment because they were recorded already.
(combine_bytes): Don't adjust markers here.
1998-10-14 07:17:22 +00:00
Kenichi Handa 5e522af4f3 (Faset): Fix previous change. 1998-10-14 07:17:22 +00:00
Kenichi Handa 95b8aba74b (Ffillarray): Fix previous change. 1998-10-14 07:17:22 +00:00
Richard M. Stallman 4b37311e13 Fix previous change. 1998-10-13 23:54:54 +00:00
Richard M. Stallman 5744fa7c02 (Fdisplay_completion_list): Put on mouse-face properties. 1998-10-13 21:10:10 +00:00
Richard M. Stallman 82e6e5afd8 (Fclear_this_command_keys): New function.
(syms_of_keyboard): defsubr it.
1998-10-13 03:46:13 +00:00
Richard M. Stallman b80d5655b0 (Fexecute_kbd_macro): Set real_this_command. 1998-10-12 20:03:15 +00:00
Kenichi Handa 1c5c931ae0 (clear_string_char_byte_cache): Extern it. 1998-10-12 12:00:44 +00:00
Kenichi Handa 51520e8a2e (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions. 1998-10-12 12:00:44 +00:00
Kenichi Handa 020da46098 (Fstring): Call make_string instead of
make_string_from_bytes.
(Ffind_charset_region): Include `composition' in the returned list
if the region contains any composite characters.
(Ffind_charset_string): Include `composition' in the returned list
if the string contains any composite characters.
(find_charset_in_str): Handle CMPCHARP arg correctly.
1998-10-12 12:00:44 +00:00
Kenichi Handa 622fece532 (shrink_decoding_region): If a charset other than ascii
is initially designated to G0, don't shrink the region.
(shrink_encoding_region): Likewise.
1998-10-12 12:00:44 +00:00
Kenichi Handa dbda4aad56 (Faset): If ARRAY is a multibyte string, pay attention to
byte-combining situation.
1998-10-12 12:00:44 +00:00
Kenichi Handa 57247650fb (clear_string_char_byte_cache): New function.
(Ffillarray): Handle multibyte string correctly.
1998-10-12 12:00:44 +00:00
Kenichi Handa 76be80e02b (Fw16_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 3c8cb3123a (Fw32_set_clipboard_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 6b123f323b (lisp_data_to_selection_data): Call find_charset_in_str with CMPCHARP arg 0. 1998-10-12 12:00:44 +00:00
Kenichi Handa 8e36ae7f46 (Fstring_to_number): Don't recognize floating point if base is not 10. 1998-10-12 11:54:43 +00:00
Richard M. Stallman 9ac425d169 (parse_menu_item): For top level of menu bar,
accept ordinary commands, and treat them just like a keymap.
1998-10-12 06:13:00 +00:00
Richard M. Stallman b5174a5103 (redisplay_window): Clear w->window_end_valid
before running the window-scroll-functions hook, if appropriate.
1998-10-12 01:38:50 +00:00
Richard M. Stallman 0ec56a8056 (check_x_display_info): Don't use selected_frame if it is dead. 1998-10-10 15:07:08 +00:00
Richard M. Stallman 3f8ab7bddc (window_loop): New alternative CHECK_ALL_WINDOWS.
(check_all_windows): New function for debugging tests.
(syms_of_window): Initialize it.

(Qwindow_configuration_p): New variable.
(Fwindow_configuration_frame): New function.
(syms_of_window): defsubr it.
(Fset_window_configuration): Return t if frame is live.
Use Qwindow_configuration_p.
1998-10-10 14:49:28 +00:00
Geoff Voelker 5d7fed93b5 (x_create_bitmap_from_file): Skip special files. 1998-10-09 06:09:52 +00:00
Karl Heuer 7744ca33c6 Doc fixes. 1998-10-08 20:31:34 +00:00
Richard M. Stallman c3907a7e36 (scan_lists): Bring FROM back into range BEGV...ZV. 1998-10-08 10:47:51 +00:00
Kenichi Handa 55d8d76935 (code_convert_region): Set inhibit_modification_hooks
to 1 before calling Fset_text_properties.
1998-10-08 06:48:42 +00:00
Kenichi Handa fd16a4c6d8 (signal_before_change): If inhibit_modification_hooks
is nonzero, do nothing.
(signal_after_change): Likewise.
1998-10-08 06:45:36 +00:00
Kenichi Handa 7775635d6f (inhibit_modification_hooks): New variable.
(init_buffer_once): Initialize inhibit_modification_hooks to 0.
1998-10-08 06:45:36 +00:00
Kenichi Handa 347d3e9ca8 (inhibit_modification_hooks): Extern it. 1998-10-08 06:45:36 +00:00
Kenichi Handa ba7434e5bf (invalid_character): Prepend `0' to octal
representation.  Give error sufficient args.
1998-10-08 06:45:36 +00:00
Geoff Voelker d54abccd47 (init_ntproc): Check for Windows init file.
(term_ntproc): Do not check for it here.
1998-10-07 19:47:48 +00:00
Paul D. Smith 75c0d0950d Checkpoint changes. Bug fixes, mostly. 1998-10-03 05:40:15 +00:00
Kenichi Handa d7af002f65 (adjust_after_replace): Don't delete text properties here. 1998-09-28 11:52:53 +00:00
Kenichi Handa 88993dfd4e (check_composing_code): Fix previous change. Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
(check_composing_code): Fix previous change.  Now it
alwasy returns 0 or -1.
(decode_coding_iso2022): Adjusted for the above change.
(encode_coding_iso2022): When encoding the last block, flush out
tailing garbage bytes.
(setup_coding_system): Delete unnecessary code.
(shrink_decoding_region): Check translation table.  If ASCII
should be translated, give up shrinking.
(shrink_encoding_region): Likewise.
(SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
(SHRINK_CONVERSION_REGION): New macro.
(code_convert_region): Call SHRINK_CONVERSION_REGION.  Delete text
properties here.
(code_convert_region): In the case of encoding, always calulate
correct character number.
(code_convert_string): Call SHRINK_CONVERSION_REGION.
(code_convert_region1): Don't delete text properties here.
1998-09-28 11:52:53 +00:00
Kenichi Handa c42869c47d (encode_terminal_code): Handle raw 8-bit codes correctly. 1998-09-28 11:52:53 +00:00
Richard M. Stallman 432eec292e Treat __GNU__ line NeXT: undefine BSD and FSCALE. 1998-09-27 07:29:59 +00:00
Richard M. Stallman d5844360c8 (NLIST_STRUCT, KERNEL_FILE, LDAV_SYMBOL): Add #undefs. 1998-09-27 07:21:30 +00:00
Richard M. Stallman 81b7af7247 (sort_args): Fill extra space with NULL ptrs. 1998-09-27 07:11:54 +00:00
Kenichi Handa 4224cb6213 (Fformat): Check format control characters. 1998-09-26 04:20:48 +00:00
Kenichi Handa de79a6a5ed (check_composing_code): If the current composing
sequence doesn't end properly, return -1.
(DECODE_CHARACTER_ASCII): Update coding->composed_chars.
(DECODE_CHARACTER_DIMENSION1): Likewise.
(decode_coding_iso2022): Check validity of a composing sequence.
(code_convert_string): If the length of text to be converted is
shrunk to zero, don't perform code conversion.
(shrink_decoding_region): Fix previous change.
1998-09-26 04:20:48 +00:00
Kenichi Handa 450c60a559 (struct coding_system): New member composed_chars. 1998-09-26 04:20:48 +00:00
Paul Eggert 08b4600264 (underlying_strftime):
Set the buffer to a nonzero value before calling
strftime, and check to see whether strftime has set the buffer to zero.
This lets us distinguish between an empty buffer and an error.

I'm installing this patch by hand now; it will be superseded whenever
the glibc sources are propagated back to fsf.org.
1998-09-25 21:40:23 +00:00
Kenichi Handa fdfcf19d01 (decode_eol): While decoding DOS-like eol, handle a
single CR code correctly.
(shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
1998-09-25 07:32:05 +00:00
Geoff Voelker f695b4b18a (w32_color_map_lookup): New function.
(x_to_w32_color): Approximate colors ending in numbers if necessary.
1998-09-24 02:14:55 +00:00
Kenichi Handa 519bf1461a (ccl_driver): Report correct CCL program counter on error. 1998-09-22 10:33:09 +00:00
Kenichi Handa 703dc2a895 (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
strings unibyte.
(xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
1998-09-22 10:33:09 +00:00
Kenichi Handa 24819c4351 (Fcall_interactively): Don't use input method when
reading a character in the case of `c' code letter.
1998-09-22 10:23:40 +00:00
Dave Love 5b2a531650 (Fsave_restriction): Doc fix. 1998-09-21 17:43:14 +00:00
Karl Heuer cac84ff0a2 (build_load_history): Do add to Vload_history
even when dumping Emacs.
1998-09-21 16:31:46 +00:00
Kenichi Handa 12abd7d10f (CCL_WRITE_CHAR): Don't use bcopy.
(ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
cause error if the program is going to output some bytes.  When
outputing a string to notify an error, check the case that
DST_BYTES is zero.
1998-09-18 13:10:40 +00:00
Kenichi Handa 9864ebcee4 (ccl_coding_driver): If ccl_driver is interrupted by a
user or the CCL program executed an invalid command, return
CODING_FINISH_INTERRUPT.
(code_convert_region): Pay attention to the converters return
value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
1998-09-18 13:10:40 +00:00
Kenichi Handa 1ee0bc0950 (CODING_FINISH_INTERRUPT): New macro. 1998-09-18 13:10:40 +00:00
Kenichi Handa 23b20a7066 (adjust_markers_for_replace): Don't adjust a byte
position if it is FROM.
(adjust_markers_for_combining): New function.
(combine_bytes): Call adjust_markers_for_combining instead of
adjust_markers_for_replace.
(adjust_after_replace): Record deletion of combining after bytes
with the correct position.  Don't add combining bytes to the args
given to adjust_point.  Handle correctly the case that there are
both before and after combining bytes.
(replace_range): Likewise.  Record the actual deletion after
recoding deletions of combining bytes.
1998-09-16 07:21:31 +00:00
Kenichi Handa f2558efddd (code_convert_region): Update beg_unchanged and
end_unchanged after we delete the source text.
1998-09-16 07:21:31 +00:00
Kenichi Handa 457262616e (message_log_check_duplicate): Count byte length of the
latest message correctly.
1998-09-16 07:21:31 +00:00
Karl Heuer 05edf8bd68 (Fmake_local_variable): Doc fix. 1998-09-13 03:58:36 +00:00
Karl Heuer 26a9b1f3b7 (redisplay_internal): Use TEMP_SET_PT_BOTH
instead of SET_PT_BOTH.
(try_window_id, display_text_line): Likewise.
1998-09-13 03:54:01 +00:00
Dave Love 451f7df83b (Fwith_output_to_temp_buffer): Doc fix. 1998-09-10 22:51:33 +00:00
Karl Heuer 5cfc5cbe70 (TIOCSIGSEND): Add #undef.
(bcopy, bcmp, bzero): Add #undef.
1998-09-10 15:59:36 +00:00
Karl Heuer b519fca5a6 (main): Mention --display and --eval in help. 1998-09-10 15:54:42 +00:00
Karl Heuer a94a433590 (command_loop_1): When switching to selected window's bfr,
first exit if selected frame is dead (no live frames remain).
(read_key_sequence): Likewise.
1998-09-10 15:47:53 +00:00
Paul Eggert be09e6e6bf Add a comment to emacs_memftime, explaining why it needs to loop. 1998-09-09 21:33:50 +00:00
Paul Eggert 70ebbe5f81 (emacs_memftime): New function.
(Fformat_time_string): Use it to handle null bytes in formats
correctly.
1998-09-08 03:56:09 +00:00
Kenichi Handa 8bedbe9dc2 (adjust_after_replace): Don't add combining bytes to
the args given to adjust_point.  Handle correctly the case that
there are both before and after combining bytes.
(replace_range): Likewise.
1998-09-08 02:01:59 +00:00
Kenichi Handa 9869520f33 (Fsubst_char_in_region): Call replace_range with the
arg MARKERS 1.
1998-09-08 02:01:59 +00:00
Kenichi Handa 2e45bf1801 (Ffind_charset_region): Optimization for unibyte buffer.
(Ffind_charset_string): For unibyte string, return (ascii).
1998-09-08 02:01:59 +00:00
Karl Heuer 24c129e40e (base64_decode_1, base64_encode_1): New functions.
(Fbase64_decode_string, Fbase64_encode_string): New functions.
(Fbase64_decode_region, Fbase64_encode_region): New functions.
1998-09-07 19:58:05 +00:00
Karl Heuer f7993597fa (Fwidget_put): Return VALUE instead of garbage. 1998-09-07 17:34:59 +00:00
Karl Heuer 955f3ff914 (error): After enlarging buffer, write to it, not to buf. 1998-09-07 17:31:29 +00:00
Kenichi Handa b57a7b0bf4 (count_combining_after): Check also preceding bytes at
POS if all characters in STRING are not character head.
1998-09-07 13:39:15 +00:00
Kenichi Handa 8783b77f5b (STRING_CHAR_AND_LENGTH): Return correct value in
ACTUAL_LEN even if LEN is too short to have a valid multibyte
form.
(STRING_CHAR_AND_CHAR_LENGTH): Likewise.
1998-09-07 13:39:15 +00:00
Kenichi Handa 69f7652519 (ccl_coding_driver): Always calculate correct mulibyte
chars in produced byte sequence.
(Ffind_operation_coding_system): Doc-string fixed.
1998-09-07 13:39:15 +00:00
Paul Eggert 177ea5f115 (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
Don't assume that localtime and gmtime return non-NULL.
1998-09-06 15:49:17 +00:00
Karl Heuer bf6ab66c9a (Fformat): Detect incomplete format spec at string's end. 1998-09-06 14:40:21 +00:00
Karl Heuer 5e24a1f76c (Fload): Handle case where openp finds a magic file
but it has no `load' handler or that handler calls `load'.
If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
1998-09-06 13:57:32 +00:00
Dave Love ed218f733e (enable-multibyte-characters): Doc fix. 1998-09-04 14:08:26 +00:00
Geoff Voelker 3c1f9d6603 (allocate_heap): Define NTHEAP_PROBE_BASE by default. 1998-09-02 05:25:38 +00:00
Kenichi Handa 23017390a5 (Ftranspose_regions): Use BYTE_POS_ADDR to get an
address in buffer from byte-position.
1998-09-02 04:51:42 +00:00
Eli Zaretskii 9963e85930 (Vnext_selection_coding_system): New variable.
(syms_of_win16select): DEFVAR_LISP it.  No need to staticpro
Vselection_coding_system.
(Fw16_set_clipboard_data): Always convert multibyte strings.  Use
Vnext_selection_coding_system if non-nil.
(Fw16_get_clipboard_data): Always convert a string that includes
non-ASCII characters. Use Vnext_selection_coding_system if
non-nil.
1998-09-01 13:26:41 +00:00
Kenichi Handa e1d6d5b93f (x_load_font): If SIZE is 0, don't use a name x_list_font returns. 1998-09-01 02:25:57 +00:00
Geoff Voelker 490822ffc8 (w32_wnd_proc): Always zero button_state when releasing
mouse capture.
1998-09-01 00:30:46 +00:00
Paul Eggert a897205290 (read1): Don't assume that atof ("-0.0") yields -0.0.
Handle leading '-' uniformly for zeros, infinities, and NaNs.
1998-08-31 21:18:28 +00:00
Eli Zaretskii 06da1de199 (IT_cmgoto): When tracking echo area messages with the
cursor, save and restore previous cursor position in the
minibuffer.
1998-08-31 15:56:52 +00:00
Kenichi Handa 3b0800187d (copy_text): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyte.
(count_size_as_multibyte): Likewise.
1998-08-31 03:50:17 +00:00
Kenichi Handa bbf12bb32b (unibyte_char_to_multibyte):
Vnonacii_translation_table will convert a 7-bit charcater.
(multibyte_char_to_unibyte): Handle the case that
Vnonacii_translation_table converts a multibyte charcater to a
unibyte charcter of less than 128.
(init_charset_once): Initialize nonascii_insert_offset and
Vnonacii_translation_table.
1998-08-31 03:50:17 +00:00
Kenichi Handa d4e57bcd5b (decode_coding): Even if SRC_BYTES is zero, try
processing if CODING requires flushing.
(encode_coding): Likewise.
(code_convert_region): Likewise.
(code_convert_string): Likewise.
1998-08-31 03:50:17 +00:00
Kenichi Handa e0e25273d2 (concat): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyte.
1998-08-31 03:50:17 +00:00
Kenichi Handa c63e0d56d5 (dumpglyphs): If Vnonascii_translation_table is non-nil, try
to convert a character less than 160 to multibyteL.
1998-08-31 03:50:17 +00:00
Paul Eggert e64981da92 (arith_driver, float_arith_driver): Compute (- x) by
using negation, not subtraction; this makes a difference with
IEEE floating point arithmetic (and also if integer arithmetic
is ones' complement or signed-magnitude!).
1998-08-29 17:57:22 +00:00
Karl Heuer 66cb9c0731 (x_create_bitmap_from_file): Fail immediately if magic. 1998-08-29 15:55:28 +00:00
Kenichi Handa f78643efc0 (Fchar_bytes): Add \n\ in doc-string. 1998-08-29 01:26:19 +00:00
Paul Eggert 9d0ebf980b (NOT_USING_MOTIF): New macro.
(LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
path only if we're not building with Motif.
1998-08-28 23:38:20 +00:00
Kenichi Handa 4a7cf15f47 (adjust_after_replace): Fix the code to recode undo
information for the case that `before combining' happens.  Remove
text properties which are added to the new text by
offset_intervals.
1998-08-28 12:33:52 +00:00
Kenichi Handa df2ddb2d28 (code_convert_region1): Remove all text properties of the region. 1998-08-28 12:33:52 +00:00
Kenichi Handa 643044ebfd (count_size_as_multibyte): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa fcf9683ed5 (Fposition_bytes): If the arg POSITION is out of
range, return nil.
(Fbyte_to_position): If the arg BYTEPOS is out of range, return
nil.
1998-08-28 12:22:39 +00:00
Kenichi Handa 9b6a601f87 (Fchar_bytes): Now always return 1.
(char_bytes): New function.
1998-08-28 12:22:39 +00:00
Kenichi Handa 3124bc0ed3 (CHAR_BYTES): New macro. 1998-08-28 12:22:39 +00:00
Kenichi Handa 6d0b4facd2 (Faset): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa cc531c4441 (concat): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa b778fdb3a5 (message_dolog): Use macro CHAR_BYTES instead of Fchar_bytes. 1998-08-28 12:22:39 +00:00
Kenichi Handa ae9ff118cb (detect_coding_iso2022): Handle ESC N and ESC O
correctly.  They are for SS2 and SS3 respectively.
(ccl_coding_driver): Fix previous change.
1998-08-27 07:47:15 +00:00
Paul Eggert 71f8198a32 (fixup_locale): New function. For now, it resets
LC_TIME to "C" (reverting the 1998-08-07 change), and also
resets LC_MESSAGES to "C".
(x_term_init): Use it to fix up the locale after setlocale
(LC_ALL, "").
1998-08-27 02:00:35 +00:00
Richard M. Stallman d24e26b1a9 (selection_data_to_lisp_data): Code-convert selections
regardless of enable-multibyte-characters.
(lisp_data_to_selection_data): Likewise for decoding.
1998-08-26 21:15:23 +00:00
Karl Heuer 7c3c78a3c8 (x_calc_absolute_position): Cast argument to XFree, in
case it was prototyped the old way.
1998-08-26 20:29:59 +00:00
Kenichi Handa 6f6512e8c0 (x_list_fonts): Work-around for the case XGetAtomName
returns a null string.  This happens when dxpc 3.7 is being used.
1998-08-25 03:59:40 +00:00
Andreas Schwab a8b1366533 (input-method-previous-message): Doc fix. 1998-08-24 10:11:57 +00:00
Andreas Schwab a85a871a33 (file-coding-system-alist, select-safe-coding-system-function): Doc fix. 1998-08-24 10:05:10 +00:00
Kenichi Handa f46869e46f (detect_coding_iso2022): Don't check the byte length of
succeeding codes (0xa0..0xFF) if the codes follows single shit
code.
1998-08-24 06:42:56 +00:00
Kenichi Handa 25b026986f (detect_coding_system): If detect_eol_type returns
CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
correctly.
1998-08-21 06:34:13 +00:00
Richard M. Stallman 76ba958178 (Fcall_process): Use malloc for decoding_buf. 1998-08-19 17:44:21 +00:00
Richard M. Stallman c683d70bd8 (LD_SWITCH_SYSTEM): Delete -dp. 1998-08-19 07:27:13 +00:00
Geoff Voelker d08e1f6c0d (SYSTEM_PURESIZE_EXTRA): Increase. 1998-08-19 03:48:17 +00:00
Kenichi Handa 0db078dc2c (ccl_driver): In case
ccl_read_multibyte_character_suspend:, if ccl->last_block is
nonzero, jump to ccl_repeat.
1998-08-19 01:36:48 +00:00
Richard M. Stallman 1ddd1e348a (tgetst1): Supprt EBCDIC systems.
(esctab): Alternate definition if IS_EBCDIC_HOST.
1998-08-18 20:58:45 +00:00
Kenichi Handa 4ccd0d4a7e If eof is encounterd while processing the
last block, don't just finish but processes eol block of the
current CCL program.
(ccl_driver): Add a new jump label ccl_repeat for the above
change.
1998-08-18 13:15:18 +00:00
Kenichi Handa 7b179c2dc2 (ccl_coding_driver): Setup ccl->last_block properly.
(setup_coding_system): Correctly setup `valid_codes' member.
1998-08-18 13:15:18 +00:00
Kenichi Handa 1814bd62c5 (write_glyphs): When terminal_coding require flushing,
call encode_coding with "" as the SOURCE arg so that ccl_driver
correctly processes eof block of a CCL program.
1998-08-18 13:15:18 +00:00
Richard M. Stallman b638f32846 (read_char): If not reading a key sequence (MAPS is nil),
bind input-method-exit-on-first-char and input-method-use-echo-area
to t.
(read_char): If PREV_EVENT is non-nil, don't run the input method.
(read_key_sequence): Do not bind input-method-function.
1998-08-18 11:12:25 +00:00
Richard M. Stallman 7a983715c8 (Fcall_interactively): Pass new args to Fread_event
and Fread_char.  Let Fread_char do the prompting.
1998-08-18 11:06:30 +00:00
Richard M. Stallman c2b705904d (Ftranspose_regions): Pass 0 as NOMARKERS to replace_range. 1998-08-18 11:05:37 +00:00
Richard M. Stallman 5f65b1b477 (internal_self_insert): Pass 1 as NOMARKERS to replace_range. 1998-08-18 11:05:03 +00:00
Richard M. Stallman 485bf5811d (Fread_event, Fread_char, Fread_char_exclusive):
Update declarations.
1998-08-18 11:04:16 +00:00
Richard M. Stallman 1bcc15674c (Fmultibyte_char_to_unibyte): New function.
(syms_of_charset): defsubr it.
1998-08-18 11:02:54 +00:00
Richard M. Stallman 7ba13c57a2 (Fy_or_n_p): Don't bind input-method-function.
Instead, pass 0 as INPUT_METHOD to read_filtered_event.
1998-08-18 09:01:20 +00:00
Richard M. Stallman bb49a19224 (read_filtered_event): New arg INPUT_METHOD. Calls changed.
(Fread_event): New args PROMPT and SUPPRESS-INPUT-METHOD.
(Fread_char, Fread_char_exclusive): Likewise.
1998-08-18 09:00:14 +00:00
Richard M. Stallman 60aa777aec (replace_range): Rename NOMARKERS arg to MARKERS. 1998-08-18 07:00:00 +00:00
Richard M. Stallman 3844ee4450 (Fy_or_n_p): Bind input-method-function to nil. 1998-08-18 04:27:37 +00:00
Richard M. Stallman 6e5742a05b (Freset_this_command_lengths): Return nil.
(read_char): [All these changes are in the input method code.]
Process and clear before_command_restore_flag before the input method.
Save and restore ok_to_echo_at_next_pause and
current_kboard->echo_after_prompt.
Save, copy and empty this_command_keys, if it is not empty.
Clear the echo area before the input method.
Then in all cases restore this_command_keys, and reenable echoing
if it was enabled before.
1998-08-17 07:04:41 +00:00
Richard M. Stallman 48d3818408 (unibyte_display_through_language_environment):
Renamed from x_display_unibyte_char_with_fontset.
1998-08-17 00:45:52 +00:00
Richard M. Stallman 7ac57cb36c (vmotion): Don't use WINDOW for Fget_char_property
when it is not showing the right buffer.
1998-08-16 02:10:56 +00:00
Richard M. Stallman e3c55541bd x_display_unibyte_char_with_fontset renamed to
unibyte_display_via_language_environment.
1998-08-15 23:00:07 +00:00
Richard M. Stallman 5651af6d63 (wait_reading_process_input): If a pty gives EIO,
raise SIGCHLD just in case.
1998-08-15 05:53:00 +00:00
Richard M. Stallman 09ba2aa0b6 (widget_store_internal_border): Conditionalize declaration. 1998-08-15 05:49:39 +00:00
Kenichi Handa 4ec3678010 (copy_text): Fix previous change, call
multibyte_char_to_unibyte.
1998-08-15 01:28:14 +00:00
Kenichi Handa 89fa8b3669 (coding_category_name): Fix the order of initial
contents.
(detect_coding_mask): Fix previous change.
1998-08-15 01:28:14 +00:00
Kenichi Handa 250134b381 (BASE_PURESIZE): Increased. 1998-08-15 01:28:14 +00:00
Kenichi Handa 1e66110880 (x_display_unibyte_char_with_fontset): New variable.
(syms_of_xfns): Declare x-display-unibyte-char-with-fontset as a
Lisp variable.
1998-08-15 01:28:14 +00:00
Kenichi Handa 16cd502924 (Vnext_selection_coding_system): New variable.
(selection_data_to_lisp_data): If Vnext_selection_coding_system is
non-nil, use it.
(lisp_data_to_selection_data): Likewise.
(syms_of_xselect): Declare next-selection-coding-system as a Lisp
variable.
1998-08-15 01:28:14 +00:00
Kenichi Handa ab29c43b51 (dumpglyphs): If x_display_unibyte_char_with_fontset is
nonzero, convert a unibyte 8-bit char to a multibyte char and
display it by a font listed in the current fontset.
1998-08-15 01:28:14 +00:00
Kenichi Handa ee8ddc1c90 (x_display_unibyte_char_with_fontset): Extern it. 1998-08-15 01:28:14 +00:00
Richard M. Stallman 710ea1b88d (stat): Fall-back to default behaviour when we cannot get
accurate information on file attributes.
1998-08-14 03:47:10 +00:00
Eli Zaretskii b42099b9ec (dos_set_keyboard): Set up stack and flags before
calling _go32_dpmi_simulate_int.
1998-08-13 10:09:28 +00:00
Richard M. Stallman 326b283b18 (scan_sexps_forward): Set up the syntax table scanning
stuff before jumping into the loop.
1998-08-10 21:19:03 +00:00
Eli Zaretskii 9a599a60c1 (IT_cmgoto): In the echo area, only put the cursor at
the end of text if it is beyond the displayed text end.
1998-08-10 15:34:32 +00:00
Richard M. Stallman e43d17d398 (read_char): Don't decrement this_command_key_count when saving it. 1998-08-10 07:22:21 +00:00
Kenichi Handa 6bc51348fd (default_buffer_file_coding): New variable.
(init_coding_once): Initialize default_buffer_file_coding.
1998-08-10 06:29:02 +00:00
Kenichi Handa 0827f88d34 (default_buffer_file_coding): Extern it. 1998-08-10 06:29:02 +00:00
Kenichi Handa ef38927ffd (Fwrite_region): Reflect the eol conversion
specification of default value of buffer-file-coding-system if is
is undefined.
1998-08-10 06:29:02 +00:00
Richard M. Stallman 62bb752fdb (__FreeBSD_version): Define it, or else include osreldate.h to define it.
(LIB_GCC): Unconditional definition deleted.
[ELF] (LD_SWITCH_SYSTEM, START_FILES, UNEXEC, LIB_STANDARD, LIB_GCC):
New alternative definitions.
[! ELF] (START_FILES, LIB_GCC): New alternative definitions.
1998-08-10 02:41:44 +00:00
Richard M. Stallman 2e1ddb87df (unexec): Check for section names end and edata with no underscore. 1998-08-10 02:35:54 +00:00
Richard M. Stallman df902b62cd (Fminibuffer_complete): this_command renamed to Vthis_command. 1998-08-09 21:56:16 +00:00
Richard M. Stallman 14a18790a4 (Fcall_last_kbd_macro): this_command renamed to Vthis_command. 1998-08-09 21:55:58 +00:00
Richard M. Stallman e717e6d75d (Vthis_command): Renamed from this_command. 1998-08-09 21:55:27 +00:00
Richard M. Stallman f024b6aac0 (CHARSET_OK): Check that coding_system_table[IDX] != 0. 1998-08-09 05:28:02 +00:00
Richard M. Stallman 036bad88d8 (x_term_init): Don't reset LC_TIME to "C", since we
want strftime to be localized.
1998-08-08 22:11:22 +00:00
Richard M. Stallman 84d602979c Avoid using initializers for Lisp_Object. 1998-08-08 21:32:57 +00:00