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: Advicing select-windows, shr rendering, and per-buffer-theme package Date: Fri, 18 Mar 2016 12:47:29 -0400 Message-ID: References: <87wpp0xd1t.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458319687 1874 80.91.229.3 (18 Mar 2016 16:48:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 16:48:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 17:47:58 2016 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 1agxZ5-0004Xf-DQ for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 17:47:55 +0100 Original-Received: from localhost ([::1]:44948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxZ4-00035r-RP for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 12:47:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37413) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxYq-00035Z-Jb for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:47:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agxYm-0004Aj-IR for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:47:40 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:49879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxYm-00049j-E8 for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:47:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A2FgA731xV/xSQs2tcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBZluBZsRI4Fmgi4igngBAQE X-IPAS-Result: A0A2FgA731xV/xSQs2tcgxCEAoVVwwsEAgKBPDwRAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNJIg3CM8jAQEBAQYCAR+LOoUFB4QtBZluBZsRI4Fmgi4igngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="196680986" Original-Received: from 107-179-144-20.cpe.teksavvy.com (HELO pastel.home) ([107.179.144.20]) by ironport2-out.teksavvy.com with ESMTP; 18 Mar 2016 12:47:29 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 677AE5FE67; Fri, 18 Mar 2016 12:47:29 -0400 (EDT) In-Reply-To: (raman's message of "Fri, 18 Mar 2016 09:28:47 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:201832 Archived-At: > well enough. So what is it that led folk like yourself and John to > intuitively suggest idle timers for this case? Actually, I would have suggested post-command-hook, but if you want to do it a bit more lazily (e.g. not react to changes within a keyboard-macro, for example), then an idle hook is the next logical step. The main issue is that you want to deal with "the user-perceived changes", rather than actual detailed changes, and the user only perceives changes when a redisplay occurs or between commands. Stefan