unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: bob@rattlesnake.com
Cc: emacs-devel@gnu.org
Subject: Re: [multi-tty] xt-mouse.el does not work in emacsclient frames
Date: Fri, 18 May 2007 19:12:11 -0700	[thread overview]
Message-ID: <200705190212.l4J2CCiP003153@oogie-boogie.ics.uci.edu> (raw)
In-Reply-To: <m1HpDMp-0027M2C@rattlesnake.com> (Robert J. Chassell's message of "Sat\, 19 May 2007 01\:04\:19 +0000 \(UTC\)")

"Robert J. Chassell" <bob@rattlesnake.com> writes:

  >     <csant@csant.info> wrote
  > 
  >     emacs -Q -nw
  >     M-x server-start RET
  >     M-x xterm-mouse-mode RET
  >     emacsclient -t
  > 
  > Both when I start (with many arguments) a multi-tty Emacs in an RXVT
  > shell with -nw and when I start it in X (also with many arguments,
  > mostly the same), if I then run emacsclient -t in another RXVT shell,
  > and then turn on xterm-mouse-mode, the mouse works fine in both the
  > original instance and in the client.
  > 
  > (Not using the vcursor patch.)
  > 
  > When I start the multi-tty Emacs instance in an RXVT, the order in
  > which I start xterm-mouse-mode and emacsclient -t does not matter.
  > 
  > But when I start the multi-tty Emacs instance in X, the order does
  > matter.  When I start xterm-mouse-mode in the original in X before
  > starting emacsclient -t, then mouse mode fails in the client, although
  > when I invoke xterm-mouse-mode in the client, I receive the message
  > about disabling the mouse mode.  If I then invoke it again in the
  > client, mouse mode succeeds.

This behavior is not expected. 

Here is what xterm-mouse-mode does in order to do its job: 
- send an escape sequence to the terminal to tell it to send events
for mouse activity
- set up a function that processes the mouse events

In the multi-tty world when turning on xterm-mouse-mode the above
needs to be done for all the existing tty frames, and it would need to
be done when a new tty frame is created (maybe by adding something to
term-init-hook?).

Anyway this should not be too hard to do, so if somebody wants to do
it, it would be great. Given that the behavior is still correct in the
single tty case, it's not a priority...

  reply	other threads:[~2007-05-19  2:12 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 22:49 [multi-tty] Odd regression in vcursor mode in terminal csant
2007-05-16 22:58 ` David Kastrup
2007-05-17  0:44 ` Dan Nicolaescu
2007-05-17  7:01   ` csant
2007-05-18 17:27   ` [multi-tty] xt-mouse.el does not work in emacsclient frames (was Re: Odd regression in vcursor mode in terminal) csant
2007-05-18 20:17     ` Dan Nicolaescu
2007-05-18 20:43       ` [multi-tty] xt-mouse.el does not work in emacsclient frames csant
2007-05-18 20:55         ` Dan Nicolaescu
2007-05-18 21:13           ` csant
2007-05-18 21:21             ` Dan Nicolaescu
2007-05-18 21:41               ` csant
2007-05-18 21:57                 ` Dan Nicolaescu
2007-05-18 21:59                 ` csant
2007-05-19  1:04             ` Robert J. Chassell
2007-05-19  2:12               ` Dan Nicolaescu [this message]
2007-05-19  2:28                 ` Dan Nicolaescu
2007-05-19 14:03                 ` Stefan Monnier
2007-05-19 16:00                   ` csant
2007-05-19 18:50                   ` David Kastrup
2007-05-21 12:39                     ` Stefan Monnier
2007-05-21 13:02                       ` David Kastrup
2007-05-21 14:12                         ` Stefan Monnier
2007-05-20 17:31 ` [multi-tty] Odd regression in vcursor mode in terminal Karoly Lorentey
2007-05-20 17:31 ` Karoly Lorentey

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=200705190212.l4J2CCiP003153@oogie-boogie.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=bob@rattlesnake.com \
    --cc=emacs-devel@gnu.org \
    /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).