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: FRAMED_BOX_CURSOR: Any interest in a new cursor type? Date: Fri, 30 Nov 2018 00:58:30 -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 1543568332 7433 195.159.176.226 (30 Nov 2018 08:58:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2018 08:58:52 +0000 (UTC) To: Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 09:58:48 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 1gSedK-0001mR-QZ for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2018 09:58:47 +0100 Original-Received: from localhost ([::1]:58805 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSefQ-00061M-L3 for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2018 04:00:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gSedw-0005wj-3s for emacs-devel@gnu.org; Fri, 30 Nov 2018 03:59:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gSeds-00027I-TV for emacs-devel@gnu.org; Fri, 30 Nov 2018 03:59:24 -0500 Original-Received: from gateway36.websitewelcome.com ([50.116.125.2]:48573) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gSeds-000244-KX for emacs-devel@gnu.org; Fri, 30 Nov 2018 03:59:20 -0500 Original-Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 3240B400CF639 for ; Fri, 30 Nov 2018 02:08:13 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id Sed6gufstaSeySed6g6szB; Fri, 30 Nov 2018 02:58:32 -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:To:From:Message-ID:Date: Sender:Reply-To:Cc: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=UsLquI6jwVv2KW9IyhPCSwCG/E2DYq/jbYjmtCCNotU=; b=XeUqxDfb5rAaAokjZxRS2ixcQM 2AXITpfyRwVgTxwkW2fa+WVQ2B1FZbR2OVV9OadIbLMWzj7sfU/ZCUAsyAFJrhbfaPa/fqzc117+6 5w0FELGvTuAsxXhtxacq+kisFGL3tFRUPyj66m8LG7WLY3KXbvCxbOfoJzPEORyoeHxJEq7gm6cNK xjQhvAGmAW4lLdaLxGBve6sKQnSPTMeQeB1BkEhFEXM/FIDhfdUXJ46x/4EWWiE0KWeqngDwZiFTw PPfdldYAeDeuvhQH7rxA28VMBEYye/0cymewzfsaWbcfGRni1p5MXv1722GDiOcA6x+jVQF10T02l Bji9iG9A==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:53414 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.91) (envelope-from ) id 1gSed5-000P25-CI for emacs-devel@gnu.org; Fri, 30 Nov 2018 02:58:31 -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: 1gSed5-000P25-CI 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]:53414 X-Source-Auth: lawlist X-Email-Count: 3 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: 50.116.125.2 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:231531 Archived-At: During my ongoing work on developing feature requests #22873 (multiple fake cursors) and #17684 (crosshairs / fill-column), I came up with a new cursor type for all three GUI platforms (X11, NS, and NT). It is a hollow cursor, with a filled inner color, and a different (or same color) for the glyph character as the outer frame of the cursor. Think of it as a picture frame with a different color background/inner shade and the text stands out; e.g., yellow outer frame, blue inner filled shade, and yellow text. I have simple tests to determine whether the cursor appears in the active/inactive windows (so colors can be different in those windows), which is needed on the NS port because it uses a separate function to colorize the text (which does not have access to the active/inactive argume nts of the other cursor drawing functions). I included a test for whether the region is active and whether PT is at the beginning or ending of the active region, and the colors are different depend ing upon those situations. The colors can be customized by the user, with the outer frame of the cursor being the cursor-color we are all familiar with and the cursor-type is 'framed or "framed". It suffers from the same disadvantage as the FILLED_BOX_CURSOR in so far as a the face of an overlay underneath gets covered up (trumped) by the cursor. I can extract the proof-concept code from the features that I am working on, but thought that I should check first to see if the Emacs development team has any interest?