emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where the menu should be appeared when C-mouse-3 is triggered


From: Masatake YAMATO
Subject: Re: Where the menu should be appeared when C-mouse-3 is triggered
Date: Fri, 20 Jul 2012 21:48:15 +0900 (JST)

>> With the patch f10 can show the same menu items as 
>> C-mouse-3 shows. The menu is shows at point or mouse
>> cursor; last-nonmenu-event is referred to decide the
>> postion. The menu items reflects (current-buffer) when
>> the menu is shown at point.
> 
> Sounds good.  Installed (except I removed point-pixel-position).

It seems that removing point-pixel-position in wrong way.
Following patch is needed.

=== modified file 'lisp/mouse.el'
*** lisp/mouse.el       2012-07-20 11:32:30 +0000
--- lisp/mouse.el       2012-07-20 12:46:34 +0000
***************
*** 116,122 ****
    (setq position
        (cond
         ((eq position 'point)
!         (let* ((pp (posn-at-point pos window))
                   (xy (posn-x-y pp)))
            (list (list (car xy) (cdr xy)) (posn-window pp))))
         ((not position)
--- 116,122 ----
    (setq position
        (cond
         ((eq position 'point)
!         (let* ((pp (posn-at-point))
                   (xy (posn-x-y pp)))
            (list (list (car xy) (cdr xy)) (posn-window pp))))
         ((not position)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]