From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#35389: 27.0.50; [PATCH] Emacs on macOS sets mouse-wheel variables directly Date: Sat, 11 May 2019 09:12:13 +0300 Message-ID: <83sgtleczm.fsf@gnu.org> References: <87y341q8cb.fsf@gmail.com> <83y33edr2a.fsf@gnu.org> <20190510212531.GA82150@breton.holly.idiocy.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="64004"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35389@debbugs.gnu.org, rpluim@gmail.com, npostavs@gmail.com To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 08:13:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hPLFw-000GYk-GM for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 08:13:12 +0200 Original-Received: from localhost ([127.0.0.1]:54876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPLFv-0002Ty-BQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 02:13:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPLFo-0002To-UW for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 02:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPLFn-0006Rd-Ag for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 02:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPLFm-0006R4-Ey for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 02:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPLFm-0002Gs-4w for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 02:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2019 06:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35389 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35389-submit@debbugs.gnu.org id=B35389.15575551478672 (code B ref 35389); Sat, 11 May 2019 06:13:02 +0000 Original-Received: (at 35389) by debbugs.gnu.org; 11 May 2019 06:12:27 +0000 Original-Received: from localhost ([127.0.0.1]:39728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPLFD-0002Fo-6e for submit@debbugs.gnu.org; Sat, 11 May 2019 02:12:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPLFC-0002Fb-5j for 35389@debbugs.gnu.org; Sat, 11 May 2019 02:12:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPLF6-000673-Es; Sat, 11 May 2019 02:12:20 -0400 Original-Received: from [176.228.60.248] (port=3768 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hPLF5-0005Qy-CY; Sat, 11 May 2019 02:12:19 -0400 In-reply-to: <20190510212531.GA82150@breton.holly.idiocy.org> (message from Alan Third on Fri, 10 May 2019 22:25:31 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159068 Archived-At: > Date: Fri, 10 May 2019 22:25:31 +0100 > From: Alan Third > Cc: Robert Pluim , 35389@debbugs.gnu.org, > npostavs@gmail.com > > > Why does that system configuration need a different default to begin > > with? In general, having different defaults on different systems is > > not a good idea. > > macOS 10.7+ handles wheel scrolling differently from how other systems > handle it. If we stick with the defaults then it becomes > uncontrollably fast, the current defaults make it feel similar to X, > Windows, etc. > > IIRC, fixing it in C is probably possible, but not as straight forward > as just changing the defaults. There was discussion of it in Emacs > devel at the time and only one person objected, but later changed > their mind. Could there be some internal variable, either in Lisp or in C, which we then would use in the default value, as some unit, instead of just number of wheel turns and number of lines? Then we could set that internal variable to different values, but keep the customization the same in those internally-defined units. I think that would be somewhat cleaner, if possible and reasonable, because we'd be able to document the customization in these units in a platform-independent way. If that's impractical, then I guess we'll have to live with this inconsistency, although I personally consider it a slippery slope. At the very least it should be documented, in NEWS if not in the manual. > > Also, the original patch mentioned a specific version of appkit, > > whereas this one is more general, AFAIU. Wouldn't that cause trouble > > or surprise elsewhere? > > We still support macOS 10.6, which behaves similarly to X and Windows. > Changing the defaults for it would result in unexpected behaviour. Are you saying that testing the OS version and testing the appkit version yield the same result in this case? Or are you saying that testing the appkit version is simply incorrect? Because that was my concern. Thanks.