From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 11:08:57 -0400 Message-ID: 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 1429542612 8357 80.91.229.3 (20 Apr 2015 15:10:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Apr 2015 15:10:12 +0000 (UTC) Cc: Oleh Krehel To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 20 17:09:58 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 1YkDKd-0001jS-GF for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2015 17:09:55 +0200 Original-Received: from localhost ([::1]:54082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDKc-0001hf-J0 for ged-emacs-devel@m.gmane.org; Mon, 20 Apr 2015 11:09:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDKZ-0001hY-QD for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:09:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkDKV-0003j0-K5 for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:09:51 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:49305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkDKV-0003in-FP for emacs-devel@gnu.org; Mon, 20 Apr 2015 11:09:47 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E982084831; Mon, 20 Apr 2015 11:09:34 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 2F3431E5B9D; Mon, 20 Apr 2015 11:08:57 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 13A3BB40DC; Mon, 20 Apr 2015 11:08:57 -0400 (EDT) In-Reply-To: (Oleh Krehel's message of "Mon, 20 Apr 2015 12:39:01 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:185708 Archived-At: > 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). Stefan