nnweb.el (nnweb-google-parse-1): Fix minor Y10k bug
[gnus] / lisp / nnnil.el
1 ;;; nnnil.el --- empty backend for Gnus
2
3 ;; This file is in the public domain.
4
5 ;; Author: Paul Jarc <prj@po.cwru.edu>
6
7 ;; This file is part of GNU Emacs.
8
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 of the License, or
12 ;; (at your option) any later version.
13
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.
18
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
21
22 ;;; Commentary:
23
24 ;; nnnil is a Gnus backend that provides no groups or articles.  It's useful
25 ;; as a primary select method when you want all your real select methods to
26 ;; be secondary or foreign.
27
28 ;;; Code:
29
30 (eval-and-compile
31   (require 'nnheader))
32
33 (defvar nnnil-status-string "")
34
35 (defun nnnil-retrieve-headers (articles &optional group server fetch-old)
36   (with-current-buffer nntp-server-buffer
37     (erase-buffer))
38   'nov)
39
40 (defun nnnil-open-server (server &optional definitions)
41   t)
42
43 (defun nnnil-close-server (&optional server)
44   t)
45
46 (defun nnnil-request-close ()
47   t)
48
49 (defun nnnil-server-opened (&optional server)
50   t)
51
52 (defun nnnil-status-message (&optional server)
53   nnnil-status-string)
54
55 (defun nnnil-request-article (article &optional group server to-buffer)
56   (setq nnnil-status-string "No such group")
57   nil)
58
59 (defun nnnil-request-group (group &optional server fast info)
60   (let (deactivate-mark)
61     (with-current-buffer nntp-server-buffer
62       (erase-buffer)
63       (insert "411 no such news group\n")))
64   (setq nnnil-status-string "No such group")
65   nil)
66
67 (defun nnnil-close-group (group &optional server)
68   t)
69
70 (defun nnnil-request-list (&optional server)
71   (with-current-buffer nntp-server-buffer
72     (erase-buffer))
73   t)
74
75 (defun nnnil-request-post (&optional server)
76   (setq nnnil-status-string "Read-only server")
77   nil)
78
79 (provide 'nnnil)
80
81 ;;; nnnil.el ends here