From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.devel Subject: Re: nsterm.m: How to prevent _inactive_ window update from overreaching. Date: Wed, 28 Nov 2018 21:52:17 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1543470671 30084 195.159.176.226 (29 Nov 2018 05:51:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Nov 2018 05:51:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 29 06:51:07 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 1gSFEA-0007iI-R9 for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2018 06:51:07 +0100 Original-Received: from localhost ([::1]:52411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSFGH-0007kJ-GR for ged-emacs-devel@m.gmane.org; Thu, 29 Nov 2018 00:53:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52535) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSFFf-0007jz-OI for emacs-devel@gnu.org; Thu, 29 Nov 2018 00:52:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSFFZ-0005uN-SO for emacs-devel@gnu.org; Thu, 29 Nov 2018 00:52:38 -0500 Original-Received: from gateway21.websitewelcome.com ([192.185.45.89]:20141) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSFFX-0005a5-IK for emacs-devel@gnu.org; Thu, 29 Nov 2018 00:52:31 -0500 Original-Received: from cm11.websitewelcome.com (cm11.websitewelcome.com [100.42.49.5]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 156C0400CD14E for ; Wed, 28 Nov 2018 23:52:19 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id SFFKgN4HtRPojSFFKgVVYm; Wed, 28 Nov 2018 23:52:19 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=wJGQ5lQGeOYAI24UHwFsbtPKVhXqni6PKEzQXsC3NbI=; b=NUKco1/vegMVcavp3Xbiv/05dC OAsxfF89wKlwQwkZhhDzRlYe4oj/OOQZnQDr/64n9nhKhxn7JrFnZZIomGCwM7PvOzJeKy1gbseW8 4xXiYBCXdcRXR6fu3GKUmgpy+diSKYDAi1Vo3i1OgFuy42HakmBrvPQi7aZgiyjLj6HP2Xg4UoozC 0eopdj1hVvbYmUkk2yZwydG6x6st+sU0gozZ+89Ts6umhN3l2o4Rsth47G6Z9qCf9p2GUMmblsyG2 nUJ3HVz+J5P49SH9GnUoygeI9CqnxVZtvXUAAKWPr3T8yHRAoJF4EFFEgZOMJBHp5MExGGk9aHS0k MEPLuN8w==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:55630 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1gSFFK-002fRk-9B; Wed, 28 Nov 2018 23:52:18 -0600 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Source-L: No X-Exim-ID: 1gSFFK-002fRk-9B X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:55630 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 192.185.45.89 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:231504 Archived-At: Thank you, Alan, for the additional pointers regarding how this issue may ultimately be resolved. I will continue to think about and work on this in the coming days. Yes, all three features (multiple fake cursors, crosshairs, and visible fill column) operate on the same principal. There are similar functions for each feature, with the only main difference being that multiple fake cursors look for a particular buffer position when dumping the glyph matrix and looping through each row, whereas crosshairs and visible fill column look for a particular window relative X coordinate. At this time, there is nothing fancy about multiple fake cursors -- i.e., Emacs only looks for a buffer position and creates a fake cursor with the desired cursor type and cursor color. Magnar's Lisp library is still the only mechanism I am aware of that does the magic. Instead of placing a visible overlay where fake cursors would ordinarily be created using Magnar's library, there are a few modifications to his Lisp functions that are contained within crosshairs.el. From the list of fake cursor overlays created by Magnar's library, Emacs gathers the list of buffer positions and then draws built-in fake cursors that are within the confines of the visible windows. Keith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > Date: [11-28-2018 13:31:09] <28 Nov 2018 21:31:09 +0000> > From: Alan Third > To: Keith David Bershatsky > Cc: emacs-devel@gnu.org > Subject: Re: nsterm.m: How to prevent _inactive_ window update from overreaching. > > * * * > > FWIW I asked about how the crosshair is drawn (since that was what you > were discussing originally) but you only talked about multiple > cursors. Am I to assume then that the crosshair drawing is tightly > integrated with the multiple cursors? > -- > Alan Third