From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Annoying paren match messages in minibuffer Date: Wed, 14 Jan 2009 23:12:14 +0200 Organization: JURTA Message-ID: <87fxjla99x.fsf@jurta.org> References: <87y6xedc47.fsf@jurta.org> <87ocyat2y5.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231967904 29739 80.91.229.12 (14 Jan 2009 21:18:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 21:18:24 +0000 (UTC) Cc: Chong Yidong , Geoff Gole , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 14 22:19:35 2009 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 1LND9B-0005ed-4g for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 22:19:34 +0100 Original-Received: from localhost ([127.0.0.1]:43055 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LND7t-00055Y-RT for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 16:18:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LND7e-0004wm-EC for emacs-devel@gnu.org; Wed, 14 Jan 2009 16:17:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LND7c-0004vS-2C for emacs-devel@gnu.org; Wed, 14 Jan 2009 16:17:57 -0500 Original-Received: from [199.232.76.173] (port=33927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LND7b-0004v9-QX for emacs-devel@gnu.org; Wed, 14 Jan 2009 16:17:55 -0500 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]:4625) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LND7b-00053H-Ar for emacs-devel@gnu.org; Wed, 14 Jan 2009 16:17:55 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LND7X-000MxT-CG; Wed, 14 Jan 2009 23:17:51 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 14 Jan 2009 09:01:57 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: c2436a487120708c9e0f2b31fdd4cc45 X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) 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:107863 Archived-At: >>> An annoyance like you reported can be eliminated with the following >>> simple patch: >>> >>> - (message "Mismatched parentheses")) >>> + (if (window-minibuffer-p (selected-window)) >>> + (minibuffer-message " [Mismatched parentheses]") >>> + (message "Mismatched parentheses"))) > >> This patch looks like the right thing to do. Does anyone see any >> problems with this change? > > Other than the fact that this should be done automatically by `message'? Miles said he has experimental code for this. Until it's installed after resolving all controversies, I'd like to fix this particular case. -- Juri Linkov http://www.jurta.org/emacs/