Mercurial > emacs
annotate src/s/dgux.h @ 1717:aa7d6d57504b
* frame.h (struct frame): New fields `can_have_scrollbars' and
`has_vertical_scrollbars'.
(FRAME_CAN_HAVE_SCROLLBARS, FRAME_HAS_VERTICAL_SCROLLBARS): New
accessors, for both the MULTI_FRAME and non-MULTI_FRAME.
(VERTICAL_SCROLLBAR_WIDTH, WINDOW_VERTICAL_SCROLLBAR,
WINDOW_VERTICAL_SCROLLBAR_COLUMN,
WINDOW_VERTICAL_SCROLLBAR_HEIGHT): New macros.
* window.h (struct window): New field `vertical_scrollbar'.
* xterm.h (struct x_display): vertical_scrollbars,
judge_timestamp, vertical_scrollbar_extra: New fields.
(struct scrollbar): New struct.
(VERTICAL_SCROLLBAR_PIXEL_WIDTH, VERTICAL_SCROLLBAR_PIXEL_HEIGHT,
VERTICAL_SCROLLBAR_LEFT_BORDER, VERTICAL_SCROLLBAR_RIGHT_BORDER,
VERTICAL_SCROLLBAR_TOP_BORDER, VERTICAL_SCROLLBAR_BOTTOM_BORDER,
CHAR_TO_PIXEL_WIDTH, CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_WIDTH,
PIXEL_TO_CHAR_HEIGHT): New accessors and macros.
* frame.c (make_frame): Initialize the `can_have_scrollbars' and
`has_vertical_scrollbars' fields of the frame.
* term.c (term_init): Note that TERMCAP terminals don't support
scrollbars.
(mouse_position_hook): Document new args.
(set_vertical_scrollbar_hook, condemn_scrollbars_hook,
redeem_scrollbar_hook, judge_scrollbars_hook): New hooks.
* termhooks.h: Declare and document them.
(enum scrollbar_part): New type.
(struct input_event): Describe the new form of the scrollbar_click
event type. Change `part' from a Lisp_Object to an enum
scrollbar_part. Add a new field `scrollbar'.
* keyboard.c (kbd_buffer_get_event): Pass appropriate new
parameters to *mouse_position_hook, and make_lispy_movement.
* xfns.c (x_set_vertical_scrollbar): New function.
(x_figure_window_size): Use new macros to calculate frame size.
(Fx_create_frame): Note that X Windows frames do support scroll
bars. Default to "yes".
* xterm.c: #include <X11/cursorfont.h> and "window.h".
(x_vertical_scrollbar_cursor): New variable.
(x_term_init): Initialize it.
(last_mouse_bar, last_mouse_bar_frame, last_mouse_part,
last_mouse_scroll_range_start, last_mouse_scroll_range_end): New
variables.
(XTmouse_position): Use them to return scrollbar movement events.
Take new arguments, for that purpose.
(x_window_to_scrollbar, x_scrollbar_create,
x_scrollbar_set_handle, x_scrollbar_remove, x_scrollbar_move,
XTset_scrollbar, XTcondemn_scrollbars, XTredeem_scrollbar,
XTjudge_scrollbars, x_scrollbar_expose,
x_scrollbar_background_expose, x_scrollbar_handle_click,
x_scrollbar_handle_motion): New functions to implement scrollbars.
(x_term_init): Set the termhooks.h hooks to point to them.
(x_set_window_size): Use new macros to calculate frame size. Set
vertical_scrollbar_extra field.
(x_make_frame_visible): Use the frame accessor
FRAME_HAS_VERTICAL_SCROLLBARS to decide if we need to map the
frame's subwindows as well.
(XTread_socket): Use new size-calculation macros from xterm.h when
processing ConfigureNotify events.
(x_wm_set_size_hint): Use PIXEL_TO_CHAR_WIDTH and
PIXEL_TO_CHAR_HEIGHT macros.
* ymakefile (xdisp.o): This now depends on termhooks.h.
(xterm.o): This now depends on window.h.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Thu, 24 Dec 1992 06:17:18 +0000 |
| parents | a83000ceb5df |
| children | 50b1987ff38a |
| rev | line source |
|---|---|
| 457 | 1 /* Definitions file for GNU Emacs running on Data General's DG/UX |
| 2 version 4.32 and above. | |
| 3 Copyright (C) 1985, 1986, 1991 Free Software Foundation, Inc. | |
| 4 | |
| 5 This file is part of GNU Emacs. | |
| 6 | |
| 7 GNU Emacs is free software; you can redistribute it and/or modify | |
| 8 it under the terms of the GNU General Public License as published by | |
| 9 the Free Software Foundation; either version 1, or (at your option) | |
| 10 any later version. | |
| 11 | |
| 12 GNU Emacs is distributed in the hope that it will be useful, | |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 GNU General Public License for more details. | |
| 16 | |
| 17 You should have received a copy of the GNU General Public License | |
| 18 along with GNU Emacs; see the file COPYING. If not, write to | |
| 19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
| 20 | |
| 21 | |
| 22 /* | |
| 23 * Define symbols to identify the version of Unix this is. | |
| 24 * Define all the symbols that apply correctly. | |
| 25 */ | |
| 26 | |
| 27 /* #define UNIPLUS */ | |
| 28 /* #define USG5 */ | |
| 29 /* #define USG */ | |
| 30 /* #define HPUX */ | |
| 31 /* #define UMAX */ | |
| 32 /* #define BSD4_1 */ | |
| 33 #define BSD4_2 | |
| 34 #define BSD4_3 | |
| 35 #define BSD | |
| 36 /* #define VMS */ | |
| 37 | |
| 38 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
| 39 It sets the Lisp variable system-type. */ | |
| 40 | |
|
1549
a83000ceb5df
(SYSTEM_TYPE): Use berkeley-unix.
Richard M. Stallman <rms@gnu.org>
parents:
457
diff
changeset
|
41 #define SYSTEM_TYPE "berkeley-unix" |
| 457 | 42 |
| 43 /* NOMULTIPLEJOBS should be defined if your system's shell | |
| 44 does not have "job control" (the ability to stop a program, | |
| 45 run some other program, then continue the first one). */ | |
| 46 | |
| 47 /* #define NOMULTIPLEJOBS */ | |
| 48 | |
| 49 /* Emacs can read input using SIGIO and buffering characters itself, | |
| 50 or using CBREAK mode and making C-g cause SIGINT. | |
| 51 The choice is controlled by the variable interrupt_input. | |
| 52 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
| 53 | |
| 54 SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
| 55 CBREAK mode has two disadvatages | |
| 56 1) At least in 4.2, it is impossible to handle the Meta key properly. | |
| 57 I hear that in system V this problem does not exist. | |
| 58 2) Control-G causes output to be discarded. | |
| 59 I do not know whether this can be fixed in system V. | |
| 60 | |
| 61 Another method of doing input is planned but not implemented. | |
| 62 It would have Emacs fork off a separate process | |
| 63 to read the input and send it to the true Emacs process | |
| 64 through a pipe. | |
| 65 */ | |
| 66 | |
| 67 #define INTERRUPT_INPUT | |
| 68 | |
| 69 /* Letter to use in finding device name of first pty, | |
| 70 if system supports pty's. 'a' means it is /dev/ptya0 */ | |
| 71 | |
| 72 #define FIRST_PTY_LETTER 'r' | |
| 73 | |
| 74 /* | |
| 75 * Define HAVE_TIMEVAL if the system supports the BSD style clock values. | |
| 76 * Look in <sys/time.h> for a timeval structure. | |
| 77 */ | |
| 78 | |
| 79 #define HAVE_TIMEVAL | |
| 80 | |
| 81 /* | |
| 82 * Define HAVE_SELECT if the system supports the `select' system call. | |
| 83 */ | |
| 84 | |
| 85 #define HAVE_SELECT | |
| 86 | |
| 87 /* | |
| 88 * Define HAVE_SOCKETS if the system supports sockets. | |
| 89 */ | |
| 90 | |
| 91 #define HAVE_SOCKETS | |
| 92 | |
| 93 /* | |
| 94 * Define HAVE_PTYS if the system supports pty devices. | |
| 95 */ | |
| 96 | |
| 97 #define HAVE_PTYS | |
| 98 | |
| 99 /* | |
| 100 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate | |
| 101 * The 4.2 opendir, etc., library functions. | |
| 102 */ | |
| 103 | |
| 104 /* #define NONSYSTEM_DIR_LIBRARY */ | |
| 105 | |
| 106 /* Define this symbol if your system has the functions bcopy, etc. */ | |
| 107 | |
| 108 #define BSTRING | |
| 109 | |
| 110 /* subprocesses should be defined if you want to | |
| 111 have code for asynchronous subprocesses | |
| 112 (as used in M-x compile and M-x shell). | |
| 113 This is generally OS dependent, and not supported | |
| 114 under most USG systems. */ | |
| 115 | |
| 116 #define subprocesses | |
| 117 | |
| 118 /* If your system uses COFF (Common Object File Format) then define the | |
| 119 preprocessor symbol "COFF". */ | |
| 120 | |
| 121 #define COFF | |
| 122 | |
| 123 /* define MAIL_USE_FLOCK if the mailer uses flock | |
| 124 to interlock access to /usr/spool/mail/$USER. | |
| 125 The alternative is that a lock file named | |
| 126 /usr/spool/mail/$USER.lock. */ | |
| 127 | |
| 128 /* #define MAIL_USE_FLOCK */ | |
| 129 | |
| 130 /* Define CLASH_DETECTION if you want lock files to be written | |
| 131 so that Emacs can tell instantly when you try to modify | |
| 132 a file that someone else has modified in his Emacs. */ | |
| 133 | |
| 134 /* #define CLASH_DETECTION */ | |
| 135 | |
| 136 /* Define a replacement for the baud rate switch, since DG/UX uses a different | |
| 137 from BSD. */ | |
| 138 | |
| 139 #define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \ | |
| 140 4800, 9600, 19200, 38400 } | |
| 141 | |
| 142 /* | |
| 143 * Define HAVE_GETTIMEOFDAY if gettimeofday() system call is available. | |
| 144 */ | |
| 145 | |
| 146 #define HAVE_GETTIMEOFDAY | |
| 147 | |
| 148 /* | |
| 149 * Define NLIST_STRUCT if the system has nlist.h | |
| 150 */ | |
| 151 | |
| 152 #define NLIST_STRUCT | |
| 153 | |
| 154 /* | |
| 155 * Make WM Interface Compliant. | |
| 156 */ | |
| 157 | |
| 158 #define XICCC | |
| 159 | |
| 160 /* Here, on a separate page, add any special hacks needed | |
| 161 to make Emacs work on this system. For example, | |
| 162 you might define certain system call names that don't | |
| 163 exist on your system, or that do different things on | |
| 164 your system and must be used only through an encapsulation | |
| 165 (Which you should place, by convention, in sysdep.c). */ | |
| 166 | |
| 167 /* Some compilers tend to put everything declared static | |
| 168 into the initialized data area, which becomes pure after dumping Emacs. | |
| 169 On these systems, you must #define static as nothing to foil this. | |
| 170 Note that emacs carefully avoids static vars inside functions. */ | |
| 171 | |
| 172 /* #define static */ | |
| 173 | |
| 174 /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */ | |
| 175 | |
| 176 /* Use the Berkeley flavors of the library routines, instead of System V. */ | |
| 177 | |
| 178 #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp) | |
| 179 #define getpgrp(pid) getpgrp2(pid) | |
| 180 | |
| 181 /* Act like Berkeley. */ | |
| 182 | |
| 183 #define _setjmp(env) sigsetjmp(env,0) | |
| 184 #define _longjmp(env,val) longjmp(env,val) | |
| 185 | |
| 186 /* Use TERMINFO instead of termcap */ | |
| 187 | |
| 188 #define TERMINFO | |
| 189 | |
| 190 /* | |
| 191 * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
| 192 * for terminal control. | |
| 193 * DG/UX has both BSD and AT&T style ioctl's. Bsd ioctl's don't | |
| 194 * seem to wait for the output to drain properly, so use System V. | |
| 195 */ | |
| 196 | |
| 197 /* #define HAVE_TERMIO */ | |
| 198 | |
| 199 /* | |
| 200 * DG/UX 4.10 needs the following to turn on berkeley ioctl's. | |
| 201 */ | |
| 202 | |
| 203 #ifndef HAVE_TERMIO | |
| 204 #define _BSD_TTY_FLAVOR | |
| 205 #endif | |
| 206 | |
| 207 /* | |
| 208 * Use a Berkeley style sys/wait.h. | |
| 209 * This makes WIF* macros operate on structures instead of ints. | |
| 210 */ | |
| 211 | |
| 212 #define _BSD_WAIT_FLAVOR | |
| 213 | |
| 214 /* Enable the x-rebind keysym function. Do not try to map function | |
| 215 keys internally. */ | |
| 216 | |
| 217 #define XREBINDKEYSYM | |
| 218 | |
| 219 /* | |
| 220 * Use BSD and POSIX-style signals. This is crucial! | |
| 221 */ | |
| 222 | |
| 223 /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */ | |
| 224 #ifndef MAKING_MAKEFILE | |
| 225 | |
| 226 /* Make sure signal.h is included so macros below don't mess with it. */ | |
| 227 /* DG/UX include files prevent multiple inclusion. */ | |
| 228 | |
| 229 #include <signal.h> | |
| 230 | |
| 231 #define POSIX_SIGNALS | |
| 232 | |
| 233 /* Not worth converting the old GNU malloc to work with POSIX_SIGNALS. */ | |
| 234 #define SYSTEM_MALLOC | |
| 235 | |
| 236 /* Define this if you use System 5 Release 4 Streams */ | |
| 237 #define SYSV4_PTYS | |
| 238 #define open sys_open | |
| 239 #define close sys_close | |
| 240 #define read sys_read | |
| 241 #define write sys_write | |
| 242 | |
| 243 #define INTERRUPTABLE_OPEN | |
| 244 #define INTERRUPTABLE_CLOSE | |
| 245 /* can't hurt to define these, even though read/write should auto restart */ | |
| 246 #define INTERRUPTABLE_IO | |
| 247 | |
| 248 /* Can't use sys_signal because then etc/server.c would need sysdep.o. */ | |
| 249 #define signal(SIG,FUNC) berk_signal(SIG,FUNC) | |
| 250 | |
| 251 #else /* MAKING_MAKEFILE */ | |
| 252 /* force gcc to be used */ | |
| 253 CC=gcc | |
| 254 #endif /* not MAKING_MAKEFILE */ |
