]> code.delx.au - gnu-emacs/commitdiff
2005-09-14 Chong Yidong <cyd@stupidchicken.com>
authorChong Yidong <cyd@stupidchicken.com>
Tue, 13 Sep 2005 20:13:31 +0000 (20:13 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 13 Sep 2005 20:13:31 +0000 (20:13 +0000)
* mouse.el (mouse-major-mode-menu): Make `prefix' optional.
Delete unused local var.

lisp/ChangeLog
lisp/mouse.el

index 31b7bb49bf19e8ff10292ab3fa6a8821f8301c0e..94f9f4cf37e60b5fea3e71704c21f1623c236e6e 100644 (file)
@@ -1,3 +1,8 @@
+2005-09-14  Chong Yidong  <cyd@stupidchicken.com>
+
+       * mouse.el (mouse-major-mode-menu): Make `prefix' optional.
+       Delete unused local var.
+
 2005-09-13  Juanma Barranquero  <lekktu@gmail.com>
 
        * help-fns.el (describe-categories): "?\ " -> "?\s".
index 1970fbf1eeb471f23927e9bee2020fe48b1fef00..3b591694cfeb72ffbd9edfe727842fba49819227 100644 (file)
@@ -153,7 +153,7 @@ PREFIX is the prefix argument (if any) to pass to the command."
 
 (defvar mouse-major-mode-menu-prefix)  ; dynamically bound
 
-(defun mouse-major-mode-menu (event prefix)
+(defun mouse-major-mode-menu (event &optional prefix)
   "Pop up a mode-specific menu of mouse commands.
 Default to the Edit menu if the major mode doesn't define a menu."
   ;; 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."
         ;; default to the edit menu.
         (newmap (if ancestor
                     (make-sparse-keymap (concat mode-name " Mode"))
-                  menu-bar-edit-menu))
-        result)
+                  menu-bar-edit-menu)))
     (if ancestor
        ;; Make our menu inherit from the desired keymap which we want
        ;; to display as the menu now.