From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#35389: 27.0.50; [PATCH] Emacs on macOS sets mouse-wheel variables directly Date: Sun, 12 May 2019 00:06:59 +0100 Message-ID: <20190511230659.GC82537@breton.holly.idiocy.org> References: <87y341q8cb.fsf@gmail.com> <83y33edr2a.fsf@gnu.org> <20190510212531.GA82150@breton.holly.idiocy.org> <83sgtleczm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="198319"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.3 (2019-02-01) Cc: 35389@debbugs.gnu.org, rpluim@gmail.com, npostavs@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 12 01:19:34 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 1hPbHC-000pVj-7T for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 May 2019 01:19:34 +0200 Original-Received: from localhost ([127.0.0.1]:36347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPbHB-0003Hy-59 for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2019 19:19:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPbGW-0002kg-0s for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 19:18:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPb62-0003Ok-4P for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 19:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56116) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPb62-0003Ob-0J for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 19:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hPb61-0002LA-O0 for bug-gnu-emacs@gnu.org; Sat, 11 May 2019 19:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2019 23:08:01 +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.15576160308938 (code B ref 35389); Sat, 11 May 2019 23:08:01 +0000 Original-Received: (at 35389) by debbugs.gnu.org; 11 May 2019 23:07:10 +0000 Original-Received: from localhost ([127.0.0.1]:41427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPb5C-0002K6-8C for submit@debbugs.gnu.org; Sat, 11 May 2019 19:07:10 -0400 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:43309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hPb59-0002Jq-ON for 35389@debbugs.gnu.org; Sat, 11 May 2019 19:07:08 -0400 Original-Received: by mail-wr1-f45.google.com with SMTP id r4so11330230wro.10 for <35389@debbugs.gnu.org>; Sat, 11 May 2019 16:07:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xts+DjkKG1J6xuT7+KawDKaFfFp2sg6E/c2XYYedenc=; b=hTzSn6FYkRzzFt3e822gp4IMgTVXH/3zyPoVvWj/Prpe238tN8nIJtTT0x3N4t59jH uy0U1vUknREOUrosUo5Z7eHzL7hvm16CkXHJJXPaQPoZftCPrrZksAMzMISyC+Jy0gcw qOR1aNh3/48T/2lJCJEZiV2fAuwvZO1xGEsX5kt+1RZer0qIP1NF9NGnboeVpyDCBXxT 9AgDnEfJWB9SQfydvpNMEEhHjo43s9g8/mAu5V8X3xChK7B8Un7AREXo98hQydZnVEry NKu6QLbeF9pZdsn0IWxDp9eZSA4Os3m8yQ6yuoJ6A3CiLPrja3ds01KiJzSPqMa1iRSP ad/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=xts+DjkKG1J6xuT7+KawDKaFfFp2sg6E/c2XYYedenc=; b=H+dxAxiksP/n8DvNKpPEZVdSJ9g/sL348u/0dGl35ufl6vHGnmPfuX/MOp18ZntZi/ z1b1Wl0HnzFZhT9cfUr1DL5LRPyBqT42UDQG9khFekjgG6eeIOV0b+SishEfbUIk0Pji teqXgtexNS7or3osQOlVXlBr5pMJWIgkohdjOCVO/efBcaiWRidR1pYIbrSX0eHhnqnx r8hxpf2SC3/xxrgxJOGo+b4/Lp8UOjcPfltmvmKeTIfOHT/FV2yMrkL3BWKtxWMAPAZ/ PPHWPg+brtcByiwZFu03tVkrv3otA0TFaLAR6pQ0BeISL6t+CDQxbRK/L1YCat3gJ0Pn WBBA== X-Gm-Message-State: APjAAAXoiByouNw8u7sGZw7V+L+8g27jebv/IjmThq4ZyWnEqa6A0fuG fL1XmwgujU4ARmPWnZMMBPM= X-Google-Smtp-Source: APXvYqwzx6ODLPBv++3NuUMNHhmKX2C/7kaSF0zsqp+LUZPpucd1QkMaZL9Emex+WzFoGh44nvsX2g== X-Received: by 2002:adf:e8c4:: with SMTP id k4mr13098479wrn.9.1557616021901; Sat, 11 May 2019 16:07:01 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-85f9-9fdd-bdd0-2fbb.holly.idiocy.org. [2001:8b0:3f8:8129:85f9:9fdd:bdd0:2fbb]) by smtp.gmail.com with ESMTPSA id q26sm7816582wmq.25.2019.05.11.16.07.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 May 2019 16:07:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <83sgtleczm.fsf@gnu.org> 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:159107 Archived-At: On Sat, May 11, 2019 at 09:12:13AM +0300, Eli Zaretskii wrote: > > 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. The big issue is that both macOS and Emacs accelerate the scroll rate, and that results in uncontrollable scroll rates. Looking through previous discussions (link provided in another email in this thread) it appears there’s an unfortunate trade‐off to be made in how we handle scrolling acceleration varying between mousewheels and trackpads on macOS. The built‐in macOS acceleration feels natural on both, the Emacs acceleration feels very slow on trackpads. > 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. It was documented in NEWS for Emacs 26. I don’t recall if it was added to the manual. A thorough review of the macOS section of the manual is on my todo list for before Emacs 27 is released. -- Alan Third