From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?I=C3=B1igo?= Serna Newsgroups: gmane.emacs.devel Subject: Re: Advicing select-windows, shr rendering, and per-buffer-theme package Date: Fri, 18 Mar 2016 23:13:12 +0100 Message-ID: <87k2kze8p3.fsf@gmail.com> References: <87wpp0xd1t.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1458339209 19011 80.91.229.3 (18 Mar 2016 22:13:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 22:13:29 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 23:13:23 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 1ah2e2-0005Pk-9g for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 23:13:22 +0100 Original-Received: from localhost ([::1]:46566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah2e1-0003yH-3Z for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 18:13:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah2dy-0003vg-02 for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:13:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ah2du-0001GG-RC for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:13:17 -0400 Original-Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:37526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah2du-0001GC-Kv for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:13:14 -0400 Original-Received: by mail-wm0-x22f.google.com with SMTP id p65so55157076wmp.0 for ; Fri, 18 Mar 2016 15:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=68YsYFvFBNUrlP9q2X04IT6yXfI5m4+eb1hqa2IZi9Y=; b=gxS5JqAFKclPqBVqQBxf6Bd41QEZEBYbkfGuFcm/xlvHoaKuipQfRGQYiz+alnjbOI 7tuL7w8sfTFx7LylLU7vjUiYrqDTAECJR7mbWGmYHHowHNMRK/NC5f01hhTEdXb7XISO 10Po3qhHHa29mDLJGQJ2lvbCrlcyG4N1d5uRT58gxyR6CmT3M+Wsn0aptyriEvGmTdmM prDViQh43wzxJrSezGBnibpDLGcEvPlAk4KctciN4xW5+hO9Vn/FwMdQovhqNh3cWyFL y/Dfpyk8MmOae66uLj+lJn9stmdPgNMVDefBrifpyZOm6FJapNU5GUUPreqzRusdKkUo 4g/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=68YsYFvFBNUrlP9q2X04IT6yXfI5m4+eb1hqa2IZi9Y=; b=YlVQqcZUQEnaqvN2BNYL4CXVj7aF+qlTm1DNXKpWRfBF3ItnaKWev/3mWhZd6uBwJj EL4MW3DfUtKTgLCBN9XXN0xvKJlodhRwXbhkbkyXPpHogM2asqRpK54P9dan8zFIYwma HiE0ptp+HgwEoP/ZfUUoTWDm82fi39Zj7RODyjLmN9j94/Vf7Nf7n2aNEiQDTATFONdb 3B09GZL6RXCOv1+2lukbPNSc39Px2Un72fdkksS6U0rquKex7W7Z2/oTGfSgtt8byvql h2RTYvFMJwFhomZBJgyo3KQKZseGjKbgMd9D5bJOHnrdBFkSCZNuyHl+vieG89C2vnKR gTjw== X-Gm-Message-State: AD7BkJLolM6XmREFsO2x+M54EAXd74WRWdG9yPPa9SPkQI7uoHid/PNDfwfg9AnAYcItVg== X-Received: by 10.194.191.4 with SMTP id gu4mr17474657wjc.93.1458339193993; Fri, 18 Mar 2016 15:13:13 -0700 (PDT) Original-Received: from inigo.katxi.org.gmail.com (62.57.74.108.dyn.user.ono.com. [62.57.74.108]) by smtp.gmail.com with ESMTPSA id j10sm13936057wjb.46.2016.03.18.15.13.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Mar 2016 15:13:13 -0700 (PDT) User-agent: mu4e 0.9.16; emacs 25.1.50.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22f 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:201847 Archived-At: Hello, raman writes: > 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? I've been experimenting with idle-timer and I must agree, it is very easy to implement and works *surprisingly* well. Even so, that I've left it as the default method to check buffer and theme in my package. > 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. In my case, C was the main headache when switching to eww/shr-based buffers. Looks like 25.x shr use lots of temporary buffers for its rendering tasks. Then A and B (using helm here) causes some "flickering" with select-window advicing method too. As I've mentioned in other email, perspective package also aggravated what I saw. Thanks again to all for your help and suggestions, IƱigo Serna