From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.help Subject: Re: Propertize mode-line contents only for mode-line of selected window? Date: Sun, 01 Mar 2015 14:23:37 +1100 Message-ID: <87wq31764m.fsf@gmail.com> References: <87385q8g5v.fsf@gmail.com> <87385pmod7.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1425180247 13023 80.91.229.3 (1 Mar 2015 03:24:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2015 03:24:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 04:24:02 2015 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 1YRuU5-0000bU-Is for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Mar 2015 04:24:01 +0100 Original-Received: from localhost ([::1]:43323 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRuU4-0003Hl-Rf for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Feb 2015 22:24:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRuTt-0003HT-Fz for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 22:23:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRuTo-0002tk-G5 for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 22:23:49 -0500 Original-Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:40617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRuTo-0002te-8i for help-gnu-emacs@gnu.org; Sat, 28 Feb 2015 22:23:44 -0500 Original-Received: by paceu11 with SMTP id eu11so33528692pac.7 for ; Sat, 28 Feb 2015 19:23:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=Pds3NUHrPno5N1qgWQNzV+PCPTGFLDkPXMEa4LkvT2I=; b=rENgBhqLGhaRG+Fnnb43tW9GYnZlSVjRvMLKP7A6M8VDjdQgoY92HLNuxApqU/jvLc RajR9HgsBFkAYtmvatYMWm0xDpGbW/8IJZF1FXyFaBYuFoN1uhBiiN7Bz+YKRPh0edEB 1rC8YcPXWDwwBrbJ8A7fL5/BBxj8Yv8I/k/eTps5+rESkH8BHTvCwEll6ka7RFfR+UYI 0BnFCX9RyiJXfzivjfuR70o6ukKjqLtfYjCEkIq1gazzMFfFkd8mBxd+lmZoZVRt6Ysa 4Yagdl++QUsj9OKelFf6X0ZOPh0c5vYJcJQjiNiXAWczlTH9El/2cjE/0OXJTwGKmJZX A4Hg== X-Received: by 10.68.244.167 with SMTP id xh7mr36415938pbc.19.1425180223339; Sat, 28 Feb 2015 19:23:43 -0800 (PST) Original-Received: from localhost (ppp118-209-174-156.lns20.mel8.internode.on.net. [118.209.174.156]) by mx.google.com with ESMTPSA id f8sm8013541pdm.68.2015.02.28.19.23.41 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 28 Feb 2015 19:23:42 -0800 (PST) In-reply-to: <87385pmod7.fsf@web.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::231 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:102961 Archived-At: On 2015-03-01T13:40:36+1100, Michael Heerdegen said: MH> Yes, this will all not work. The reason is that when any MH> mode-line in any window is refreshed, its window is internally MH> temporarily selected. MH> So you will need to remember the selected window in a variable, MH> or something like that - here is an example: Yes, your suggested approach did the trick. :-) Thank you, much appreciated! Alexis.