From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Annoying paren match messages in minibuffer Date: Wed, 14 Jan 2009 09:01:57 -0500 Message-ID: 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 1231941998 23224 80.91.229.12 (14 Jan 2009 14:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 14:06:38 +0000 (UTC) Cc: Juri Linkov , Geoff Gole , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 14 15:07:48 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 1LN6Oz-0000jy-Rm for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 15:07:26 +0100 Original-Received: from localhost ([127.0.0.1]:52629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN6Nj-0007Il-82 for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2009 09:06:07 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LN6Jp-0003vr-6b for emacs-devel@gnu.org; Wed, 14 Jan 2009 09:02:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LN6Jk-0003v2-I2 for emacs-devel@gnu.org; Wed, 14 Jan 2009 09:02:02 -0500 Original-Received: from [199.232.76.173] (port=47709 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LN6Jk-0003up-1v for emacs-devel@gnu.org; Wed, 14 Jan 2009 09:02:00 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:2561 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LN6Jj-0005Vq-Ku for emacs-devel@gnu.org; Wed, 14 Jan 2009 09:01:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAPV+bUlMCpxj/2dsb2JhbACBbMt/hW+BdQ X-IronPort-AV: E=Sophos;i="4.37,263,1231131600"; d="scan'208";a="32284364" Original-Received: from 76-10-156-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.99]) by ironport2-out.teksavvy.com with ESMTP; 14 Jan 2009 09:01:58 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id EDC417F41; Wed, 14 Jan 2009 09:01:57 -0500 (EST) In-Reply-To: <87ocyat2y5.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 14 Jan 2009 08:46:58 -0500") 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:107851 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'? No, Stefan