Mercurial > emacs
annotate lisp/paths.el @ 3075:878381e48b0d
* xfns.c: Clear out the old face stuff.
(x_face_table, n_faces, x_set_face, x_set_glyph, Fx_set_face_font,
Fx_set_face, Fx_get_face): Removed.
(syms_of_xfns): Remove defsubr for Fx_set_face.
Arrange for font names to get fully resolved - no wildcards.
* xfns.c (x_set_frame_parameters): Store the value in the frame
parameter alist before we call the setter function, so the setter
function can touch up the value if it chooses.
(x_set_foreground_color, x_set_background_color): Call
recompute_basic_faces, so their GC's will reflect the changes.
(x_new_font): Add extern declaration - this returns a Lisp_Object
now, the fully resolved font name.
(x_set_font): Accept the fully resolved name from x_new_font, and
put it in the frame's parameter alist. Call recompute_basic_faces.
* xterm.c (x_new_font): Return the fully resolved font name, Qnil
(if no match), or Qt (match, but unacceptable metrics).
* xterm.c (x_new_font): Don't call init_frame_faces.
* xterm.h: New section for declarations for xfaces.c.
(init_frame_faces, free_frame_faces, intern_face,
face_name_id_number, same_size_fonts, recompute_basic_faces,
compute_char_face, compute_glyph_face): Declare these here.
* xfaces.c (same_size_fonts): We can now remove this extern
declaration.
* xfns.c (face_name_id_number): Likewise.
* xterm.c (intern_face): Likewise.
* xfns.c (Fx_list_fonts): Remember that FACE may not have a font
specified. Don't specify 30000 as the maximum limit on the number
of fontns returned - 2000 is more reasonable.
Treat faces as structures specifying modifications to the frame's
parameters, rather than things which need to specify a complete
set of parameters by themselves.
* xfaces.c (init_frame_faces): Don't set up the two frame display
faces by querying the GC - just leave all their fields blank, and
call recompute_basic_faces, letting build_face do the work of
consulting the frame when necessary.
(recompute_basic_faces): New function.
(compute_base_faces): New function for obtaining the "identity"
for compute_char_face and compute_glyph_face.
(compute_char_face, compute_glyph_face): Call it, instead of copying
FRAME_DEFAULT_FACE.
* xfns.c (x_make_gc): No need to call init_frame_faces here.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 25 May 1993 14:03:41 +0000 |
parents | c1dcd28d351b |
children | 691f059e3d92 |
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/" |
3062
c1dcd28d351b
* paths.el (Info-default-directory-list): Add ../../info.
Jim Blandy <jimb@redhat.com>
parents:
3051
diff
changeset
|
37 configured-info-directory |
3051
413a5d7f00b0
(Info-default-directory-list): Add ../../info.
Richard M. Stallman <rms@gnu.org>
parents:
1825
diff
changeset
|
38 (expand-file-name "../info/" data-directory) |
413a5d7f00b0
(Info-default-directory-list): Add ../../info.
Richard M. Stallman <rms@gnu.org>
parents:
1825
diff
changeset
|
39 (expand-file-name "../../info/" data-directory)) |
88 | 40 "List of directories to search for Info documentation files.") |
41 | |
42 (defvar news-path "/usr/spool/news/" | |
43 "The root directory below which all news files are stored.") | |
44 | |
45 (defvar news-inews-program | |
46 (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews") | |
47 ((file-exists-p "/usr/local/inews") "/usr/local/inews") | |
48 ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews") | |
49 ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews") | |
50 (t "inews")) | |
51 "Program to post news.") | |
52 | |
53 (defvar gnus-default-nntp-server "" | |
54 ;; set this to your local server | |
55 "The name of the host running an NNTP server. | |
89 | 56 If it is a string such as \":DIRECTORY\", then ~/DIRECTORY |
57 is used as a news spool. `gnus-nntp-server' is initialised from NNTPSERVER | |
88 | 58 environment variable or, if none, this value.") |
59 | |
60 (defvar gnus-nntp-service "nntp" | |
61 "NNTP service name, usually \"nntp\" or 119). | |
89 | 62 Go to a local news spool if its value is nil, in which case `gnus-nntp-server' |
63 should be set to `(system-name)'.") | |
88 | 64 |
65 (defvar gnus-your-domain nil | |
66 "Your domain name without your host name like: \"stars.flab.Fujitsu.CO.JP\" | |
89 | 67 The DOMAINNAME environment variable is used instead if defined. If |
68 the function `system-name' returns a fully qualified domain name, there is no | |
88 | 69 need to define the name.") |
70 | |
71 (defvar gnus-your-organization "" | |
72 "Your organization like: \"Fujitsu Laboratories Ltd., Kawasaki, Japan.\" | |
73 The `ORGANIZATION' environment variable is used instead if defined.") | |
74 | |
75 (defvar mh-progs | |
855 | 76 (cond ((file-directory-p "/usr/bin/mh/") "/usr/bin/mh/") ;Ultrix 4.2 |
77 ((file-directory-p "/usr/new/mh/") "/usr/new/mh/") ;Ultrix <4.2 | |
78 ((file-directory-p "/usr/local/bin/mh/") "/usr/local/bin/mh/") | |
79 ((file-directory-p "/usr/local/mh/") "/usr/local/mh/") | |
80 (t "/usr/local/bin/")) | |
81 "Directory containing MH commands.") | |
88 | 82 |
83 (defvar mh-lib | |
855 | 84 (cond ((file-directory-p "/usr/lib/mh/") "/usr/lib/mh/") ;Ultrix 4.2 |
85 ((file-directory-p "/usr/new/lib/mh/") "/usr/new/lib/mh/") ;Ultrix <4.2 | |
86 ((file-directory-p "/usr/local/lib/mh/") "/usr/local/lib/mh/") | |
87 (t "/usr/local/bin/mh/")) | |
88 "Directory of MH library.") | |
88 | 89 |
90 (defvar rmail-file-name "~/RMAIL" | |
91 "Name of user's primary mail file.") | |
92 | |
93 (defvar gnus-startup-file "~/.newsrc" | |
94 "The file listing groups to which user is subscribed. | |
95 Will use `gnus-startup-file'-SERVER instead if exists.") | |
96 | |
97 (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
|
98 (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
|
99 irix silicon-graphics-unix)) |
88 | 100 "/usr/mail/" |
101 "/usr/spool/mail/") | |
102 "Name of directory used by system mailer for delivering new mail. | |
103 Its name should end with a slash.") | |
104 | |
105 (defconst sendmail-program | |
106 (if (file-exists-p "/usr/lib/sendmail") | |
107 "/usr/lib/sendmail" | |
1825
ba2fcbf5d6a1
(sendmail-program): Try /usr/ucblib/sendmail.
Richard M. Stallman <rms@gnu.org>
parents:
1673
diff
changeset
|
108 (if (file-exists-p "/usr/ucblib/sendmail") |
ba2fcbf5d6a1
(sendmail-program): Try /usr/ucblib/sendmail.
Richard M. Stallman <rms@gnu.org>
parents:
1673
diff
changeset
|
109 "/usr/ucblib/sendmail" |
ba2fcbf5d6a1
(sendmail-program): Try /usr/ucblib/sendmail.
Richard M. Stallman <rms@gnu.org>
parents:
1673
diff
changeset
|
110 "fakemail")) ;In ../etc, to interface to /bin/mail. |
88 | 111 "Program used to send messages.") |
112 | |
113 (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/") | |
114 "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\"))) | |
115 You may set this variable to nil in your `.emacs' file if you do not wish | |
116 the terminal-initialization file to be loaded.") | |
117 | |
1489
c3d069d83cc6
(manual-program): Always use /usr/ucb/man if that exists.
Richard M. Stallman <rms@gnu.org>
parents:
855
diff
changeset
|
118 ;; 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
|
119 ;; 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
|
120 (defconst manual-program (if (file-exists-p "/usr/ucb/man") |
88 | 121 "/usr/ucb/man" "/usr/bin/man") |
122 "Program to run to print man pages.") | |
123 | |
124 ;; Note that /usr/man/cat is not really right for this on sysV; nothing is, | |
125 ;; judging by the list of directories below. You can't get the dir | |
126 ;; for a section by appending the section number to any one prefix. | |
127 ;; But it turns out that a string that's wrong does no harm here. | |
128 (defconst manual-formatted-dir-prefix | |
129 (if (file-exists-p "/usr/man/cat.C") ;; Check for Xenix. | |
130 "/usr/man/cat." "/usr/man/cat") | |
131 "Prefix for directories containing formatted manual pages. | |
132 Append a section-number or section-name to get a directory name.") | |
133 | |
134 (defconst manual-formatted-dirlist | |
135 (cond ((eq system-type 'hpux) | |
136 '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3" | |
137 "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6" | |
138 "/usr/man/cat7" "/usr/man/cat1m" "/usr/man/cat8" | |
139 "/usr/local/man/cat1" "/usr/local/man/cat2" "/usr/local/man/cat3" | |
140 "/usr/local/man/cat4" "/usr/local/man/cat5" "/usr/local/man/cat6" | |
141 "/usr/local/man/cat7" "/usr/local/man/cat1m" "/usr/local/man/cat8" | |
142 "/usr/contrib/man/cat1" "/usr/contrib/man/cat2" | |
143 "/usr/contrib/man/cat3" "/usr/contrib/man/cat4" | |
144 "/usr/contrib/man/cat5" "/usr/contrib/man/cat6" | |
145 "/usr/contrib/man/cat7" "/usr/contrib/man/cat1m" | |
146 "/usr/contrib/man/cat8")) | |
147 ((file-exists-p "/usr/man/cat.C") ; Xenix | |
148 '("/usr/man/cat.C" "/usr/man/cat.CP" "/usr/man/cat.CT" | |
149 "/usr/man/cat.DOS/" "/usr/man/cat.F" "/usr/man/cat.HW" | |
150 "/usr/man/cat.M/" "/usr/man/cat.S" "/usr/man/cat.LOCAL")) | |
151 ((file-exists-p "/usr/man/cat3/cat3") | |
152 ;; This is for UMAX. | |
153 '("/usr/man/cat1" "/usr/man/cat2" | |
154 "/usr/man/cat3" "/usr/man/cat3/cat3" | |
155 "/usr/man/cat3/cat3b" "/usr/man/cat3/cat3c" | |
156 "/usr/man/cat3/cat3f" "/usr/man/cat3/cat3m" | |
157 "/usr/man/cat3/cat3n" "/usr/man/cat3/cat3p" | |
158 "/usr/man/cat3/cat3s" "/usr/man/cat3/cat3u" | |
159 "/usr/man/cat3/cat3x" "/usr/man/cat4" | |
160 "/usr/man/cat5" "/usr/man/cat6" | |
161 "/usr/man/cat7" "/usr/man/cat8" | |
162 "/usr/man/catl" "/usr/man/catn")) | |
163 ((file-exists-p "/usr/man/cat1") | |
164 '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3" | |
165 "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6" | |
166 "/usr/man/cat7" "/usr/man/cat8" "/usr/man/catl" "/usr/man/catn")) | |
167 (t | |
168 '("/usr/catman/u_man/man1" "/usr/catman/u_man/man6" | |
169 "/usr/catman/p_man/man2" "/usr/catman/p_man/man3" | |
170 "/usr/catman/p_man/man4" "/usr/catman/p_man/man5" | |
171 "/usr/catman/a_man/man1" "/usr/catman/a_man/man7" | |
172 "/usr/catman/a_man/man8" "/usr/catman/local" | |
173 "/usr/catman/a_man/man8" "/usr/catman/local/man1" | |
174 "/usr/catman/local/man2" "/usr/catman/local/man3" | |
175 "/usr/catman/local/man4" "/usr/catman/local/man5" | |
176 "/usr/catman/local/man6" "/usr/catman/local/man7" | |
177 "/usr/catman/local/man8"))) | |
178 "List of directories containing formatted manual pages.") | |
179 | |
180 (defconst abbrev-file-name | |
181 (if (eq system-type 'vax-vms) | |
182 "~/abbrev.def" | |
183 "~/.abbrev_defs") | |
184 "*Default name of file to read abbrevs from.") | |
659
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
185 |
505130d1ddf8
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
444
diff
changeset
|
186 ;;; paths.el ends here |