From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Smoother macOS touchpad scrolling Date: Mon, 18 Sep 2017 20:03:37 +0100 Message-ID: <20170918190337.GA16455@breton.holly.idiocy.org> References: <20170908184634.GA20058@breton.holly.idiocy.org> <86y3pox258.fsf@misasa.okayama-u.ac.jp> <20170909081805.GA20275@breton.holly.idiocy.org> <86ingrl56v.fsf@misasa.okayama-u.ac.jp> <20170910083758.GA30315@breton.holly.idiocy.org> <20170916223317.GA58067@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1505761911 8748 195.159.176.226 (18 Sep 2017 19:11:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 18 Sep 2017 19:11:51 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: homeros.misasa@gmail.com, emacs-devel@gnu.org To: "Charles A. Roelli" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 18 21:11:47 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1du1SN-0001xx-0S for ged-emacs-devel@m.gmane.org; Mon, 18 Sep 2017 21:11:47 +0200 Original-Received: from localhost ([::1]:38435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du1SQ-0006Hk-SQ for ged-emacs-devel@m.gmane.org; Mon, 18 Sep 2017 15:11:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1du1KY-00089m-H5 for emacs-devel@gnu.org; Mon, 18 Sep 2017 15:03:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1du1KX-0000oM-G0 for emacs-devel@gnu.org; Mon, 18 Sep 2017 15:03:42 -0400 Original-Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:50009) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1du1KX-0000nC-9g for emacs-devel@gnu.org; Mon, 18 Sep 2017 15:03:41 -0400 Original-Received: by mail-wm0-x234.google.com with SMTP id e71so5376767wmg.4 for ; Mon, 18 Sep 2017 12:03:41 -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=vy0XYBi+pFWmC+XcBN20jrGzdfPopZ8tJbDYHjxMrJc=; b=M1yaTjjgWMJ+8mi9xLQIwfXX398u7t8XItwU+cz0qeL7I2OXCJ29lo6CHcq0gkqewT 8NgFKcuZNUMChYRCZIecQ46hXUfSUfZjMmfcJXNFxVhyARzHjRsZdB8WCLHedBAZ9pNL pN09b40Ss4lXzo+CojvNmPhZUc+5upGVo+IDYla+dc+tA7UZXZp8fRRBn+F2Jae9CUV6 ufDBdP2EWVnKCf2f8RWHiDDrS3SU50qounXEqFpqRcwGj+iS7mrvADMQ+F7xIJQwofnH 4XfKj/2XdHAQwIgDkhkCZQMtvZOMdkQv07lkx8qRuN5S+GAU1ieYkvmB7Ql55WO1yhxE bg9g== 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=vy0XYBi+pFWmC+XcBN20jrGzdfPopZ8tJbDYHjxMrJc=; b=Cs2k+qLTv/WTxj8LlLbWLGvpt/lxk42PPqtm6m0rAGIG4i+fsJNLflnLqj3yKDHZNf CNJ3e4rEFXQ+mhlcYh6bBth/PRRecN0epAXGHJozG263C3PnJwRhuX0FBn4MoYum2lmO wUokwKq4QRBlfAMBaPydYKsreD1PABuUxajkaiGq7psietwOzA9jMG3YI6dCm/Ok+wyc ln4gi1ISGxtPCyXhCHXFGhomQFidD0BbSztS+oZVXvdBCtQDzDJfE55dr2vvF2yEsVGt WjJtB+nIkD+nzfa2sJc58DUNZZqB/FP+ZohyXmGAOlH7Wj9SDv6RVAeL/vHb1jb7b9A9 tmzQ== X-Gm-Message-State: AHPjjUilHWOWeywEzeqNHQem2GRyXWlzq9y0zQi0hd9+x4wC+Aqw0Q7Q Kfl3VWpWki+ol7ONNC9I85w= X-Google-Smtp-Source: AOwi7QBDfGg2GHp3cjh++d5na9DiIXUTwQEQu+w30cU+DQSuR3I6UyrwJTg6k8W8dxV+CC3CcdiP0Q== X-Received: by 10.28.97.11 with SMTP id v11mr9788481wmb.45.1505761420126; Mon, 18 Sep 2017 12:03:40 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-dc16-e8c9-c53b-72e4.holly.idiocy.org. [2001:8b0:3f8:8129:dc16:e8c9:c53b:72e4]) by smtp.gmail.com with ESMTPSA id l91sm8803994wrc.16.2017.09.18.12.03.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 12:03:39 -0700 (PDT) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218488 Archived-At: On Mon, Sep 18, 2017 at 08:10:59PM +0200, Charles A. Roelli wrote: > With macOS 10.6, I haven't found Emacs scrolling with the touchpad to > be too unusual, maybe just a bit clunky. Wouldn't the following code > also affect 10.6? You’re right. Can you confirm that this doesn’t return true on 10.6? (let ((appkit-version (progn (string-match "^appkit-\\([^\s-]*\\)" ns-version-string) (match-string 1 ns-version-string)))) (>= (string-to-number appkit-version) 1138)) > > +(when (featurep 'cocoa) > > + (setq mouse-wheel-scroll-amount '(1 ((shift) . 5) ((control)))) > > + (setq mouse-wheel-progressive-speed nil)) > > Also, won't these variable changes make Customize report that their > values were "changed outside Customize"? I have absolutely no idea... Customize is something I’ve largely done my best to avoid, so I don’t know how I should go about setting them in a way that’s friendly to it. Something like this? (let ((appkit-version (progn (string-match "^appkit-\\([^\s-]*\\)" ns-version-string) (match-string 1 ns-version-string)))) (when (and (featurep 'cocoa) (>= (string-to-number appkit-version) 1138)) (setq mouse-wheel-scroll-amount '(1 ((shift) . 5) ((control)))) (put 'mouse-wheel-scroll-amount 'customized-value (list (custom-quote (symbol-value 'mouse-wheel-scroll-amount)))) (setq mouse-wheel-progressive-speed nil) (put 'mouse-wheel-progressive-speed 'customized-value (list (custom-quote (symbol-value 'mouse-wheel-progressive-speed)))))) It looks pretty messy. -- Alan Third