From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aaron Meurer Newsgroups: gmane.emacs.help Subject: Re: Mouse support does not work Date: Sat, 14 Jan 2012 13:32:36 -0700 Message-ID: References: <93DFD36B-5594-41A3-A9E7-AE48292FA49C@Web.DE> <3FA9F2A1-8559-4F0C-AF5A-F042B04BBADB@web.de> <49E98AF3-7986-4495-BB39-E07D236450A0@web.de> <159F600A6D0441F4AEFB5AD53F931A56@us.oracle.com> <923012BA66E14FFEAC1EB01509B04850@us.oracle.com> <29552883E608471BA2ACB9004FAD7FDC@us.oracle.com> <1A8CE007D6A94A659655E374A48FB597@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326573196 12470 80.91.229.12 (14 Jan 2012 20:33:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 20:33:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 14 21:33:11 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmAHl-0005sy-EG for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 21:33:09 +0100 Original-Received: from localhost ([::1]:44472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmAHk-0001kW-Rk for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 15:33:08 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58675) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmAHe-0001kG-Sn for help-gnu-emacs@gnu.org; Sat, 14 Jan 2012 15:33:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmAHd-0008SB-0S for help-gnu-emacs@gnu.org; Sat, 14 Jan 2012 15:33:02 -0500 Original-Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:63599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmAHc-0008S2-Aa for help-gnu-emacs@gnu.org; Sat, 14 Jan 2012 15:33:00 -0500 Original-Received: by lagj5 with SMTP id j5so1087913lag.0 for ; Sat, 14 Jan 2012 12:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=csAZwWaN2aL+OiJeTqHFw9epS4XwPgl3v+foq095ffI=; b=KLqPGdRCQnbWWPpaXXS0xfM5wP6b6Sa8sVg6I9hrWyCmwxairheVkbM2DvvQAgqfuz XG6dv7E9hRK1t9FtZ77eYZXg+e51rkAj0bE6FeslSIEWsLYWzqIk234vk5LlMCGo2E0e vvUN7ug3BWWmeiVXBgPt22z3sK3G6sadAleWA= Original-Received: by 10.112.82.73 with SMTP id g9mr1518719lby.60.1326573177149; Sat, 14 Jan 2012 12:32:57 -0800 (PST) Original-Received: by 10.112.98.133 with HTTP; Sat, 14 Jan 2012 12:32:36 -0800 (PST) In-Reply-To: <1A8CE007D6A94A659655E374A48FB597@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83500 Archived-At: On Sat, Jan 14, 2012 at 1:08 PM, Drew Adams wrote: >> >> > Wrt keystroke echoing, you can use `echo-keystrokes', as I >> >> > mentioned. You also have `C-h l', to see the last 100 keystrokes. >> >> >> >> echo-keystrokes only seems to work within some lisp code, which I >> >> unfortunately am not good enough with yet to do anything useful. >> > >> > I think it works always, but it is true that some commands >> > etc. might bind it to 0 so it has no effect in some context. >> >> Maybe I'm missing something then. =A0M-x echo-keystrokes doesn't work. >> How would one run this (without incorporating it into some lisp code)? > > It is a user option, IOW a variable that you can customize. =A0It is not = a > function, let alone a command (so you cannot invoke it using `M-x'). > > Use `C-h v echo-keystrokes' to see its doc. > > However, the doc string is incomplete - see this bug report: > http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D10503. =A0For more complet= e info, see > the Emacs or Elisp manual: use `i echo-keystrokes' in the manual. > > The way to make `echo-keystrokes' take effect or not is to use `M-x > customize-option' or `M-x set-variable'. Ah, I see what this is now. Would that even echo mouse events? > >> >> C-h l doesn't seem to show mouse events. >> > >> > It does for me: >> > >> > ... SPC C-c C-c y e s >> > >> > >> > >> > C-h l >> > >> > And it works whether I use a graphic display or `emacs -nw'. >> > >> >> Actually, I think maybe it does for me too. But it shows it in the >> form of garbage that I don't know how to read: >> >> ESC [ > 0 ; 9 5 ; c ESC x e c TAB DEL DEL ESC [ M a >> ] E ESC [ M a ] E ESC [ M a ] E ESC [ M a ] E ESC [ >> M a ] E ESC [ M ` ] E ESC [ M ` ] E ESC [ M ` ] E ESC >> [ M ` ] E C-h C-g C-h C-h l ESC [ M a ] E ESC [ M a >> ] E ESC [ M a ] E ESC [ M ` ] E ESC [ M ` ] E ESC [ >> M ` ] E ESC [ M ` ] E ESC [ M SPC \300\262 , ESC [ >> M # \300\262 , ESC [ M SPC \300\243 ) ESC [ M # \300\243 >> ) ESC [ M SPC \300\241 ' ESC [ M # \300\241 ' C-h l >> ESC [ M a \300\236 & C-h l > > Those look like keyboard keys to me, not mouse events. =A0If you use the = mouse > (e.g. click `mouse-1' somewhere, then click `mouse-3' somewhere, to selec= t some > text) you should see mouse events such as I show above. > No, this is definitely how it is reporting mouse events. I typed "Some Text" and clicked on the S, and this is what it showed for it: S o m e SPC T e x t ESC [ M SPC $ ( ESC [ M # $ ( C-h l It makes sense that it would do that, because just saying does not tell you where in the text you clicked. Also, if I type ESC [ M SPC $ ( ESC [ M # $ ( with the cursor on the t, it does indeed go back to the S. It even echos "down-mouse-1" at the bottom. As for scrolling, it seems that the command is different depending on where my mouse is (I think), which makes sense because I set the "Mouse Wheel Follow Mouse" setting from customize to on (I couldn't figure out what the emacs variable name for that is called). Aaron Meurer