home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / lisp / paths.el < prev    next >
Encoding:
Text File  |  1993-01-26  |  6.8 KB  |  160 lines

  1. ;; Define pathnames for use by various Emacs commands.
  2. ;; Copyright (C) 1986-1993 Free Software Foundation, Inc.
  3.  
  4. ;; This file is part of GNU Emacs.
  5.  
  6. ;; GNU Emacs is free software; you can redistribute it and/or modify
  7. ;; it under the terms of the GNU General Public License as published by
  8. ;; the Free Software Foundation; either version 2, or (at your option)
  9. ;; any later version.
  10.  
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. ;; GNU General Public License for more details.
  15.  
  16. ;; You should have received a copy of the GNU General Public License
  17. ;; along with GNU Emacs; see the file COPYING.  If not, write to
  18. ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20.  
  21. ;; These are default settings for names of certain files and directories
  22. ;; that Emacs needs to refer to from time to time.
  23.  
  24. ;; If these settings are not right, override them with `setq'
  25. ;; in site-init.el.  Do not change this file.
  26.  
  27. ;; (defvar Info-directory-list
  28. ;;   (list (expand-file-name "../info/" exec-directory))
  29. ;;   "List of directories to search for Info documentation files.")
  30.  
  31. ;; This is now set during startup (unless overridden in site-init.el).
  32. (defvar Info-directory-list '())
  33.  
  34. (defvar news-path "/usr/spool/news/"
  35.   "The root directory below which all news files are stored.")
  36. (defvar news-inews-program
  37.   (cond ((file-exists-p "/usr/bin/inews") "/usr/bin/inews")
  38.     ((file-exists-p "/usr/local/inews") "/usr/local/inews")
  39.     ((file-exists-p "/usr/local/bin/inews") "/usr/local/bin/inews")
  40.     ((file-exists-p "/usr/lib/news/inews") "/usr/lib/news/inews")
  41.     (t "inews"))
  42.   "Program to post news.")
  43.  
  44. (defvar mh-progs
  45.   (cond ((file-directory-p "/usr/new/mh") "/usr/new/mh/")
  46.     ((file-directory-p "/usr/local/bin/mh") "/usr/local/bin/mh/")
  47.     ((file-directory-p "/usr/local/mh/") "/usr/local/mh/")
  48.     (t "/usr/local/bin/"))
  49.   "Directory containing MH commands")
  50.  
  51. (defvar mh-lib
  52.   (cond ((file-directory-p "/usr/new/lib/mh") "/usr/new/lib/mh/")
  53.     ((file-directory-p "/usr/local/lib/mh") "/usr/local/lib/mh/")
  54.     ((file-directory-p "/usr/lib/mh") "/usr/lib/mh")
  55.     (t "/usr/local/bin/mh/"))
  56.   "Directory of MH library")
  57.  
  58. (defvar rmail-file-name "~/RMAIL"
  59.   "Name of user's primary mail file.")
  60.  
  61. (defconst rmail-spool-directory
  62.   (if (memq system-type '(dgux-unix hpux usg-unix-v unisoft-unix rtu irix
  63.               silicon-graphics-unix))
  64.       "/usr/mail/"
  65.     "/usr/spool/mail/")
  66.   "Name of directory used by system mailer for delivering new mail.
  67. Its name should end with a slash.")
  68.  
  69. (defconst sendmail-program
  70.   (cond ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
  71.     ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
  72.     (t "fakemail"))            ;In ../etc, to interface to /bin/mail.
  73.   "Program used to send messages.")
  74.  
  75. (defconst term-file-prefix (if (eq system-type 'vax-vms) "[.term]" "term/")
  76.   "If non-nil, Emacs startup does (load (concat term-file-prefix (getenv \"TERM\")))
  77. You may set this variable to nil in your `.emacs' file if you do not wish
  78. the terminal-initialization file to be loaded.")
  79.  
  80. (defconst manual-program (if (memq system-type '(berkeley-unix next-mach))
  81.                  "/usr/ucb/man" "/usr/bin/man")
  82.   "Program to run to print man pages.")
  83.  
  84. ;; Note that /usr/man/cat is not really right for this on sysV; nothing is,
  85. ;; judging by the list of directories below.  You can't get the dir
  86. ;; for a section by appending the section number to any one prefix.
  87. ;; But it turns out that a string that's wrong does no harm here.
  88. (defconst manual-formatted-dir-prefix
  89.   (if (file-exists-p "/usr/man/cat.C")  ;; Check for Xenix.
  90.       "/usr/man/cat." "/usr/man/cat")
  91.   "Prefix for directories containing formatted manual pages.
  92. Append a section-number or section-name to get a directory name.")
  93.  
  94. (defconst manual-formatted-dirlist
  95.   (cond ((eq system-type 'hpux)
  96.      '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3"
  97.        "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6"
  98.        "/usr/man/cat7" "/usr/man/cat1m" "/usr/man/cat8"
  99.        "/usr/local/man/cat1" "/usr/local/man/cat2" "/usr/local/man/cat3"
  100.        "/usr/local/man/cat4" "/usr/local/man/cat5" "/usr/local/man/cat6"
  101.        "/usr/local/man/cat7" "/usr/local/man/cat1m" "/usr/local/man/cat8"
  102.        "/usr/contrib/man/cat1" "/usr/contrib/man/cat2"
  103.        "/usr/contrib/man/cat3" "/usr/contrib/man/cat4"
  104.        "/usr/contrib/man/cat5" "/usr/contrib/man/cat6"
  105.        "/usr/contrib/man/cat7" "/usr/contrib/man/cat1m"
  106.        "/usr/contrib/man/cat8"))
  107.      ((file-exists-p "/usr/man/cat.C")  ; Xenix
  108.       '("/usr/man/cat.C" "/usr/man/cat.CP" "/usr/man/cat.CT"
  109.         "/usr/man/cat.DOS/" "/usr/man/cat.F" "/usr/man/cat.HW"
  110.         "/usr/man/cat.M/" "/usr/man/cat.S" "/usr/man/cat.LOCAL"))
  111.      ((file-exists-p "/usr/man/cat3/cat3")
  112.       ;; This is for UMAX.
  113.       '("/usr/man/cat1"       "/usr/man/cat2"
  114.         "/usr/man/cat3"       "/usr/man/cat3/cat3"
  115.         "/usr/man/cat3/cat3b" "/usr/man/cat3/cat3c"
  116.         "/usr/man/cat3/cat3f" "/usr/man/cat3/cat3m"
  117.         "/usr/man/cat3/cat3n" "/usr/man/cat3/cat3p"
  118.         "/usr/man/cat3/cat3s" "/usr/man/cat3/cat3u"
  119.         "/usr/man/cat3/cat3x" "/usr/man/cat4"
  120.         "/usr/man/cat5"       "/usr/man/cat6"
  121.         "/usr/man/cat7"       "/usr/man/cat8"
  122.         "/usr/man/catl"       "/usr/man/catn"))
  123.      ((file-exists-p "/usr/man/cat1")
  124.       '("/usr/man/cat1" "/usr/man/cat2" "/usr/man/cat3"
  125.         "/usr/man/cat4" "/usr/man/cat5" "/usr/man/cat6"
  126.         "/usr/man/cat7" "/usr/man/cat8" "/usr/man/catl" "/usr/man/catn"))
  127.      (t
  128.        '("/usr/catman/u_man/man1" "/usr/catman/u_man/man6"
  129.          "/usr/catman/p_man/man2" "/usr/catman/p_man/man3"
  130.          "/usr/catman/p_man/man4" "/usr/catman/p_man/man5"
  131.          "/usr/catman/a_man/man1" "/usr/catman/a_man/man7"
  132.          "/usr/catman/a_man/man8" "/usr/catman/local"
  133.          "/usr/catman/a_man/man8" "/usr/catman/local/man1"
  134.          "/usr/catman/local/man2" "/usr/catman/local/man3"
  135.          "/usr/catman/local/man4" "/usr/catman/local/man5"
  136.          "/usr/catman/local/man6" "/usr/catman/local/man7"
  137.          "/usr/catman/local/man8")))
  138.   "List of directories containing formatted manual pages.")
  139.  
  140. (defconst abbrev-file-name 
  141.   (if (eq system-type 'vax-vms)
  142.       "~/abbrev.def"
  143.     "~/.abbrev_defs")
  144.   "*Default name of file to read abbrevs from.")
  145.  
  146. (defconst directory-abbrev-alist
  147.   '(;;
  148.     ;; This matches the default Sun automounter temporary mount points.  These
  149.     ;; temporary mount points may go away, so it's important that we only try
  150.     ;; to read files under the "advertised" mount point, rather than the
  151.     ;; temporary one, or it will look like files have been deleted on us.
  152.     ;; Whoever came up with this design is clearly a moron of the first order,
  153.     ;; but now we're stuck with it, no doubt until the end of time.
  154.     ;;
  155.     ;; For best results, automounter junk should go near the front of this
  156.     ;; list, and other user translations should come after it.
  157.     ;;
  158.     ("\\`/tmp_mnt/net/" . "/net/")
  159.     ))
  160.