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 06:55:02 -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 1458309337 17557 80.91.229.3 (18 Mar 2016 13:55:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 13:55:37 +0000 (UTC) Cc: 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 14:55:21 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 1agus1-0003wy-Ba for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 14:55:17 +0100 Original-Received: from localhost ([::1]:43801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agus0-0006Xu-Li for ged-emacs-devel@m.gmane.org; Fri, 18 Mar 2016 09:55:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agurw-0006X3-NF for emacs-devel@gnu.org; Fri, 18 Mar 2016 09:55:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1agurs-0007S4-Nb for emacs-devel@gnu.org; Fri, 18 Mar 2016 09:55:12 -0400 Original-Received: from mail-pf0-x233.google.com ([2607:f8b0:400e:c00::233]:36510) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1agurs-0007Qn-Fv for emacs-devel@gnu.org; Fri, 18 Mar 2016 09:55:08 -0400 Original-Received: by mail-pf0-x233.google.com with SMTP id u190so169546954pfb.3 for ; Fri, 18 Mar 2016 06:55:06 -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=TARNSd75D+8uQTesx+EpaAZKypfWC66eyPS52y1iQGM=; b=G+363oweKe+KKBx3nxae9CDUpdSbJ+QvFf2LdGS7yFPOI4bjm5ghrbwinP2ljOWalT lpPcWSnGreGZMxaps9uSjhwdJZdlu0UvrSxJT/WDqWZfRgHS1oTePcwD0AS7x7Aluf4s K4jlVtQU4joj0sOkDWuzGGueDPGK9FwLALrRmpFlnQp6DK8DtYIYLR6hXX5tudexED8s 5HjW6Qx2mvXAVW2SJ9AAbC7LpdyfQvA5Vw6A8QZgmHhDKvftQV7RO99hD8f44H6ERYhR W09mIYjGrolLSgyPwHS7mbv78s/66A8xCYibBTD0e6dSurpHkZ9V1rz4SUDDIHdOcY4k CXpw== 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=TARNSd75D+8uQTesx+EpaAZKypfWC66eyPS52y1iQGM=; b=Uh0+64VEmnUkrLhhUw9qP+X5KrgTpgmVQQb/PI/JTNvzZrpIdVkK8yLsyUjJ4dR+iY EPgYkBYENPNwFMhpXo/fmWpy7ZfNoegeo/xg8Cmm90wQjBW7XHKOki+d9s52ewXKpJTW rdHxJ5JrXt6K47fRIObBUzt06PXdqe7dA0LbfSb8aRtr1acvTCHtEej3mn1W33dr7xRW K9FvGNDVVCGtVw9wCUqGmyCz7ZqeHyFWxfL0JJ22VNxG7edRpw2CAha5tNMQlw9oat39 ue3UVkMkahifk17pUKYyBgOVyeqn7C60x0rQ42cxVcjq5PN2l2IUFhkbg5HIwrguQXkC dzgg== X-Gm-Message-State: AD7BkJKzvLh8V+ymgyp+JuFnqqG7CovZ3RLECmdPU5at5gISAu1KktXfAX9Bz7gGxHBL9lem X-Received: by 10.98.44.70 with SMTP id s67mr11537219pfs.59.1458309304382; Fri, 18 Mar 2016 06:55:04 -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 p79sm21317005pfi.61.2016.03.18.06.55.03 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 18 Mar 2016 06:55:03 -0700 (PDT) In-Reply-To: <87wpp0xd1t.fsf@gmail.com> (=?utf-8?Q?=22I=C3=B1igo?= Serna"'s message of "Fri, 18 Mar 2016 12:04:14 +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::233 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:201825 Archived-At: See thread I had on this list re hooking sound themes based on current mode -- I ran into this issue as well. As far as I know, it's more than just shr/eww that triggers this: if you look, select-window gets called way more often than you'd expect. After suggestions from folks like John, I ended up implementing my solution via an idle timer, you can see the relevant code here: https://github.com/tvraman/emacspeak/blob/master/lisp/soundscape.el#L191 --