From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Annoying paren match messages in minibuffer Date: Wed, 14 Jan 2009 08:46:58 -0500 Message-ID: <87ocyat2y5.fsf@cyd.mit.edu> References: <87y6xedc47.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231941402 20871 80.91.229.12 (14 Jan 2009 13:56:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 13:56:42 +0000 (UTC) Cc: Geoff Gole , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 14 14:57:53 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 1LN6FI-0005NN-Bi for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 14:57:24 +0100 Original-Received: from localhost ([127.0.0.1]:41202 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN6E1-0007HF-Ut for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 08:56:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LN64y-0000Hi-2o for emacs-devel@gnu.org; Wed, 14 Jan 2009 08:46:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LN64w-0000FI-AE for emacs-devel@gnu.org; Wed, 14 Jan 2009 08:46:43 -0500 Original-Received: from [199.232.76.173] (port=39929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN64w-0000F8-3r for emacs-devel@gnu.org; Wed, 14 Jan 2009 08:46:42 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:51045) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LN64v-00024O-Qo for emacs-devel@gnu.org; Wed, 14 Jan 2009 08:46:41 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 8644857E1D7; Wed, 14 Jan 2009 08:46:58 -0500 (EST) In-Reply-To: <87y6xedc47.fsf@jurta.org> (Juri Linkov's message of "Wed, 14 Jan 2009 01:28:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:107849 Archived-At: Juri Linkov writes: > 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?