From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: [elpa] master a94ca83 01/18: swiper.el: Add a work-around for window-start not being current Date: Mon, 20 Apr 2015 17:19:50 +0200 Message-ID: <87383uesix.fsf@gmail.com> References: <20150420123900.21320.5807@vcs.savannah.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429543575 25970 80.91.229.3 (20 Apr 2015 15:26:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 15:26:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 20 17:26:09 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YkDaF-0003AY-H8 for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2015 17:26:03 +0200 Original-Received: from localhost ([::1]:54162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDaE-0007xB-Uj for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2015 11:26:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDZj-0007tX-7m for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:25:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkDZf-0002bK-T5 for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:25:31 -0400 Original-Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:34868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDZf-0002bC-HD for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:25:27 -0400 Original-Received: by wgyo15 with SMTP id o15so183295906wgy.2 for ; Mon, 20 Apr 2015 08:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8KirbiJzD4AQy6Hgf156JZI2GD5LDAU8qbLL4tiwJoY=; b=tZJGneKT6nBFPGBcxJYb1Hk5qOFHpqSAbBHODBKbZf9z4XK8TzEde+8bMlePa/3GXi jswJUeASELsx1CqhXeo7Rh4EpLT6Bk+6em2JqOEd7Lo+XeArogmEbIbnLMLLRYVTqzLd YlrGbtEEOrDI9DM53avNvJoos6bFMYl2cxuV68qGTyu0ZBQ7ornEny4ZdLQqMiN7BLhq 2uSaWbvlG4GlNvJHNGN1+CWyRlRDAYVdMFFYEpditI1csSMqzL7bInU94MCV0B7AFhcv k+rpJaTla1/RuAOTuLUomqB1xISjGoH09PiG3qmXxChpPL4xiRYaWURSdZ9431QCWr2w pYDg== X-Received: by 10.194.200.194 with SMTP id ju2mr28930341wjc.61.1429543526921; Mon, 20 Apr 2015 08:25:26 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id ng5sm15689054wic.24.2015.04.20.08.25.26 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 20 Apr 2015 08:25:26 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 20 Apr 2015 11:08:57 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185714 Archived-At: Stefan Monnier writes: >> An alternative would be to use `redisplay' to update `window-start' and >> `window-end', but that causes excessive blinking. > > Yes, this sucks. Currently, I think the best mechanism in Emacs to > perform such highlighting is fontification-functions, but that is used > by jit-lock. So you could use jit-lock-register, but it would cause > re-font-locking the (visible part of) the buffer, which also sucks. > > jit-lock should ideally be extended to better deal with "multiple > clients" so that it is able to understand that some parts of the buffer > have already been handled by some clients (currently, it's all or > nothing: either jit-lock thinks that a part of the buffer has been > handled by all clients, or it thinks that it's been handled by none). It's not a big deal for swiper: in this case, just double the window height gets overlays, instead of single window height. The advantage is that I don't have to deal with callbacks and sequencing. Oleh