unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Barry OReilly <gundaetiapo@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Fontifying outside of region passed to registered JIT lock function
Date: Sat, 16 Nov 2013 17:12:50 -0500	[thread overview]
Message-ID: <jwvhabc6lqm.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAFM41H0oBnLrZOo3r6PdWmJ3ZxNS6tcDN7VhFYwNQqyQpo3UvQ@mail.gmail.com>

> I considered that, and I'm not against either highlighting parens or
> the indentation. I chose to hack the former case because I couldn't
> think of a pleasing way to highlight the indentation. For example:
> what to highlight when c is against the left margin?

Actually, just after sending the other message I thought of this exact
problem and figured that maybe a way to do that is not to highlight the
indentation, but to insert a "display only" close-paren (with suitable
coloring).

> Is there a way to put something visual in between characters? Like
> a colored dot or little line?

You can insert display-only text via the after-string or
before-string property of overlays.


        Stefan



      reply	other threads:[~2013-11-16 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 15:47 Fontifying outside of region passed to registered JIT lock function Barry OReilly
2013-11-15 17:44 ` Stefan Monnier
2013-11-15 18:30   ` Barry OReilly
2013-11-16  1:04     ` Stefan Monnier
2013-11-16 20:59       ` Barry OReilly
2013-11-16 22:12         ` Stefan Monnier [this message]

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=jwvhabc6lqm.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=gundaetiapo@gmail.com \
    /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).