-;;; 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
(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)