]> git.eshelyaron.com Git - emacs.git/commitdiff
(menu-bar-tools-menu): Read and send mail entries are not constants. (Bug#4913)
authorGlenn Morris <rgm@gnu.org>
Sat, 14 Nov 2009 20:05:33 +0000 (20:05 +0000)
committerGlenn Morris <rgm@gnu.org>
Sat, 14 Nov 2009 20:05:33 +0000 (20:05 +0000)
lisp/ChangeLog
lisp/menu-bar.el

index aa3ea918e586d8fcb362bbf71d8b3483dfa15154..7f6b73be406c4eacf618c77c149a8e5b7ac154c6 100644 (file)
@@ -1,5 +1,8 @@
 2009-11-14  Glenn Morris  <rgm@gnu.org>
 
+       * menu-bar.el (menu-bar-tools-menu): Read and send mail entries are not
+       constants.  (Bug#4913)
+
        * emacs-lisp/elint.el (elint-standard-variables): Doc fix.
 
 2009-11-14  Shigeru Fukaya  <shigeru.fukaya@gmail.com>
index fbafd9077a05b53388816367c842cc81eea1fb78..21495b32f5d828c5fc9c9e6725368821fb3a80ec 100644 (file)
@@ -1,7 +1,7 @@
 ;;; menu-bar.el --- define a default menu bar
 
-;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004,
-;;   2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 1993, 1994, 1995, 2000, 2001, 2002, 2003, 2004, 2005,
+;;   2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 
 ;; Author: RMS
 ;; Maintainer: FSF
@@ -1283,12 +1283,14 @@ mail status in mode line"))
 (define-key menu-bar-tools-menu [directory-search]
   `(menu-item ,(purecopy "Directory Search") eudc-tools-menu))
 (define-key menu-bar-tools-menu [compose-mail]
-  `(menu-item ,(purecopy (format "Send Mail (with %s)" (send-mail-item-name))) compose-mail
+  `(menu-item (format "Send Mail (with %s)" (send-mail-item-name)) compose-mail
              :visible (and mail-user-agent (not (eq mail-user-agent 'ignore)))
              :help ,(purecopy "Send a mail message")))
 (define-key menu-bar-tools-menu [rmail]
-  `(menu-item ,(purecopy (format "Read Mail (with %s)" (read-mail-item-name))) menu-bar-read-mail
-             :visible (and read-mail-command (not (eq read-mail-command 'ignore)))
+  `(menu-item (format "Read Mail (with %s)" (read-mail-item-name))
+              menu-bar-read-mail
+             :visible (and read-mail-command
+                            (not (eq read-mail-command 'ignore)))
              :help ,(purecopy "Read your mail and reply to it")))
 
 (defun menu-bar-read-mail ()