From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Scrolling commands and skipping redisplay, was: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Thu, 16 Apr 2020 05:04:08 +0300 Message-ID: <013a6f73-d464-e51e-512b-cdb8ac0e94de@yandex.ru> References: <20200403174757.GA8266@ACM> <834ktwsmfw.fsf@gnu.org> <83imibqsmm.fsf@gnu.org> <478c2aab-a5fc-61c2-02e2-2d9846b95273@yandex.ru> <83v9m9nltx.fsf@gnu.org> <4c5ebff1-39ab-3d63-6118-42befc93b862@yandex.ru> <6914ebb2-2dfa-efdc-1181-c42259219bca@yandex.ru> <83zhbjna0q.fsf@gnu.org> <903b7d31-bd0e-e2dc-a981-d090ed959ccb@yandex.ru> <83pncfmpme.fsf@gnu.org> <94ee576f-ff26-cad9-3e22-b75299ff9cdb@yandex.ru> <37afe0b1-7763-4d63-3dc2-5b20415207fe@yandex.ru> <38cbd9b4-cd22-1b40-c756-71de78b97e5f@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="87271"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 Cc: rms@gnu.org, emacs-devel@gnu.org, rudalics@gmx.at, rrandresf@gmail.com, acm@muc.de, Eli Zaretskii To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 16 04:04:47 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 1jOttX-000Mah-82 for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Apr 2020 04:04:47 +0200 Original-Received: from localhost ([::1]:57038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOttW-0005MQ-AK for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Apr 2020 22:04:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41360) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOtt0-0004u2-Fp for emacs-devel@gnu.org; Wed, 15 Apr 2020 22:04:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOtsz-0002dH-HJ for emacs-devel@gnu.org; Wed, 15 Apr 2020 22:04:14 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:35375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOtsy-0002bw-4C; Wed, 15 Apr 2020 22:04:12 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id r26so3123126wmh.0; Wed, 15 Apr 2020 19:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MiB4xbTwZWajgilA+qCDcEm9HB6Lde4oxCQ2Ugu/NcY=; b=ueLC5ZwqdmkMDOD8RQBVLUr93CrQ7Tk1EERyxAfHFpeawabMQwLsKe8MFp23fReGJu Kz+4efdCt3bTatjcyzf7iGH79C6U6Cr+cyVKKRpvJ0Zric+D231VsOpLOMBxUyBHe/fB QWpDDruToR9rEetIqPMZmmHAuzk749G33LJwaB/iAtYxBF5XY9RCu31Mz0Vq2ko1cNqM llAZD38eyUr7OZ1/fDu++S9XeCjaGGYvoUvRxQyFArosULDazcSRFl1e45HTDmu57hF2 KzmHqUd2qMva0wgWLfIFt02nPSRVgQBsTcNEs8ihSi6frxPMNA3dXg+Xv/NIfmBldaFo xAhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MiB4xbTwZWajgilA+qCDcEm9HB6Lde4oxCQ2Ugu/NcY=; b=tZpxDaiafL7qYesxbka1TGm4kayNQxdEqLIiK0C5zSQR6J2iBUSpuho3RjEXOTDk9y NBV4nZzfpGr9Pr5ba/fy58tR6s+q4hkKxocA0Ro32cjwyK0v7RhCsVBjJfIicWW7VzPw 9Mzs1Maj2s9XglmRVQMkF0pHLplXx1Y2pPU0vBQJSyYkrGD0kCn0svu29ZoxApFCb8xP YZoxY8VumpjKZDyCHsx5Qjel7//rzR3ZTY0xrzhpuPK2FCyGcJK+lDDP8K1DGQuLptvU mCeKzxaUYBDRe442aFyH0chSiebmuhx3G9+oNkepDumDVXQfFbqB0Kver6r1y9KXvsyS C6uQ== X-Gm-Message-State: AGi0PubUiN+ghAFmbp97jUeRuCFfsB1nP5auoRf3ug9IG0sOdOub+RHZ qMpjaBRFedoLmnWauCBSR60= X-Google-Smtp-Source: APiQypKsR7xUDtEMo+NY/bq5ldU+7+H91XTpFv4qBnidFdQGCU/IFVtxjuBxlD+2Vdu2qdiVIjspOw== X-Received: by 2002:a1c:a90a:: with SMTP id s10mr2030605wme.99.1587002650907; Wed, 15 Apr 2020 19:04:10 -0700 (PDT) Original-Received: from [192.168.0.2] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id d13sm1639440wmb.39.2020.04.15.19.04.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Apr 2020 19:04:10 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::335 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:247067 Archived-At: On 12.04.2020 08:03, Stefan Monnier wrote: >>> Normally, input_was_pending should be the same during scroll than during >>> the subsequent redisplay, so there should not be any loss of precision, no. >> No, the same loss of precision as associated with f-b-i-s. Since font-lock >> won't occur while scrolling, whatever different-sized fonts, etc, that could >> be applied, won't be. So the scrolling positions will be imprecise. > It is precise in the sense that it will skip exactly the amount > corresponding to what is displayed. Because jit-lock is skipped, what > is displayed is different, but the scrolling itself is "precise". Hmm, good point. Overall, this approach might be better than nothing (better than stalling display, I think), especially if font-lock right after a file has been visited can be fixed. As default behavior, though, users or mid-power systems might prefer if we throttle keyboard input in such conditions instead.