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:20 +0200 Message-ID: <87mxgxn6tz.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 1309548947 25618 80.91.229.12 (1 Jul 2011 19:35:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2011 19:35:47 +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:35:43 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 1QcjV7-0002PR-6V for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 21:35:41 +0200 Original-Received: from localhost ([::1]:46203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjV5-00062X-Oy for ged-emacs-devel@m.gmane.org; Fri, 01 Jul 2011 15:35:39 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjJJ-000318-J1 for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:23:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcjJH-0005Xv-JJ for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:23:29 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:56825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcjJH-0005Xr-68 for emacs-devel@gnu.org; Fri, 01 Jul 2011 15:23:27 -0400 Original-Received: by wwf22 with SMTP id 22so2843994wwf.30 for ; Fri, 01 Jul 2011 12:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=hy7I0nBp2SS4TexgfCgH6D3pL7IHjRc4zISL1ITdgbc=; b=r0PyZzQCGrM7w0/Xah0XHjsXjMhU73YJqaj1kmr5XW6rFVuR2t/9OJIQdia3W39S+O BLodnoYnsFDj93Q8ozgxlOUAbr5kUcuavBR75HfSIyMfreVWInbK2+/bCJrFrHwg6EqW pdofdGAnUtmw7y0TMqaTe7b/ZqIKvyIREE2Ws= Original-Received: by 10.216.68.2 with SMTP id k2mr2491182wed.0.1309548205701; Fri, 01 Jul 2011 12:23:25 -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 ge4sm2558321wbb.13.2011.07.01.12.23.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 01 Jul 2011 12:23:23 -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.49 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:141406 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