diff options
| author | Gerd Moellmann | 2000-12-14 10:36:42 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-12-14 10:36:42 +0000 |
| commit | 5e5b3d411448a7483bb15fccffbe1b1ff3cf194c (patch) | |
| tree | df28219ea99f34307f6b2c41d77afbeb0d2595a5 | |
| parent | e56031492e42b2c6a7f2c6e35b0e5b717208ad2b (diff) | |
| download | emacs-5e5b3d411448a7483bb15fccffbe1b1ff3cf194c.tar.gz emacs-5e5b3d411448a7483bb15fccffbe1b1ff3cf194c.zip | |
(easy-menu-current-active-maps): Test
if symbol is bound before getting its value.
| -rw-r--r-- | lisp/ChangeLog | 9 | ||||
| -rw-r--r-- | lisp/emacs-lisp/easymenu.el | 6 |
2 files changed, 13 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 67c1c0ec9e9..3f08afe9f84 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2000-12-14 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/easymenu.el (easy-menu-current-active-maps): Test | ||
| 4 | if symbol is bound before getting its value. | ||
| 5 | |||
| 6 | * tooltip.el (tooltip-show): If an error is signaled in | ||
| 7 | x-show-tip, display that error, and display the help in the | ||
| 8 | echo area. | ||
| 9 | |||
| 1 | 2000-12-14 Kenichi Handa <handa@etl.go.jp> | 10 | 2000-12-14 Kenichi Handa <handa@etl.go.jp> |
| 2 | 11 | ||
| 3 | * international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Show | 12 | * international/ja-dic-cnv.el (skkdic-set-okuri-nasi): Show |
diff --git a/lisp/emacs-lisp/easymenu.el b/lisp/emacs-lisp/easymenu.el index 6307e50a7a0..4364381dce9 100644 --- a/lisp/emacs-lisp/easymenu.el +++ b/lisp/emacs-lisp/easymenu.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; easymenu.el --- support the easymenu interface for defining a menu. | 1 | ;;; easymenu.el --- support the easymenu interface for defining a menu. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1996, 1998 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Keywords: emulations | 5 | ;; Keywords: emulations |
| 6 | ;; Author: rms | 6 | ;; Author: rms |
| @@ -544,7 +544,9 @@ If item is an old format item, a new format item is returned." | |||
| 544 | (defun easy-menu-current-active-maps () | 544 | (defun easy-menu-current-active-maps () |
| 545 | (let ((maps (list (current-local-map) global-map))) | 545 | (let ((maps (list (current-local-map) global-map))) |
| 546 | (dolist (minor minor-mode-map-alist) | 546 | (dolist (minor minor-mode-map-alist) |
| 547 | (if (symbol-value (car minor)) (push (cdr minor) maps))) | 547 | (when (and (boundp (car minor)) |
| 548 | (symbol-value (car minor))) | ||
| 549 | (push (cdr minor) maps))) | ||
| 548 | (delq nil maps))) | 550 | (delq nil maps))) |
| 549 | 551 | ||
| 550 | (defun easy-menu-get-map (map path &optional to-modify) | 552 | (defun easy-menu-get-map (map path &optional to-modify) |