all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Advicing select-windows, shr rendering, and per-buffer-theme package
@ 2016-03-18 11:04 Iñigo Serna
  2016-03-18 13:38 ` Clément Pit--Claudel
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Iñigo Serna @ 2016-03-18 11:04 UTC (permalink / raw
  To: emacs-devel

Hi,

I'm the author of “per-buffer-theme”, a simple package available in
MELPA [1], which changes emacs theme when switching to a buffer according to
some configured rules (f.e. use a dark theme when coding, light theme
for email or web navigation). It advices `select-window', checks buffer
name or major-mode, and changes theme.

It worked correctly and fast with emacs 24.5, but now with emacs 25.x it
produces additional “flickering” when switching buffers, especially for
eww/shr buffers, where it makes package useless.

I think problem comes that, when switching to a eww/shr buffer, shr
rendering uses many temporal buffers, so theme changes many times
producing that "flickering" effect. But I'm not sure as my elisp skills
and emacs internals knowledge is quite limited.

I don't know how to solve it… I've tested with before/after variations
to `advice-add' but results are similar. First versions used
`window-configuration-change-hook' but add-advice to select-window was
much better option then. Any ideas?

Thanks in advance,
Iñigo Serna

[1] http://melpa.org/#/per-buffer-theme
    https://bitbucket.org/inigoserna/per-buffer-theme.el



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2016-03-18 22:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18 11:04 Advicing select-windows, shr rendering, and per-buffer-theme package Iñigo Serna
2016-03-18 13:38 ` Clément Pit--Claudel
2016-03-18 13:40 ` Clément Pit--Claudel
2016-03-18 16:45   ` Iñigo Serna
2016-03-18 17:45     ` Clément Pit--Claudel
2016-03-18 20:17       ` Iñigo Serna
2016-03-18 22:07         ` raman
2016-03-18 13:55 ` raman
2016-03-18 15:21   ` Stefan Monnier
2016-03-18 16:28     ` raman
2016-03-18 16:47       ` Stefan Monnier
2016-03-18 22:13       ` Iñigo Serna
2016-03-18 22:48         ` raman
2016-03-18 17:04     ` Iñigo Serna

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.