From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Unmatched parenthesis. Okay, but if this is a smiley? Date: Sat, 26 Jun 2010 16:00:07 +0200 Organization: Informatimago Message-ID: <87aaqhrj14.fsf@kuiper.lan.informatimago.com> References: <87eifunap5.fsf@merciadriluca-station.MERCIADRILUCA> <87vd96g9c8.fsf@kuiper.lan.informatimago.com> <87k4pmqm6a.fsf@merciadriluca-station.MERCIADRILUCA> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291846259 20236 80.91.229.12 (8 Dec 2010 22:10:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 22:10:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 23:10:54 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQSDJ-00076L-HY for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:10:51 +0100 Original-Received: from localhost ([127.0.0.1]:57586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQSD5-0005TH-KY for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:10:03 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 50 Original-X-Trace: individual.net ScnFr5HGJEB7F/v1v1noegx60JdVZfWKRFYYq2iZC/HJubqNgj Cancel-Lock: sha1:OTgzMWFlMGRkZDJjZTI2ZDFlNzliZjVjODc2NzJlZGNiZTFhYmM5Ng== sha1:nOnQbANhU0HkOzBPQ+y+aHh0t9U= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.101 (Gnus v5.10.10) Emacs/23.2 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:179264 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76108 Archived-At: Merciadri Luca writes: > pjb@informatimago.com (Pascal J. Bourguignon) writes: > >> Merciadri Luca writes: >>> It sometimes happens to use smileys (e.g. in e-mails, through >>> e.g. Gnus) in emacs. The problem is that it always gives me `Unmatched >>> parenthesis' in the minibuffer. Is there some .el script to solve this >>> `issue?' >> >> Check the mode. In message buffers, no parenthesis checking should be done. > Could you be more explicit? Thanks. The behavior you describe is not 'normal'. When you have a normal GNUS message buffer, like the one I'm typing right now ;-), you can insert any number of unbalanced parentheses because no checking is done. Here are the major-mode and currently active minor modes in my GNUS message buffer: major-mode --> message-mode (defun current-minor-modes (&optional buffer) "The list of the minor modes currently active in the buffer (or current buffer)." (let ((result '())) (with-current-buffer (or buffer (current-buffer)) (dolist (mode minor-mode-list result) (when (and (boundp mode) (symbol-value mode)) (push mode result)))))) (current-minor-modes) --> (abbrev-mode transient-mark-mode line-number-mode auto-compression-mode auto-encryption-mode unify-8859-on-encoding-mode unify-8859-on-decoding-mode blink-cursor-mode font-lock-mode global-font-lock-mode file-name-shadow-mode mouse-wheel-mode tooltip-mode shell-dirtrack-mode auto-image-file-mode display-time-mode mml-mode) So you must have some hook or some other minor mode configured that activates such mismatched parentheses dectection and signaling an error. -- __Pascal Bourguignon__ http://www.informatimago.com/