From: Aman Bhargava <emacs-bug@amanb.net>
Subject: Re: Patch for xt-mouse beyond column 94
Date: Tue, 1 Apr 2003 15:45:43 -0800 (PST) [thread overview]
Message-ID: <Pine.SOL.4.53.0304011544060.2152@apocalypse.OCF.Berkeley.EDU> (raw)
In-Reply-To: <Pine.SOL.4.53.0304011337560.29582@apocalypse.OCF.Berkeley.EDU>
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
prev parent reply other threads:[~2003-04-01 23:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-01 21:55 Patch for xt-mouse beyond column 94 Aman Bhargava
2003-04-01 23:45 ` Aman Bhargava [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SOL.4.53.0304011544060.2152@apocalypse.OCF.Berkeley.EDU \
--to=emacs-bug@amanb.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).