Subject: lisp/emacs-lisp/easymenu.el - Correct easy-menu-define doctring

From: Jari Aalto <[email-masked]>
Date: Wed, 22 Dec 2010 18:56:37 +0200

Package: emacs
Version: 23.2+1-5.1
Severity: normal

doc-view.el uses:

    (easy-menu-define doc-view-menu doc-view-mode-map
      "Menu for Doc View mode."
      '("DocView"
        ["Toggle display"		doc-view-toggle-display]
        ("Continuous"
       ...

The argument ENABLE appears to be optional. The patch adjusts the
docstring. It was generated against:

    0804bcf 2010-12-22  Merge branch 'master' of git://git.sv.gnu.org/emacs

2010-12-22  Jari Aalto  <[email-masked]>

        * emacs-lisp/easymenu.el (easy-menu-define): Correct docstring; change
        from [NAME CALLBACK ENABLE] to [NAME CALLBACK [ENABLE]]

-- System Information
Debian Release: squeeze/sid
  APT Prefers testing
  APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64 GNU/Linux
Locale: LANG=en_DK.UTF-8

-- Versions of packages `emacs depends on'.
Depends:
emacs23         23.2+1-5.1      GNU Emacs is the extensible self-documenting 
emacs23-lucid   23.2+1-5.1      GNU Emacs is the extensible self-documenting 
emacs23-nox     23.2+1-5.1      GNU Emacs is the extensible self-documenting 

>From 901e3765fcad591da9a77017b9c8008cfe33ade7 Mon Sep 17 00:00:00 2001
From: Jari Aalto <[email-masked]>
Date: Wed, 22 Dec 2010 18:51:17 +0200
Subject: [PATCH] (easy-menu-define): Correct description to [NAME CALLBACK [ENABLE]]
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <[email-masked]>
---
 lisp/emacs-lisp/easymenu.el |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el
index 9992861..f8e9c07 100644
--- a/lisp/emacs-lisp/easymenu.el
+++ b/lisp/emacs-lisp/easymenu.el
@@ -71,7 +71,7 @@ whenever this expression's value is non-nil.
 
 The rest of the elements in MENU, are menu items.
 
-A menu item is usually a vector of three elements:  [NAME CALLBACK ENABLE]
+A menu item is usually a vector of three elements:  [NAME CALLBACK [ENABLE]]
 
 NAME is a string--the menu item name.
 
@@ -79,7 +79,8 @@ CALLBACK is a command to run when the item is chosen,
 or a list to evaluate when the item is chosen.
 
 ENABLE is an expression; the item is enabled for selection
-whenever this expression's value is non-nil.
+whenever this expression's value is non-nil. If not defined, the menu item
+is always shown.
 
 Alternatively, a menu item may have the form:
 
-- 
1.7.2.3