Fix marker usage in align-areas.
[emacs.git] / lisp / gnus / nnnil.el
blobe40126d6e0d0c8eba96ca8373c604230bb23e962
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 of the License, or
12 ;; (at your option) 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. If not, see <http://www.gnu.org/licenses/>.
22 ;;; Commentary:
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.
28 ;;; Code:
30 (eval-and-compile
31 (require 'nnheader))
33 (defvar nnnil-status-string "")
35 (defun nnnil-retrieve-headers (articles &optional group server fetch-old)
36 (with-current-buffer nntp-server-buffer
37 (erase-buffer))
38 'nov)
40 (defun nnnil-open-server (server &optional definitions)
43 (defun nnnil-close-server (&optional server)
46 (defun nnnil-request-close ()
49 (defun nnnil-server-opened (&optional server)
52 (defun nnnil-status-message (&optional server)
53 nnnil-status-string)
55 (defun nnnil-request-article (article &optional group server to-buffer)
56 (setq nnnil-status-string "No such group")
57 nil)
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)
67 (defun nnnil-close-group (group &optional server)
70 (defun nnnil-request-list (&optional server)
71 (with-current-buffer nntp-server-buffer
72 (erase-buffer))
75 (defun nnnil-request-post (&optional server)
76 (setq nnnil-status-string "Read-only server")
77 nil)
79 (provide 'nnnil)
81 ;;; nnnil.el ends here