Re-indent.
[emacs.git] / lisp / gnus / nnnil.el
blob5c5e3c1af91367bf0e6f0aafee23396eea810621
1 ;;; nnnil.el --- empty backend for Gnus
3 ;; This file is in the public domain.
5 ;; Author: Paul Jarc <prj@po.cwru.edu>
7 ;; This file is part of GNU Emacs.
9 ;; GNU Emacs is free software; you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation; either version 3, or (at your option)
12 ;; any later version.
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs; see the file COPYING. If not, write to the
21 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
24 ;;; Commentary:
26 ;; nnnil is a Gnus backend that provides no groups or articles. It's useful
27 ;; as a primary select method when you want all your real select methods to
28 ;; be secondary or foreign.
30 ;;; Code:
32 (eval-and-compile
33 (require 'nnheader))
35 (defvar nnnil-status-string "")
37 (defun nnnil-retrieve-headers (articles &optional group server fetch-old)
38 (with-current-buffer nntp-server-buffer
39 (erase-buffer))
40 'nov)
42 (defun nnnil-open-server (server &optional definitions)
45 (defun nnnil-close-server (&optional server)
48 (defun nnnil-request-close ()
51 (defun nnnil-server-opened (&optional server)
54 (defun nnnil-status-message (&optional server)
55 nnnil-status-string)
57 (defun nnnil-request-article (article &optional group server to-buffer)
58 (setq nnnil-status-string "No such group")
59 nil)
61 (defun nnnil-request-group (group &optional server fast)
62 (let (deactivate-mark)
63 (save-excursion
64 (set-buffer nntp-server-buffer)
65 (erase-buffer)
66 (insert "411 no such news group\n")))
67 (setq nnnil-status-string "No such group")
68 nil)
70 (defun nnnil-close-group (group &optional server)
73 (defun nnnil-request-list (&optional server)
74 (with-current-buffer nntp-server-buffer
75 (erase-buffer))
78 (defun nnnil-request-post (&optional server)
79 (setq nnnil-status-string "Read-only server")
80 nil)
82 (provide 'nnnil)
84 ;;; arch-tag: a982a1a3-bc5e-4fb1-a233-d7657a3e3257