all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe Wells <jbw@macs.hw.ac.uk>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: no good way to highlight rectangle while region is highlighted
Date: Mon, 30 Jul 2007 18:04:28 +0100	[thread overview]
Message-ID: <86abtdu8kj.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <E1IFYMP-00049n-Mh@fencepost.gnu.org> (Richard Stallman's message of "Mon\, 30 Jul 2007 12\:44\:45 -0400")

Richard Stallman <rms@gnu.org> writes:

>     I think highlighting both the rectangle and the region will be easiest
>     by drawing colored lines around the rectangle and keeping the current
>     way of highlighting the region.  I have already tried this (using the
>     ?box? feature with colored lines), and I find it the easiest to
>     visually understand of the ways that I have gotten to work.  I'm not
>     using it now because every time the rectangle changes, areas of text
>     get shifted on the screen right or left by 1 pixel and this is
>     visually jarring.
>
> Are you saying that, with the new face feature you asked for,
> the rectangle outline would work perfectly?

As I mentioned, I have tried the simultaneous highlighting of the
region and the rectangle, using background color for the region (the
default behavior), and the “box” face feature for the rectangle.  The
only problem with this (as far as I can tell from my experience) is
that the “box” face feature uses horizontal space (and so the text
gets shifted back and forth as the rectangle changes).  If this
shifting of the text didn't happen, I think this method of
highlighting the rectangle would be quite nice.

I can't claim it would be perfect.  If the vertical lines don't take
extra horizontal space, then obviously for some text the lines will
overlap a bit with the glyphs being displayed.  (This problem can
already happen for overlap with the horizontal lines, but that is less
of an issue because in the most commonly used fonts very few glyphs
use pixels in the top and bottom lines of the space they are
allocated.)

> If someone wants to implement it, I have nothing against it.

Always the main issue.

-- 
Joe

  reply	other threads:[~2007-07-30 17:04 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21 21:59 no good way to highlight rectangle while region is highlighted Joe Wells
2007-07-23  4:28 ` Richard Stallman
2007-07-23  7:46   ` Joe Wells
2007-07-23 22:30     ` Richard Stallman
2007-07-23 22:52       ` Joe Wells
2007-07-30 16:44         ` Richard Stallman
2007-07-30 17:04           ` Joe Wells [this message]
2008-01-23 21:25   ` overlays with higher priority than region [was: no good way to highlight rectangle while region is highlighted] Drew Adams
2007-07-23 17:55 ` no good way to highlight rectangle while region is highlighted Johan Bockgård
2007-07-26 16:59 ` Ehud Karni
2007-07-27  7:52   ` Joe Wells
2007-07-27  8:10     ` Ehud Karni
2007-07-27 13:27       ` Joe Wells
2007-07-27 19:43         ` Ehud Karni
2007-07-28  0:10           ` Joe Wells
2007-07-28 10:33             ` Ehud Karni
2007-07-27 13:36   ` Dan Nicolaescu

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

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

  git send-email \
    --in-reply-to=86abtdu8kj.fsf@macs.hw.ac.uk \
    --to=jbw@macs.hw.ac.uk \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.