Mercurial > emacs
annotate src/m/gould-np1.h @ 51207:7e176ef34c10
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.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Sat, 24 May 2003 22:07:51 +0000 |
parents | 23a1cea22d13 |
children | 695cf19ef79e d7ddb3e565de |
rev | line source |
---|---|
36226 | 1 /* machine description file for Gould NP1 with UTX/32 3.0 (first release for NP1) |
2 Copyright (C) 1986 Free Software Foundation, Inc. | |
3 | |
4 This file is part of GNU Emacs. | |
5 | |
6 GNU Emacs is free software; you can redistribute it and/or modify | |
7 it under the terms of the GNU General Public License as published by | |
8 the Free Software Foundation; either version 2, or (at your option) | |
9 any later version. | |
10 | |
11 GNU Emacs is distributed in the hope that it will be useful, | |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 GNU General Public License for more details. | |
15 | |
16 You should have received a copy of the GNU General Public License | |
17 along with GNU Emacs; see the file COPYING. If not, write to | |
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 Boston, MA 02111-1307, USA. */ | |
457 | 20 |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
36226
diff
changeset
|
21 /* The following line tells the configuration script what sort of |
457 | 22 operating system this machine is likely to run. |
23 USUAL-OPSYS="bsd4-3" */ | |
24 | |
25 /* If your system uses COFF (Common Object File Format) then define the | |
26 preprocessor symbol "COFF". */ | |
27 /* UTX 3.0 uses a cross between COFF and a.out format, but closer to COFF. */ | |
28 /* at least currently, already defined by cpp, but make sure */ | |
29 #ifndef COFF | |
30 #define COFF | |
31 #endif COFF | |
32 | |
33 #include "gould.h" | |
34 | |
35 /* undefine what gould.h defined */ | |
36 #undef ADJUST_EXEC_HEADER | |
37 | |
38 /* If your system uses COFF (Common Object File Format) then define the | |
39 preprocessor symbol "COFF". */ | |
40 /* UTX 3.0 uses a cross between COFF and a.out format, but closer to COFF. */ | |
41 #ifndef COFF /* at least currently, already defined by cpp */ | |
42 #define COFF | |
43 #endif COFF | |
44 | |
45 /* make Gould NP1 and PN COFF look like USG COFF */ | |
46 /* NP1 COFF */ | |
47 #undef aouthdr /* Since gould.h already defined these */ | |
48 #undef a_dtbase | |
49 | |
50 #ifdef IN_UNEXEC | |
51 #define aouthdr exec | |
52 #define ADJUST_TEXT_SCNHDR_SIZE | |
53 | |
54 /* Gould COFF - these are already defined in gould.h */ | |
55 /* | |
56 * #define COFF_WITH_BSD_SYMTAB | |
57 * #define HEADER_INCL_IN_TEXT | |
58 * #define magic a_magic | |
59 * #define tsize a_text | |
60 * #define dsize a_data | |
61 * #define bsize a_bss | |
62 * #define entry a_entry | |
63 * #define text_start a_txbase | |
64 * #define data_start a_dtbase | |
65 */ | |
66 /* End Gould COFF */ | |
67 #endif /* IN_UNEXEC */ | |
68 | |
69 /* NP1 supports a slightly different set than PowerNode */ | |
70 #define BAUD_CONVERT { 0, 50, 75, 110, 134, 150, 300, 450, 600, 1200, \ | |
71 1800, 2000, 2400, 3600, 4800, 7200, 9600, \ | |
72 19200, 38400 } | |
73 | |
74 #define LD_SWITCH_SYSTEM -BS -e start | |
75 | |
76 /* Undef C_DEBUG_SWITCH because it may have been set in gould.h */ | |
77 /* It will compile and load and works with dbx. Runs under an incomplete | |
78 port of gdb, but gdb doesn't always find things correctly. */ | |
79 #undef C_DEBUG_SWITCH | |
80 #define C_DEBUG_SWITCH -g | |
81 #define LIBS_DEBUG -lg | |
82 | |
83 | |
84 /* The data segment in this machine always starts at address 0x1000000 = 16M. | |
85 An address of data cannot be stored correctly in a Lisp object; | |
86 we always lose the high bits. We must tell XPNTR to add them back. */ | |
87 | |
88 #define DATA_SEG_BITS 0x1000000 | |
89 #define DATA_START 0x1000000 | |
90 | |
91 /* The text segment always starts at 0. | |
92 This way we don't need to have a label _start defined. */ | |
93 #define TEXT_START 0 | |
94 | |
95 /* Data isn't right next to text on an NP1 */ | |
96 #define NO_REMAP | |
97 | |
98 /* The bcopy bug has reappeared */ | |
99 #undef BSTRING | |
100 | |
101 #ifndef GOULD_NP1 | |
102 #define GOULD_NP1 | |
103 #endif | |
104 | |
105 |