From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Is there a way to hightlight region permanently? Date: Sun, 02 Jul 2017 14:24:05 +0200 Message-ID: <87zicnuivu.fsf@rosalinde> References: <87eftzrxwn.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498998295 9176 195.159.176.226 (2 Jul 2017 12:24:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Jul 2017 12:24:55 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 02 14:24:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dRdvl-00021g-HF for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 14:24:49 +0200 Original-Received: from localhost ([::1]:57906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRdvp-0002PZ-43 for geh-help-gnu-emacs@m.gmane.org; Sun, 02 Jul 2017 08:24:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRdvK-0002PR-Lp for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 08:24:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRdvH-00016b-Gc for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 08:24:22 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:54433) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRdvH-00014O-5X for help-gnu-emacs@gnu.org; Sun, 02 Jul 2017 08:24:19 -0400 Original-Received: from rosalinde ([83.135.14.73]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Ld3t6-1e9T300Ys4-00i9qC; Sun, 02 Jul 2017 14:24:06 +0200 In-Reply-To: <87eftzrxwn.fsf@jane> (Marcin Borkowski's message of "Sun, 02 Jul 2017 11:27:52 +0200") X-Provags-ID: V03:K0:UwGWfjqykqguP+6ShT8A1jU67QXv9dboDul8osnVXciy73xirqK 7aW73AuAK9VMJkN4GhsD/Y4NT/vTAEI1RUjWbLj98wujwEDgxBNnqiQ6jPOa5dT9q5q0mmk S/UWFpv/xYXNtWt1hakxu5EVYVFQIXfGDA6qR2baugugbJIUiy0URks9UvmKZLAr7okipIy ZQtFq9OpPIoEKfVS0Z4Bw== X-UI-Out-Filterresults: notjunk:1;V01:K0:vhir3lf6rJQ=:vYyjAIGmx+UAUCUhvsSdNe YqK03q6Aa+X78gDPXChNQ/719q3lzNLeJN43S0GVywJc9d4THmtNH4/GREFuqhQe3sD3bCZa1 fDLOfar/2C5fnYGGc7bVejykbcOe7rqbZlUEidnphEZJS77cWqM3ZfJHuuIPQER3ceXmghZS2 FVN4lE+udZqfUKW192O/1or7+wJtQr+95XVJKKFlfOKNyfM7BVIHkV+9Gps/MGhM46ZzzWTZ/ 55B5I6xWuzAxBzpjYPyUenHfSJSW5L0DR7e8qWZX4PPZtZrIIoiT/3ieStPlNyL/5fKlI3MVm AFMoBCFDh+Nhphfvp0UoRNyEPMUHejF2QuWJ3SiuzAcrYlxb7tcgJ5S8u30qbGtKbnAU+2TWq f2f2W1Dab7A3+IHFWtSRKBo502sGXO1claGxT+WPt2ztTR1nywS7TauZBgD8GYn/Oxs30/HMI kzG/w1RGzPVytII2L8Tmen19EP77u3+bAJ6gm7FrschROEBEhlWJuy28c/BmYxw32FQprzo4W fPGNNtiPeMhG6XfBj9hBw7VTs6sEMu8U1Lxu/2u6/ZAI0A978N6+/JgAquCuKHmH0tjucpqxV 9PXovI56zG+aCB/PgxYWYz9FZJyi0sSY3NVac/B/Qtrz7HOQCGGogCIghqBFPQDgiL6/1/caW sC0fIJwYuFMw0Jz1vfUtd48zUBv7WSq31CA7yC4B7phO7XZ31cpMoq0hZv8e7RflgkrKB9Ely oDNn/zaN6Xs9dVG63bwmlzAf+7XWhdg25EIQRjI/F0QwTyNCCvsRL2LuNKtda0sozLw33+xO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113632 Archived-At: On Sun, 02 Jul 2017 11:27:52 +0200 Marcin Borkowski 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