Mercurial > emacs
changeset 104912:ad1f780103d9
(easy-mmode-defmap): Add doc-string.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 10 Sep 2009 06:20:51 +0000 |
parents | 0261f99bf928 |
children | 67946512b0fd |
files | lisp/emacs-lisp/easy-mmode.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el Thu Sep 10 06:20:25 2009 +0000 +++ b/lisp/emacs-lisp/easy-mmode.el Thu Sep 10 06:20:51 2009 +0000 @@ -1,7 +1,7 @@ ;;; easy-mmode.el --- easy definition for major and minor modes -;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005, -;; 2006, 2007, 2008, 2009 Free Software Foundation, Inc. +;; Copyright (C) 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, +;; 2008, 2009 Free Software Foundation, Inc. ;; Author: Georges Brun-Cottan <Georges.Brun-Cottan@inria.fr> ;; Maintainer: Stefan Monnier <monnier@gnu.org> @@ -452,6 +452,9 @@ ;;;###autoload (defmacro easy-mmode-defmap (m bs doc &rest args) + "Define a constant M whose value is the result of `easy-mmode-define-keymap'. +The M, BS, and ARGS arguments are as per that function. DOC is +the constant's documentation." `(defconst ,m (easy-mmode-define-keymap ,bs nil (if (boundp ',m) ,m) ,(cons 'list args)) ,doc))