diff lisp/hyperbole/hsite-ex.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents c53a95d3c46d
children 4be1180a9e89
line wrap: on
line diff
--- a/lisp/hyperbole/hsite-ex.el	Mon Aug 13 09:00:04 2007 +0200
+++ b/lisp/hyperbole/hsite-ex.el	Mon Aug 13 09:02:59 2007 +0200
@@ -6,15 +6,15 @@
 ;; KEYWORDS:     hypermedia, local
 ;;
 ;; AUTHOR:       Bob Weiner
-;; ORG:          InfoDock Associates
+;; ORG:          Brown U.
 ;;
 ;; ORIG-DATE:    15-Apr-91 at 00:48:49
-;; LAST-MOD:      8-Mar-97 at 22:52:36 by Bob Weiner
+;; LAST-MOD:      3-Nov-95 at 22:51:43 by Bob Weiner
 ;;
 ;; This file is part of Hyperbole.
 ;; Available for use and distribution under the same terms as GNU Emacs.
 ;;
-;; Copyright (C) 1991-1997, Free Software Foundation, Inc.
+;; Copyright (C) 1991-1995, Free Software Foundation, Inc.
 ;; Developed with support from Motorola Inc.
 ;;
 ;; DESCRIPTION:  
@@ -37,38 +37,6 @@
 
 (message "Initializing Hyperbole, please wait...")
 
-;; The following line must not be deleted.
-(require 'hyperbole)
-
-;;; ************************************************************************
-;;; TIMEZONE SETTING
-;;; ************************************************************************
-
-;; The following section applies only to MS-DOS and MS-Windows OSs.
-;; For such OSs, you must configure this section or you will receive
-;; an error when starting Hyperbole.  Users of other OSs may simply
-;; ignore this section.
-
-
-;; Microcruft OSs don't provide an automatically set timezone environment
-;; variable.  Nor do they include a UNIX-style date program.  So follow
-;; the commented instructions in the code below here.
-
-;; If you happened to have installed a UNIX-style date program (when you type
-;; `date' at a shell, it simply spits out the date and time and then quits),
-;; you may comment out the logic.
-;;
-(if (and hyperb:microcruft-os-p
-	 (not (or (getenv "TZ") (getenv "TIMEZONE"))))
-    (progn
-      ;; Comment out the following `error' line...
-      (error "(hsite.el): Configure the TIMEZONE SETTING section in this file.")
-      ;; ... and uncomment the following line, substituting an appropriate
-      ;;     timezone from the list in the variable, `htz:world-timezones'
-      ;;     in the file, "htz.el".
-      ;;   (setenv "TZ" "your-3char-timezone")
-      ))
-
 ;;; ************************************************************************
 ;;; SMART SETTINGS
 ;;; ************************************************************************
@@ -95,8 +63,8 @@
 ;;; INTERNET SETTINGS
 ;;; ************************************************************************
 
-;; String to be used in the call: (hpath:rfc rfc-num) to create a remote
-;; path to the RFC document for `rfc-num'.  Uncomment and alter this setting
+;; String to be used in the call: (hpath:rfc rfc-num) to create an ange-ftp
+;; path to the RFC document for 'rfc-num'.  Uncomment and alter this setting
 ;; if another site is closer for you.
 ;; (setq hpath:rfc "/anonymous@ds.internic.net:rfc/rfc%s.txt")
 
@@ -109,7 +77,7 @@
 ;; properly.  If it is not, uncomment the following line and set it to the
 ;; proper value.
 
-;; (setenv "DOMAINNAME" "yourdomain.com")
+;; (setenv "DOMAINNAME" "mot.com")
 
 ;;; ************************************************************************
 ;;; XEMACS, GNU EMACS 19, AND EPOCH CONFIGURATION
@@ -208,6 +176,19 @@
       (list (function (lambda () (mapcar 'require '(hib-doc-id))))))
 
 ;;; ************************************************************************
+;;; HYPERBOLE INITIALIZATION
+;;; ************************************************************************
+
+;;; This call loads the whole Hyperbole system.
+;;; You may want to look at this file just to see what it does.
+;;;
+(require 'hinit)
+;;;
+;;; This call initializes the Hyperbole system for use.
+;;;
+(hyperb:init)
+
+;;; ************************************************************************
 ;;; FILE VIEWER COMMAND SETTINGS
 ;;; ************************************************************************
 
@@ -237,68 +218,7 @@
      ))
   "*Alist of (FILENAME-REGEXP . EDIT-FUNCTION) elements for calling special
 functions to display particular file types within Emacs.  See also
