]> git.eshelyaron.com Git - emacs.git/log
emacs.git
21 years ago(skeleton-edebug-spec): First cut of an edebug spec.
Stefan Monnier [Wed, 28 May 2003 18:41:41 +0000 (18:41 +0000)]
(skeleton-edebug-spec): First cut of an edebug spec.
(define-skeleton): Use it.

21 years agoDon't mention ORDERS.JAPAN.
Dave Love [Wed, 28 May 2003 14:25:16 +0000 (14:25 +0000)]
Don't mention ORDERS.JAPAN.

21 years ago*** empty log message ***
Dave Love [Wed, 28 May 2003 14:22:52 +0000 (14:22 +0000)]
*** empty log message ***

21 years ago*** empty log message ***
Richard M. Stallman [Wed, 28 May 2003 11:52:33 +0000 (11:52 +0000)]
*** empty log message ***

21 years ago(syms_of_print) <print-escape-nonascii>: Doc fix.
Richard M. Stallman [Wed, 28 May 2003 11:47:41 +0000 (11:47 +0000)]
(syms_of_print) <print-escape-nonascii>: Doc fix.

21 years ago(Indentation): Condense, simplify, clarify prev change.
Richard M. Stallman [Wed, 28 May 2003 11:43:37 +0000 (11:43 +0000)]
(Indentation): Condense, simplify, clarify prev change.

21 years ago(GDB Graphical Interface): New node (rewritten somewhat by RMS).
Richard M. Stallman [Wed, 28 May 2003 11:42:49 +0000 (11:42 +0000)]
(GDB Graphical Interface): New node (rewritten somewhat by RMS).

21 years ago(unbind_to): Fix last change for K&R. From rms.
Dave Love [Wed, 28 May 2003 11:42:21 +0000 (11:42 +0000)]
(unbind_to): Fix last change for K&R.  From rms.

21 years ago(Creating Strings): Clarify split-string.
Richard M. Stallman [Wed, 28 May 2003 11:35:48 +0000 (11:35 +0000)]
(Creating Strings): Clarify split-string.

21 years ago(refill-fill-paragraph-at): Avoid refilling the following paragraph.
Richard M. Stallman [Wed, 28 May 2003 11:30:48 +0000 (11:30 +0000)]
(refill-fill-paragraph-at): Avoid refilling the following paragraph.
(refill-doit): Doc fix.

21 years ago(ctl-x-map): Don't bind C-x C-i or C-x 3.
Richard M. Stallman [Wed, 28 May 2003 11:29:25 +0000 (11:29 +0000)]
(ctl-x-map): Don't bind C-x C-i or C-x 3.
(global-map): Don't bind C-z.
(vip-setup): New function to rebind C-x 7 and C-z.

