annotate src/m/pfa50.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 57e7eb824978
children 695cf19ef79e d7ddb3e565de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
579
e2782df984a2 *** empty log message ***
Jim Blandy <jimb@redhat.com>
parents: 471
diff changeset
1 /* Machine description file for PFU A-series.
44601
4be8406ebef9 Don't define HAVE_ALLOCA, C_ALLOCA and STACK_DIRECTION, now set by autoconf.
Andreas Schwab <schwab@suse.de>
parents: 26089
diff changeset
2 Copyright (C) 1988, 1999, 2002 Free Software Foundation, Inc.
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
3700
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
7 it under the terms of the GNU General Public License as published by
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
9 any later version.
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
3700
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
14 GNU General Public License for more details.
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
15
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
16 You should have received a copy of the GNU General Public License
d76398601a0b Update GPL references - version 2
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
14186
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 13374
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
ee40177f6c68 Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents: 13374
diff changeset
19 Boston, MA 02111-1307, USA. */
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
20
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
21
9095
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
22 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
23 is the most significant byte. */
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
24
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
25 #define WORDS_BIG_ENDIAN
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 8892
diff changeset
26
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27 /* Say this machine is a 68000 */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 #define m68000
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 #define mc68000 1
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
31
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 /* Use type int rather than a union, to represent Lisp_Object */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 #define NO_UNION_TYPE
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36 /* XINT must explicitly sign-extend */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38 #define EXPLICIT_SIGN_EXTEND
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40 /* The symbol FIONREAD is defined, but the feature does not work. */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 #define BROKEN_FIONREAD
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 /* Define NO_REMAP if memory segmentation makes it not work well
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
45 to change the boundary between the text section and data section
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 when Emacs is dumped. If you define this, the preloaded Lisp
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 code will not be sharable; but that's better than failing completely. */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 #define NO_REMAP
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 /* Define TEXT_START_ADDR if your linker don't set execute point to _start.
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 If it needed, temacs always CORE-DUMP. */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 #define TEXT_START_ADDR __start
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56 /* Define START_FILES if your machine used _start.
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 #define START_FILES crt0.o
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60
10359
5087094fb4d7 (VALBITS, XTYPE): Adjust for new bit layout.
Karl Heuer <kwzh@gnu.org>
parents: 9095
diff changeset
61 /* Define LD_SWITCH_MACHINE if your linker needs it.
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62 */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 #define LD_SWITCH_MACHINE -e __start
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66 #if pfa50 || pfa70
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67 /* On A-50/60/70/80, data space has high order byte use. */
46609
57e7eb824978 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
Ken Raeburn <raeburn@raeburn.org>
parents: 44601
diff changeset
68 #define DATA_SEG_BITS 0x60000000
471
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
69 #endif /* pfa50, pfa70 */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
70
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
71 /* SX/A has alloca in the PW library. */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73 #define LIB_STANDARD -lPW -lc
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
74
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
75 /* SX/A uses terminfo and lib/curses */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
76
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
77 #define TERMINFO
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
78
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
79 #define HAVE_PTYS
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80 #define HAVE_SOCKETS
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
81
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 /* SX/A use SystemV style getdents/readdir. */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
84 /* SX/A does not have sigblock(2) */
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
85 #define sigblock(mask) (0)
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
86
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
87 #define NO_SIOCTL_H
259595b59f93 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88
26089
1a4c3573a216 * m/alpha.h: Do not include <stdlib.h>, as <config.h> does this now.
Paul Eggert <eggert@twinsun.com>
parents: 14186
diff changeset
89 #define BROKEN_SIGIO