-`hpath:file-alist' for external display program settings.")
-
-(defvar hpath:display-buffer-alist
-  (list
-   (list 'this-window   'switch-to-buffer)
-   (list 'other-window  (function (lambda (b)
-				    (if (br-in-browser)
-					(progn (br-to-view-window)
-					       (switch-to-buffer b))
-				      (switch-to-buffer-other-window b)))))
-   (list 'one-window    (function (lambda (b)
-				    (if (br-in-browser) (br-quit))
-				    (delete-other-windows)
-				    (switch-to-buffer b))))
-   (list 'new-frame     (function (lambda (b)
-				    (select-frame (make-frame))
-				    (switch-to-buffer b))))
-   (list 'other-frame   'hpath:display-buffer-other-frame)
-   (list 'other-frame-one-window
-	 (function (lambda (b)
-		     (hpath:display-buffer-other-frame b)
-		     (delete-other-windows)))))
-  "*Alist of (DISPLAY-WHERE-SYMBOL  DISPLAY-BUFFER-FUNCTION) elements.
-This permits fine-grained control of where Hyperbole displays linked to buffers.
-The default value of DISPLAY-WHERE-SYMBOL is given by `hpath:display-where'.
-Valid DISPLAY-WHERE-SYMBOLs are:
-    this-window             - display in the current window
-    other-window            - display in another window in the current frame
-    one-window              - display in the current window, deleting other windows
-    new-frame               - display in a new frame
-    other-frame             - display in another, possibly existing, frame
-    other-frame-one-window  - display in another frame, deleting other windows.")
-
-(defvar hpath:display-where 'other-window
-  "Symbol specifying the default method to use to display Hyperbole link referents.
-See documentation of `hpath:display-where-alist' for valid values.")
-
-(defvar hpath:display-where-alist
-  (list
-   (list 'this-window 'find-file)
-   (list 'other-window (function (lambda (f)
-				   (if (br-in-browser)
-				       (progn (br-to-view-window)
-					      (find-file f))
-				     (find-file-other-window f)))))
-   (list 'one-window  (function (lambda (f)
-				  (if (br-in-browser) (br-quit))
-				  (delete-other-windows) (find-file f))))
-   (list 'new-frame   'find-file-new-frame)
-   (list 'other-frame 'hpath:find-other-frame)
-   (list 'other-frame-one-window
-	 (function (lambda (f) (hpath:find-other-frame f) (delete-other-windows)))))
-  "*Alist of (DISPLAY-WHERE-SYMBOL DISPLAY-FILE-FUNCTION) elements.
-This permits fine-grained control of where Hyperbole displays linked to files.
-The default value of DISPLAY-WHERE-SYMBOL is given by `hpath:display-where'.
-Valid DISPLAY-WHERE-SYMBOLs are:
-    this-window             - display in the current window
-    other-window            - display in another window in the current frame
-    one-window              - display in the current window, deleting other windows
-    new-frame               - display in a new frame
-    other-frame             - display in another, possibly existing, frame
-    other-frame-one-window  - display in another frame, deleting other windows.")
+'hpath:file-alist' for external display program settings.")
 
 ;;; `hyperb:window-system' variable from "hversion.el" must be defined
 ;;; prior to this variable definition.
@@ -307,11 +227,11 @@
   (let ((nextstep-suffixes '(("\\.\\(adaptor\\|app\\|bshlf\\|clr\\|concur\\|create\\|diagram\\|dp\\|e?ps\\|frame\\|gif\\|locus\\|Mesa\\|nib\\|project\\|rtf\\|sense\\|tiff\\|tree\\)$" . "open")))
 	(x-suffixes '(("\\.e?ps$" . "ghostview")
 		      ("\\.ps\\.g?[zZ]$" . "zcat %s | ghostview -")
-		      ("\\.\\(gif\\|tiff?\\|xpm\\|xbm\\|pm\\|pbm\\|jpe?g\\)"  . "xv")
+		      ("\\.\\(gif\\|tiff?\\|xbm\\|pm\\|pbm\\|jpe?g\\)"  . "xv")
 		      ("\\.xwd$" . "xwud -noclick -in")
 		      ("\\.ra?s$" . "snapshot -l")
-		      ("\\.\\(fm\\|frame\\|mif\\)$" .
-		       "frame.pl -vn -preader -c -f%s") ;; was "msgfm_driver"
+		      ("\\.xpm$" . "sxpm")
+		      ("\\.\\(fm\\|frame\\|mif\\)$" . "maker")
 		      ("\\.\\(doc\\|boo\\)$" . "ileaf")
 		      )))
     (if (memq window-system '(dps ns))
@@ -327,7 +247,7 @@
 			)))))
   "*Alist of (FILENAME-REGEXP . EDIT-PROGRAM) elements for using window system
 dependent external programs to edit/display particular file types.  See also
-`hpath:display-alist' for internal, window-system independent display
+'hpath:display-alist' for internal, window-system independent display
 settings.")
 
 ;;; ************************************************************************
@@ -349,19 +269,6 @@
 Each variable value, if bound, must be either a pathname or a list of pathnames.")
 
 ;;; ************************************************************************
-;;; HYPERBOLE INITIALIZATION
-;;; ************************************************************************
-
-;;; This call loads the whole Hyperbole system.
-;;; You may want to look at this file just to see what it does.
-;;;
-(require 'hinit)
-;;;
-;;; This call initializes the Hyperbole system for use.
-;;;
-(hyperb:init)
-
-;;; ************************************************************************
 ;;; HYPERBOLE LOCAL VARIABLE SUPPORT
 ;;; ************************************************************************