# HG changeset patch # User Glenn Morris # Date 1213242573 0 # Node ID 111bfc3b69a7cf07f8afa75e9a25143bbf3b41bf # Parent fc8e5aad9764748bd24a7d95666ff12a8c89b812 (rmail-cease-edit): Check tool-bar-mode is bound. diff -r fc8e5aad9764 -r 111bfc3b69a7 lisp/mail/rmailedit.el --- a/lisp/mail/rmailedit.el Thu Jun 12 03:48:56 2008 +0000 +++ b/lisp/mail/rmailedit.el Thu Jun 12 03:49:33 2008 +0000 @@ -1,7 +1,7 @@ ;;; rmailedit.el --- "RMAIL edit mode" Edit the current message -;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, -;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 1985, 1994, 2001, 2002, 2003, 2004, 2005, 2006, +;; 2007, 2008 Free Software Foundation, Inc. ;; Maintainer: FSF ;; Keywords: mail @@ -121,7 +121,8 @@ (force-mode-line-update) (kill-all-local-variables) (rmail-mode-1) - (set (make-local-variable 'tool-bar-map) rmail-tool-bar-map) + (if (boundp 'tool-bar-map) + (set (make-local-variable 'tool-bar-map) rmail-tool-bar-map)) (rmail-variables) ;; As the local value of save-buffer-coding-system is changed by ;; rmail-variables, we restore the original value.