annotate lisp/oobr/br-site.el @ 215:1f0dabaa0855 r20-4b6

Import from CVS: tag r20-4b6
author cvs
date Mon, 13 Aug 2007 10:07:35 +0200
parents 4be1180a9e89
children
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 ;;!emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;; FILE: br-site.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; SUMMARY: Site OO-Browser per Emacs session initialization.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; USAGE: GNU Emacs Lisp Library
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; KEYWORDS: local, oop, tools
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; AUTHOR: Bob Weiner
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
9 ;; ORG: InfoDock Associates
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; ORIG-DATE: 18-May-90
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
12 ;; LAST-MOD: 20-Feb-97 at 06:59:49 by Bob Weiner
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
14 ;; Copyright (C) 1990-1995, 1997 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; See the file BR-COPY for license information.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; This file is part of the OO-Browser.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 ;; DESCRIPTION:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; DESCRIP-END.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;;; Public variables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 (defvar hpath:display-alist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 '(
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 ;; Run the OO-Browser on OOBR or OOBR-FTR Environment files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 ("OOBR\\(-FTR\\)?$" . br-env-browse)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 )
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 "*Alist of (FILENAME-REGEXP . EDIT-FUNCTION) elements for calling special
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 functions to display particular file types within Emacs. See also
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
33 `hpath:find-alist' for external display program settings.")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (defvar hpath:find-alist nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 "*Alist of (FILENAME-REGEXP . EDIT-PROGRAM) elements for using window system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 dependent external programs to edit/display particular file types. See also
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents: 70
diff changeset
38 `hpath:display-alist' for internal, window-system independent display
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 settings.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 (defvar smart-scroll-proportional nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 "*Non-nil means Smart Keys should scroll relative to current line when pressed at the end of a line.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 Action Key moves current line to top of window. Assist Key moves current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 line to bottom of window. Repeated presses then scroll up or down a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 windowful. Nil value instead ignores current line and always scrolls up or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 down a windowful.")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 ;;; Public functions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 ;;; ************************************************************************
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (defun br-setup-external ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "Site customizable function to configure the OO-Browser for non-Emacs editing and viewing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 This must be run after \"br-init\" has been loaded."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 (setq br-editor-cmd "xterm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 br-ed1 "-e" br-ed2 "vi"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 br-viewer-cmd "xterm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 br-vw1 "-e" br-vw2 "more"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (defun br-site-after-term-init ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (if noninteractive
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (br-init-autoloads)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (br-after-term-init))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 ;; DON'T PUT IN br-init.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 ;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (require 'br)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (if noninteractive
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 nil
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 (setq c++-cpp-include-dirs '("/usr/include/")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 c++-include-dirs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 (delq nil (mapcar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 (function (lambda (dir) (if (file-exists-p dir) dir)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 '("/usr/include/X11/" "/usr/openwin/include/X11/"))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 ;; Execute
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (br-site-after-term-init)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (if hyperb:window-system (require 'br-tree))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 (provide 'br-site)