From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Mazzoli Newsgroups: gmane.emacs.help Subject: Highlighting current window Date: Sat, 30 Jun 2012 11:30:29 +0100 Message-ID: <87hattxfay.wl%f@mazzo.li> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1341068901 14423 80.91.229.3 (30 Jun 2012 15:08:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 30 Jun 2012 15:08:21 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 30 17:08:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SkzHU-0005Bk-Rn for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 17:08:16 +0200 Original-Received: from localhost ([::1]:55378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkzHU-0002TP-LU for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jun 2012 11:08:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkuxA-0005rD-KX for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 06:31:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Skux9-0000nd-0f for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 06:31:00 -0400 Original-Received: from mail-wg0-f49.google.com ([74.125.82.49]:48914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Skux8-0000nR-QE for help-gnu-emacs@gnu.org; Sat, 30 Jun 2012 06:30:58 -0400 Original-Received: by wgbds1 with SMTP id ds1so2715302wgb.30 for ; Sat, 30 Jun 2012 03:30:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:message-id:from:to:subject:user-agent:mime-version :content-type:x-gm-message-state; bh=7VCWKUUyGf1ao06a/nzLS3RIyloR9ezR2+L8SLTrPzg=; b=ce9VUoFYSHNxrrPqdEtLYSCQPq6dXhZB4TBZUeo8GmDWW1b+x3dGuQKiKxMtkCTKgt ObWdsreVs+p8jpVYDZG/Xz8ym6FMU0bEe+dDcfFKePafXwylXo6xmo57go2EpZZO5DaA 1f2BO82GpicEZW/huVvIc7zamOGEDI23BWWyJykKbBHAT8MFtG+eLEJEbZpl9z+8UvgJ ufz4L9tYfN0a32aro4akaFJzCqubdcfiATBbBD1OXdlqXMAIR89mSEGH2fdyDDWPy05E RGNwRrCPWxaJKNFMRENW5ruFcwMpKfbYFgCW5JmhSOyhb4RDS0RbiEVCqmJCo53hQvnx kelQ== Original-Received: by 10.180.78.99 with SMTP id a3mr4139924wix.15.1341052255523; Sat, 30 Jun 2012 03:30:55 -0700 (PDT) Original-Received: from stringer.mazzo.li (host86-138-143-207.range86-138.btcentralplus.com. [86.138.143.207]) by mx.google.com with ESMTPS id df4sm4883443wib.4.2012.06.30.03.30.54 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jun 2012 03:30:55 -0700 (PDT) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/23.3 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Gm-Message-State: ALoCoQk4FEKX7dHC8suFsLJNmE76fIL6Aj+4xsygliAMht4lZFjMmC4/GT0QIO36v8d+ZlumGEOn X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.49 X-Mailman-Approved-At: Sat, 30 Jun 2012 11:08:12 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85584 Archived-At: Hi list, I was looking for ways to make the focused window clearer. The best way would probably a slightly lighter background. However, I couldn't find any hooks to easily do that. I was expecting something along the lines of `window-leave-hook' and `window-focus-hook' but I couldn't find anything similar. The best suggestion that the IRC people came up with is to use `post-command-hook' and match `switch-buffer', but that sounds a bit ugly. Is there a better way? -- Francesco * Often in error, never in doubt