From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Introducing 'unrecognized and 'ignored Date: Mon, 21 Jan 2008 07:30:53 -0800 Message-ID: <200801211530.m0LFUxpZ004358@sallyv1.ics.uci.edu> References: <17EA38DF-BCC1-4565-8510-5DD10DD667E3@mac.com> <20071229114551.GD9794@thyrsus.com> <20080102021907.GA15494@thyrsus.com> <200801020445.m024jWU2008538@oogie-boogie.ics.uci.edu> <200801031805.m03I5SBf022748@oogie-boogie.ics.uci.edu> <200801050901.m0591mQj011970@oogie-boogie.ics.uci.edu> <20080105143415.GG30869@thyrsus.com> <200801061037.m06AbIRD004966@oogie-boogie.ics.uci.edu> <200801182346.m0INkiEg022130@sallyv1.ics.uci.edu> <200801191705.m0JH5WOU026943@sallyv1.ics.uci.edu> <87sl0tbn1m.fsf@ambire.localdomain> <87myr0qlyp.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200929605 29289 80.91.229.12 (21 Jan 2008 15:33:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jan 2008 15:33:25 +0000 (UTC) Cc: Thien-Thi Nguyen , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 21 16:33:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JGyeb-0006Ax-O9 for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 16:33:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGyeC-00067V-9D for ged-emacs-devel@m.gmane.org; Mon, 21 Jan 2008 10:33:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JGye7-00063n-La for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:33:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JGye5-0005yu-5z for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:33:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JGye4-0005yB-Ne for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:33:08 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1JGye4-0008Ii-35 for emacs-devel@gnu.org; Mon, 21 Jan 2008 10:33:08 -0500 X-ICS-MailScanner-Watermark: 1201534265.88982@UqI/klZgRjppVRNrMBrFSw Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m0LFUxpZ004358; Mon, 21 Jan 2008 07:30:59 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 21 Jan 2008 10:18:02 -0500") Original-Lines: 21 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87214 Archived-At: Stefan Monnier writes: > > This can't be right: we have no idea what buffer we're in at this point. > > > you're right. i have just installed a `with-current-buffer' wrapper. > > >> + (setq mode-line-process " (background)") > > > The problem with this is that it's not necessarily clear that we're > > changing mode-line-process in the right buffer either, here. > > > PROC is taken from (current-buffer). is that not reliable? > > It's reliable in that we know which buffer it is, but that doesn't mean > it's the right buffer. Isn't it often a hidden buffer like *vc* rather > than the vc-status buffer itself? Yep, this seems to work for things like log, diff, annotate, but for vc-status it does not, because as you say, the status command does not run in vc-status buffer, but in a hidden temporary buffer. It seems that a different mechanism is needed for that case.