(ediff-keep-variants): Doc fix.
[bpt/emacs.git] / lisp / paths.el
1 ;;; paths.el --- define pathnames for use by various Emacs commands.
2
3 ;; Copyright (C) 1986, 1988, 1994 Free Software Foundation, Inc.
4
5 ;; Maintainer: FSF
6 ;; Keywords: internal
7
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
12 ;; the Free Software Foundation; either version 2, or (at your option)
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
24 ;;; Commentary:
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
32 ;;; Code:
33
34 (defvar Info-default-directory-list
35 (let ((start (list "/usr/local/lib/info/"
36 ;; This comes second so that, if it is the same
37 ;; as configure-info-directory (which is usually true)
38 ;; and Emacs has been installed (also usually true)
39 ;; then the list will end with two copies of this;
40 ;; which means that the last dir file Info-insert-dir
41 ;; finds will be the one in this directory.
42 "/usr/local/info/"))
43 (configdir (file-name-as-directory configure-info-directory)))
44 (setq start (nconc start (list configdir)))
45 start)
46 "List of directories to search for Info documentation files.
47 They are searched in the order they are given in this list.
48 Therefore, the directory of Info files that come with Emacs
49 normally should come last (so that local files override standard ones).")
50
51 (defvar news-path
52 (if (file-exists-p "/usr/spool/news/")
53 "/usr/spool/news/"
54 "/var/spool/news/")
55 "The root directory below which all news files are stored.")
56
57 (defvar news-inews-program
58 (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
59 ((file-exists-p "/usr/local/inews") "/usr/local/inews")
60 ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
61 ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
62 (t "inews"))
63 "Program to post news.")
64
65 (defvar gnus-default-nntp-server ""
66 ;; set this to your local server
67 "The name of the host running an NNTP server.
68 The null string means use the local host as the server site.")
69
70 (defvar gnus-nntp-service "nntp"
71 "NNTP service name, usually \"nntp\" or 119).
72 Go to a local news spool if its value is nil, in which case `gnus-nntp-server'
73 should be set to `(system-name)'.")
74
75 (defvar gnus-local-domain nil
76 "*Your domain name without a host name: for example, \"ai.mit.edu\".
77 The DOMAINNAME environment variable is used instead if defined.
78 If the function `system-name' returns a fully qualified domain name,
79 there is no need to set this variable.")
80
81 (defvar gnus-local-organization nil
82 "*The name of your organization, as a string.
83 The `ORGANIZATION' environment variable is used instead if defined.")
84
85 (defvar gnus-startup-file "~/.newsrc"
86 "The file listing groups to which user is subscribed.
87 Will use `gnus-startup-file'-SERVER instead if exists.")
88
89 (defvar rmail-file-name "~/RMAIL"
90 "Name of user's primary mail file.")
91
92 (defconst rmail-spool-directory
93 (cond ((string-match "^[^-]+-[^-]+-sco3.2v4" system-configuration)
94 "/usr/spool/mail/")
95 ;; On The Bull DPX/2 /usr/spool/mail is used although
96 ;; it is usg-unix-v.
97 ((string-match "^m68k-bull-sysv3" system-configuration)
98 "/usr/spool/mail/")
99 ;; SVR4 and recent BSD are said to use this.
100 ;; Rather than trying to know precisely which systems use it,
101 ;; let's assume this dir is never used for anything else.
102 ((file-exists-p "/var/mail")
103 "/var/mail/")
104 ;; Many GNU/Linux systems use this name.
105 ((file-exists-p "/var/spool/mail")
106 "/var/spool/mail/")
107 ((memq system-type '(dgux hpux usg-unix-v unisoft-unix rtu irix))
108 "/usr/mail/")
109 (t "/usr/spool/mail/"))
110 "Name of directory used by system mailer for delivering new mail.
111 Its name should end with a slash.")
112
113 (defconst sendmail-program
114 (cond
115 ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
116 ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
117 ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
118 (t "fakemail")) ;In ../etc, to interface to /bin/mail.
119 "Program used to send messages.")
120
121 (defconst remote-shell-program
122 (cond
123 ;; Some systems use rsh for the remote shell; others use that name for the
124 ;; restricted shell and use remsh for the remote shell. Let's try to guess
125 ;; based on what we actually find out there. The restricted shell is
126 ;; almost certainly in /bin or /usr/bin, so it's probably safe to assume
127 ;; that an rsh found elsewhere is the remote shell program. The converse
128 ;; is not true: /usr/bin/rsh could be either one, so check that last.
129 ((file-exists-p "/usr/ucb/remsh") "/usr/ucb/remsh")
130 ((file-exists-p "/usr/bsd/remsh") "/usr/bsd/remsh")
131 ((file-exists-p "/bin/remsh") "/bin/remsh")
132 ((file-exists-p "/usr/bin/remsh") "/usr/bin/remsh")
133 ((file-exists-p "/usr/local/bin/remsh") "/usr/local/bin/remsh")
134 ((file-exists-p "/usr/ucb/rsh") "/usr/ucb/rsh")
135 ((file-exists-p "/usr/bsd/rsh") "/usr/bsd/rsh")
136 ((file-exists-p "/usr/local/bin/rsh") "/usr/local/bin/rsh")
137 ((file-exists-p "/usr/bin/rcmd") "/usr/bin/rcmd")
138 ((file-exists-p "/bin/rcmd") "/bin/rcmd")
139 ((file-exists-p "/bin/rsh") "/bin/rsh")
140 ((file-exists-p "/usr/bin/rsh") "/usr/bin/rsh")
141 (t "rsh")))
142
143 (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
144 "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
145 You may set this variable to nil in your `.emacs' file if you do not wish
146 the terminal-initialization file to be loaded.")
147
148 (defconst abbrev-file-name
149 (if (eq system-type 'vax-vms)
150 "~/abbrev.def"
151 (convert-standard-filename "~/.abbrev_defs"))
152 "*Default name of file to read abbrevs from.")
153
154 ;;; paths.el ends here