1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 17:30:54 -08:00
Commit graph

10633 commits

Author SHA1 Message Date
Gerd Moellmann
2a53558db3 (Qplay_sound_functions): Replaces Qplay_sound_hook.
(Fplay_sound, syms_of_sound): Use it.
(parse_sound): Allow float volume values in the range [0, 1].
(Fplay_sound): Ditto.
1999-09-05 21:22:45 +00:00
Gerd Moellmann
045dee35ff Change
`top-line' and `top_line' to `header-line' and `header_line'.
Likewise for similar spellings.
1999-09-05 16:39:19 +00:00
Gerd Moellmann
9ea173e830 Change spelling of toolbar' to tool_bar' or `tool-bar'.
Likewise for upper-case etc.
1999-09-05 15:49:07 +00:00
Gerd Moellmann
e037b9ecb3 (row_containing_pos): New.
(try_window_id): Use it.
Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
Likewise for upper-case etc.
1999-09-05 15:48:57 +00:00
Gerd Moellmann
92857db0fa (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix reference to renamed variable.
1999-09-05 12:13:41 +00:00
Gerd Moellmann
8a37516b4a (Qwindow_size_fixed): Replaces Qfixed_window_size.
(window_fixed_size_p): Use Qwindow_size_fixed instead of
Qfixed_window_size.
(syms_of_window): Ditto.
1999-09-04 20:11:12 +00:00
Gerd Moellmann
c5092f3e57 (Fmakehash): Exchange optional test and size arguments. 1999-09-04 20:11:09 +00:00
Gerd Moellmann
55115f0920 Change protorype of x_alloc_nearest_color. 1999-09-03 18:50:06 +00:00
Gerd Moellmann
80c32bcc71 (XTset_vertical_scroll_bar): Block input when clearing
under newly created scroll bar.
(expose_window): If window is not yet fully initialized, do
nothing.  This can happen when toolkit scroll bars are used and a
window is split.  Reconfiguring the scroll bars will generate an
expose for a newly created window.
(x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
New.  Allocate color for lwlib widgets.
(x_alloc_nearest_color): Change parameter list include the
frame on which to allocate colors.  Gamma-correct colors.
(x_alloc_lighter_color): Call x_alloc_lighter_color with new
parameter list.
1999-09-03 18:50:00 +00:00
Gerd Moellmann
d62c876925 Include math.h. Add extern declaration for atof in case
we don't see one.
(Qscreen_gamma): New.
(struct x_frame_parm_table): Add prototypes, add
x_set_screen_gamma.
(gamma_correct): New function.
(defined_color): Call it.
(x_set_screen_gamma): New.
(x_set_title): Add parameter old_value.
(RES_TYPE_FLOAT): New.
(x_get_arg): Handle RES_TYPE_FLOAT.
(Fx_create_frame): Call x_default_parameter for `screen-gamma'.
(lookup_pixel_color): Change call to x_alloc_nearest_color to
new prototype.
(lookup_rgb_color): Ditto.
(syms_of_xfns): Initialize Qscreen_gamma.
1999-09-03 18:49:56 +00:00
Gerd Moellmann
b61cbba3c1 (struct frame): New member `gamma'. 1999-09-03 18:49:55 +00:00
Richard M. Stallman
f019cded83 [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
(512) because Mac compilers limit local data of a function to 32K.
1999-09-03 18:48:46 +00:00
Richard M. Stallman
0e01515357 Do nothing if included a second time.
(enum output_method): Add mac_output frame type.
(union output_data): Add new alternative `mac'.
(FRAME_MAC_P): New macro.
1999-09-03 18:44:39 +00:00
Richard M. Stallman
574a1a902e (Fframep) [macintosh]: Handle mac frame type.
(syms_of_frame_1): Initialize Qmac.
(make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
(Fmake_terminal_frame) [macintosh]: Add an alternate error check.
(Fmodify_frame_parameters) [macintosh]: Call
mac_set_frame_parameter in macterm.c.
1999-09-03 18:39:38 +00:00
Richard M. Stallman
052062e0d8 (call-process) [macintosh]: Call mac_run_command in
sysdep.c.  The Mac code is modeled after the DOS code.
1999-09-03 18:29:30 +00:00
Richard M. Stallman
066d59b3d5 Delete the system-independent include of stdlib.h
(leaving only the one in the WINDOWSNT conditional).
1999-09-03 18:26:26 +00:00
Richard M. Stallman
29c42596c4 [macintosh]: Include macterm.h to define substitute X
Window types and macros.
1999-09-03 18:15:24 +00:00
Gerd Moellmann
9472f927f9 Use XCAR and XCDR instead of XCONS.
(Vresize_mini_config, resize_mini_frame,
resize_mini_initial_height): Removed.
(syms_of_xdisp): Remove references to these variables.
(resize_mini_window): Don't save window configuration, freeze
window starts instead.  Enlarge window until displaying an empty
buffer, then shrink it.  Make the function externally visible.
(redisplay_window): Treat frozen window start like forced start,
but accept point outside of the window.
1999-09-03 15:52:16 +00:00
Gerd Moellmann
e9abf3946d New member frozen_window_start_p. 1999-09-03 15:52:15 +00:00
Gerd Moellmann
7bbb5782ca (foreach_window, foreach_window_1): New.
(freeze_window_start, freeze_window_starts): New.
(make_window): Initialize frozen_window_start_p.
(replace_window): Ditto.
(Fset_window_point): Remove references to deleted variables.
(Fset_window_start): Ditto.
1999-09-03 15:52:12 +00:00
Gerd Moellmann
544e358dca (read_minibuf_unwind): Resize mini-window when
reaching minibuf_level 0.
1999-09-03 15:52:10 +00:00
Gerd Moellmann
1784207c0a Remove extern declarations for variables deleted from
xdisp.c.
1999-09-03 15:52:08 +00:00
Gerd Moellmann
f5ec94b634 (adjust_frame_glyphs): Remove reference to
Vresize_mini_config.
1999-09-03 15:52:05 +00:00
Gerd Moellmann
d0623bcd1b Add function prototype for resize_mini_window. 1999-09-03 15:52:01 +00:00
Gerd Moellmann
3c6ede7b91 (x_scroll_bar_create): Don't clear under scroll bar
here.
(XTset_vertical_scroll_bar): Clarify position computations.  Clear
under newly created scroll bar.  Put toolkit scroll bars in the
middle of the area reserved for the scroll bar.
1999-09-03 12:43:32 +00:00
Gerd Moellmann
c6e9d03b5d (x_set_scroll_bar_width): Change conditional compilation
to USE_TOOLKIT_SCROLL_BARS.
1999-09-03 12:43:28 +00:00
Kenichi Handa
0377370fbb (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
macro STRING_CHAR_AND_LENGTH.  Caller changed.
1999-09-03 01:28:42 +00:00
Kenichi Handa
cae184f227 (count_combining_composition): New function.
(count_combining_before): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.  Call
count_combining_composition for a composite character.
(count_combining_after): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa
1be6387dbd Type in comment fixed. 1999-09-03 01:28:42 +00:00
Kenichi Handa
aa801467ea (Fsubst_char_in_region): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.
1999-09-03 01:28:42 +00:00
Kenichi Handa
ac4137cca6 (SPLIT_COMPOSITE_SEQ): New macro.
(SPLIT_CHARACTER_SEQ): New macro.
(SPLIT_MULTIBYTE_SEQ): New macro.
(CHAR_COMPONENT_VALID_P): New macro.
(non_ascii_char_to_string): Generate a multibyte sequence as far
as possible.
(string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
deleted.  Caller changed.  Use the macro SPLIT_MULTIBYTE_SEQ.
(split_non_ascii_string): Likewise.
(multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
(char_printable_p): New function.
(translate_char): Check character by NATNUMP instead of INTEGERP.
(unibyte_char_to_multibyte): Call char_valid_p instead of
VALID_MULTIBYTE_CHAR_P.
(Fmake_char_internal): Check the arguments more rigidly.
(Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
(char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
(Fmultibyte_char_to_unibyte): Check the validity of character by
CHAR_VALID_P.
(chars_in_text): Call multibyte_chars_in_text.
(multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
(Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
1999-09-03 01:28:42 +00:00
Kenichi Handa
384107f281 (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
are negative.
(MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
(VALID_MULTIBYTE_CHAR_P): This macro deleted.
(PARSE_COMPOSITE_SEQ): New macro.
(PARSE_CHARACTER_SEQ): New macro.
(PARSE_MULTIBYTE_SEQ): New macro.
(CHAR_PRINTABLE_P): New macro.
(STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
(STRING_CHAR_AND_LENGTH): Likewise.
(STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
(INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
(DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
1999-09-03 01:28:42 +00:00
Kenichi Handa
a260318815 (Faset): Adjust the way to check byte-combining
possibility for the new handling of multibyte sequence.
1999-09-03 01:28:42 +00:00
Kenichi Handa
4659838fc9 (struct it): Change the size of the member `ctl_chars'. 1999-09-03 01:28:42 +00:00
Kenichi Handa
765fe1d0fa (print_string): Use the macro STRING_CHAR_AND_LENGTH.
(print): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa
e50d9192e8 (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
(string_char_to_byte): Likewise.
(string_byte_to_char): Likewise.
1999-09-03 01:28:42 +00:00
Kenichi Handa
197516c20d (get_next_display_element): Display incomplete multibyte
sequence (e.g. \222\300) by octal form.
1999-09-03 01:28:42 +00:00
Gerd Moellmann
056e4a0add (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. 1999-09-02 20:52:53 +00:00
Gerd Moellmann
e84b1dea00 (Fhash_table_weakness): Replaces F_hash_table_weak.
(cmpfn_eql, sxhash): Use XFLOAT_DATA.
1999-09-02 20:52:51 +00:00
Gerd Moellmann
ca42b2e80b (try_window_id): Reset first_unchanged_at_end_row
if we have displayed to the bottom of the window.
1999-09-02 20:35:56 +00:00
Gerd Moellmann
ce1dc5105e (Fforward_word): Stop at a mini-buffer prompt end
in both directions.  Extend documentation.
1999-09-02 20:35:55 +00:00
Gerd Moellmann
7ec44ec68f (set_buffer_internal): Never set
windows_or_buffers_changed.
1999-09-02 20:35:53 +00:00
Gerd Moellmann
337aaf1fda (read_minibuf): Flush display after setting cursor to
column 0.
1999-09-01 13:37:07 +00:00
Dave Love
46c7aa656c Comment on DEFVAR_BOOL. 1999-08-31 16:41:06 +00:00
Gerd Moellmann
7e6c20e825 (__FreeBSD_version): Don't define it if it is
already defined.  This avoids a warning from buffer.c.
1999-08-31 14:00:32 +00:00
Gerd Moellmann
81fe0ce9f3 (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
of both margins.
(FRAME_X_FLAGS_AREA_WIDTH): Likewise.
(FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
(FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
1999-08-30 23:14:40 +00:00
Gerd Moellmann
110859fc3c Remove unused bitmaps.
(continued_bits, continuation_bits, overlay_bits): Change images.
(x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
instead of FRAME_X_FLAGS_AREA_WIDTH.
(x_after_update_window_line): Ditto.
(x_draw_bitmap): Likewise.
(x_draw_row_bitmaps): Likewise.
(x_draw_glyph_string_box): Likewise.
(x_draw_glyphs): Likewise.
(x_scroll_run): Likewise.
(expose_window_tree): Likewise.
(note_mode_line_highlight): Likewise.
(XTset_vertical_scroll_bar): Likewise.
(x_clip_to_row): Likewise.
(x_set_window_size): Likewise.
1999-08-30 23:14:36 +00:00
Gerd Moellmann
fb5ec9cea2 (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
of 2 * that value.
1999-08-30 23:14:33 +00:00
Gerd Moellmann
050d82d7c4 (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
2 * that value.
(window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
FRAME_FLAGS_AREA_WIDTH.
1999-08-30 23:14:28 +00:00
Gerd Moellmann
b46dfc644e (coordinates_in_window): Use
FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
(window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
instead of twice.
1999-08-30 23:14:27 +00:00