unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: Emacs Devel <emacs-devel@gnu.org>
Subject: FRAMED_BOX_CURSOR:  Any interest in a new cursor type?
Date: Fri, 30 Nov 2018 00:58:30 -0800	[thread overview]
Message-ID: <m2o9a7djrd.wl%esq@lawlist.com> (raw)

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?



             reply	other threads:[~2018-11-30  8:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-30  8:58 Keith David Bershatsky [this message]
2018-11-30  9:17 ` FRAMED_BOX_CURSOR: Any interest in a new cursor type? Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2018-11-30  9:41 Keith David Bershatsky
2018-11-30 10:14 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2o9a7djrd.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).