1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00
Commit Graph

16304 Commits

Author SHA1 Message Date
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
97a74ef613 (ctl-x-5-map, ctl-x-5-prefix): Duplicate defs deleted.
(scroll-bar-side): New variable.
(toggle-scroll-bar): Use scroll-bar-side.
1996-09-23 04:29:50 +00:00
Richard M. Stallman
4fdca28945 (run-hooks): defconst deleted.
The initialization is now in eval.c.
1996-09-23 04:29:04 +00:00
Richard M. Stallman
2e311f55f2 (add-timeout): Duplicate definition deleted.
(screenw-width, screen-height): Likewise.
(disable-timeout, keymap-parent, set-keymap-parent): Likewise.
1996-09-23 04:28:20 +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
c4de97b454 Doc fixes. 1996-09-22 22:56:31 +00:00
Richard M. Stallman
ab88991283 (archive-mode, archive-extract, archive-check-dos)
(archive-write-file-member): Set buffer-file-type only if
default-buffer-file-type is bound.
(buffer-file-type): Don't make this buffer-local or permanent.
Just don't mess with it.
1996-09-22 22:54:58 +00:00
Richard M. Stallman
013da4a5b6 (rmail-keywords): Don't initialize. 1996-09-22 22:37:34 +00:00
Richard M. Stallman
e4de46c8ca (unread-command-event, unread-command-events)
(last-command-event): defvars deleted.
1996-09-22 22:23:25 +00:00
Karl Heuer
03d7856ad1 (time-stamp-old-format-warn): new variable.
(time-stamp-format): use ISO 8601 format for date.
1996-09-22 22:20:58 +00:00
Richard M. Stallman
f21c591e50 (path-separator): Duplicate definition deleted.
(ffap-what-domain): Don't define mail-extr-all-top-level-domains here.
1996-09-22 22:11:25 +00:00
Richard M. Stallman
7a953756b0 (bib-capitalize-title-stop-words): Renamed from capit...
(bib-capitalize-title-stop-regexp): Renamed from capit...
(bib-capitalize-title-region): Renamed from capitalize...
(bib-capitalize-title): Renamed from capitalize...
1996-09-22 21:48:30 +00:00
Richard M. Stallman
e9dac1e100 (r2b-capitalize-title-stop-words): Renamed from capit...
(r2b-capitalize-title-stop-regexp): Renamed from capit...
(r2b-capitalize-title-region): Renamed from capitalize...
(r2b-capitalize-title): Renamed from capitalize...
1996-09-22 21:45:39 +00:00
Richard M. Stallman
a5a973dde7 (insert-kbd-macro): Duplicate definition deleted. 1996-09-22 21:38:19 +00:00
Richard M. Stallman
a46fb9a190 (eql): Incorrect definition deleted.
Now it is only in cl.el.
1996-09-22 21:31:56 +00:00
Richard M. Stallman
f874e5aa19 Comment change. 1996-09-22 21:13:49 +00:00
Richard M. Stallman
e681c92a58 (Fdelete_frame): Set update_mode_lines. 1996-09-22 08:48:16 +00:00
Richard M. Stallman
28cbd14d87 New kind of register value is a file name and position.
(jump-to-register): Handle file-query.
(register-swap-out): New function.  Add it to kill-buffer-hook.
(register-alist): Doc fix.
1996-09-22 05:09:27 +00:00
Richard M. Stallman
b455c665da (main): Add copyright etc. to --version output. 1996-09-22 04:58:35 +00:00
Richard M. Stallman
a7f284ec37 (with-current-buffer): New macro. 1996-09-22 04:40:37 +00:00
Richard M. Stallman
2754fefaec (byte-optimize-form-code-walker):
Treat save-current-buffer like save-excursion.
1996-09-22 04:38:36 +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
f3e472b0b7 (save-current-buffer): Compile it like save-excursion.
(byte-compile-save-current-buffer): New function.
1996-09-22 04:37:55 +00:00
Richard M. Stallman
a130d829db (locate-library): Print no messages if called from Lisp. 1996-09-21 23:07:06 +00:00
Richard M. Stallman
7ebea14458 (imenu--split-menu): Keep the rescan item at top level.
Keep subalists at top level too.
Name the split-off submenus from the first item in them.
(imenu--generic-function): Avoid adding nil as elt of the result.
1996-09-21 23:00:40 +00:00
Richard M. Stallman
215b077e2f (imenu--generic-function): Create a special entry
if the element of imenu-generic-function asks for it.
(imenu): Handle special entries.
(imenu--submenu-p): New function.  Use in various places.
1996-09-21 22:32: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
f55d65a166 (gud-display-line): Don't call display-buffer
if buffer already has a window.
1996-09-20 18:56:36 +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