From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "stephan.zimmer" Newsgroups: gmane.emacs.help Subject: Re: Text highlighter functiontionality Date: Fri, 24 Jul 2009 08:44:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <87skgnlh62.fsf@iki.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1248453649 23423 80.91.229.12 (24 Jul 2009 16:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jul 2009 16:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 24 18:40:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MUNp2-0003e7-VV for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 18:40:41 +0200 Original-Received: from localhost ([127.0.0.1]:43357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MUNp2-00016r-Gi for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jul 2009 12:40:40 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!h18g2000yqj.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 87.139.15.249 Original-X-Trace: posting.google.com 1248450244 29099 127.0.0.1 (24 Jul 2009 15:44:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 24 Jul 2009 15:44:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h18g2000yqj.googlegroups.com; posting-host=87.139.15.249; posting-account=KJs5AQoAAADGrOtd_DW54KdKddPM3pQ6 User-Agent: G2/1.0 X-HTTP-Via: 1.1 www-proxy.absint.com:3128 (squid/2.6.STABLE18) X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.12) Gecko/2009070811 Ubuntu/9.04 (jaunty) Firefox/3.0.12, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171184 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66373 Archived-At: Many thanks for all of your answers. > But if you want to mark a region and highlight it you could use a simple > function to create an overlay. Here's an example function which > highlights current active region. You can remove the highlighting by > just editing text inside it. This sounds pretty much like what I need. Currently I'm slightly extending Teemu's function in such a way that I can also deselect parts of a selection. My ultimate plan is to add a toggle function, which would allow to select and deselect arbitrary portions of text with one function. If that turns out to be interesting for more of you I will post the code.