annotate lisp/paths.el @ 205:92f8ad5d0d3f r20-4b1

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