annotate lisp/paths.el @ 247:e70b3a057e12 r20-5b22

Import from CVS: tag r20-5b22
author cvs
date Mon, 13 Aug 2007 10:18:21 +0200
parents 41ff10fd062f
children c5d627a313b1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; paths.el --- define pathnames for use by various Emacs commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 183
diff changeset
3 ;; Copyright (C) 1986, 1988, 1993, 1994, 1997 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Maintainer: FSF
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 183
diff changeset
6 ;; Keywords: internal, dumped
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; This file is part of XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; XEmacs is free software; you can redistribute it and/or modify it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; XEmacs is distributed in the hope that it will be useful, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; along with XEmacs; see the file COPYING. If not, write to the Free
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; Synched up with: FSF 19.30.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
209
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 183
diff changeset
28 ;; This file is dumped with XEmacs.
41ff10fd062f Import from CVS: tag r20-4b3
cvs
parents: 183
diff changeset
29
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ;; These are default settings for names of certain files and directories
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ;; that Emacs needs to refer to from time to time.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 ;; If these settings are not right, override them with `setq'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 ;; in site-start.el. Do not change this file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 ;Note: FSF's version is:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 ;(defvar Info-default-directory-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 ; (let ((start (list "/usr/local/lib/info/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 ; ;; This comes second so that, if it is the same
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 ; ;; as configure-info-directory (which is usually true)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 ; ;; and Emacs has been installed (also usually true)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 ; ;; then the list will end with two copies of this;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 ; ;; which means that the last dir file Info-insert-dir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 ; ;; finds will be the one in this directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 ; "/usr/local/info/"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ; (configdir (file-name-as-directory configure-info-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ; (setq start (nconc start (list configdir)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ; start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 ; "List of directories to search for Info documentation files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 ;They are searched in the order they are given in this list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 ;Therefore, the directory of Info files that come with Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 ;normally should come last (so that local files override standard ones).")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 ;Our commented-out version is:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 ;(defvar Info-default-directory-list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 ; (let ((start (list "/usr/local/info/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 ; "/usr/local/lib/info/"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 ; (configdir (file-name-as-directory configure-info-directory)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ; (or (member configdir start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 ; (setq start (nconc start (list configdir))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 ; (or (member (expand-file-name "../info/" data-directory) start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 ; (setq start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ; (nconc start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ; (list (expand-file-name "../info/" data-directory)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ; start)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 ; "List of directories to search for Info documentation files.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 (defvar news-path "/usr/spool/news/"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "The root directory below which all news files are stored.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (defvar news-inews-program nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 "Program to post news.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 ;(defvar gnus-default-nntp-server ""
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ; ;; set this to your local server
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 ; "The name of the host running an NNTP server.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 ;If it is a string such as \":DIRECTORY\", then ~/DIRECTORY
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 ;is used as a news spool. `gnus-nntp-server' is initialised from NNTPSERVER
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 ;environment variable or, if none, this value.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 ;(defvar gnus-nntp-service "nntp"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 ; "NNTP service name, usually \"nntp\" or 119).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 ;Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 ;should be set to `(system-name)'.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 (defvar gnus-local-domain nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 "*Your domain name without a host name: for example, \"ai.mit.edu\".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 The DOMAINNAME environment variable is used instead if defined.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 If the function `system-name' returns a fully qualified domain name,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 there is no need to set this variable.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 (defvar gnus-local-organization nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 "*The name of your organization, as a string.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 The `ORGANIZATION' environment variable is used instead if defined.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 (defvar mh-progs nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 "Directory containing MH commands.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 (defvar mh-lib nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 "Directory of MH library.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 (defvar rmail-file-name (purecopy "~/RMAIL")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 "Name of user's primary mail file.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 (defvar gnus-startup-file (purecopy "~/.newsrc")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 "The file listing groups to which user is subscribed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 Will use `gnus-startup-file'-SERVER instead if exists.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 (defconst rmail-spool-directory nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 "Name of directory used by system mailer for delivering new mail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 Its name should end with a slash.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 (defconst sendmail-program nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 "Program used to send messages.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118 (defconst remote-shell-program nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 "Program used to execute shell commands on a remote machine.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 (defconst term-file-prefix
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 (purecopy (if (eq system-type 'vax-vms) "[.term]" "term/"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 You may set this variable to nil in your `.emacs' file if you do not wish
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 the terminal-initialization file to be loaded.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 (defconst manual-program nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 "Program to run to print man pages.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 (defconst abbrev-file-name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 (purecopy (if (eq system-type 'vax-vms)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 "~/abbrev.def"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 "~/.abbrev_defs"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 "*Default name of file to read abbrevs from.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 (defconst directory-abbrev-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 (list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 ;; This matches the default Sun automounter temporary mount points. These
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 ;; temporary mount points may go away, so it's important that we only try
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 ;; to read files under the "advertised" mount point, rather than the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 ;; temporary one, or it will look like files have been deleted on us.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 ;; Whoever came up with this design is clearly a moron of the first order,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 ;; but now we're stuck with it, no doubt until the end of time.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 ;; For best results, automounter junk should go near the front of this
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 ;; list, and other user translations should come after it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 ;; You may need to change this if you're not running the Sun automounter,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 ;; if you're not running in the default configuration. Because the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 ;; designers (and I use that term loosely) of the automounters failed to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 ;; provide any uniform way of disambiguating a pathname, emacs needs to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 ;; have knowledge about exactly how the automounter mangles pathnames
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 ;; (and this knowledge is basically impossible to derive at run-time.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 (cons (purecopy "\\`/tmp_mnt/") (purecopy "/"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 ))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 ;; Formerly, the values of these variables were computed once
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 ;; (at dump time). However, with the advent of pre-compiled binaries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 ;; and homebrewed systems such as Linux where who knows where the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 ;; hell the various programs may be located (if they even exist at all),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 ;; it's clear that we need to recompute these values at run time.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 ;; In typical short-sightedness, site administrators have been told up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 ;; till now to do `setq's in site-init.el, which is run only once --
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 ;; at dump time. So we have to do contortions to make sure we don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 ;; override values set in site-init.el.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 (defun initialize-xemacs-paths ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 "Initialize the XEmacs path variables from the environment.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 Called automatically at dump time and run time. Do not call this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 Will not override settings in site-init.el or site-run.el."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 (let ((l #'(lambda (var value)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 (let ((origsym (intern (concat "paths-el-original-"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 (symbol-name var)))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 (if (running-temacs-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 (progn
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 (set var value)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 (set origsym value))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 (and (eq (symbol-value var) (symbol-value origsym))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 (set var value)))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 l 'news-inews-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 ((file-exists-p "/usr/local/inews") "/usr/local/inews")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 (t "inews")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 l 'mh-progs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 (cond ((file-directory-p "/usr/bin/mh") "/usr/bin/mh/") ;Ultrix 4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 ((file-directory-p "/usr/new/mh") "/usr/new/mh/") ;Ultrix <4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 ((file-directory-p "/usr/local/bin/mh") "/usr/local/bin/mh/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 ((file-directory-p "/usr/local/mh") "/usr/local/mh/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196 (t "/usr/local/bin/")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 l 'mh-libs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 (cond ((file-directory-p "/usr/lib/mh") "/usr/lib/mh/") ;Ultrix 4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 ((file-directory-p "/usr/new/lib/mh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 "/usr/new/lib/mh/") ;Ultrix <4.2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 ((file-directory-p "/usr/local/lib/mh") "/usr/local/lib/mh/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204 (t "/usr/local/bin/mh/")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 l 'rmail-spool-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209 "/usr/spool/mail/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 ;; On The Bull DPX/2 /usr/spool/mail is used although
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 ;; it is usg-unix-v.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 ((string-match "^m68k-bull-sysv3" system-configuration)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 "/usr/spool/mail/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 ;; SVR4 and recent BSD are said to use this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 ;; Rather than trying to know precisely which systems use it,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 ;; let's assume this dir is never used for anything else.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 ((file-exists-p "/var/mail")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 "/var/mail/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219 ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 "/usr/mail/")
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 0
diff changeset
221 ((memq system-type '(linux))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents: 0
diff changeset
222 "/var/spool/mail/")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 (t "/usr/spool/mail/")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 l 'sendmail-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (t "fakemail"))) ;In ../etc, to interface to /bin/mail.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 l 'remote-shell-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 ;; Some systems use rsh for the remote shell; others use that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 ;; name for the restricted shell and use remsh for the remote
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 ;; shell. Let's try to guess based on what we actually find
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 ;; out there. The restricted shell is almost certainly in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 ;; /bin or /usr/bin, so it's probably safe to assume that an
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 ;; rsh found elsewhere is the remote shell program. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 ;; converse is not true: /usr/bin/rsh could be either one, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 ;; check that last.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 ((file-exists-p "/usr/bsd/remsh") "/usr/bsd/remsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 ((file-exists-p "/bin/remsh") "/bin/remsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 ((file-exists-p "/usr/bin/remsh") "/usr/bin/remsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 ((file-exists-p "/usr/local/bin/remsh") "/usr/local/bin/remsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 ((file-exists-p "/usr/bsd/rsh") "/usr/bsd/rsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 ((file-exists-p "/usr/bin/rcmd") "/usr/bin/rcmd")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 ((file-exists-p "/bin/rcmd") "/bin/rcmd")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 ((file-exists-p "/bin/rsh") "/bin/rsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 (t "rsh")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 (funcall
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 l 'manual-program
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 ;; Solaris 2 has both of these files; prefer /usr/ucb/man
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 ;; because the other has nonstandard argument conventions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 (if (file-exists-p "/usr/ucb/man")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 "/usr/ucb/man" "/usr/bin/man")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 (if (running-temacs-p)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267 (initialize-xemacs-paths))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 ;;; paths.el ends here