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 15:48:31 -0700 Message-ID: References: <87wpp0xd1t.fsf@gmail.com> <87k2kze8p3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458341332 17894 80.91.229.3 (18 Mar 2016 22:48:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 22:48:52 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: =?utf-8?Q?I=C3=B1igo?= Serna Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 18 23:48:47 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 1ah3CI-000051-JL for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 23:48:46 +0100 Original-Received: from localhost ([::1]:46724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah3CH-00084C-DT for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 18:48:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah3CD-00083t-8O for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:48:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ah3C6-0002st-SS for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:48:41 -0400 Original-Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:33411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah3C6-0002sp-KP for emacs-devel@gnu.org; Fri, 18 Mar 2016 18:48:34 -0400 Original-Received: by mail-pf0-x22b.google.com with SMTP id 4so54315598pfd.0 for ; Fri, 18 Mar 2016 15:48:34 -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:content-transfer-encoding; bh=csKPlCm1zg7GfiWnud8EXT05UZxYSfqxux6gdmJB1hw=; b=YY6m43NTzuuUZm5PPzrJpn3gFAqPC6ma97FTd0Dus0JOq7f9Af9DKU6cmRT1Py8xwf MnfO+hw00SPfvaWrTEccimD1DienfgHuhpQM7Z7x0xiN1YRn7zFA9FV44ixcwTwQ89KA c9PSHMIxINrtp1wLf5CVNTzgLe0AUBT/iHm751ObzVBfJNPmfZvclt4bmoer6QmGpK+A RLvE2OYRqSfQp/VCC1qfjffE6qaNwA9nW+bbf/GU5CctYGZOlvzLnetJdBlu64/AFx4B CT6WngC4xCZ1yIF8HH588ofAJo+44PsTUG42SHevpRixMyq//35IEVYdYBeDQwQqmion TD3A== 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:content-transfer-encoding; bh=csKPlCm1zg7GfiWnud8EXT05UZxYSfqxux6gdmJB1hw=; b=CHGOK/xEgHx8jwt+QplLgw4AW+f91KTW3Mnp6CiZjLD4FZizpY4MERfo/xoAvEaEyk CQ56CXdw2geZOnHVIt9Ojx1RGEGQjAu5tB2nKadLUaWJ9FsOX2nvRA+YzqhamML/3WYq 0Jt8TACGNL72kkH57P7i8gyZPgPoEvKJYJmvpbRsRUT5JqN8SnFDtKBCyUuJYh5hadKz X2a4v3m0+NDd4aRT2Ypmsy9uqsACkv2sdohuj5+PPluh8b4+62iiBRTrVONTsdcVjpWK Q63eQrtzWYShnjBKv+Q/lasik+8rqO+1nF9mYk1s88c9D16gjGW+Od/tgwPWTeLaj0zh FPXw== X-Gm-Message-State: AD7BkJIO2vtc6EAo8WrBlWonZgVcZXZB0T5Ep38o47RRC8nPPKjBdR9tsitx62wK9D+vM3TA X-Received: by 10.66.118.108 with SMTP id kl12mr25088792pab.151.1458341313259; Fri, 18 Mar 2016 15:48:33 -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 f8sm23317144pfj.49.2016.03.18.15.48.32 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Mar 2016 15:48:32 -0700 (PDT) In-Reply-To: <87k2kze8p3.fsf@gmail.com> (=?utf-8?Q?=22I=C3=B1igo?= Serna"'s message of "Fri, 18 Mar 2016 23:13:12 +0100") 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::22b 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:201848 Archived-At: I=C3=B1igo Serna writes: In emacs 25, EWW renders buffers asynchronously so that emacs doesn't lock up while a web page is opening. That necessarily causes a lot of context switches.> 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=20 >> >> B. When you have completions come and go as you interact with the >> minibuffer=20 >> >> C. shr/eww as the earlier poster pointed out=20 >> >> 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=C3=B1igo Serna --=20