From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Merciadri Luca Newsgroups: gmane.emacs.help Subject: Re: Unmatched parenthesis. Okay, but if this is a smiley? Date: Sat, 26 Jun 2010 19:18:26 +0200 Organization: ULg Message-ID: <874ogpg1b1.fsf@merciadriluca-station.MERCIADRILUCA> References: <87eifunap5.fsf@merciadriluca-station.MERCIADRILUCA> <87vd96g9c8.fsf@kuiper.lan.informatimago.com> <87k4pmqm6a.fsf@merciadriluca-station.MERCIADRILUCA> <87aaqhrj14.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291839244 18371 80.91.229.12 (8 Dec 2010 20:14:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 20:14:04 +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 21:14:00 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 1PQQOi-0003DF-VL for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 21:13:57 +0100 Original-Received: from localhost ([127.0.0.1]:44184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQQOi-0007pe-4w for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 15:13:56 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!hist.no!news.net.uni-c.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:Ms2kgBqV2hkhwMmJJuv+Fu5OalE= Original-Lines: 68 Original-NNTP-Posting-Host: 62.197.101.67 Original-X-Trace: news.sunsite.dk DXC=YbK7mMV94??XYXkC6[Mbh; YSB=nbEKnk; UC?Y@7=m^d6B`G2cTG; Mn1LGVLjEY^2Y8[=LHD=0P^Y49g\V1BeNHO95Z@8`56Df90Tfce3DSDZ[34DEQG@7NR?? Original-X-Complaints-To: staff@sunsite.dk Original-Xref: usenet.stanford.edu gnu.emacs.help:179266 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:75959 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 pjb@informatimago.com (Pascal J. Bourguignon) writes: > 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. Very probable. I use built-in code-syntax helper (for C, Java, etc.), which checks parentheses, etc., but it should not be launched if the file is not such a code file, should it? - -- Merciadri Luca See http://www.student.montefiore.ulg.ac.be/~merciadri/ - -- If it's too good to be true, then it probably is. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 iEYEARECAAYFAkwmNmEACgkQM0LLzLt8MhztqgCgmglLBm2w197R4GzkVyUnRQK1 KiwAoIwmt5MJkT7ZqRNjsKVBFv99DcVb =kRIb -----END PGP SIGNATURE-----