Gerd Moellmann [Mon, 3 Jan 2000 14:04:14 +0000 (14:04 +0000)]
(reseat_at_next_visible_line_start): Position before
newline only if ending up on a newline.
(next_element_from_ellipsis): Return success. Handle case of
displaying no ellipsis. Fix case of ellipsis defined in display
table.
(next_element_from_buffer): Return 0 if next_element_from_ellipsis
returns 0.
Eli Zaretskii [Sun, 2 Jan 2000 14:12:09 +0000 (14:12 +0000)]
(read-face-attribute, defined-colors, color-defined-p):
Pass the frame to tty-color-* functions.
(display-color-p, frame-set-background-mode): Pass the frame to
tty-display-color-p.
Eli Zaretskii [Sun, 2 Jan 2000 14:07:32 +0000 (14:07 +0000)]
(tty_defined_color): Pass frame to tty-color-desc. The
list of colors renamed to tty-defined-color-alist.
(tty_color_name): Pass the frame to tty-color-by-index.
(realize_tty_face): tty-color-alist is now a function which
accepts the frame as argument.
Gerd Moellmann [Sat, 1 Jan 2000 17:06:00 +0000 (17:06 +0000)]
(Vinhibit_field_text_motion): New variable.
(inhibit-field-text-motion): New DEFVAR_LISP.
(Fline_beginning_position, Fline_end_position): Notice field
boundaries only if inhibit-field-text-motion is nil.
Gerd Moellmann [Sat, 1 Jan 2000 16:33:32 +0000 (16:33 +0000)]
(defimage): Handle specifications containing :data
instead of :file.
(image-type-from-data): New function.
(image-type-from-file-header): Use it.
(create-image): Add parameter DATA-P.
Gerd Moellmann [Sat, 1 Jan 2000 10:09:45 +0000 (10:09 +0000)]
(gif_load): Avoid sign extension and thus out of bounds
color indices when accessing raster pixels.
(gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
one of :file or :data.
(enum pbm_keyword_index): Add PBM_DATA.
(pbm_format): Add :data.
(pbm_image_p): Allow either :file or :data.
(pbm_read_file): New function.
(pbm_scan_number): Rewritten to read from string.
(pbm_load): Support :data.
(command-history): Renamed from command-history-mode.
(Command-history-setup): Don't switch buffers. Take
no args, and do not set major-mode, mode-name or the local map.
(command-history-mode): New function, does some of those things
Command-history-setup used to do.
(list-command-history): Call command-history-mode, not
Command-history-setup.
Gerd Moellmann [Fri, 31 Dec 1999 15:35:03 +0000 (15:35 +0000)]
(next_element_from_buffer): Change assertion at the end
because it doesn't hold when there's an overlay string at the end
from which we deliver an image.
Gerd Moellmann [Thu, 30 Dec 1999 17:49:14 +0000 (17:49 +0000)]
(make-mode-line-mouse-sensitive): Copy keymap
assigned to mode-line-mode-menu because bindings.el is dumped with
Emacs, and thus the lists used for menu-item definition will be
copied to pure space. Emacs' menu code (parse_menu_item) doesn't
like pure menu item definitions.
Gerd Moellmann [Thu, 30 Dec 1999 12:26:53 +0000 (12:26 +0000)]
(Fexpand_abbrev): If expanding an abbrev which has only
a hook, and the hook has a non-nil `no-self-insert' property, let
the return value of the hook specify whether an expansion took
place. If it returns nil, no expansion has been performed.
Eli Zaretskii [Tue, 28 Dec 1999 15:59:34 +0000 (15:59 +0000)]
Changes for supporting mouse/modeline highlight and help echo features:
(dos_set_window_size) [__DJGPP__ > 1]: If the frame
dimensions changed, invalidate the mouse highlight info.
(disable_mouse_highlight, help_echo, previous_help_echo): New
variables.
(IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
(fast_find_position, IT_note_mode_line_highlight)
(IT_note_mouse_highlight): New functions.
(IT_update_begin): If the redisplay affects the window where the
mouse highlight is, clear the highlight. If the frame where the
highlight was displayed was killed, invalidate the highlight
info.
(IT_update_end): Reset the highlight flag. Reset the mouse
highlight-defer flag.
(IT_frame_up_to_date): New function, if mouse highlight was
deferred due to GC, do it now.
(internal_terminal_init): Initialize mouse-highlight related
members of the_only_x_display. Assign IT_frame_up_to_date to
frame_up_to_date_hook.
(dos_rawgetc): If the mouse moved, update mouse highlight. If
help_echo changed value, generate a HELP_EVENT event.
(syms_of_msdos): Staticpro help_echo and previous_help_echo.
Gerd Moellmann [Mon, 27 Dec 1999 12:27:32 +0000 (12:27 +0000)]
(change-log-version-number-regexp-list)
(change-log-version-info-enabled): Change :version to 21.1.
(toplevel): Require CL when compiling.
(change-log-version-number-regexp-list): Added tag
:version 20.6
(change-log-version-info-enabled): Added tag :version 20.6
More general version number search with
user-configurable regexp list.
(change-log-version-number-regexp-list): New user variable.
(change-log-find-version): Rewritten. Use user-configurable
version numbering regexp list
change-log-version-number-regexp-list.
(change-log-find-version): Renamed to
change-log-version-number-search
(add-log-file-name-function): New.
(change-log-search-vc-number): Added END paramaeter. Added doc
string to function.
(change-log-version-rcs): Renamed. Was
change-log-search-vc-number.
Kenichi Handa [Mon, 27 Dec 1999 05:07:56 +0000 (05:07 +0000)]
(encode_terminal_code): Adjusted for the change of struct
glyph and GLYPH_FROM_CHAR_GLYPH.
(write_glyphs) (insert_glyphs) (append_glyph): Adjusted for the
change of struct glyph.
Kenichi Handa [Mon, 27 Dec 1999 05:06:03 +0000 (05:06 +0000)]
(line_hash_code) (direct_output_for_insert): Adjusted
for the change of struct glyph.
(line_draw_cost): Adjusted for the change of
GLYPH_FROM_CHAR_GLYPH.
(count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
Kenichi Handa [Mon, 27 Dec 1999 05:05:19 +0000 (05:05 +0000)]
(struct glyph): Make face_id and padding_p the top
level members. Change members in union `u'.
(GLYPH_EQUAL_P): Check also members face_id and padding_p.
(GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
(SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
(CHAR_GLYPH_PADDING_P): Likewise.
(GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
characters.
Kenichi Handa [Mon, 27 Dec 1999 05:03:46 +0000 (05:03 +0000)]
(GLYPH): Defined as `int', not `unsigned int'. Now the
lowest 8 bits are single byte character code, the bits above are
face ID.
(GLYPH_MASK_FACE) (GLYPH_MASK_CHAR): Adjusted for the change
above.
(FAST_MAKE_GLYPH) (FSST_GLYPH_FACE): Likewise.
(GLYPH_MASK_REV_DIR) (GLYPH_MASK_PADDING): Macros deleted.
(jka-compr-info-file-magic-bytes): New function.
(jka-compr-compression-info-list): Add new elt to each vector.
(jka-compr-write-region): Don't compress the data if it is already compressed.
(jka-compr-really-do-compress): New variable.
(jka-compr-insert-file-contents): Set jka-compr-really-do-compress if visiting.
(jka-compr-write-region): Set jka-compr-really-do-compress
if visiting. Test it when deciding to compress.