From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: help needed with gnus mode-line Date: Fri, 01 Jul 2011 21:23:58 +0200 Message-ID: <87liwhn6sx.fsf@gmail.com> References: <87r56b5yf5.fsf@gmail.com> <87y60ixy1u.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309548285 22126 80.91.229.12 (1 Jul 2011 19:24:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2011 19:24:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 01 21:24:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QcjKT-0005x6-3p for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 21:24:41 +0200 Original-Received: from localhost ([::1]:57709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjKR-00039k-RR for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 15:24:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45745) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjK5-00038u-8E for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcjK3-0005bp-G0 for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:24:16 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:64606) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjK3-0005bk-1I for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:24:15 -0400 Original-Received: by wyg36 with SMTP id 36so2957076wyg.0 for ; Fri, 01 Jul 2011 12:24:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=hy7I0nBp2SS4TexgfCgH6D3pL7IHjRc4zISL1ITdgbc=; b=YexHDp2ELrq2S0Jw900mytb01KubkK0Gl6gFoAniN4yo3ZO/JuilkQbaH+p23/s/e9 cp5tufRvf/nD+JDHWcKoSB5s2qxopcBHgrjKSOHL58OhVOO/zusawurDuZrh06y4BHtA 0wWbusF8dCC0Dto9TNSSttzu5yL+wJRzHBBAo= Original-Received: by 10.216.137.87 with SMTP id x65mr3200877wei.40.1309548242434; Fri, 01 Jul 2011 12:24:02 -0700 (PDT) Original-Received: from thierry-MM061 (43.77.197.77.rev.sfr.net [77.197.77.43]) by mx.google.com with ESMTPS id s47sm1783357weq.6.2011.07.01.12.24.00 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Jul 2011 12:24:01 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Fri, 01 Jul 2011 12:23:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:141404 Archived-At: Stefan Monnier writes: > Try (window-buffer (minibuffer-selected-window)) ;-) Yes, of course, thanks ;-) > Of course, minibuffer-selected-window is not quite right either: you > don't want to modify the mode-line of the buffer from where the M-: was > typed, but the mode-line that's right above the minibuffer (which > doesn't even exist in minibuffer-only frames). Right, i didn't find how to get safely the window right above minibuffer. > No, the problem is that if you don't switch to the other buffer, your > let binding will change the mode-line-format value in the minibuffer and > since the minibuffer basically never sets this value buffer-locally it > means it changes (temporarily) the default value of mode-line-format, > i.e. it changes the value of mode-line-format for all buffers that > haven't set it buffer-locally (i.e. all buffers except Gnus buffers and > a few other ones). Right. > If you have several windows, you should see that your mode-line message > appears in pretty much all mode lines rather than only the one next to > the minibuffer (tho calling force-mode-line-update with a nil may be > sufficient to restrict the change to the window(s) that show this buffer > in many cases). Thanks for all these explanations. -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997