all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Degutis <sbdegutis@gmail.com>
To: help-gnu-emacs@gnu.org, "Óscar Fuentes" <ofv@wanadoo.es>
Subject: Re: `auto-dim-other-windows` -- scrutiny invited
Date: Wed, 3 Apr 2013 08:27:48 -0500	[thread overview]
Message-ID: <CACeWA3hV8cVYAT4hOQkpeTumGUw4zyNLqs4b4vvxWASAZom+0A@mail.gmail.com> (raw)
In-Reply-To: <878v4zg41l.fsf@web.de>

[-- Attachment #1: Type: text/plain, Size: 1632 bytes --]

The source code is on github:
https://github.com/sdegutis/auto-dim-other-buffers.el

Window overlays seem inefficient here, given this line in the docs: "due to
a different implementation, overlays generally don't scale well (many
operations take a time that is proportional to the number of overlays in
the buffer)" and the following recommendation to avoid them when dealing
with "the visual appearance of many portions of the buffer". I don't quite
know if that applies here since I'm actually affecting the entire portion
of every buffer extremely often. I would assume so.

Then again, I don't really know elisp. And I only just started using emacs
a few months ago. So who knows, maybe I'm way off.

-Steven


On Wed, Apr 3, 2013 at 8:03 AM, Michael Heerdegen
<michael_heerdegen@web.de>wrote:

> Steven Degutis <sbdegutis@gmail.com> writes:
>
> > Originally I wanted to make it change the face per-window, so I could
> > easily know which window I'm editing in. I even named it
> > auto-dim-other-windows at first.
> >
> > Then I realized emacs only allows us to set per-buffer faces. It
> > doesn't allow us to set per-window faces. Please file a bug asking
> > for the feature to set per-window faces. For now, this is the best we
> > can do with what emacs gives us.
>
> You can use the `window' overlay property for that - see (elisp) Overlay
> Properties.
>
> Apropos color: To get a dim color that is always derived live from the
> current background color, you can (optionally) use "hexrgb" by Drew
> Adam's for color transformation.  I can help with the coding if you are
> interested.
>
>
> Regards,
>
> Michael.
>
>

[-- Attachment #2: Type: text/html, Size: 2374 bytes --]

  reply	other threads:[~2013-04-03 13:27 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-02 21:06 `auto-dim-other-windows` -- scrutiny invited Steven Degutis
2013-04-02 22:19 ` Óscar Fuentes
2013-04-02 22:48   ` Steven Degutis
2013-04-02 23:14     ` Óscar Fuentes
2013-04-02 23:19       ` Steven Degutis
     [not found]       ` <mailman.23338.1364944796.855.help-gnu-emacs@gnu.org>
2013-04-03 13:03         ` Michael Heerdegen
2013-04-03 13:27           ` Steven Degutis [this message]
     [not found] ` <mailman.23335.1364941179.855.help-gnu-emacs@gnu.org>
2013-04-03 13:11   ` Michael Heerdegen
2013-04-03 13:19     ` Steven Degutis
2013-04-03 14:44 ` Steven Degutis
2013-04-03 14:47   ` Mark Skilbeck
2013-04-03 14:52     ` Steven Degutis
2013-04-03 14:55       ` Mark Skilbeck
2013-04-03 15:09         ` Steven Degutis
2013-04-03 15:17           ` Óscar Fuentes
2013-04-03 15:15   ` Óscar Fuentes
2013-04-03 15:32     ` Steven Degutis
2013-04-03 16:03       ` Steven Degutis
2013-04-03 17:03         ` Óscar Fuentes
2013-04-03 17:13           ` Steven Degutis
2013-04-03 17:17             ` Óscar Fuentes
2013-04-03 17:42               ` Steven Degutis
2013-04-03 18:10                 ` Óscar Fuentes
2013-04-03 18:54                   ` Steven Degutis
2013-04-03 19:19                     ` Steven Degutis
2013-04-03 20:13         ` Stefan Monnier
2013-04-03 20:22           ` Steven Degutis
2013-04-03 22:23             ` Stefan Monnier
2013-04-04 21:55               ` Drew Adams
2013-04-04 22:01                 ` Steven Degutis
2013-04-05 12:49                   ` Stefan Monnier
2013-04-06 19:23                     ` Drew Adams
     [not found]       ` <mailman.23406.1365005023.855.help-gnu-emacs@gnu.org>
2013-04-03 17:20         ` Michael Heerdegen
2013-04-03 17:44           ` Steven Degutis
2013-04-03 20:55           ` Steven Degutis
2013-04-04 16:02           ` Steven Degutis
2013-04-04  7:27         ` Joost Kremers
2013-04-04 20:52           ` Ludwig, Mark
2013-04-04 20:53             ` Steven Degutis
2013-04-04 21:31               ` Steven Degutis
2013-04-03 15:57   ` Ludwig, Mark
2013-04-03 16:06     ` Steven Degutis
2013-04-03 16:37     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACeWA3hV8cVYAT4hOQkpeTumGUw4zyNLqs4b4vvxWASAZom+0A@mail.gmail.com \
    --to=sbdegutis@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.