*** empty log message ***
[gnus] / lisp / gnus-int.el
index 531fdad..674f2be 100644 (file)
@@ -1,5 +1,5 @@
-;;; gnus-int.el --- backend inteface functions for Gnus
-;; Copyright (C) 1996 Free Software Foundation, Inc.
+;;; gnus-int.el --- backend interface functions for Gnus
+;; Copyright (C) 1996,97 Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
 ;; Keywords: news
 
 ;;; Code:
 
-(require 'gnus-load)
+(eval-when-compile (require 'cl))
+
 (require 'gnus)
 
-(defvar gnus-open-server-hook nil
-  "*A hook called just before opening connection to the news server.")
+(defcustom gnus-open-server-hook nil
+  "Hook called just before opening connection to the news server."
+  :group 'gnus-start
+  :type 'hook)
 
 ;;;
 ;;; Server Communication
@@ -131,7 +134,10 @@ If it is down, start it up (again)."
     (error "Attempted use of a nil select method"))
   (when (stringp method)
     (setq method (gnus-server-to-method method)))
-  (let ((func (intern (format "%s-%s" (car method) function))))
+  (let ((func (intern (format "%s-%s" (if gnus-agent
+                                         (gnus-agent-get-function method)
+                                       (car method))
+                             function))))
     ;; If the functions isn't bound, we require the backend in
     ;; question.
     (unless (fboundp func)
@@ -147,11 +153,11 @@ If&