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: NS Port drawing, again Date: Sat, 17 Nov 2018 10:22:10 +0000 Message-ID: <20181117102210.GA66889@breton.holly.idiocy.org> References: 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 1542450053 18639 195.159.176.226 (17 Nov 2018 10:20:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Nov 2018 10:20:53 +0000 (UTC) User-Agent: Mutt/1.10.1 (2018-07-13) Cc: emacs-devel@gnu.org To: Keith David Bershatsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 17 11:20:49 2018 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 1gNxia-0004ja-PA for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2018 11:20:48 +0100 Original-Received: from localhost ([::1]:48678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNxkg-0007WI-Ux for ged-emacs-devel@m.gmane.org; Sat, 17 Nov 2018 05:22:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gNxk0-0007W0-9B for emacs-devel@gnu.org; Sat, 17 Nov 2018 05:22:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gNxjz-0000ry-Kl for emacs-devel@gnu.org; Sat, 17 Nov 2018 05:22:16 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:42303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gNxjz-0000q1-Dk for emacs-devel@gnu.org; Sat, 17 Nov 2018 05:22:15 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id u5-v6so21985376wrn.9 for ; Sat, 17 Nov 2018 02:22:15 -0800 (PST) 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=EtJQ1ouRE6k0UVlyx4TPYNXA7hoyN6MmpS+OLtbFbZM=; b=QOpQ0iNkSxHj7AJIiAuvbyTDHTggcZSIQ1FIvLpPn9Rx0l8/hnMQeTpdkWEFgUupEY cfsbZxyL+RN+3iD8QJH7U3Un8jMyuBsTLi+kS4j/UWbnmQQXIBNtBtUj+91GCy0MgDdC uEAlCwbMvlFQn/DZvTHcpqZvX3dGmjB5G2KSL2HjYAcsfsto+Fb0XZVe7aKxtRIH6JZ+ Poy/0l/mFUhf8pcdbZSkSgWwDEmwixwVZizLhJK/QMvKMl0DEL9jssRACWzh6F2TNCb7 1jxPAS2QOFPhHw1cqk8dkUoORfwv+NfrEM4gwaEzKjqZSZxtOI2LxB0sr7t6Vyvezy6P M0Lg== 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=EtJQ1ouRE6k0UVlyx4TPYNXA7hoyN6MmpS+OLtbFbZM=; b=DxDIp5MxOAlJ4c2ysDvMYGbe3p+8Ik/nEfCRzf7a94kOEjw9gPhlNwQA9zkbkG0enO ipjgc6nRVVQXqGBuN7W5waj2cPdUf0DG0+WBw+iFZEqf2hJe3V74qxTw7/A02lSxr7HR z7Fa6CuAMmCeKFutBK29LChGwsrUMsRxkinDyTq3gRtm9W9uSCIoJlf1z48cyCMp3xN7 aEwZypDFSbovqcLReVGL0NPsmS03SjOmaAWGzQM5bgjKq8sYRQZc6Ys64JYp6Z4/Pzl0 PyAC+3otCE8aQPBFNk5WOadEOuDIUhNJonFCCIjgQEwn4h0M4P5NPmSXe2J4x+8d9S/4 bGlQ== X-Gm-Message-State: AA+aEWaEGOmgpFDeHXjF+S09EgG+EJa8VwkYkaTSe+03oZ1MHqOQAV/O rtq8Lg6bvaR2twS6t5aqiCEEjNY2 X-Google-Smtp-Source: AFSGD/X3yM4f2Tu9m3Hse0kTw5J4RtCWswF+zLmVPnNCMMvjcJcX2VHCS8jkwvch07NPUAdgQcpGFA== X-Received: by 2002:a5d:4c81:: with SMTP id z1-v6mr7564208wrs.224.1542450133467; Sat, 17 Nov 2018 02:22:13 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-48b8-c30e-9982-4055.holly.idiocy.org. [2001:8b0:3f8:8129:48b8:c30e:9982:4055]) by smtp.gmail.com with ESMTPSA id 201-v6sm3596975wma.3.2018.11.17.02.22.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Nov 2018 02:22:12 -0800 (PST) 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:4864:20::42f 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:231213 Archived-At: On Sat, Nov 10, 2018 at 07:47:35PM -0800, Keith David Bershatsky wrote: > With respect to cursors being left behind when scrolling, I have dealt with that in playing with feature requests #22873 (multiple fake cursors) and #17684 (crosshairs) by removing the cursors at the outset of redisplay in various locations. For example, see the locations where I have: > > mc_remove_multiple_cursors (w); > mc_remove_crosshairs (w); > > See proof concept patch version 015 (11_10_2018__18_53_09_703.diff): The problem we’re having with cursors is that when we ask for a cursor to be removed it doesn’t actually happen on the bitmap until Cocoa gets round to running drawRect. We can force it to run but that invariably results in blank frames and things. On Mojave at least. The current code works in most situations. There’s no longer any random blanking of the screen (I think), so it’s perfectly usable, it just has some weird issues with cursors. (I believe there are still issues with the menus though? Nobody’s mentioned that for a while.) I tried implementing drawing to a buffer, and that works perfectly on High Sierra (except for some bits I know how to fix), but Aaron reports that it doesn’t work at all on Mojave. I don’t know what I’ve done wrong. -- Alan Third