diff options
| author | Chong Yidong | 2005-09-13 20:13:31 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-09-13 20:13:31 +0000 |
| commit | 40cfe0d8bcc1ea04b3e55b577ed5c1c3df623074 (patch) | |
| tree | 5e4f13bfe321d1c0ef9ba218869df8c6fe61c729 | |
| parent | 1b53925a36a2367b3128c559b5735a33e3766139 (diff) | |
| download | emacs-40cfe0d8bcc1ea04b3e55b577ed5c1c3df623074.tar.gz emacs-40cfe0d8bcc1ea04b3e55b577ed5c1c3df623074.zip | |
2005-09-14 Chong Yidong <cyd@stupidchicken.com>
* mouse.el (mouse-major-mode-menu): Make `prefix' optional.
Delete unused local var.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mouse.el | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 31b7bb49bf1..94f9f4cf37e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-09-14 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mouse.el (mouse-major-mode-menu): Make `prefix' optional. | ||
| 4 | Delete unused local var. | ||
| 5 | |||
| 1 | 2005-09-13 Juanma Barranquero <lekktu@gmail.com> | 6 | 2005-09-13 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * help-fns.el (describe-categories): "?\ " -> "?\s". | 8 | * help-fns.el (describe-categories): "?\ " -> "?\s". |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 1970fbf1eeb..3b591694cfe 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -153,7 +153,7 @@ PREFIX is the prefix argument (if any) to pass to the command." | |||
| 153 | 153 | ||
| 154 | (defvar mouse-major-mode-menu-prefix) ; dynamically bound | 154 | (defvar mouse-major-mode-menu-prefix) ; dynamically bound |
| 155 | 155 | ||
| 156 | (defun mouse-major-mode-menu (event prefix) | 156 | (defun mouse-major-mode-menu (event &optional prefix) |
| 157 | "Pop up a mode-specific menu of mouse commands. | 157 | "Pop up a mode-specific menu of mouse commands. |
| 158 | Default to the Edit menu if the major mode doesn't define a menu." | 158 | Default to the Edit menu if the major mode doesn't define a menu." |
| 159 | ;; Switch to the window clicked on, because otherwise | 159 | ;; Switch to the window clicked on, because otherwise |
| @@ -173,8 +173,7 @@ Default to the Edit menu if the major mode doesn't define a menu." | |||
| 173 | ;; default to the edit menu. | 173 | ;; default to the edit menu. |
| 174 | (newmap (if ancestor | 174 | (newmap (if ancestor |
| 175 | (make-sparse-keymap (concat mode-name " Mode")) | 175 | (make-sparse-keymap (concat mode-name " Mode")) |
| 176 | menu-bar-edit-menu)) | 176 | menu-bar-edit-menu))) |
| 177 | result) | ||
| 178 | (if ancestor | 177 | (if ancestor |
| 179 | ;; Make our menu inherit from the desired keymap which we want | 178 | ;; Make our menu inherit from the desired keymap which we want |
| 180 | ;; to display as the menu now. | 179 | ;; to display as the menu now. |