unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "David Vanderschel" <DJV4@Austin.RR.com>
Subject: Re: controlling echo during mouse-dragging
Date: Thu, 24 Jun 2004 22:52:22 GMT	[thread overview]
Message-ID: <GWICc.10358$w3.4118@fe2.texas.rr.com> (raw)
In-Reply-To: 87acyt2c3j.fsf@indigo.shootybangbang.com

"John Paul Wallington" <jpw@gnu.org> wrote in message
news:<87acyt2c3j.fsf@indigo.shootybangbang.com>...
> "David Vanderschel" <DJV4@Austin.RR.com> writes:
>
> >> > Is there any way I can prevent that uninformative "down-mouse-2-"
> >> > echo from obliterating my infrequent attempts at informing the user?
> >
> >> Try binding `echo-keystrokes' to 0.
> >
> > OK, I tried that.  I made echo-keystrokes buffer-local
> > and set it to 0.
>
> Hm.  I meant `let' binding it when appropriate, but maybe that's
> tricky -- 

No.  A let binding would have been OK also; but this
is a buffer which is read-only to the user and over
which my program exerts full control.  It made just as
much sense to set it once and for all during
initialization.  I never want to see those echoes for
the buffer this program is managing.  I was happy to
learn about the echo-keystrokes variable.

>are you tracking the mouse yourself or binding
>commands to drag events, or something else ?

I have implemented my own track-mouse loop.  (It is
tricky to get right!)

> > So I still have an obliteration problem; and now I do
> > not even know what is causing it.

> Please post some example code, preferably pared-down to essentials,
> that demonstrates the problem.

Actually, I am close to giving up now.  I think I
understand the problem.  The fact is that any message
in the echo area is erased on occurrence of the next
input event.  Normally mouse movement is not treated
as an event, so one is not used to it causing erasure
in the echo area.  However, having invoked
track-mouse, I am saying that mouse movement _is_ an
event, so the echo area gets erased every time the
cursor moves to a new character position.  I do not
see how to get around it.

There is one thing I could hope: namely to get control
of the string that emacs is using, for example, to
display the useless "down-mouse-1-" indication when I
am allowing it.  That is not even a "message" in the
sense that it is logged in the *Messages* buffer -
which is good as far as I am concerned.

Regards,
  David V.

  reply	other threads:[~2004-06-24 22:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <GRkCc.770$Pc.184@fe1.texas.rr.com>
2004-06-23 21:07 ` controlling echo during mouse-dragging John Paul Wallington
     [not found]   ` <sIoCc.966$Pc.886@fe1.texas.rr.com>
2004-06-24 15:46     ` John Paul Wallington
2004-06-24 22:52       ` David Vanderschel [this message]
2004-06-24 22:58         ` John Paul Wallington
2004-06-25  0:10           ` David Vanderschel
2004-06-25  0:11           ` David Vanderschel

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='GWICc.10358$w3.4118@fe2.texas.rr.com' \
    --to=djv4@austin.rr.com \
    /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.
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).