unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: Joe Wells <jbw@macs.hw.ac.uk>
Cc: emacs-devel@gnu.org
Subject: Re: no good way to highlight rectangle while region is highlighted
Date: Mon, 23 Jul 2007 00:28:52 -0400	[thread overview]
Message-ID: <E1ICpXQ-0002yp-6f@fencepost.gnu.org> (raw)
In-Reply-To: <86bqe5fmf1.fsf@macs.hw.ac.uk> (message from Joe Wells on Sat, 21 Jul 2007 22:59:30 +0100)

    Summary of this message: This is a feature request for (1) the
    possibility that some overlays can have priority over the use of the
    region face, and/or (2) a variant of the ?box? face feature where the
    vertical lines of the box take no extra space.

(2) sounds terribly low-level.  (1) is cleaner.

I think (1) could be implemented with a change in face_at_buffer_position.
For instance, we could define a certain priority for the region,
so that overlays whose priority exceeds that cover the region.
It doesn't look terribly hard, but you need to think carefully
to prove that you store the value into *ENDPTR in all cases.

      It contains some
    code to make Emacs operations that normally operate on the region
    switch between operating on the region and the rectangle.  When
    operating on the region (in transient mark mode), the region is
    highlighted.  When operating on the rectangle, the rectangle is
    highlighted.

If you only want to show the region OR a rectangle,
why do you need any new display features?  You'd need a new
feature only to show both at once.

      I ran into these problems in trying to highlight the
    region and rectangle simultaneously:

Why do you want to highlight them both simultaneously?

  reply	other threads:[~2007-07-23  4:28 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 [this message]
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
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

  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=E1ICpXQ-0002yp-6f@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jbw@macs.hw.ac.uk \
    /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).