nnnil.el 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ;;; nnnil.el --- empty backend for Gnus
  2. ;; This file is in the public domain.
  3. ;; Author: Paul Jarc <prj@po.cwru.edu>
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. ;;; Commentary:
  16. ;; nnnil is a Gnus backend that provides no groups or articles. It's useful
  17. ;; as a primary select method when you want all your real select methods to
  18. ;; be secondary or foreign.
  19. ;;; Code:
  20. (eval-and-compile
  21. (require 'nnheader))
  22. (defvar nnnil-status-string "")
  23. (defun nnnil-retrieve-headers (articles &optional group server fetch-old)
  24. (with-current-buffer nntp-server-buffer
  25. (erase-buffer))
  26. 'nov)
  27. (defun nnnil-open-server (server &optional definitions)
  28. t)
  29. (defun nnnil-close-server (&optional server)
  30. t)
  31. (defun nnnil-request-close ()
  32. t)
  33. (defun nnnil-server-opened (&optional server)
  34. t)
  35. (defun nnnil-status-message (&optional server)
  36. nnnil-status-string)
  37. (defun nnnil-request-article (article &optional group server to-buffer)
  38. (setq nnnil-status-string "No such group")
  39. nil)
  40. (defun nnnil-request-group (group &optional server fast info)
  41. (let (deactivate-mark)
  42. (with-current-buffer nntp-server-buffer
  43. (erase-buffer)
  44. (insert "411 no such news group\n")))
  45. (setq nnnil-status-string "No such group")
  46. nil)
  47. (defun nnnil-close-group (group &optional server)
  48. t)
  49. (defun nnnil-request-list (&optional server)
  50. (with-current-buffer nntp-server-buffer
  51. (erase-buffer))
  52. t)
  53. (defun nnnil-request-post (&optional server)
  54. (setq nnnil-status-string "Read-only server")
  55. nil)
  56. (provide 'nnnil)
  57. ;;; nnnil.el ends here