1 ;;; gnus-eform.el --- a mode for editing forms for Gnus
3 ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 ;; 2005, 2006 Free Software Foundation, Inc.
6 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software; you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation; either version 2, or (at your option)
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02110-1301, USA.
37 (defgroup gnus-edit-form nil
38 "A mode for editing forms."
41 (defcustom gnus-edit-form-mode-hook nil
42 "Hook run in `gnus-edit-form-mode' buffers."
43 :group 'gnus-edit-form
46 (defcustom gnus-edit-form-menu-hook nil
47 "Hook run when creating menus in `gnus-edit-form-mode' buffers."
48 :group 'gnus-edit-form
51 ;;; Internal variables
53 (defvar gnus-edit-form-buffer "*Gnus edit form*")
54 (defvar gnus-edit-form-done-function nil)
56 (defvar gnus-edit-form-mode-map nil)
57 (unless gnus-edit-form-mode-map
58 (setq gnus-edit-form-mode-map (make-sparse-keymap))
59 (set-keymap-parent gnus-edit-form-mode-map emacs-lisp-mode-map)
60 (gnus-define-keys gnus-edit-form-mode-map
61 "\C-c\C-c" gnus-edit-form-done