From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Aman Bhargava Newsgroups: gmane.emacs.bugs Subject: Re: Patch for xt-mouse beyond column 94 Date: Tue, 1 Apr 2003 15:45:43 -0800 (PST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1049240924 31131 80.91.224.249 (1 Apr 2003 23:48:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 23:48:44 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 01:48:43 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190VUh-00085z-00 for ; Wed, 02 Apr 2003 01:48:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190VTk-0001Ze-0D for gnu-bug-gnu-emacs@m.gmane.org; Tue, 01 Apr 2003 18:47:44 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190VSa-0008LK-00 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2003 18:46:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190VSG-0007U1-00 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2003 18:46:14 -0500 Original-Received: from war.ocf.berkeley.edu ([128.32.191.89]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190VRp-0006td-00 for bug-gnu-emacs@gnu.org; Tue, 01 Apr 2003 18:45:45 -0500 Original-Received: from apocalypse.OCF.Berkeley.EDU (daemon@apocalypse.OCF.Berkeley.EDU [128.32.191.249]) by war.OCF.Berkeley.EDU (8.11.6/8.9.3) with ESMTP id h31Njiv02689 for ; Tue, 1 Apr 2003 15:45:44 -0800 (PST) Original-Received: from localhost (amanb@localhost)h31NjhE02281 for ; Tue, 1 Apr 2003 15:45:44 -0800 (PST) X-Authentication-Warning: apocalypse.OCF.Berkeley.EDU: amanb owned process doing -bs X-X-Sender: amanb@apocalypse.OCF.Berkeley.EDU Original-To: bug-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4691 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4691 Sorry, the previously posted patch contained a typo. The corrected patch follows: *** xt-mouse.el.original Tue Apr 1 13:35:58 2003 --- xt-mouse.el Tue Apr 1 15:43:00 2003 *************** *** 115,123 **** (defun xterm-mouse-event () "Convert XTerm mouse event to Emacs mouse event." ! (let* ((type (- (read-char) #o40)) ! (x (- (read-char) #o40 1)) ! (y (- (read-char) #o40 1)) (point (cons x y)) (window (window-at x y)) (where (if window --- 115,131 ---- (defun xterm-mouse-event () "Convert XTerm mouse event to Emacs mouse event." ! ! ;; read-char messes up xterm sequences above ascii 127 (ox7f) ! (defun read-8bit-char () ! (let ((c (read-char))) ! (if (< c 0) ! (+ c #x8000000 128) ! c))) ! ! (let* ((type (- (read-8bit-char) #o40)) ! (x (- (read-8bit-char) #o40 1)) ! (y (- (read-8bit-char) #o40 1)) (point (cons x y)) (window (window-at x y)) (where (if window