From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Why mouse-1/2/3 ? Date: Tue, 28 Apr 2020 08:27:20 -0700 (PDT) Message-ID: <3e3bc3c5-92fd-4291-969e-de0b6cfd4dd1@default> References: <87wo60o32i.fsf@md5i.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="70817"; mail-complaints-to="usenet@ciao.gmane.io" To: Michael Welsh Duggan , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 28 17:32:09 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jTSDR-000IIk-4g for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 17:32:09 +0200 Original-Received: from localhost ([::1]:35014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTSDQ-0005Ku-3N for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Apr 2020 11:32:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53204) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTSC7-0003rs-4u for emacs-devel@gnu.org; Tue, 28 Apr 2020 11:31:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTSAn-0004rL-TC for emacs-devel@gnu.org; Tue, 28 Apr 2020 11:30:46 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:59214) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTSAn-0004q3-BB for emacs-devel@gnu.org; Tue, 28 Apr 2020 11:29:25 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03SFItbQ062132; Tue, 28 Apr 2020 15:29:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=n9uGlVgCNB/7SeIme4oRmc4I4cHs7xYaHGPJ5AD5vTw=; b=QfBy/kso2yLJSoYl7skSAgp/NSvJY9Gnv6szSMLcanzVIsidxHwXXyrnXyoDUZG0Cji0 axR0zDGFRf18TDZf//s/QqEeenljO5r3D7lb32LtUC64u31Hr1+ovpewBgZRuyH+sAKV DQ2CctHvgsWMJBCvk947SVozvZgPSv5TcuvE4n4s1E1HtNjVjGJUREna47LgzD7z1mKW rmutuvUsRngUhgqJui5WMVm4401HNtTzZjIFeCa6CX7fR3bqp7nLsjoW0HrrJLLFucdp MViIV3VJy5CA0aJHd5TuASE68vzBog2Q1mM6aEdmu1HJzz+1Nfrp64uXKbp1cd3qCS8Z qw== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 30nucg0pgd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Apr 2020 15:29:23 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03SFCg2i086601; Tue, 28 Apr 2020 15:27:22 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 30mxpg9gmu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Apr 2020 15:27:22 +0000 Original-Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03SFRLGm019576; Tue, 28 Apr 2020 15:27:21 GMT In-Reply-To: <87wo60o32i.fsf@md5i.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4993.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9605 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004280120 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9605 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 priorityscore=1501 mlxlogscore=999 impostorscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004280120 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 11:29:24 X-ACL-Warn: Detected OS = Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248027 Archived-At: > It comes straight from X11 terminology. >=20 > 1 =3D left > 2 =3D middle > 3 =3D right > 4 =3D scroll wheel up > 5 =3D scroll wheel down > 6 =3D scroll wheel left (yes, really) > 7 =3D scroll wheel right > 8 =3D 4th button (browser back) > 9 =3D 5th button (browser forward) >=20 > In point of fact, Emacs's first scroll-wheel support was on Windows. I > know because I wrote it at the time. (This was in the '96-'97 > timeframe. I didn't even have a mouse with a wheel at the time. I had > to borrow a coworker's in order to test the code.) At the time, I used > a new event, mouse-wheel, for the mouse-wheel event. I don't know if > X11 supported a mouse wheel at this time. Mainline (X11) emacs did not > need to change to support a mouse wheel once X11 had support for it: it > was just a new button number. The symbol was just a concatenation of > "mouse-" and the button number. Later work was done to unify NTEmacs > and mainline emacs, and the Windows-specific stuff changed to be more > like the X11 version. >=20 > One major advantage of the numbered naming system is listed above: the > code in emacs didn't need to change in the slightest when new buttons > were added. Excellent. Thanks for reporting this, as the logic behind this and as history.