From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?iso-8859-1?q?Fran=E7ois_Fleuret?= Newsgroups: gmane.emacs.help Subject: Re: highlight current window/modeline after switching to it Date: 19 Nov 2003 13:43:02 +0100 Organization: I.N.R.I.A Rocquencourt Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3FBA6C9A.8090203@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1069247857 3606 80.91.224.253 (19 Nov 2003 13:17:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2003 13:17:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 19 14:17:30 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AMSD3-0001NW-01 for ; Wed, 19 Nov 2003 14:17:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AMT8i-0001fj-1X for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Nov 2003 09:17:04 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!news.cambrium.nl!news.cambrium.nl!news.cambrium.nl!skynet.be!freenix!jussieu.fr!univ-lyon1.fr!unice.fr!news.cma.fr!news-sop.inria.fr!news-rocq.inria.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: wasabi.inria.fr Original-X-Trace: news-rocq.inria.fr 1069245782 29880 128.93.23.201 (19 Nov 2003 12:43:02 GMT) Original-X-Complaints-To: usenet@inria.fr Original-NNTP-Posting-Date: Wed, 19 Nov 2003 12:43:02 +0000 (UTC) X-Attribution: FF X-Url: http://www-rocq.inria.fr/~fleuret User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Xref: shelby.stanford.edu gnu.emacs.help:118431 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:14372 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14372 Hi people, Chris McMahan wrote on 18 Nov 2003 22:12:35 MET: > e-other-window can be found at: > http://relativity.yi.org/el/e-other-window.el > ;;; map it to the standard keybinding to swith windows > (defun cm-other-window () > (interactive) > (other-window 1) > (e-other-window-blink) > ) > (global-set-key "\C-xo" 'cm-other-window) Isn't it precisely what e-other-window does ? Btw, I had this problem several times already: what is the standard way to change one window background color ? In e-other-window, they use an overlay to change the color of the face. The problem with that solution is that it changes the color of non-empty lines only ... (which lead to ugliness such as *modifying* empty buffer by inserting a '\n', cf. e-other-window-blink). Regards, -- François Fleuret