From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: Re: overlays? Date: Wed, 19 Mar 2014 08:22:18 +0100 Organization: my virtual residence Message-ID: <87d2hiy7o5.fsf@yun.yagibdah.de> References: <87vbvcgu7g.fsf@yun.yagibdah.de> <20140318071713.6999161a@aga-netbook> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1395216718 13109 80.91.229.3 (19 Mar 2014 08:11:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 08:11:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 19 09:12:06 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQBba-0005wO-3Y for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2014 09:12:06 +0100 Original-Received: from localhost ([::1]:39155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQBbZ-0004uN-Kl for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Mar 2014 04:12:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQBal-00048D-9H for help-gnu-emacs@gnu.org; Wed, 19 Mar 2014 04:11:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQBac-0004W7-Ed for help-gnu-emacs@gnu.org; Wed, 19 Mar 2014 04:11:15 -0400 Original-Received: from client-194-42-186-216.muenet.net ([194.42.186.216]:38644 helo=yun.yagibdah.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQBac-0004Vl-5f for help-gnu-emacs@gnu.org; Wed, 19 Mar 2014 04:11:06 -0400 Original-Received: from lee by yun.yagibdah.de with local (Exim 4.80.1) (envelope-from ) id 1WQBaa-0007Tv-Gx for help-gnu-emacs@gnu.org; Wed, 19 Mar 2014 09:11:04 +0100 In-Reply-To: <20140318071713.6999161a@aga-netbook> (Marcin Borkowski's message of "Tue, 18 Mar 2014 07:17:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 194.42.186.216 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96614 Archived-At: Marcin Borkowski writes: > Dnia 2014-03-18, o godz. 02:40:35 > lee napisa=C5=82(a): > >> Hi, >>=20 >> could someone please shed a light on the purpose of overlays? I`m >> wondering under what circumstances they are used, or need to be used. >> Are they a feature that has been obsoleted by font-lock, or are they >> still needed? > > With the risk that I say something stupid: isn't font-lock used for > syntax highlighting? With hi-lock-mode, either overlays are, or font-lock is used. I`d have to check if it potentially uses both. Perhaps I can somehow make it use overlays just to see what happens. My understanding was that it may depend on the display/terminal whether font-lock or overlays is/are used. This understanding seems to be obviously wrong. They are suited for different circumstances. > If yes, then: what about i-search (using overlays) in a font-lock'ed > buffer? What about it? Does it use overlays? --=20 Knowledge is volatile and fluid. Software is power.