1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 11:50:51 -08:00
Commit graph

6922 commits

Author SHA1 Message Date
Richard M. Stallman
de42d728f6 (EmacsFrameSetValues): Copy internal_border_width
from the Emacs frame if caller isn't changing it.
1996-09-23 04:40:39 +00:00
Richard M. Stallman
4bc8c7d2f4 (Fsave_current_buffer): New function.
(syms_of_editfns): defsubr it.
1996-09-23 04:37:40 +00:00
Richard M. Stallman
111e5992df (Fwindow_edges): Use new WINDOW_RIGHT_EDGE macro.
(coordinates_in_window): Use WINDOW_LEFT_MARGIN, WINDOW_RIGHT_MARGIN,
and WINDOW_RIGHT_EDGE.  Adjust for left-side scroll bar margin.
(window_loop, Fdisplay_buffer): Use new WINDOW_FULL_WIDTH_P macro.
(window_internal_width): Window width now always includes the
scroll bar, if any.  Use WINDOW_RIGHTMOST_P and WINDOW_FULL_WIDTH_P.
1996-09-23 04:36:43 +00:00
Richard M. Stallman
6e6e9f0840 (syms_of_eval): Initialize Vrun_hooks here.
Don't make it a Lisp variable.
1996-09-23 04:31:38 +00:00
Richard M. Stallman
3b841abc54 (Bsave_current_buffer): New macro.
(Fbyte_code): Handle Bsave_current_buffer.
1996-09-23 04:27:27 +00:00
Richard M. Stallman
e681c92a58 (Fdelete_frame): Set update_mode_lines. 1996-09-22 08:48:16 +00:00
Richard M. Stallman
b455c665da (main): Add copyright etc. to --version output. 1996-09-22 04:58:35 +00:00
Richard M. Stallman
1d288aefee (REGEXP_CACHE_SIZE): Increase to 20.
(compile_pattern): Check for size match before calling Fstring_equal.
1996-09-22 04:38:10 +00:00
Richard M. Stallman
a321144195 (vertical_scroll_bar_type): Add enumerated
none/left/right type for identifying vertical scroll bars.
(struct frame): Use vertical_scroll_bar_type.
(FRAME_HAS_VERTICAL_SCROLL_BARS): Use vertical scroll bar type.
(FRAME_VERTICAL_SCROLL_BAR_TYPE): New macro.
(FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT): New macros.
(FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT): New macros.
(FRAME_SCROLL_BAR_WIDTH, FRAME_LEFT_SCROLL_BAR_WIDTH): New macros.
(FRAME_WINDOW_WIDTH, FRAME_WINDOW_WIDTH_ARG): New macros.
(SET_FRAME_WIDTH): New macro.
(WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Modify to handle left-side
croll bars too.
1996-09-21 22:31:58 +00:00
Paul Eggert
9475166699 (tm_diff): Renamed from difftm. Yield int, not long.
This now uses the same code as the GNU C Library.  All callers changed.
(TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN.
1996-09-21 18:42:26 +00:00
Richard M. Stallman
36fe2f9a10 (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Renamed from
LEFT_VERTICAL_SCROLL_BAR_WIDTH_TRIM.
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH): Use VERTICAL_SCROLL_BAR_WIDTH_TRIM.
1996-09-21 04:18:58 +00:00
Richard M. Stallman
29ec5d84b2 (make_frame_glyphs, update_line, update_frame)
(scroll_frame_lines, char_ins_del_cost): Use FRAME_WINDOW_WIDTH.
1996-09-21 04:17:30 +00:00
Richard M. Stallman
a2f016e3c7 (echo_area_display): Clear the left-side scroll bar columns. 1996-09-21 04:14:14 +00:00
Richard M. Stallman
85462999a5 (read_minibuf): Use FRAME_LEFT_SCROLL_BAR_WIDTH
to set the cursor position at the end.
1996-09-21 04:10:21 +00:00
Richard M. Stallman
8516ba9afe (WINDOW_LEFT_MARGIN): New macro.
(WINDOW_RIGHT_EDGE, WINDOW_RIGHT_MARGIN): New macros.
(WINDOW_FULL_WIDTH_P, WINDOW_RIGHTMOST_P): New macros.
1996-09-21 03:31:53 +00:00
Richard M. Stallman
3a43d2dd70 (make_frame): Switch from boolean `has_vertical_scrollbars' integer to
an enumerated type.  Use new macro SET_FRAME_WIDTH.
1996-09-21 03:24:01 +00:00
Richard M. Stallman
f6bb2a1675 (initialize_win_nt_display): Use SET_FRAME_WIDTH. 1996-09-21 02:26:13 +00:00
Richard M. Stallman
42bd6247da (Fsun_menu_internal): Use new WINDOW_LEFT_MARGIN macro. 1996-09-21 02:25:56 +00:00
Richard M. Stallman
1efd8636b2 (term_init): Use new vertical scroll bar enumerated type.
Use new macro SET_FRAME_WIDTH.
1996-09-21 02:25:37 +00:00
Richard M. Stallman
1026b40015 (Qright): New variable.
(syms_of_win32fns): Initialize and staticpro Qright.
(x_set_vertical_scroll_bars): Check for left<->right<->none
scroll bar changes, and modify the vertical scroll bar type as appropriate.
(x_figure_window_size): Use new SET_FRAME_WIDTH macro.
(Fx_create_frame): Likewise.
1996-09-21 02:25:11 +00:00
Richard M. Stallman
03218728b5 (fast_find_position, show_macro_face): Use new WINDOW_LEFT_MARGIN macro. 1996-09-21 02:23:54 +00:00
Richard M. Stallman
d7c64de6bf Comment change. 1996-09-21 01:25:11 +00:00
Richard M. Stallman
9bfd4456ce (preserve_other_columns, preserve_my_columns): Use new
macros WINDOW_LEFT_MARGIN and WINDOW_RIGHT_EDGE.
(adjust_window_charstarts, verify_charstarts, cancel_my_columns):
Use new macro WINDOW_LEFT_MARGIN instead of w->left.
(direct_output_for_insert, direct_output_forward_char): Likewise.
(buffer_posn_from_coords): Likewise.
(verify_charstarts): Use new macro WINDOW_FULL_WIDTH_P.
(update_frame): For determining when to wrap the cursor, use the
new macro FRAME_WINDOW_WIDTH instead of FRAME_WIDTH; they aren't
necessarily the same any more.
(change_frame_size_1): Use FRAME_WINDOW_WIDTH to check for changes.
Give `set_window_width' the window width value.  Use new macro SET_FRAME_WIDTH.
1996-09-21 01:21:18 +00:00
Richard M. Stallman
73f194f117 (display_mode_line): Use faces for inverse video mode line whenever possible.
(echo_area_display): Shift display_string past a left-side scroll bar.
(redisplay_window): Likewise.
(redisplay_internal): Shift cursor past a left-side scroll bar.
(redisplay_window): Likewise.
(try_window_id): Likewise.
(display_text_line): Likewise.
(redisplay_internal): Shift charstarts past a left-side scroll bar.
(display_text_line): Likewise.
(redisplay_internal): Use new macro WINDOW_FULL_WIDTH_P.
(redisplay_window): Likewise.
(display_text_line): Likewise.
(display_text_line): Shift output past left-side scroll bar.
(display_text_line): Use new WINDOW_RIGHTMOST_P macro.
(display_text_line): Don't pad right columns unless using
a right-side scroll bar.  Don't draw vertical bars unless there
isn't any kind of scroll bar.
(display_string): Likewise.
(display_mode_line): Use new macros WINDOW_LEFT_MARGIN,
WINDOW_RIGHT_MARGIN, and WINDOW_FULL_WIDTH_P.
(display_string): Use new macro WINDOW_RIGHTMOST_P.
1996-09-21 01:16:33 +00:00
Richard M. Stallman
1ab3d87e2f (Fx_create_frame): Default Qvertical_scroll_bars to `left'.
Add the symbol `right'; this symbol is used to indicate
that a right-side scroll bar is wanted.
(x_set_vertical_scroll_bars): Check for left<->right<->none
scroll bar changes, and modify the vertical scroll bar type as appropriate.
(x_figure_window_size): Use new SET_FRAME_WIDTH macro.
(Fx_create_frame): Likewise.
(Fx_horizontal_line): Use new macro WINDOW_LEFT_MARGIN.
1996-09-21 01:14:57 +00:00
Richard M. Stallman
c8738c33c5 (make_lispy_event): When converting from pixel to glyph coordinates,
offset by WINDOW_LEFT_MARGIN; this is needed for left-side scrollbars.

(syms_of_keyboard): Initialize and staticpro
internal_last_event_frame and read_key_sequence_cmd.
1996-09-21 01:11:31 +00:00
Richard M. Stallman
aa5abbc013 (VERTICAL_SCROLL_BAR_INSIDE_WIDTH): Add frame as an
argument, and use it to decrease the width in the case of a
left-side scroll bar; this prevents the bar and adjacent text
from scrunching together.
(LEFT_VERTICAL_SCROLL_BAR_WIDTH_TRIM): Add constant.

(VERTICAL_SCROLL_BAR_INSIDE_HEIGHT): New arg F (not used).
(VERTICAL_SCROLL_BAR_TOP_RANGE): New arg F (not used).
1996-09-21 00:59:54 +00:00
Richard M. Stallman
d9cdbb3d95 Pass frame arg in calls to VERTICAL_SCROLL_BAR_INSIDE_HEIGHT
and VERTICAL_SCROLL_BAR_TOP_RANGE.

(XTclear_end_of_line): Shift end-of-line when there is a
left-side scroll bar by FRAME_LEFT_SCROLL_BAR_WIDTH.
(do_line_dance): Take into account the width of a left-side scroll bar.
(dumprectangle): Trim at FRAME_EXTERNAL_WIDTH instead of FRAME_WIDTH.
(fast_find_position): Use new macro WINDOW_LEFT_MARGIN.
(show_mouse_face): Likewise.
(x_scroll_bar_set_handle): VERTICAL_SCROLL_BAR_INSIDE_WIDTH now
requires the frame as an argument.
(x_scroll_bar_expose): Narrow the box slightly for a left-side scroll bar.
1996-09-21 00:57:20 +00:00
Richard M. Stallman
db4042c888 (init_system_name): Retry gethostbyname only 5 times
and don't sleep after the last time.
1996-09-20 06:11:20 +00:00
Richard M. Stallman
04924ee3f4 (file_name_completion): Remove code which sets and
restores the `stat' control flags (they might not be restored if
C-g is pressed during completion).
(file_name_completion_stat): Set and restore flags that make
`stat' faster here instead of in `file_name_completion'.
1996-09-19 21:28:15 +00:00
Richard M. Stallman
b4222ffacb (display_text_line): Declare ovstr as unsigned char *. 1996-09-19 04:25:49 +00:00
Richard M. Stallman
6b5d3b89ee (overlay_strings): Declare pstr using unsigned char. 1996-09-19 03:31:13 +00:00
Richard M. Stallman
2a6334563b Replaced symbol BSD with BSD_SYSTEM.
Don't explicitly Include termios.h.
(ospeed): Use HAVE_TERMIOS to decide whether to use speed_t.
1996-09-19 03:09:10 +00:00
Richard M. Stallman
7ae6863365 (regex_compile): Use TRANSLATE before calling SET_LIST_BIT. 1996-09-19 03:00:06 +00:00
Richard M. Stallman
fab9562514 (Fcompleting_read): Doc fix. 1996-09-18 22:56:24 +00:00
Richard M. Stallman
be9828d197 (C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM): Don't define them if using GCC. 1996-09-17 19:02:36 +00:00
Erik Naggum
c23baf9f13 Comment changes. 1996-09-17 17:49:23 +00:00
Erik Naggum
609c36fe5f Declare make_symbol (). 1996-09-17 17:43:56 +00:00
Erik Naggum
fe4123646b (syms_of_keyboard): Initialize and staticpro internal_last_event_frame and
read_key_sequence_cmd.
1996-09-17 16:26:44 +00:00
Erik Naggum
0f73bb1c2b (init_obarray): staticpro Qvariable_documentation. 1996-09-17 16:19:15 +00:00
Erik Naggum
a3e99933ee (syms_of_keymap): staticpro global_map. 1996-09-17 16:19:07 +00:00
Erik Naggum
0a61794b00 (syms_of_fileio): staticpro Qset_visited_file_modtime. 1996-09-17 16:18:22 +00:00
Erik Naggum
a2d3836cb6 (syms_of_dired): staticpro Qdirectory_files, Qfile_name_completion,
Qfile_name_all_completions, and Qfile_attributes.
1996-09-17 16:18:04 +00:00
Erik Naggum
8f84b1a1be (syms_of_casetab): staticpro Vascii_canontable, Vascii_eqv_table, and
Vascii_upcase_table.
1996-09-17 16:18:00 +00:00
Erik Naggum
47d5b31e26 (Fmake_symbol): Initialize `obarray' field. 1996-09-17 15:36:26 +00:00
Karl Heuer
fae87a070d Replaced symbol BSD with BSD_SYSTEM. 1996-09-17 04:49:51 +00:00
Karl Heuer
8e4c450d30 Comment change. 1996-09-17 03:47:11 +00:00
Karl Heuer
6df54671fd Replaced symbol BSD with BSD_SYSTEM. 1996-09-17 03:43:54 +00:00
Karl Heuer
488b7cb38f Replace symbol BSD with BSD_SYSTEM. 1996-09-17 02:56:22 +00:00
Richard M. Stallman
2509d35657 (Fget_buffer_create): Initialize BUF_OVERLAY_MODIFF. 1996-09-16 09:32:54 +00:00