all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: Is there a way to hightlight region permanently?
Date: Sun, 02 Jul 2017 14:24:05 +0200	[thread overview]
Message-ID: <87zicnuivu.fsf@rosalinde> (raw)
In-Reply-To: <87eftzrxwn.fsf@jane> (Marcin Borkowski's message of "Sun, 02 Jul 2017 11:27:52 +0200")

On Sun, 02 Jul 2017 11:27:52 +0200 Marcin Borkowski <mbork@mbork.pl> wrote:

> Hi all,
>
> I'd like to have something like `highlight-regexp' and
> `unhighlight-regexp', but for the current region.  I.e., something that
> stays highlighted after I move point and/or mark, and whose highlighting
> I can easily turn off when no longer needed.
>
> Any hints?  Or should I just code that myself?
>
> TIA,

If you move point or mark, then you change the region, so what do you
want to do with the old region (which would still be highlighted)?
Maybe secondary selection will serve your purposes:

(info "(emacs) Secondary Selection")

Steve Berman



  reply	other threads:[~2017-07-02 12:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-02  9:27 Is there a way to hightlight region permanently? Marcin Borkowski
2017-07-02 12:24 ` Stephen Berman [this message]
2017-07-02 14:52 ` Drew Adams

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=87zicnuivu.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mbork@mbork.pl \
    /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.