Eli Zaretskii [Sun, 15 Aug 1999 11:42:08 +0000 (11:42 +0000)]
(x-list-fonts): Return "ms-dos", not "default".
Do that if width is nil as well.
(x-display-mm-height, x-display-mm-width): Update values.
(x-colors): Compute the list from msdos-color-values.
(x-select-enable-clipboard): Doc fix.
(x-frob-font-weight, x-font-family-list): New functions.
Karl Heuer [Sat, 14 Aug 1999 03:24:48 +0000 (03:24 +0000)]
Mostly rewritten. Customized. To support an s2G
doomsday clock, speed control is added and changes are made to
allow large numbers of rings: rings now show the whole ring
number, not just the last digit; consecutive rings are allowed to
be the same size when necessary to fit all the rings in the
window; and poles can be oriented horizontally. Face support is
thrown in gratuitously.
(hanoi): Changed default number of rings back to 3.
(hanoi-unix, hanoi-unix-64): New commands
(hanoi-horizontal-flag, hanoi-move-period, hanoi-use-faces,
hanoi-pole-face, hanoi-base-face, hanoi-even-ring-face,
hanoi-odd-ring-face): New variables.
(hanoi-internal, hanoi-current-time-float, hanoi-put-face,
hanoi-n, hanoi-insert-ring, hanoi-goto-char, hanoi-sit-for,
hanoi-ring-to-pos, hanoi-pos-on-tower-p): New functions.
(hanoi-0): Renamed from hanoi0, for symmetry with hanoi-n.
(hanoi-topos, hanoi-draw-ring): Removed.
Gerd Moellmann [Fri, 13 Aug 1999 21:24:35 +0000 (21:24 +0000)]
(set_window_height, set_window_width):
If window starts out "too small", set its too_small_ok flag.
If window's too_small_ok flag is set, don't delete it
unless it is so small it would cause a crash.
Kenichi Handa [Fri, 13 Aug 1999 12:54:36 +0000 (12:54 +0000)]
(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.
Gerd Moellmann [Thu, 12 Aug 1999 14:35:33 +0000 (14:35 +0000)]
(face-valid-attribute-values): Return an alist for
families on ttys.
(face-read-integer): Handle unspecified face attributes. Add
completion for `unspecified'.
(read-face-attribute): Handle unspecified font attributes.
(face-valid-attribute-values): Add `unspecified' to lists so that
it can be chosen via completion.
(face-read-string): Don't recognize "none" as input.
Gerd Moellmann [Wed, 11 Aug 1999 11:50:20 +0000 (11:50 +0000)]
(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.
Gerd Moellmann [Wed, 11 Aug 1999 10:47:38 +0000 (10:47 +0000)]
(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.
Karl Heuer [Tue, 10 Aug 1999 16:54:00 +0000 (16:54 +0000)]
(easy-menu-get-map-look-for-name): New fn.
(easy-menu-get-map): New arg TO-MODIFY helps choose
between local and global maps.
(easy-menu-add-item): Pass TO-MODIFY arg to easy-menu-get-map.
(easy-menu-change): Doc fix.
Eli Zaretskii [Tue, 10 Aug 1999 10:43:12 +0000 (10:43 +0000)]
(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.
Eli Zaretskii [Tue, 10 Aug 1999 10:38:37 +0000 (10:38 +0000)]
(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.
Eli Zaretskii [Tue, 10 Aug 1999 10:21:18 +0000 (10:21 +0000)]
(msdos-bg-mode): Remove. Call
frame-set-background-mode instead. All callers changed.
(msdos-face-setup): Don't force color display parameter, it is set
by frame-set-background-mode.
(make-msdos-frame): Call x-handle-reverse-video and
face-set-after-frame-default. Delete frame if creation failed.
Eli Zaretskii [Tue, 10 Aug 1999 10:13:05 +0000 (10:13 +0000)]
(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.
Dave Love [Sat, 7 Aug 1999 11:45:06 +0000 (11:45 +0000)]
(Man-softhyphen-to-minus): Revert previous change. Avoid unibyte to
multibyte conversion of search-forward (from Handa), but avoid the
replacement if the language is Latin-N.
Gerd Moellmann [Fri, 6 Aug 1999 21:08:08 +0000 (21:08 +0000)]
(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.
Geoff Voelker [Fri, 6 Aug 1999 20:41:07 +0000 (20:41 +0000)]
(ls-lisp-delete-matching): List argument is now alist
of filenames and attributes.
(ls-lisp-insert-directory): Use directory-files-and-attributes
for speed.
Gerd Moellmann [Fri, 6 Aug 1999 15:05:34 +0000 (15:05 +0000)]
(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.
Gerd Moellmann [Fri, 6 Aug 1999 13:59:43 +0000 (13:59 +0000)]
(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.
Gerd Moellmann [Fri, 6 Aug 1999 13:59:32 +0000 (13:59 +0000)]
(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.
(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.
(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.
All functions rewritten, except when noted above
their declaration. Below is a list of interface changes.
(apply-on-rectangle): New function, mostly replaces
`operate-on-rectangle'. All callers changed.
(move-to-column-force): Pass new second argument to `move-to-column'.
(kill-rectangle): Added optional prefix arg to fill lines.
(delete-rectangle): Ditto.
(delete-whitespace-rectangle): Ditto.
(delete-extract-rectangle): Ditto.
(open-rectangle): Ditto.
(clear-rectangle): Ditto.
(delete-whitespace-rectangle-line): New function.
(delete-rectangle-line): Added third arg FILL.
(delete-extract-rectangle-line): Ditto.
(open-rectangle-line): Ditto.
(clear-rectangle-line): Ditto.
(query-replace-regexp-eval)
(replace-eval-replacement, replace-loop-through-replacements)
(replace-match-string-symbols): New functions.
(perform-replace): Allow REPLACEMENTS to be (FUNCTION . DATA).
Use replace-loop-through-replacements.