Mercurial > emacs
annotate lisp/paths.el @ 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 | 975c866af92d |
| children | ba2fcbf5d6a1 |
| rev | line source |
|---|---|
|
659
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
1 ;;; paths.el --- define pathnames for use by various Emacs commands. |
|
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
2 |
|
846
20674ae6bf52
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
814
diff
changeset
|
3 ;; Copyright (C) 1986, 1988 Free Software Foundation, Inc. |
|
20674ae6bf52
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
814
diff
changeset
|
4 |
|
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
5 ;; Maintainer: FSF |
|
814
38b2499cb3e9
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
807
diff
changeset
|
6 ;; Keywords: internal |
|
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
7 |
| 88 | 8 ;; This file is part of GNU Emacs. |
| 9 | |
| 10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
| 11 ;; it under the terms of the GNU General Public License as published by | |
|
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
12 ;; the Free Software Foundation; either version 2, or (at your option) |
| 88 | 13 ;; any later version. |
| 14 | |
| 15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
| 16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 ;; GNU General Public License for more details. | |
| 19 | |
| 20 ;; You should have received a copy of the GNU General Public License | |
| 21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
| 22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 23 | |
|
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
24 ;;; Commentary: |
| 88 | 25 |
| 26 ;; These are default settings for names of certain files and directories | |
| 27 ;; that Emacs needs to refer to from time to time. | |
| 28 | |
| 29 ;; If these settings are not right, override them with `setq' | |
| 30 ;; in site-init.el. Do not change this file. | |
| 31 | |
|
807
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
32 ;;; Code: |
|
4f28bd14272c
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
659
diff
changeset
|
33 |
| 390 | 34 (defvar Info-default-directory-list |
|
1673
975c866af92d
Sat Dec 12 03:22:57 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1618
diff
changeset
|
35 (list "/usr/local/info/" |
|
975c866af92d
Sat Dec 12 03:22:57 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
Jim Blandy <jimb@redhat.com>
parents:
1618
diff
changeset
|
36 "/usr/local/lib/info/" |
| 444 | 37 (expand-file-name "../info/" data-directory)) |
| 88 | 38 "List of directories to search for Info documentation files.") |
| 39 | |
| 40 (defvar news-path "/usr/spool/news/" | |
| 41 "The root directory below which all news files are stored.") | |
| 42 | |
| 43 (defvar news-inews-program | |
| 44 (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews") | |
| 45 ((file-exists-p "/usr/local/inews") "/usr/local/inews") | |
| 46 ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews") | |
| 47 ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews") | |
| 48 (t "inews")) | |
| 49 "Program to post news.") | |
| 50 | |
| 51 (defvar gnus-default-nntp-server "" | |
| 52 ;; set this to your local server | |
| 53 "The name of the host running an NNTP server. | |
| 89 | 54 If it is a string such as \":DIRECTORY\", then ~/DIRECTORY |
| 55 is used as a news spool. `gnus-nntp-server' is initialised from NNTPSERVER | |
| 88 | 56 environment variable or, if none, this value.") |
| 57 | |
| 58 (defvar gnus-nntp-service "nntp" | |
| 59 "NNTP service name, usually \"nntp\" or 119). | |
| 89 | 60 Go to a local news spool if its value is nil, in which case `gnus-nntp-server' |
| 61 should be set to `(system-name)'.") | |
| 88 | 62 |
| 63 (defvar gnus-your-domain nil | |
| 64 "Your domain name without your host name like: \"stars.flab.Fujitsu.CO.JP\" | |
| 89 | 65 The DOMAINNAME environment variable is used instead if defined. If |
| 66 the function `system-name' returns a fully qualified domain name, there is no | |
| 88 | 67 need to define the name.") |
| 68 | |
| 69 (defvar gnus-your-organization "" | |
| 70 "Your organization like: \"Fujitsu Laboratories Ltd., Kawasaki, Japan.\" | |
| 71 The `ORGANIZATION' environment variable is used instead if defined.") | |
| 72 | |
| 73 (defvar mh-progs | |
| 855 | 74 (cond ((file-directory-p "/usr/bin/mh/") "/usr/bin/mh/") ;Ultrix 4.2 |
| 75 ((file-directory-p "/usr/new/mh/") "/usr/new/mh/") ;Ultrix <4.2 | |
| 76 ((file-directory-p "/usr/local/bin/mh/") "/usr/local/bin/mh/") | |
| 77 ((file-directory-p "/usr/local/mh/") "/usr/local/mh/") | |
| 78 (t "/usr/local/bin/")) | |
| 79 "Directory containing MH commands.") | |
| 88 | 80 |
| 81 (defvar mh-lib | |
| 855 | 82 (cond ((file-directory-p "/usr/lib/mh/") "/usr/lib/mh/") ;Ultrix 4.2 |
| 83 ((file-directory-p "/usr/new/lib/mh/") "/usr/new/lib/mh/") ;Ultrix <4.2 | |
| 84 ((file-directory-p "/usr/local/lib/mh/") "/usr/local/lib/mh/") | |
| 85 (t "/usr/local/bin/mh/")) | |
| 86 "Directory of MH library.") | |
| 88 | 87 |
| 88 (defvar rmail-file-name "~/RMAIL" | |
| 89 "Name of user's primary mail file.") | |
| 90 | |
| 91 (defvar gnus-startup-file "~/.newsrc" | |
| 92 "The file listing groups to which user is subscribed. | |
| 93 Will use `gnus-startup-file'-SERVER instead if exists.") | |
| 94 | |
| 95 (defconst rmail-spool-directory | |
|
1618
a5486162a65a
* paths.el (rmail-spool-directory): Add dgux-unix to the list of
Jim Blandy <jimb@redhat.com>
parents:
1489
diff
changeset
|
96 (if (memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu |
|
a5486162a65a
* paths.el (rmail-spool-directory): Add dgux-unix to the list of
Jim Blandy <jimb@redhat.com>
parents:
1489
diff
changeset
|
97 irix silicon-graphics-unix)) |
| 88 | 98 "/usr/mail/" |
| 99 "/usr/spool/mail/") | |
| 100 "Name of directory used by system mailer for delivering new mail. | |
| 101 Its name should end with a slash.") | |
| 102 | |
| 103 (defconst sendmail-program | |
| 104 (if (file-exists-p "/usr/lib/sendmail") | |
| 105 "/usr/lib/sendmail" | |
| 106 "fakemail") ;In ../etc, to interface to /bin/mail. | |
| 107 "Program used to send messages.") | |
| 108 | |
| 109 (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") | |
| 110 "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) | |
| 111 You may set this variable to nil in your `.emacs' file if you do not wish | |
| 112 the terminal-initialization file to be loaded.") | |
| 113 | |
|
1489
c3d069d83cc6
(manual-program): Always use /usr/ucb/man if that exists.
Richard M. Stallman <rms@gnu.org>
parents:
855
diff
changeset
|
114 ;; Solaris 2 has both of these files; prefer /usr/ucb/man |
|
c3d069d83cc6
(manual-program): Always use /usr/ucb/man if that exists.
Richard M. Stallman <rms@gnu.org>
parents:
855
diff
changeset
|
115 ;; because the other has nonstandard argument conventions. |
|
c3d069d83cc6
(manual-program): Always use /usr/ucb/man if that exists.
Richard M. Stallman <rms@gnu.org>
parents:
855
diff
changeset
|
116 (defconst manual-program (if (file-exists-p "/usr/ucb/man") |
| 88 | 117 "/usr/ucb/man" "/usr/bin/man") |
| 118 "Program to run to print man pages.") | |
| 119 | |
| 120 ;; Note that /usr/man/cat is not really right for this on sysV; nothing is, | |
| 121 ;; judging by the list of directories below. You can't get the dir | |
| 122 ;; for a section by appending the section number to any one prefix. | |
| 123 ;; But it turns out that a string that's wrong does no harm here. | |
| 124 (defconst manual-formatted-dir-prefix | |
| 125 (if (file-exists-p "/usr/man/cat.C") ;; Check for Xenix. | |
| 126 "/usr/man/cat." "/usr/man/cat") | |
| 127 "Prefix for directories containing formatted manual pages. | |
| 128 Append a section-number or section-name to get a directory name.") | |
| 129 | |
| 130 (defconst manual-formatted-dirlist | |
| 131 (cond ((eq system-type 'hpux) | |
| 132 '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3" | |
| 133 "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6" | |
| 134 "/usr/man/cat7" "/usr/man/cat1m" "/usr/man/cat8" | |
| 135 "/usr/local/man/cat1" "/usr/local/man/cat2" "/usr/local/man/cat3" | |
| 136 "/usr/local/man/cat4" "/usr/local/man/cat5" "/usr/local/man/cat6" | |
| 137 "/usr/local/man/cat7" "/usr/local/man/cat1m" "/usr/local/man/cat8" | |
| 138 "/usr/contrib/man/cat1" "/usr/contrib/man/cat2" | |
| 139 "/usr/contrib/man/cat3" "/usr/contrib/man/cat4" | |
| 140 "/usr/contrib/man/cat5" "/usr/contrib/man/cat6" | |
| 141 "/usr/contrib/man/cat7" "/usr/contrib/man/cat1m" | |
| 142 "/usr/contrib/man/cat8")) | |
| 143 ((file-exists-p "/usr/man/cat.C") ; Xenix | |
| 144 '("/usr/man/cat.C" "/usr/man/cat.CP" "/usr/man/cat.CT" | |
| 145 "/usr/man/cat.DOS/" "/usr/man/cat.F" "/usr/man/cat.HW" | |
| 146 "/usr/man/cat.M/" "/usr/man/cat.S" "/usr/man/cat.LOCAL")) | |
| 147 ((file-exists-p "/usr/man/cat3/cat3") | |
| 148 ;; This is for UMAX. | |
| 149 '("/usr/man/cat1" "/usr/man/cat2" | |
| 150 "/usr/man/cat3" "/usr/man/cat3/cat3" | |
| 151 "/usr/man/cat3/cat3b" "/usr/man/cat3/cat3c" | |
| 152 "/usr/man/cat3/cat3f" "/usr/man/cat3/cat3m" | |
| 153 "/usr/man/cat3/cat3n" "/usr/man/cat3/cat3p" | |
| 154 "/usr/man/cat3/cat3s" "/usr/man/cat3/cat3u" | |
| 155 "/usr/man/cat3/cat3x" "/usr/man/cat4" | |
| 156 "/usr/man/cat5" "/usr/man/cat6" | |
| 157 "/usr/man/cat7" "/usr/man/cat8" | |
| 158 "/usr/man/catl" "/usr/man/catn")) | |
| 159 ((file-exists-p "/usr/man/cat1") | |
| 160 '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3" | |
| 161 "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6" | |
| 162 "/usr/man/cat7" "/usr/man/cat8" "/usr/man/catl" "/usr/man/catn")) | |
| 163 (t | |
| 164 '("/usr/catman/u_man/man1" "/usr/catman/u_man/man6" | |
| 165 "/usr/catman/p_man/man2" "/usr/catman/p_man/man3" | |
| 166 "/usr/catman/p_man/man4" "/usr/catman/p_man/man5" | |
| 167 "/usr/catman/a_man/man1" "/usr/catman/a_man/man7" | |
| 168 "/usr/catman/a_man/man8" "/usr/catman/local" | |
| 169 "/usr/catman/a_man/man8" "/usr/catman/local/man1" | |
| 170 "/usr/catman/local/man2" "/usr/catman/local/man3" | |
| 171 "/usr/catman/local/man4" "/usr/catman/local/man5" | |
| 172 "/usr/catman/local/man6" "/usr/catman/local/man7" | |
| 173 "/usr/catman/local/man8"))) | |
| 174 "List of directories containing formatted manual pages.") | |
| 175 | |
| 176 (defconst abbrev-file-name | |
| 177 (if (eq system-type 'vax-vms) | |
| 178 "~/abbrev.def" | |
| 179 "~/.abbrev_defs") | |
| 180 "*Default name of file to read abbrevs from.") | |
|
659
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
181 |
|
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
182 ;;; paths.el ends here |
