From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: raman Newsgroups: gmane.emacs.devel Subject: Re: Advicing select-windows, shr rendering, and per-buffer-theme package Date: Fri, 18 Mar 2016 09:28:47 -0700 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 1458318555 15992 80.91.229.3 (18 Mar 2016 16:29:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 16:29: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 Fri Mar 18 17:29:11 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 1agxGw-0001jG-Oc for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 17:29:10 +0100 Original-Received: from localhost ([::1]:44868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxGw-0006Z6-9W for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 12:29:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxGi-0006Yu-2M for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:28:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agxGc-0006NS-V9 for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:28:55 -0400 Original-Received: from mail-pf0-x235.google.com ([2607:f8b0:400e:c00::235]:34562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agxGc-0006NL-MO for emacs-devel@gnu.org; Fri, 18 Mar 2016 12:28:50 -0400 Original-Received: by mail-pf0-x235.google.com with SMTP id x3so174375119pfb.1 for ; Fri, 18 Mar 2016 09:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=V+KamFDRJiY17VCUQMdrteNw0Je9nLpU82pp19CKMXc=; b=D6mnfSzvvaarqw2hSodltzPLtwLRo3ZEhwxVYsXbYsFDXeQ6V8xC3p9Xc7KTh81HHh ekrAEvBz+gk61aQKHVm0y48rdanF/t+VPff3GONoGP2RWuhkX+fwEClBYbCIfidTsBoh gotz6pGRek76uOW+vHYQ0Kr7RHTfJuS6JlK0JiOJwqxF5FgR7yd3ipVguMxjNbtB3efg Ie8yJjycl64CpC5nwXJxzFiFqnLndcGpbWaYJzR2hK4WrApHZ68DuVZXv313sqX8J/7a P96ORiB4pWf0kkv/I1fBk6+SUEmmMSIWxZfAco+s2e6Ltp6Q5QXIsuq9AjeRNescRnbS HI1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=V+KamFDRJiY17VCUQMdrteNw0Je9nLpU82pp19CKMXc=; b=MbbPEqxhzu2WjxaByUAVTXFDcmD2pU7ljYQzy/mLaDFJ1P4Kp7OSpWBPNHVx+UpMLG IpqsdnKSLFC2OHW9aL/e6va/vVfk8zEeyi5EbcUpzbmlA2j0Nd1uD686KwR7wr1BJOOH ZXEMngqR2S2yO2F8Q/C8v/+CcfwTJmRckzmO13aXHoqXWI/0fSlBcSnLsUUNrZRXOW7o qZNd43etYXf4jHOFZ1pMkydNN4VxGhn05n4RCv3ZaRcFN0XETeBBk2P0WYG/pyAekeR1 bziLkpmjJMqqc0Mg8wbTdUAk8D+jl1nBVsLSqFpmUMg3uEoZuSAsVzBKaMnD3eHaArpa YsPw== X-Gm-Message-State: AD7BkJLprmF+hJ2gxVUMpj65Z061eQAqufIsmbCLsIy0ZFGQfGhodqKsmM/PPWmn162T/Q1C X-Received: by 10.98.89.129 with SMTP id k1mr25110385pfj.66.1458318529353; Fri, 18 Mar 2016 09:28:49 -0700 (PDT) Original-Received: from raman-glaptop2 (c-73-170-121-60.hsd1.ca.comcast.net. [73.170.121.60]) by smtp.gmail.com with ESMTPSA id fw9sm22135181pac.21.2016.03.18.09.28.48 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Mar 2016 09:28:48 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 18 Mar 2016 11:21:18 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::235 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:201830 Archived-At: Hi Stefan, Yes, the idle-timer solution worked surprisingly well which at least to me was counter-intuitive --- guess I dont understand Emacs' internals well enough. So what is it that led folk like yourself and John to intuitively suggest idle timers for this case? Incidentally the documentation for buffer-list-update-hook is fairly misleading. I originally tried using that hook and saw it firing way too often; then adviced select-window and observed that that fired almost as often which was still too often. Places where the afore-mentioned hook fires where you wouldn't expect it to bsed on the doc-string: A. While transitioning through the minibuffer B. When you have completions come and go as you interact with the minibuffer C. shr/eww as the earlier poster pointed out D. and many more cases that will fit this margin. --