From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: RE: mwheel scroll horizontally Date: Tue, 05 Oct 2010 13:29:53 +0900 Message-ID: <871v859s8u.fsf@uwakimon.sk.tsukuba.ac.jp> References: <87hbh1fu7n.fsf@mail.jurta.org> <5D4331260E2E4FD5A8615DC94FEF8ECA@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1286254660 14467 80.91.229.12 (5 Oct 2010 04:57:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Oct 2010 04:57:40 +0000 (UTC) Cc: 'Juri Linkov' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 05 06:57:38 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P2zap-0001HA-Dx for ged-emacs-devel@m.gmane.org; Tue, 05 Oct 2010 06:57:35 +0200 Original-Received: from localhost ([127.0.0.1]:52748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2zao-0007mg-IE for ged-emacs-devel@m.gmane.org; Tue, 05 Oct 2010 00:57:34 -0400 Original-Received: from [140.186.70.92] (port=58789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2zah-0007mb-GH for emacs-devel@gnu.org; Tue, 05 Oct 2010 00:57:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2zag-0000ua-Hc for emacs-devel@gnu.org; Tue, 05 Oct 2010 00:57:27 -0400 Original-Received: from [130.158.254.170] (port=39506 helo=dmail01.cc.tsukuba.ac.jp) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2zag-0000tr-2U for emacs-devel@gnu.org; Tue, 05 Oct 2010 00:57:26 -0400 Original-Received: from imss12.cc.tsukuba.ac.jp (unknown [130.158.254.130]) by dmail01.cc.tsukuba.ac.jp (Postfix) with ESMTP id 6E632E0654 for ; Tue, 5 Oct 2010 13:39:12 +0900 (JST) Original-Received: from imss12.cc.tsukuba.ac.jp (imss12.cc.tsukuba.ac.jp [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 97F952AF544; Tue, 5 Oct 2010 13:39:03 +0900 (JST) Original-Received: from mgmt1.sk.tsukuba.ac.jp (unknown [130.158.97.223]) by imss12.cc.tsukuba.ac.jp (Postfix) with ESMTP id 8A1B22AF542; Tue, 5 Oct 2010 13:39:03 +0900 (JST) Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt1.sk.tsukuba.ac.jp (Postfix) with ESMTP id 876D23FA01B7; Tue, 5 Oct 2010 13:39:03 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 8984A1A3AEA; Tue, 5 Oct 2010 13:29:53 +0900 (JST) In-Reply-To: <5D4331260E2E4FD5A8615DC94FEF8ECA@us.oracle.com> X-Mailer: VM 8.1.93a under 21.5 (beta29) "garbanzo" ed3b274cc037 XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:131353 Archived-At: Drew Adams writes: > And, as always, we should make it clear that such bindings of the wheel to > scrolling actions are only a convenience (default behavior) and the user and > 3rd-party libraries are free to bind the wheel to any other commands, anywhere. That's not "as always". In general, there are strict policies about who may bind what, with C-c reserved to the user, C-c allocated to minor modes (IIRC), and "everything else" allocated to the global map (ie, Rule by Bikeshed on Emacs Devel). Major modes may bind anything, of course, but ISTM that many of the desirable behaviors described here are likely to fit minor modes ("useful in various contexts") rather than major modes ("specific applications"). So AIUI mouse bindings *currently* are (by default and apparently without too much thought put into the matter) part of the global map. I agree with you that there *should* be a thought out policy for mouse gestures. There are fewer of them and they are less arbitrary than keystrokes, so the allocation will be different from keys. I think a reasonable policy would be to allocate: 1. Unmodified mouse gestures to the global map; these should be consistent with the platform standards by default, but there should be emulation minor modes so that multiplatform users can have a consistent environment (eg, on Mac OS X by default you drag to select text, then drag and drop that selection to copy it; but it should be easy to invoke an X emulation mode where you drag to select text, then middle click to insert the selection at the mouse cursor). 2. One modifier to be reserved to the user (eg, C- should never be bound by Emacs or any library -- of course, which modifier is open to bikeshedding, er, discussion). 3. One modifier reserved for use of the current major mode (eg, Shift-; same bikeshedding caveat). 4. The remaining -s may be bound by minor modes, and for most such modes the user should be able to configure the mouse modifier used by the minor mode. I'm not a big rodent rider, so the concrete suggestions above should be taken with a grain of salt. Maybe the framework is useful, though.