home *** CD-ROM | disk | FTP | other *** search
-
- (require (quote electric))
-
- (defvar gopher-root-node (vector 49 "root" "" "otax.tky.hut.fi" 70) "\
- The root gopher server, as a gopher object.")
-
- (defvar gopher-directory-mode-hook nil "\
- *Invoked when entering a new gopher directory.")
-
- (defvar gopher-directory-mode-map (make-keymap) "\
- Keymap for gopher-directory-mode.")
-
- (defvar gopher-document-mode-hook nil "\
- *Invoked when showing gopher document.")
-
- (defvar gopher-document-mode-map (make-keymap) "\
- Keymap for gopher-document-mode.")
-
- (defvar gopher-form-mode-hooks nil "\
- *Invoked with entering a gopher form (i.e., for CSO).")
-
- (defvar gopher-form-mode-map (make-keymap) "\
- Keymap for gopher-form-mode.")
-
- (defvar gopher-tmp-buf nil "\
- Buffer used to receive output from gopher.")
-
- (defvar gopher-debug-read t "\
- *If non-nil, show the current status about reading the gopher server output.")
-
- (defvar gopher-object-type-alist (quote ((48 "" gopher-document-object) (49 "/" gopher-directory-object) (50 " <CSO>" gopher-cso-object) (51 " <error>" gopher-unimplemented-object) (52 " <binhex>" gopher-binary-object) (53 " <DOS>" gopher-binary-object) (54 " <UU>" gopher-binary-object) (55 " <?>" gopher-index-object) (56 " <TEL>" gopher-telnet-object) (57 " <bin>" gopher-binary-object) (84 " <T>" gopher-unimplemented-object) (115 " <)" gopher-binary-object) (77 " <MIME>" gopher-unimplemented-object) (104 " <html>" gopher-unimplemented-object) (73 " <image>" gopher-unimplemented-object) (99 " <cal>" gopher-unimplemented-object) (103 " <GIF>" gopher-binary-object))) "\
- *Alist describing the types of gopher objects this client know about.
- The keys are the gopher type characters.
- The second element in each list is the string to tag onto the end
- of an object's description, to identify it to the user.
- The third element is the function to use to retrieve the object.
- It is called with two arguments: the gopher object to retrieve and
- the buffer which should be returned to when the user is done
- with this object.")
-
- (defmacro gopher-object-type (object) "Return the gopher type of OBJECT." (byte-code "ÁÂE" [object aref 0] 3))
-
- (defmacro gopher-object-descr (object) "Return the gopher description of OBJECT." (byte-code "ÁÂE" [object aref 1] 3))
-
- (defmacro gopher-object-selector (object) "Return the gopher selector string for OBJECT." (byte-code "ÁÂE" [object aref 2] 3))
-
- (defmacro gopher-object-host (object) "Return the gopher hostname for OBJECT." (byte-code "ÁÂE" [object aref 3] 3))
-
- (defmacro gopher-object-port (object) "Return the gopher TCP port number for OBJECT." (byte-code "ÁÂE" [object aref 4] 3))
-
- (defmacro gopher-set-object-type (object type) "Set the gopher type of OBJECT to TYPE." (byte-code "ÂÃ F" [object type aset 0] 4))
-
- (defmacro gopher-set-object-descr (object descr) "Set the gopher description of OBJECT to DESCR." (byte-code "ÂÃ F" [object descr aset 1] 4))
-
- (defmacro gopher-set-object-selector (object selector) "Set the gopher selector string for OBJECT to SELECTOR." (byte-code "ÂÃ F" [object selector aset 2] 4))
-
- (defmacro gopher-set-object-host (object host) "Set the gopher hostname for OBJECT to HOST." (byte-code "ÂÃ F" [object host aset 3] 4))
-
- (defmacro gopher-set-object-port (object port) "Set the gopher TCP port number for OBJECT to PORT." (byte-code "ÂÃ F" [object port aset 4] 4))
-
- (defun gopher (&optional askserv) "\
- Start a gopher session. With C-u, prompt for a gopher server." (interactive "P") (byte-code "Ä
H ÅÆÇ ÅH\"IÄÄÈ!?
B ÆÉÊ ËH!\"ÄÌÍÈ!?
>