all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: emacs-24 r117258: * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.
       [not found] <E1WxNvx-0000Xo-GX@vcs.savannah.gnu.org>
@ 2014-06-21 19:54 ` Glenn Morris
  2014-06-22 12:16   ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Morris @ 2014-06-21 19:54 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel


I had trouble merging this to trunk; please check the result.
In particular I just dropped the first hunk.

Stefan Monnier wrote:

> revno: 117258
> revision-id: monnier@iro.umontreal.ca-20140618220215-085wg9620hrgpor1
> parent: eliz@gnu.org-20140618165726-eivjwux3p3x0m8qc
> fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17776
> committer: Stefan Monnier <monnier@iro.umontreal.ca>
> branch nick: emacs-24
> timestamp: Wed 2014-06-18 18:02:15 -0400
> message:
>   * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.
>   (xterm-mouse--read-event-sequence-1000): Drop unknown events instead of
>   burping.
> modified:
>   lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
>   lisp/xt-mouse.el               xtmouse.el-20091113204419-o5vbwnq5f7feedwu-905
>
> === modified file 'lisp/ChangeLog'
> --- a/lisp/ChangeLog	2014-06-18 15:15:52 +0000
> +++ b/lisp/ChangeLog	2014-06-18 22:02:15 +0000
> @@ -1,3 +1,9 @@
> +2014-06-18  Stefan Monnier  <monnier@iro.umontreal.ca>
> +
> +	* xt-mouse.el (xterm-mouse-translate-1): Fix last change (bug#17776).
> +	(xterm-mouse--read-event-sequence-1000): Drop unknown events instead of
> +	burping.
> +
>  2014-06-18  Eli Zaretskii  <eliz@gnu.org>
>  
>  	* term/w32-win.el (dynamic-library-alist): Support giflib 5.1.0
>
> === modified file 'lisp/xt-mouse.el'
> --- a/lisp/xt-mouse.el	2014-05-08 01:46:15 +0000
> +++ b/lisp/xt-mouse.el	2014-06-18 22:02:15 +0000
> @@ -76,7 +76,7 @@
>  	     (is-down (string-match "down" (symbol-name (car down)))))
>  
>  	;; Retrieve the expected preface for the up-event.
> -	(unless is-down
> +	(when is-down
>  	  (unless (cond ((null extension)
>  			 (and (eq (read-event) ?\e)
>  			      (eq (read-event) ?\[)
> @@ -158,28 +158,27 @@
>  (defun xterm-mouse--read-event-sequence-1000 ()
>    (let* ((code (- (read-event) 32))
>           (type
> -	  (intern
> -	   ;; For buttons > 3, the release-event looks differently
> -	   ;; (see xc/programs/xterm/button.c, function EditorButton),
> -	   ;; and come in a release-event only, no down-event.
> -	   (cond ((>= code 64)
> -		  (format "mouse-%d" (- code 60)))
> -		 ((memq code '(8 9 10))
> -		  (setq xterm-mouse-last (- code 8))
> -		  (format "M-down-mouse-%d" (- code 7)))
> -		 ((and (= code 11) xterm-mouse-last)
> -		  (format "M-mouse-%d" (1+ xterm-mouse-last)))
> -		 ((and (= code 3) xterm-mouse-last)
> -		  ;; For buttons > 5 xterm only reports a button-release event.
> -		  ;; Drop them since they're not usable and can be spurious.
> -		  (format "mouse-%d" (1+ xterm-mouse-last)))
> -		 ((memq code '(0 1 2))
> -		  (setq xterm-mouse-last code)
> -		  (format "down-mouse-%d" (+ 1 code))))))
> +          ;; For buttons > 3, the release-event looks differently
> +          ;; (see xc/programs/xterm/button.c, function EditorButton),
> +          ;; and come in a release-event only, no down-event.
> +          (cond ((>= code 64)
> +                 (format "mouse-%d" (- code 60)))
> +                ((memq code '(8 9 10))
> +                 (setq xterm-mouse-last (- code 8))
> +                 (format "M-down-mouse-%d" (- code 7)))
> +                ((and (= code 11) xterm-mouse-last)
> +                 (format "M-mouse-%d" (1+ xterm-mouse-last)))
> +                ((and (= code 3) xterm-mouse-last)
> +                 ;; For buttons > 5 xterm only reports a button-release event.
> +                 ;; Drop them since they're not usable and can be spurious.
> +                 (format "mouse-%d" (1+ xterm-mouse-last)))
> +                ((memq code '(0 1 2))
> +                 (setq xterm-mouse-last code)
> +                 (format "down-mouse-%d" (+ 1 code)))))
>           (x (- (read-event) 33))
>           (y (- (read-event) 33)))
>      (and type (wholenump x) (wholenump y)
> -         (list type x y))))
> +         (list (intern type) x y))))
>  
>  ;; XTerm's 1006-mode terminal mouse click reporting has the form
>  ;; <BUTTON> ; <X> ; <Y> <M or m>, where the button and ordinates are



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: emacs-24 r117258: * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change.
  2014-06-21 19:54 ` emacs-24 r117258: * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change Glenn Morris
@ 2014-06-22 12:16   ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2014-06-22 12:16 UTC (permalink / raw)
  To: Glenn Morris; +Cc: emacs-devel

> I had trouble merging this to trunk; please check the result.

The result looks right, thank you.

> In particular I just dropped the first hunk.

Yes, that was right.


        Stefan



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-22 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <E1WxNvx-0000Xo-GX@vcs.savannah.gnu.org>
2014-06-21 19:54 ` emacs-24 r117258: * lisp/xt-mouse.el (xterm-mouse-translate-1): Fix last change Glenn Morris
2014-06-22 12:16   ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.