21 years ago(last-sexp-toggle-display):
Richard M. Stallman [Wed, 28 May 2003 11:27:52 +0000 (11:27 +0000)]
(last-sexp-toggle-display):
Undo previous change (don't check for eob).  Widen at the beginning.

21 years ago(byte-compile-no-warnings): New function.
Richard M. Stallman [Wed, 28 May 2003 11:26:45 +0000 (11:26 +0000)]
(byte-compile-no-warnings): New function.
(with-no-warnings): Set up compile handler.

21 years ago(type-break-cancel-function-timers): Use with-no-warnings.
Richard M. Stallman [Wed, 28 May 2003 11:25:44 +0000 (11:25 +0000)]
(type-break-cancel-function-timers): Use with-no-warnings.

21 years ago(command-line-1): Use with-no-warnings.
Richard M. Stallman [Wed, 28 May 2003 11:24:51 +0000 (11:24 +0000)]
(command-line-1): Use with-no-warnings.

21 years ago(browse-url-mozilla): Correct the conditionals for using ,new-window.
Richard M. Stallman [Wed, 28 May 2003 11:24:00 +0000 (11:24 +0000)]
(browse-url-mozilla): Correct the conditionals for using ,new-window.

21 years ago(map-y-or-n-p): No special handling for exit-prefix.
Richard M. Stallman [Wed, 28 May 2003 11:22:39 +0000 (11:22 +0000)]
(map-y-or-n-p): No special handling for exit-prefix.
In help string, mention C-g but not ESC.

21 years ago(jka-compr-insert-file-contents):
Richard M. Stallman [Wed, 28 May 2003 11:21:36 +0000 (11:21 +0000)]
(jka-compr-insert-file-contents):
When REPLACE, delete the proper range of text.

21 years ago(Info-index): Add autoload cookie.
Richard M. Stallman [Wed, 28 May 2003 11:20:42 +0000 (11:20 +0000)]
(Info-index): Add autoload cookie.

21 years ago(forms-mode): Use write-file-functions instead of local-write-file-hooks.
Richard M. Stallman [Wed, 28 May 2003 11:19:48 +0000 (11:19 +0000)]
(forms-mode): Use write-file-functions instead of local-write-file-hooks.
Use make-local-variable to make it local.

21 years agoComment change.
Richard M. Stallman [Wed, 28 May 2003 11:18:00 +0000 (11:18 +0000)]
Comment change.

21 years ago(set-face-attribute): Set face-modified prop to t
Richard M. Stallman [Wed, 28 May 2003 11:17:33 +0000 (11:17 +0000)]
(set-face-attribute): Set face-modified prop to t
when we change the new-frame defaults.
(face-spec-set): Set face-modified prop to nil
when we change the new-frame defaults.

21 years ago(substitute-env-vars): Fix typo.
Richard M. Stallman [Wed, 28 May 2003 11:16:22 +0000 (11:16 +0000)]
(substitute-env-vars): Fix typo.

21 years ago(describe-char-unicode-data): New dummy definition.
Richard M. Stallman [Wed, 28 May 2003 11:14:07 +0000 (11:14 +0000)]
(describe-char-unicode-data): New dummy definition.
Real definition commented out since we can't use UnicodeData.txt as is.
(describe-char-unicodedata-file): Variable commented out.

21 years ago(custom-face-state-set): non-nil `face-modified'
Richard M. Stallman [Wed, 28 May 2003 11:12:24 +0000 (11:12 +0000)]
(custom-face-state-set): non-nil `face-modified'
means face was set outside of Custom.

21 years ago(with-no-warnings): New function.
Richard M. Stallman [Wed, 28 May 2003 11:10:43 +0000 (11:10 +0000)]
(with-no-warnings): New function.

21 years agoDon't mention ORDERS.EUROPE.
Richard M. Stallman [Wed, 28 May 2003 11:02:52 +0000 (11:02 +0000)]
Don't mention ORDERS.EUROPE.

21 years ago(Init Rebinding): Xref Non-ASCII Rebinding, for
Kai Großjohann [Wed, 28 May 2003 08:56:29 +0000 (08:56 +0000)]
(Init Rebinding): Xref Non-ASCII Rebinding, for
non-English letters.  Explain how to set coding systems correctly
and how to include the right coding cookie in the file.

21 years ago(expose_window): Fix error in calculation of
Kim F. Storm [Tue, 27 May 2003 23:30:10 +0000 (23:30 +0000)]
(expose_window): Fix error in calculation of
window relative coordinates of area to redisplay.

21 years ago*** empty log message ***
Kim F. Storm [Tue, 27 May 2003 23:29:50 +0000 (23:29 +0000)]
*** empty log message ***

21 years agoCommentary change.
Glenn Morris [Tue, 27 May 2003 23:09:40 +0000 (23:09 +0000)]
Commentary change.

21 years agoAdd missing code from previous patch by David Ponce.
Juanma Barranquero [Tue, 27 May 2003 22:34:58 +0000 (22:34 +0000)]
Add missing code from previous patch by David Ponce.

21 years ago(GET_WHEEL_DELTA_WPARAM): New macro.
Jason Rumney [Tue, 27 May 2003 21:18:22 +0000 (21:18 +0000)]
(GET_WHEEL_DELTA_WPARAM): New macro.

21 years ago*** empty log message ***
Jason Rumney [Tue, 27 May 2003 21:06:59 +0000 (21:06 +0000)]
*** empty log message ***

21 years agoRemove Philippe Waroquier's email address, at his request.
Francesco Potortì [Tue, 27 May 2003 20:13:22 +0000 (20:13 +0000)]
Remove Philippe Waroquier's email address, at his request.

21 years ago(sh-here-document-word): Document new treatment of leading "-".
Glenn Morris [Tue, 27 May 2003 18:40:55 +0000 (18:40 +0000)]
(sh-here-document-word): Document new treatment of leading "-".
(sh-maybe-here-document): Strip a leading "-" from closing heredoc
delimiter, if present.

21 years ago(align-rules-list): Doc fix.
Glenn Morris [Tue, 27 May 2003 18:38:40 +0000 (18:38 +0000)]
(align-rules-list): Doc fix.

21 years agoUpdate copyright.
Glenn Morris [Tue, 27 May 2003 18:36:40 +0000 (18:36 +0000)]
Update copyright.
(timeclock-ask-before-exiting): Put `timeclock-query-out' on
`kill-emacs-query-functions' rather than `kill-emacs-hook'.
(timeclock-mode-string): Doc fix.
(timeclock-modeline-display): Doc fix.  Use `global-mode-string' rather
than `mode-line-format'.
(timeclock-query-out): Doc fix.
(timeclock-update-modeline): No need for `let*', so use `let'.
Add some help-echo text to `timeclock-mode-string'.
(timeclock-mode-string): Give it the risky-local-variable property,
so that help-echo text will display.
(timeclock-find-discrep): Set `accum' to 0 if `timeclock-discrepancy' is nil.

21 years ago*** empty log message ***
Stefan Monnier [Tue, 27 May 2003 18:16:40 +0000 (18:16 +0000)]
*** empty log message ***

21 years ago(lisp-font-lock-syntactic-face-function): Don't infinite lop at bob.
Stefan Monnier [Tue, 27 May 2003 14:17:17 +0000 (14:17 +0000)]
(lisp-font-lock-syntactic-face-function): Don't infinite lop at bob.
(emacs-lisp-mode): Mark its main custom group to be `lisp'.
(prin1-char): New fun.
(eval-last-sexp-1): Use it.  Use with-syntax-table as well.
(eval-defun-1): Don't replace `defvar' with `defconst'.

21 years ago(global-map): Bind M-S-<backspace to
Kai Großjohann [Tue, 27 May 2003 13:57:22 +0000 (13:57 +0000)]
(global-map): Bind M-S-<backspace to
kill-whole-line.

21 years ago(construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT. Scrolling down/up the
Juanma Barranquero [Mon, 26 May 2003 23:03:17 +0000 (23:03 +0000)]
(construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.  Scrolling down/up the
mouse wheel is respectively mapped to mouse button 4 and 5.
(w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs MOUSE_CLICK_EVENT
events.  Forward w32 MSH_MOUSEWHEEL events as WM_MOUSEWHEEL events.

21 years ago(make_lispy_event) [WINDOWSNT]: Don't handle MOUSE_WHEEL_EVENT anymore.
Juanma Barranquero [Mon, 26 May 2003 22:55:45 +0000 (22:55 +0000)]
(make_lispy_event) [WINDOWSNT]: Don't handle MOUSE_WHEEL_EVENT anymore.

21 years ago(syms_of_buffer) <default-direction-reversed>: Doc fix.
Andreas Schwab [Mon, 26 May 2003 22:19:54 +0000 (22:19 +0000)]
(syms_of_buffer) <default-direction-reversed>: Doc fix.

21 years ago(try_window_id): Avoid aborting if PT is inside a
Andreas Schwab [Mon, 26 May 2003 22:07:32 +0000 (22:07 +0000)]
(try_window_id): Avoid aborting if PT is inside a
partially visible line.

21 years ago(Fgarbage_collect): Fix last change.
Andreas Schwab [Mon, 26 May 2003 22:03:17 +0000 (22:03 +0000)]
(Fgarbage_collect): Fix last change.

21 years ago(gud-find-class): Remove unused var `pos'.
Stefan Monnier [Mon, 26 May 2003 21:56:41 +0000 (21:56 +0000)]
(gud-find-class): Remove unused var `pos'.
(gdb-script-mode-syntax-table, gdb-script-font-lock-keywords)
(gdb-script-font-lock-syntactic-keywords)
(gdb-script-font-lock-syntactic-face, gdb-script-basic-indent)
(gdb-script-skip-to-head, gdb-script-calculate-indentation)
(gdb-script-indent-line, gdb-script-mode): New mode to edit
.gdbinit-like scripts.

21 years ago*** empty log message ***
John Paul Wallington [Mon, 26 May 2003 19:20:03 +0000 (19:20 +0000)]
*** empty log message ***

21 years ago(Fx_create_frame): Don't call Qface_set_after_frame_default.
John Paul Wallington [Mon, 26 May 2003 19:19:06 +0000 (19:19 +0000)]
(Fx_create_frame): Don't call Qface_set_after_frame_default.

21 years ago(x-create-frame-with-faces): Call `face-set-after-frame-default'.
John Paul Wallington [Mon, 26 May 2003 19:15:42 +0000 (19:15 +0000)]
(x-create-frame-with-faces): Call `face-set-after-frame-default'.
(display-supports-face-attributes-p): Doc fix.

21 years ago(global-map): Don't bind S-<backspace>. Too many
Kai Großjohann [Mon, 26 May 2003 18:02:24 +0000 (18:02 +0000)]
(global-map): Don't bind S-<backspace>.  Too many
people hit it by mistake.

21 years ago#
André Spiegel [Mon, 26 May 2003 10:35:38 +0000 (10:35 +0000)]
#

21 years ago(vc-delete-file): Fix free variable reference.
André Spiegel [Mon, 26 May 2003 10:33:00 +0000 (10:33 +0000)]
(vc-delete-file): Fix free variable reference.
(vc-annotate-display): Remove obsolesence declaration; it isn't
obsolete.

21 years ago(skeleton-internal-1): Don't loop if interactor of subskeleton is nil.
Stefan Monnier [Mon, 26 May 2003 01:02:31 +0000 (01:02 +0000)]
(skeleton-internal-1): Don't loop if interactor of subskeleton is nil.
(skeleton-pair-default-alist): New var.
(skeleton-pair-insert-maybe): Use it.

21 years ago(autoconf-mode setups): Recognise AH_ and AU_ entries in "(autoconf)Autoconf
Juanma Barranquero [Sun, 25 May 2003 21:08:21 +0000 (21:08 +0000)]
(autoconf-mode setups): Recognise AH_ and AU_ entries in "(autoconf)Autoconf
Macro Index".  Add "(autoconf)M4 Macro Index" and "(autoconf)Autotest Macro
Index".  Remove duplicate copy of "(automake)Macro and Variable Index".  Keep
automake after all autoconf possibilities, so as to prefer those.

21 years ago(Fset_window_buffer): Add type of `keep_margins' argument.
Stefan Monnier [Sun, 25 May 2003 17:49:55 +0000 (17:49 +0000)]
(Fset_window_buffer): Add type of `keep_margins' argument.
(Fset_window_fringes, Fset_window_scroll_bars): Declare before use.

21 years ago(window_box_text_cols): Declare.
Stefan Monnier [Sun, 25 May 2003 17:48:26 +0000 (17:48 +0000)]
(window_box_text_cols): Declare.

21 years ago(window_text_bottom_y, draw_row_fringe_bitmaps)
Stefan Monnier [Sun, 25 May 2003 17:47:48 +0000 (17:47 +0000)]
(window_text_bottom_y, draw_row_fringe_bitmaps)
(x_draw_vertical_border): Remove unused var `f'.

21 years ago(build_scalable_font_name): Remove `unused var pixel_size' warning.
Stefan Monnier [Sun, 25 May 2003 17:47:13 +0000 (17:47 +0000)]
(build_scalable_font_name): Remove `unused var pixel_size' warning.

21 years ago(png_load): Remove `unused vars intent, image_gamma' warning.
Stefan Monnier [Sun, 25 May 2003 17:46:34 +0000 (17:46 +0000)]
(png_load): Remove `unused vars intent, image_gamma' warning.

21 years ago(unexec): Remove `unused var n' warning.
Stefan Monnier [Sun, 25 May 2003 17:45:27 +0000 (17:45 +0000)]
(unexec): Remove `unused var n' warning.

21 years ago(my_strftime_localtime_r): Remove `defined but unused' warning.
Stefan Monnier [Sun, 25 May 2003 17:44:14 +0000 (17:44 +0000)]
(my_strftime_localtime_r): Remove `defined but unused' warning.

21 years ago(allocate_pty): Remove `unused var stb' and
Stefan Monnier [Sun, 25 May 2003 17:43:20 +0000 (17:43 +0000)]
(allocate_pty): Remove `unused var stb' and
`cp might be used uninitialized' warnings.

21 years ago(mode_line_string): Remove unused var `f'.
Stefan Monnier [Sun, 25 May 2003 17:41:47 +0000 (17:41 +0000)]
(mode_line_string): Remove unused var `f'.

21 years ago(find_safe_codings): Remove unused var `i'.
Stefan Monnier [Sun, 25 May 2003 17:41:21 +0000 (17:41 +0000)]
(find_safe_codings): Remove unused var `i'.

21 years ago(Fbyte_code): Remove `unused val' warning.
Stefan Monnier [Sun, 25 May 2003 17:40:52 +0000 (17:40 +0000)]
(Fbyte_code): Remove `unused val' warning.

21 years ago(Fkill_buffer): Remove unused var `list'.
Stefan Monnier [Sun, 25 May 2003 17:40:27 +0000 (17:40 +0000)]
(Fkill_buffer): Remove unused var `list'.

21 years ago(Fgarbage_collect): Remove `unused var tail' warning.
Stefan Monnier [Sun, 25 May 2003 17:40:03 +0000 (17:40 +0000)]
(Fgarbage_collect): Remove `unused var tail' warning.

21 years ago(gdb-info-breakpoints-custom, gdb-assembler-custom):
Nick Roberts [Sun, 25 May 2003 16:51:34 +0000 (16:51 +0000)]
(gdb-info-breakpoints-custom, gdb-assembler-custom):
Put string associated with breakpoint at start of line so that it
is always visible.
(gdb-display-source-buffer): Display assembler during execution,
when requested.
(gud-menu-map): Add a toggle button to menubar for
gdb-many-windows.
(gdb-many-windows): Define explicitly as a function and a variable
(formerly as a minor mode). These need to be global so layout can
be reset from any buffer.
(gdb-assembler-mode): Keep fringe outside margin as the overlay
arrow is not used for assembler.

21 years ago*** empty log message ***
Nick Roberts [Sun, 25 May 2003 16:50:06 +0000 (16:50 +0000)]
*** empty log message ***

21 years ago* frame.c (make_frame): Condition want_fullscreen with
Jan Djärv [Sun, 25 May 2003 11:25:18 +0000 (11:25 +0000)]
* frame.c (make_frame): Condition want_fullscreen with
HAVE_WINDOW_SYSTEM.

21 years ago*** empty log message ***
Juanma Barranquero [Sun, 25 May 2003 02:17:23 +0000 (02:17 +0000)]
*** empty log message ***

21 years ago(Fset_window_scroll_bars): Fix typo in argument name.
Juanma Barranquero [Sun, 25 May 2003 02:11:24 +0000 (02:11 +0000)]
(Fset_window_scroll_bars): Fix typo in argument name.
(Fwindow_scroll_bars): Fix typo in docstring.

21 years agoFix typos.
Juanma Barranquero [Sun, 25 May 2003 02:06:57 +0000 (02:06 +0000)]
Fix typos.

21 years ago(which-func-update-timer): New variable.
Juanma Barranquero [Sun, 25 May 2003 02:02:45 +0000 (02:02 +0000)]
(which-func-update-timer): New variable.
(which-function-mode): Use it.

21 years ago(idle-update-delay): New variable.
Juanma Barranquero [Sun, 25 May 2003 01:45:14 +0000 (01:45 +0000)]
(idle-update-delay): New variable.

21 years ago(forward-visible-line): Fix negative arguments.
Juanma Barranquero [Sun, 25 May 2003 01:34:37 +0000 (01:34 +0000)]
(forward-visible-line): Fix negative arguments.

21 years ago(skeleton-pair-insert-maybe): Remove leftover reference to
Juanma Barranquero [Sun, 25 May 2003 01:31:48 +0000 (01:31 +0000)]
(skeleton-pair-insert-maybe): Remove leftover reference to
skeleton-abbrev-cleanup.

21 years ago*** empty log message ***
Stefan Monnier [Sun, 25 May 2003 00:45:01 +0000 (00:45 +0000)]
*** empty log message ***

21 years ago(skeleton-abbrev-cleanup, skeleton-proxy): Remove obsolete code.
Stefan Monnier [Sun, 25 May 2003 00:36:59 +0000 (00:36 +0000)]
(skeleton-abbrev-cleanup, skeleton-proxy): Remove obsolete code.

21 years agoNew per-window fringe and scroll-bar settings.
Kim F. Storm [Sat, 24 May 2003 23:54:43 +0000 (23:54 +0000)]
New per-window fringe and scroll-bar settings.

21 years ago(struct x_output): Move members left_pos, top_pos,
Kim F. Storm [Sat, 24 May 2003 22:10:38 +0000 (22:10 +0000)]
(struct x_output): Move members left_pos, top_pos,
border_width, pixel_height, pixel_width, line_height,
internal_border_width, vertical_scroll_bar_extra,
left_fringe_width, right_fringe_width, fringe_cols,
fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
(FRAME_DEFAULT_FONT_WIDTH): Remove macro.
(PIXEL_WIDTH, PIXEL_HEIGHT)
(FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
(FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
frame.h and renamed [see frame.h changes].
(CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
(CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
(PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
and renamed [see frame.h changes].

21 years agoMake (several) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:10:17 +0000 (22:10 +0000)]
Make (several) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(x_draw_glyph_string_box): Adapt to per-window fringes and
scroll-bars.
(scroll_run): Adapt to new fringe position.
(glyph_rect): Use window coordinates returned from
window_from_coordinates rather than frame_to_window_pixel_xy.
(XTset_vertical_scroll_bar): Adapt to per-window fringes and
scroll-bars.
(handle_one_xevent): Simplify a USE_GTK conditional.
(x_clip_to_row): Remove superfluous whole_line_p arg and code
(fringes are now inside margins, i.e. always in the clipping area).
All callers changed.
(x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
directly, then call compute_fringe_widths.  Don't call
frame_update_line_height.

21 years agoMake (some) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:09:50 +0000 (22:09 +0000)]
Make (some) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.

21 years agoMake (many) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:09:34 +0000 (22:09 +0000)]
Make (many) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.

21 years ago[WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
Kim F. Storm [Sat, 24 May 2003 22:09:13 +0000 (22:09 +0000)]
[WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
where it's used in x_list_fonts (for clarity).
(frame_update_line_height): Remove unused function; functionality
is now done directly when setting the default font in x_set_font.

21 years agoMake (many) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:08:54 +0000 (22:08 +0000)]
Make (many) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(window_box_width): Adapt to per-window fringes and scroll bars,
and new fringe vs. display margin position. Note that returned
value is no longer guaranteed to be a whole multiple of the frame
column width, since per-window fringes may now be any width.
(window_box_left_offset): New function like window_box_left, but
value is relative to left border of window (rather than frame).
(window_box_right_offset): New function like window_box_right,
but value is relative to left border of window.
(window_box_left): Adapt to per-window fringes and scroll bars,
and new fringe vs. display margin position.  Simplify by using
WINDOW_LEFT_EDGE_X and window_box_left_offset.
(window_box): Allow null args for unnecessary return values;
change/simplify relevant callers.
(x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
and new fringe vs. display margin position.  Use
window_box_left_offset and window_box_right_offset
(get_glyph_string_clip_rect): Adapt to per-window fringes and
scroll bars, and new fringe vs. display margin position.  Use
WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
(draw_fringe_bitmap): Rework to handle per-window fringes and new
fringe vs. display margin position.
(hscroll_window_tree): Use window_box_width instead of window_box.
(redisplay_window):  Adapt to per-window scroll bars.
(draw_glyphs):  Rework to handle per-window fringes and scroll
bars, and new fringe vs. display margin position.  Use
WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
(x_clear_end_of_line):  Adapt to per-window fringes and scroll
bars, and new fringe vs. display margin position.  Fix bug which
increased total width of full_width rows by width of scroll bars
although window's total width already includes that.
(x_fix_overlapping_area): Simplify using window_box_left_offset.
(expose_area): Simplify using window_box_left_offset.
(x_draw_vertical_border): Handle per-window scroll bar settings,
mixing windows with left, right and no scroll bars.

21 years ago(struct window): Rename members left to left_col,
Kim F. Storm [Sat, 24 May 2003 22:08:20 +0000 (22:08 +0000)]
(struct window): Rename members left to left_col,
top to top_line, height to total_lines, width to total_cols,
left_margin_width to left_margin_cols, right_margin_width to
right_margin_cols, orig_height to orig_total_lines, orig_top to
orig_top_line.  All uses changed.
(struct window): New members left_fringe_width, right_fringe_width,
fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
(WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
New macros primarily used to simplify other macros.
(WINDOW_TOTAL_COLS): New macro.  Change relevant code that
referred to XINT (w->width).
(WINDOW_TOTAL_LINES): New macro.  Change relevant code that
referred to XINT (w->height).
(WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
referred to XINT (w->width) * canon_x_unit.
(WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
referred to XINT (w->height) * canon_y_unit.
(WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
referred to XINT (w->left).
(WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE.  Change
all uses and code that referred to XINT (w->left) + XINT (w->width).
(WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
referred to XINT (w->top).
(WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
referred to XINT (w->top) + XINT (w->height).
(WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
referred to XINT (w->left) * canon_x_unit.
(WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
(WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
referred to XINT (w->top) * canon_y_unit.
(WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
(WINDOW_LEFTMOST_P): New macro.
(WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
All uses changed.
(WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
All uses changed.
(WINDOW_BOX_LEFT_EDGE_X): Renamed from
WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
Do not exclude left fringe width.
(WINDOW_BOX_RIGHT_EDGE_X): Renamed from
WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
Do not exclude fringe widths.
(WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
(WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
(WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
(WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
(WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
(WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
(WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
New macros.  Change code which referenced corresponding
FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
allow per-window scroll-bar settings.
(WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
(WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
(WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
FRAME_SCROLL_BAR_WIDTH.
(WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
(WINDOW_SCROLL_BAR_AREA_X): New macros.
(WINDOW_HEADER_LINE_HEIGHT): Renamed from
WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
(WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
(WINDOW_BOX_TEXT_HEIGHT): Renamed from
WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
(WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
(FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
(WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
(WINDOW_LEFT_MARGIN_WIDTH): Renamed from
WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
(WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
(window_from_coordinates): Update prototype.
(Fset_window_buffer): Update EXFUN.
(set_window_buffer): Update prototype.

21 years agoMake (many) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:07:51 +0000 (22:07 +0000)]
Make (many) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(make_window): Initialize new members
left_margin_cols, right_margin_cols, left_fringe_width,
right_fringe_width, fringes_outside_margins, scroll_bar_width,
and vertical_scroll_bar_type.
(coordinates_in_window): Adapted to new fringe/margin positions
and per-window fringes and scroll-bars.
Fix bug related to incorrectly adjusting coordinates by
frame's internal_border_width (the effect normally negible since
the internal_border_width is typically 0 or 1 pixel, but very
noticeable for an internal_border_width of e.g. 25 pixels).
Upon successful return (other than ON_NOTHING), the coordinates
are now always properly converted to window relative for the
given display element.
(window_from_coordinates): Add new parameters wx and wy to
return the window relative x and y position in the returned
window and part.  A null arg means, don't return the position.
All callers changed.
(adjust_window_margins): New function which may reduce the width
of the display margins if a window's text area is too small after
resizing or splitting windows.
(size_window): Fix bug that did not account for display margin
widths when checking the minimum width of a window; use
adjust_window_margins.
(set_window_buffer): Call Fset_window_fringes and
Fset_window_scroll_bars to setup per-window elements.
Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
existing display margin, fringe widths, and scroll bar settings
(e.g. after splitting a window or resizing the frame).  All
callers changed.
(Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
(Fsplit_window): Duplicate original window's display margin,
fringe, and scroll-bar settings; then call Fset_window_buffer with
KEEP_MARGINS non-nil.  This fixes a bug which caused a split
window to only preserve the display margins in one of the windows.
When splitting horisontally, call adjust_window_margins on both
windows to ensure that the text area of the new windows is non too
narrow.  This fixes a bug which could cause emacs to trap if the
width of the split window was less than the width of the display
margins.
(window_box_text_cols): Renamed from window_internal_width.  All
uses changed.  Adapt to per-window fringes and scroll bars.
Fix bug that caused vertical separator to be subtracted also on
window frames.  Fix another bug that did not reduce the returned
value by the columns used for display margins.
(window_scroll_line_based): Fix bug related to scrolling too much
when display margins are present (implicitly fixed by the fix to
window_box_text_cols).
(scroll_left, scroll_right): Fix bug related to scrolling too far
by default when display margins are present (implicitly fixed by
the fix to window_box_text_cols).
(struct saved_window): Rename members left to left_col, top to
top_line, width to total_cols, height to total_lines, orig_top to
orig_top_line, orig_height to orig_total_lines.  All uses changed.
New members left_margin_cols, right_margin_cols,
left_fringe_width, right_fringe_width, fringes_outside_margins,
scroll_bar_width, and vertical_scroll_bar_type for saving
per-window display elements.
(Fset_window_configuration): Restore display margins, fringes,
and scroll bar settings.  This fixes a bug which caused display
margins to be discarded when saving and restoring a window
configuration.
(save_window_save): Save display margins, fringes, and scroll bar
settings.  This fixes a bug which caused display margins to be
discarded when saving and restoring a window configuration.
(Fset_window_margins): Do nothing if display margins are not
really changed.  Otherwise, call adjust_window_margins to ensure
the text area doesn't get too narrow.  This fixes a bug which
could cause emacs to trap if setting display margins wider than
the width of the window.
(Fset_window_fringes): New defun to allow user to specifically set
this window's fringe widths and position vs. display margins.
(Fwindow_fringes): New defun to return window's actual fringe
settings.
(Fset_window_scroll_bars): New defun to allow user to specifically
set this window's scroll bar width and position.
(Fwindow_scroll_bars): New defun to return window's actual scroll
bar settings.
(compare_window_configurations): Also compare display margins,
fringes, and scroll bar settings.
(syms_of_window): Defsubr new defuns for fringe and scroll bars.

21 years agoMake (few) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:07:03 +0000 (22:07 +0000)]
Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.

21 years ago(struct w32_output): Move members left_pos, top_pos,
Kim F. Storm [Sat, 24 May 2003 22:06:40 +0000 (22:06 +0000)]
(struct w32_output): Move members left_pos, top_pos,
border_width, pixel_height, pixel_width, line_height,
internal_border_width, vertical_scroll_bar_extra,
left_fringe_width, right_fringe_width, fringe_cols,
fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
(FRAME_DEFAULT_FONT_WIDTH): Remove macro.
(PIXEL_WIDTH, PIXEL_HEIGHT)
(FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
(FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
frame.h and renamed [see frame.h changes].
(CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
(CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
(PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
and renamed [see frame.h changes].

21 years agoMake (several) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:06:19 +0000 (22:06 +0000)]
Make (several) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(x_draw_glyph_string_box): Adapt to per-window fringes and
scroll-bars.
(glyph_rect): Use window coordinates returned from
window_from_coordinates rather than frame_to_window_pixel_xy.
(XTset_vertical_scroll_bar): Adapt to per-window fringes and
scroll-bars.
(w32_clip_to_row): Remove superfluous whole_line_p arg and code
(fringes are now inside margins, i.e. always in the clipping area).
All callers changed.
(x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
directly, then call compute_fringe_widths.  Don't call
frame_update_line_height.

21 years ago(Fsun_menu_internal): Adapt to per-window fringes and scroll-bars.
Kim F. Storm [Sat, 24 May 2003 22:04:14 +0000 (22:04 +0000)]
(Fsun_menu_internal): Adapt to per-window fringes and scroll-bars.

21 years ago(struct x_output): Remove members left_pos, top_pos,
Kim F. Storm [Sat, 24 May 2003 22:03:10 +0000 (22:03 +0000)]
(struct x_output): Remove members left_pos, top_pos,
and line_height, and use corresponding new members in struct
frame.  All uses changed.
(FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
superseeded by corresponding macros in frame.h.

21 years agoMake (several) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:02:52 +0000 (22:02 +0000)]
Make (several) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(IT_note_mouse_highlight): Use updated window coordinates returned
by window_from_coordinates, rather than adjusting them locally.
(internal_terminal_init): No need to initialize line_height here;
it now defaults to 1.

21 years agoUpdate Fset_window_buffer usage.
Kim F. Storm [Sat, 24 May 2003 22:02:14 +0000 (22:02 +0000)]
Update Fset_window_buffer usage.

21 years ago(struct mac_output): Move members left_pos, top_pos,
Kim F. Storm [Sat, 24 May 2003 22:00:57 +0000 (22:00 +0000)]
(struct mac_output): Move members left_pos, top_pos,
border_width, pixel_height, pixel_width, line_height,
internal_border_width, vertical_scroll_bar_extra,
left_fringe_width, right_fringe_width, fringe_cols,
fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
x_pixels_diff, y_pixels_diff to struct frame (frame.h).
(FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
(FRAME_DEFAULT_FONT_WIDTH): Remove macro.
(PIXEL_WIDTH, PIXEL_HEIGHT)
(FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
(FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
frame.h and renamed [see frame.h changes].
(CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
(CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
(PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
and renamed [see frame.h changes].

21 years agoMake (several) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 22:00:34 +0000 (22:00 +0000)]
Make (several) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(x_draw_glyph_string_box): Adapt to per-window fringes and
scroll-bars.
(glyph_rect): Use window coordinates returned from
window_from_coordinates rather than frame_to_window_pixel_xy.
(XTset_vertical_scroll_bar): Adapt to per-window fringes and
scroll-bars.
(x_clip_to_row): Remove superfluous whole_line_p arg and code
(fringes are now inside margins, i.e. always in the clipping area).
All callers changed.
(x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
directly, then call compute_fringe_widths.  Don't call
frame_update_line_height.

21 years agoMake (several) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 21:59:47 +0000 (21:59 +0000)]
Make (several) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.

21 years agoMake (many) trivial substitutions for renamed and
Kim F. Storm [Sat, 24 May 2003 21:59:25 +0000 (21:59 +0000)]
Make (many) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
(make_lispy_event): Use window positions returned from
window_from_coordinates when constructing the lisp event for
MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
(incorrect) values locally.
(make_lispy_movement): Use window positions returned from
window_from_coordinates when constructing the lisp event, rather
than calculating (incorrect) values locally.